From 3d9dcb0e8d8d3da9691d63784fb57d0b0ce395c5 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Fri, 13 Mar 2026 00:15:29 +0100 Subject: [PATCH] Fixed localizaiton --- lang/en.json | 12 +++++------- module/applications/settings/appearanceSettings.mjs | 3 +-- .../settings/appearance-settings/diceSoNice.hbs | 2 +- .../settings/appearance-settings/diceSoNiceTab.hbs | 6 +++--- 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/lang/en.json b/lang/en.json index 13227c71..98cae76b 100755 --- a/lang/en.json +++ b/lang/en.json @@ -2752,12 +2752,6 @@ "label": "Appearance Settings", "hint": "Modify the look of various parts of the system", "duality": "Duality Rolls", - "globalSettings": "GM Settings", - "globalAnimations": "Global Animations", - "diceAppearance": "Dice Appearance", - "animations": "Animations", - "defaultAnimations": "Set Animations As Player Defaults", - "previewAnimation": "Preview Animation", "diceSoNice": { "title": "Dice So Nice", "hint": "Coloration of Duality dice if the Dice So Nice module is used.", @@ -2770,7 +2764,11 @@ "material": "Material", "system": "Dice Preset", "font": "Font", - "critical": "Duality Critical Animation" + "critical": "Duality Critical Animation", + "diceAppearance": "Dice Appearance", + "animations": "Animations", + "defaultAnimations": "Set Animations As Player Defaults", + "previewAnimation": "Preview Animation" } }, "variantRules": { diff --git a/module/applications/settings/appearanceSettings.mjs b/module/applications/settings/appearanceSettings.mjs index 8150817a..151648e1 100644 --- a/module/applications/settings/appearanceSettings.mjs +++ b/module/applications/settings/appearanceSettings.mjs @@ -50,7 +50,7 @@ export default class DHAppearanceSettings extends HandlebarsApplicationMixin(App { id: 'hope', label: 'DAGGERHEART.GENERAL.hope' }, { id: 'fear', label: 'DAGGERHEART.GENERAL.fear' }, { id: 'advantage', label: 'DAGGERHEART.GENERAL.Advantage.full' }, - { id: 'disadvantage', label: 'DAGGERHEART.GENERAL.Disadvantage.full' }, + { id: 'disadvantage', label: 'DAGGERHEART.GENERAL.Disadvantage.full' } ], initial: 'hope' } @@ -175,7 +175,6 @@ export default class DHAppearanceSettings extends HandlebarsApplicationMixin(App (acc, key) => ({ ...acc, [key]: { - diceTab: key !== 'general', values: this.setting.diceSoNice[key], fields: this.setting.schema.getField(`diceSoNice.${key}`).fields, animations: ['hope', 'fear'].includes(key) ? getAnimationsOptions(key) : {} diff --git a/templates/settings/appearance-settings/diceSoNice.hbs b/templates/settings/appearance-settings/diceSoNice.hbs index ca464dda..afe7dd5a 100644 --- a/templates/settings/appearance-settings/diceSoNice.hbs +++ b/templates/settings/appearance-settings/diceSoNice.hbs @@ -3,7 +3,7 @@
{{#if isGM}}
- +
{{/if}} diff --git a/templates/settings/appearance-settings/diceSoNiceTab.hbs b/templates/settings/appearance-settings/diceSoNiceTab.hbs index 299fb13f..a15b63ec 100644 --- a/templates/settings/appearance-settings/diceSoNiceTab.hbs +++ b/templates/settings/appearance-settings/diceSoNiceTab.hbs @@ -1,5 +1,5 @@
-

{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceAppearance"}}

+

{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.diceAppearance"}}

@@ -41,7 +41,7 @@
{{#if animations}} -

{{localize "DAGGERHEART.SETTINGS.Menu.appearance.animations"}}

+

{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.animations"}}

{{formInput fields.sfx.fields.higher.fields.class value=values.sfx.higher.class blank="" localize=true}} @@ -49,7 +49,7 @@ {{/if}}