diff --git a/languages/de.json b/languages/de.json
index 8e043db..ceb5763 100644
--- a/languages/de.json
+++ b/languages/de.json
@@ -549,6 +549,7 @@
},
"menu": {
"settings": {
+ "title": "Konfigurationsmenü PF2e RPG #s",
"buttons": {
"export": "Einstellungen Exportieren",
"import": "Einstellungen Importieren",
@@ -558,6 +559,11 @@
"cancel": "Abbrechen"
}
},
+ "notification": {
+ "save": "Einstellungen erfolgreich gespeichert!",
+ "submit": "Einstellungen erfolgreich eingereicht!",
+ "cancel": "Konfigurationsmenü geschlossen ohne zu speichern"
+ },
"tabs": {
"home": "Startseite",
"rolls": "Würfe",
diff --git a/languages/es.json b/languages/es.json
index 520cf73..b934afa 100644
--- a/languages/es.json
+++ b/languages/es.json
@@ -549,6 +549,7 @@
},
"menu": {
"settings": {
+ "title": "Menú de Configuración de PF2e RPG #s",
"buttons": {
"export": "Exportar Configuraciones",
"import": "Importar Configuraciones",
@@ -558,6 +559,11 @@
"cancel": "Cancelar"
}
},
+ "notification": {
+ "save": "¡Configuraciones guardadas con éxito!",
+ "submit": "¡Configuraciones enviadas con éxito!",
+ "cancel": "Menú de configuraciones cerrado sin guardar"
+ },
"tabs": {
"home": "Inicio",
"rolls": "Tiradas",
diff --git a/languages/fr.json b/languages/fr.json
index eda61d0..62ba666 100644
--- a/languages/fr.json
+++ b/languages/fr.json
@@ -549,6 +549,7 @@
},
"menu": {
"settings": {
+ "title": "Menu de Configuration PF2e RPG #s",
"buttons": {
"export": "Exporter Paramètres",
"import": "Importer Paramètres",
@@ -558,6 +559,11 @@
"cancel": "Annuler"
}
},
+ "notification": {
+ "save": "Paramètres enregistrés avec succès!",
+ "submit": "Paramètres soumis avec succès!",
+ "cancel": "Menu de paramètres fermé sans enregistrement"
+ },
"tabs": {
"home": "Accueil",
"rolls": "Jets",
diff --git a/languages/ja.json b/languages/ja.json
index e63faba..b4f854e 100644
--- a/languages/ja.json
+++ b/languages/ja.json
@@ -549,6 +549,7 @@
},
"menu": {
"settings": {
+ "title": "PF2e RPG #s 設定メニュー",
"buttons": {
"export": "設定のエクスポート",
"import": "設定のインポート",
@@ -558,6 +559,11 @@
"cancel": "キャンセル"
}
},
+ "notification": {
+ "save": "設定が正常に保存されました!",
+ "submit": "設定が正常に送信されました!",
+ "cancel": "設定メニューは保存せずに閉じられました"
+ },
"tabs": {
"home": "ホーム",
"rolls": "ロール",
diff --git a/languages/ko.json b/languages/ko.json
index af82d85..b25fd20 100644
--- a/languages/ko.json
+++ b/languages/ko.json
@@ -549,6 +549,7 @@
},
"menu": {
"settings": {
+ "title": "PF2e RPG #s 설정 메뉴",
"buttons": {
"export": "설정 내보내기",
"import": "설정 가져오기",
@@ -558,6 +559,11 @@
"cancel": "취소"
}
},
+ "notification": {
+ "save": "설정이 성공적으로 저장되었습니다!",
+ "submit": "설정이 성공적으로 제출되었습니다!",
+ "cancel": "설정 메뉴가 저장되지 않고 닫혔습니다"
+ },
"tabs": {
"home": "홈",
"rolls": "굴림",
diff --git a/languages/pl.json b/languages/pl.json
index 30ae983..c4d00b8 100644
--- a/languages/pl.json
+++ b/languages/pl.json
@@ -549,6 +549,7 @@
},
"menu": {
"settings": {
+ "title": "Menu Konfiguracji PF2e RPG #s",
"buttons": {
"export": "Eksportuj Ustawienia",
"import": "Importuj Ustawienia",
@@ -558,6 +559,11 @@
"cancel": "Anuluj"
}
},
+ "notification": {
+ "save": "Ustawienia zostały pomyślnie zapisane!",
+ "submit": "Ustawienia zostały pomyślnie zatwierdzone!",
+ "cancel": "Menu ustawień zamknięto bez zapisywania"
+ },
"tabs": {
"home": "Główna",
"rolls": "Rzuty",
diff --git a/languages/ru.json b/languages/ru.json
index 870f532..def5dcf 100644
--- a/languages/ru.json
+++ b/languages/ru.json
@@ -549,6 +549,7 @@
},
"menu": {
"settings": {
+ "title": "Меню Настроек PF2e RPG #s",
"buttons": {
"export": "Экспорт настроек",
"import": "Импорт настроек",
@@ -558,6 +559,11 @@
"cancel": "Отмена"
}
},
+ "notification": {
+ "save": "Настройки успешно сохранены!",
+ "submit": "Настройки успешно отправлены!",
+ "cancel": "Меню настроек закрыто без сохранения"
+ },
"tabs": {
"home": "Главная",
"rolls": "Броски",
diff --git a/scripts/helpers/forms/settingsConfigForm.js b/scripts/helpers/forms/settingsConfigForm.js
index c10401a..7536cca 100644
--- a/scripts/helpers/forms/settingsConfigForm.js
+++ b/scripts/helpers/forms/settingsConfigForm.js
@@ -26,7 +26,7 @@ export class SettingsConfigForm extends FormApplication {
// Add event listener for the Save button
html.find('#pf2e-rpg-save').on('click', (event) => {
event.preventDefault();
- this._processForm(html, false); // Pass 'false' to not submit the form, only save
+ this._processForm(html, false); // Pass 'false' Fto not submit the form, only save
});
html.find('#pf2e-rpg-submit').on('click', (event) => {
event.preventDefault();
@@ -34,7 +34,7 @@ export class SettingsConfigForm extends FormApplication {
});
html.find('#pf2e-rpg-cancel').on('click', (event) => {
event.preventDefault();
- ui.notifications.warn("Settings menu closed without saving");
+ ui.notifications.warn(game.i18n.localize(`${MODULE_ID}.menu.settings.notification.cancel`));
this.close(); // Close the form without saving
});
html.find('#pf2e-rpg-import').on('click', (event) => {
@@ -55,7 +55,7 @@ export class SettingsConfigForm extends FormApplication {
tabs: [
{
id: "home",
- label: "Home",
+ label: game.i18n.localize(`${MODULE_ID}.menu.settings.tabs.home`),
icon: "fa-dragon",
home: true,
settings: {
@@ -64,7 +64,7 @@ export class SettingsConfigForm extends FormApplication {
},
{
id: "rolls",
- label: "Rolls",
+ label: game.i18n.localize(`${MODULE_ID}.menu.settings.tabs.rolls`),
icon: "fa-dice-d20",
rolls: true,
settings: {
@@ -134,7 +134,7 @@ export class SettingsConfigForm extends FormApplication {
},
{
id: "token",
- label: "Token",
+ label: game.i18n.localize(`${MODULE_ID}.menu.settings.tabs.token`),
icon: "fa-circle-user",
token: true,
settings: {
@@ -197,7 +197,7 @@ export class SettingsConfigForm extends FormApplication {
},
{
id: "critical",
- label: "Critical",
+ label: game.i18n.localize(`${MODULE_ID}.menu.settings.tabs.critical`),
icon: "fa-explosion",
critical: true,
settings: {
@@ -225,7 +225,7 @@ export class SettingsConfigForm extends FormApplication {
},
{
id: "text",
- label: "Text",
+ label: game.i18n.localize(`${MODULE_ID}.menu.settings.tabs.text`),
icon: "fa-message-captions",
text: true,
settings: {
@@ -350,12 +350,12 @@ export class SettingsConfigForm extends FormApplication {
if (submit) {
// If submitting, call _updateObject to store the data
await this.saveSettings(dataObject);
- ui.notifications.info("Settings submitted successfully!");
+ ui.notifications.info(game.i18n.localize(`${MODULE_ID}.menu.settings.notification.submit`));
this.close();
} else {
// If saving, call _updateObject to store the data
await this.saveSettings(dataObject);
- ui.notifications.info("Settings saved successfully!");
+ ui.notifications.info(game.i18n.localize(`${MODULE_ID}.menu.settings.notification.save`));
}
}
async saveSettings(data) {
diff --git a/templates/settings/tabs/home.hbs b/templates/settings/tabs/home.hbs
index ec58595..0432729 100644
--- a/templates/settings/tabs/home.hbs
+++ b/templates/settings/tabs/home.hbs
@@ -8,10 +8,10 @@
\ No newline at end of file