mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Make texts translatable
This commit is contained in:
@ -9884,7 +9884,7 @@ export async function renameChat(oldFileName, newName) {
|
||||
return;
|
||||
}
|
||||
if (equalsIgnoreCaseAndAccents(body.original_file, body.renamed_file)) {
|
||||
toastr.warning('Name not accepted, as it is the same as before (ignoring case and accents).', 'Rename Chat');
|
||||
toastr.warning(t`Name not accepted, as it is the same as before (ignoring case and accents).`, t`Rename Chat`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -896,7 +896,7 @@ export async function initPresetManager() {
|
||||
return;
|
||||
}
|
||||
if (equalsIgnoreCaseAndAccents(oldName, newName)) {
|
||||
toastr.warning('Name not accepted, as it is the same as before (ignoring case and accents).', 'Rename Preset');
|
||||
toastr.warning(t`Name not accepted, as it is the same as before (ignoring case and accents).`, t`Rename Preset`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -3587,7 +3587,7 @@ async function renameWorldInfo(name, data) {
|
||||
return;
|
||||
}
|
||||
if (equalsIgnoreCaseAndAccents(oldName, newName)) {
|
||||
toastr.warning('Name not accepted, as it is the same as before (ignoring case and accents).', 'Rename World Info');
|
||||
toastr.warning(t`Name not accepted, as it is the same as before (ignoring case and accents).`, t`Rename World Info`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user