mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-01 11:56:48 +01:00
Bind strings to locale
This commit is contained in:
parent
40cae057a5
commit
0486fe0126
@ -275,7 +275,9 @@ export async function favsToHotswap() {
|
|||||||
|
|
||||||
//helpful instruction message if no characters are favorited
|
//helpful instruction message if no characters are favorited
|
||||||
if (favs.length == 0) {
|
if (favs.length == 0) {
|
||||||
container.html('<small><span><i class="fa-solid fa-star"></i> <span data-i18n="Favorite characters to add them to HotSwaps">Favorite characters to add them to HotSwaps</span></span></small>');
|
container.html('<small><span><i class="fa-solid fa-star"></i> '
|
||||||
|
+ container.attr('no_favs')
|
||||||
|
+ '</span></small>');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -285,7 +287,8 @@ export async function favsToHotswap() {
|
|||||||
//changes input bar and send button display depending on connection status
|
//changes input bar and send button display depending on connection status
|
||||||
function RA_checkOnlineStatus() {
|
function RA_checkOnlineStatus() {
|
||||||
if (online_status == 'no_connection') {
|
if (online_status == 'no_connection') {
|
||||||
$('#send_textarea').attr('placeholder', 'Not connected to API!'); //Input bar placeholder tells users they are not connected
|
var send_textarea = $('#send_textarea');
|
||||||
|
send_textarea.attr('placeholder', send_textarea.attr('no_connection_text')); //Input bar placeholder tells users they are not connected
|
||||||
$('#send_form').addClass('no-connection'); //entire input form area is red when not connected
|
$('#send_form').addClass('no-connection'); //entire input form area is red when not connected
|
||||||
$('#send_but').addClass('displayNone'); //send button is hidden when not connected;
|
$('#send_but').addClass('displayNone'); //send button is hidden when not connected;
|
||||||
$('#mes_continue').addClass('displayNone'); //continue button is hidden when not connected;
|
$('#mes_continue').addClass('displayNone'); //continue button is hidden when not connected;
|
||||||
@ -294,7 +297,8 @@ function RA_checkOnlineStatus() {
|
|||||||
connection_made = false;
|
connection_made = false;
|
||||||
} else {
|
} else {
|
||||||
if (online_status !== undefined && online_status !== 'no_connection') {
|
if (online_status !== undefined && online_status !== 'no_connection') {
|
||||||
$('#send_textarea').attr('placeholder', 'Type a message, or /? for help'); //on connect, placeholder tells user to type message
|
var send_textarea = $('#send_textarea');
|
||||||
|
send_textarea.attr('placeholder', send_textarea.attr('connected_text')); //on connect, placeholder tells user to type message
|
||||||
$('#send_form').removeClass('no-connection');
|
$('#send_form').removeClass('no-connection');
|
||||||
$('#API-status-top').removeClass('fa-plug-circle-exclamation redOverlayGlow');
|
$('#API-status-top').removeClass('fa-plug-circle-exclamation redOverlayGlow');
|
||||||
$('#API-status-top').addClass('fa-plug');
|
$('#API-status-top').addClass('fa-plug');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user