返回提交历史
Modified
static/webui/script.js
+1
-1
Modified
static/webui/translations/de.js
+2
-0
Modified
static/webui/translations/en.js
+2
-0
Modified
static/webui/translations/es.js
+2
-0
Modified
static/webui/translations/fr.js
+2
-0
Modified
static/webui/translations/ru.js
+2
-0
Modified
static/webui/translations/zh.js
+2
-0
XFEstudio/XFESpaceNinjaServer
chore(webui): add login/register error messages to translation system (#2179)
Closes #2178 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2179 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
4e832d3b
代码差异
7 个文件
+13
-1
@@ -29,7 +29,7 @@ function loginFromLocalStorage() {
29
29
},
30
30
() => {
31
31
logout();
32
alert(isRegister ? "Registration failed. Account already exists?" : "Login failed");
32
alert(loc(isRegister ? "code_regFail" : "code_loginFail"));
33
33
}
34
34
);
35
35
}
@@ -3,6 +3,8 @@ dict = {
3
3
general_inventoryUpdateNote: `Hinweis: Änderungen, die hier vorgenommen werden, werden erst im Spiel angewendet, sobald das Inventar synchronisiert wird. Die Sternenkarte zu besuchen, sollte der einfachste Weg sein, dies auszulösen.`,
4
4
general_addButton: `Hinzufügen`,
5
5
general_bulkActions: `Massenaktionen`,
6
code_loginFail: `[UNTRANSLATED] Login failed. Double-check the email and password.`,
7
code_regFail: `[UNTRANSLATED] Registration failed. Account already exists?`,
6
8
code_nonValidAuthz: `Deine Anmeldedaten sind nicht mehr gültig.`,
7
9
code_changeNameConfirm: `In welchen Namen möchtest du deinen Account umbenennen?`,
8
10
code_deleteAccountConfirm: `Bist du sicher, dass du deinen Account |DISPLAYNAME| (|EMAIL|) löschen möchtest? Diese Aktion kann nicht rückgängig gemacht werden.`,
@@ -2,6 +2,8 @@ dict = {
2
2
general_inventoryUpdateNote: `Note: Changes made here will only be applied in-game when the game syncs the inventory. Visiting the navigation should be the easiest way to trigger that.`,
3
3
general_addButton: `Add`,
4
4
general_bulkActions: `Bulk Actions`,
5
code_loginFail: `Login failed. Double-check the email and password.`,
6
code_regFail: `Registration failed. Account already exists?`,
5
7
code_nonValidAuthz: `Your credentials are no longer valid.`,
6
8
code_changeNameConfirm: `What would you like to change your account name to?`,
7
9
code_deleteAccountConfirm: `Are you sure you want to delete your account |DISPLAYNAME| (|EMAIL|)? This action cannot be undone.`,
@@ -3,6 +3,8 @@ dict = {
3
3
general_inventoryUpdateNote: `Nota: Los cambios realizados aquí se reflejarán en el juego cuando este sincronice el inventario. Usar la navegación debería ser la forma más sencilla de activar esto.`,
4
4
general_addButton: `Agregar`,
5
5
general_bulkActions: `Acciones masivas`,
6
code_loginFail: `[UNTRANSLATED] Login failed. Double-check the email and password.`,
7
code_regFail: `[UNTRANSLATED] Registration failed. Account already exists?`,
6
8
code_nonValidAuthz: `Tus credenciales no son válidas.`,
7
9
code_changeNameConfirm: `¿Qué nombre te gustaría ponerle a tu cuenta?`,
8
10
code_deleteAccountConfirm: `¿Estás seguro de que deseas eliminar tu cuenta |DISPLAYNAME| (|EMAIL|)? Esta acción es permanente.`,
@@ -3,6 +3,8 @@ dict = {
3
3
general_inventoryUpdateNote: `Note : Les changements effectués ici seront appliqués lors de la syncrhonisation. Visiter la navigation appliquera les changements apportés à l'inventaire.`,
4
4
general_addButton: `Ajouter`,
5
5
general_bulkActions: `Action groupée`,
6
code_loginFail: `[UNTRANSLATED] Login failed. Double-check the email and password.`,
7
code_regFail: `[UNTRANSLATED] Registration failed. Account already exists?`,
6
8
code_nonValidAuthz: `Informations de connexion invalides`,
7
9
code_changeNameConfirm: `Nouveau nom du compte :`,
8
10
code_deleteAccountConfirm: `Supprimer |DISPLAYNAME| (|EMAIL|) ? Cette action est irreversible.`,
@@ -3,6 +3,8 @@ dict = {
3
3
general_inventoryUpdateNote: `Примечание: изменения, внесенные здесь, отобразятся в игре только после повторной загрузки вашего инвентаря. Посещение навигации — самый простой способ этого добиться.`,
4
4
general_addButton: `Добавить`,
5
5
general_bulkActions: `Массовые действия`,
6
code_loginFail: `[UNTRANSLATED] Login failed. Double-check the email and password.`,
7
code_regFail: `[UNTRANSLATED] Registration failed. Account already exists?`,
6
8
code_nonValidAuthz: `Ваши данные больше не действительны.`,
7
9
code_changeNameConfirm: `Какое имя вы хотите установить для своей учетной записи?`,
8
10
code_deleteAccountConfirm: `Вы уверены, что хотите удалить аккаунт |DISPLAYNAME| (|EMAIL|)? Это действие нельзя отменить.`,
@@ -3,6 +3,8 @@ dict = {
3
3
general_inventoryUpdateNote: `注意:此处所做的更改只有在游戏同步仓库后才会生效。您可以通过访问星图来触发仓库更新。`,
4
4
general_addButton: `添加`,
5
5
general_bulkActions: `批量操作`,
6
code_loginFail: `[UNTRANSLATED] Login failed. Double-check the email and password.`,
7
code_regFail: `[UNTRANSLATED] Registration failed. Account already exists?`,
6
8
code_nonValidAuthz: `您的登录凭证已失效。`,
7
9
code_changeNameConfirm: `您想将账户名称更改为什么?`,
8
10
code_deleteAccountConfirm: `确定要删除账户 |DISPLAYNAME| (|EMAIL|) 吗?此操作不可撤销。`,