Make texts translatable

c522baf4f7889a8d1324ec7d8443758a66fa161a

Cohee <18619528+Cohee1207@users.noreply.github.com>

3 files changed, +3 -3Ignore whitespace
public/script.js+1 -1
@@ -9884,7 +9884,7 @@ export async function renameChat(oldFileName, newName) {
9884 return;9884 return;
9885 }9885 }
9886 if (equalsIgnoreCaseAndAccents(body.original_file, body.renamed_file)) {9886 if (equalsIgnoreCaseAndAccents(body.original_file, body.renamed_file)) {
9887 toastr.warning('Name not accepted, as it is the same as before (ignoring case and accents).', 'Rename Chat');9887 toastr.warning(t`Name not accepted, as it is the same as before (ignoring case and accents).`, t`Rename Chat`);
9888 return;9888 return;
9889 }9889 }
98909890
public/scripts/preset-manager.js+1 -1
@@ -896,7 +896,7 @@ export async function initPresetManager() {
896 return;896 return;
897 }897 }
898 if (equalsIgnoreCaseAndAccents(oldName, newName)) {898 if (equalsIgnoreCaseAndAccents(oldName, newName)) {
899 toastr.warning('Name not accepted, as it is the same as before (ignoring case and accents).', 'Rename Preset');899 toastr.warning(t`Name not accepted, as it is the same as before (ignoring case and accents).`, t`Rename Preset`);
900 return;900 return;
901 }901 }
902902
public/scripts/world-info.js+1 -1
@@ -3587,7 +3587,7 @@ async function renameWorldInfo(name, data) {
3587 return;3587 return;
3588 }3588 }
3589 if (equalsIgnoreCaseAndAccents(oldName, newName)) {3589 if (equalsIgnoreCaseAndAccents(oldName, newName)) {
3590 toastr.warning('Name not accepted, as it is the same as before (ignoring case and accents).', 'Rename World Info');3590 toastr.warning(t`Name not accepted, as it is the same as before (ignoring case and accents).`, t`Rename World Info`);
3591 return;3591 return;
3592 }3592 }
35933593