Fixed localizaiton

This commit is contained in:
WBHarry 2026-03-13 00:15:29 +01:00
parent 62d40f8639
commit 3d9dcb0e8d
4 changed files with 10 additions and 13 deletions

View file

@ -2752,12 +2752,6 @@
"label": "Appearance Settings", "label": "Appearance Settings",
"hint": "Modify the look of various parts of the system", "hint": "Modify the look of various parts of the system",
"duality": "Duality Rolls", "duality": "Duality Rolls",
"globalSettings": "GM Settings",
"globalAnimations": "Global Animations",
"diceAppearance": "Dice Appearance",
"animations": "Animations",
"defaultAnimations": "Set Animations As Player Defaults",
"previewAnimation": "Preview Animation",
"diceSoNice": { "diceSoNice": {
"title": "Dice So Nice", "title": "Dice So Nice",
"hint": "Coloration of Duality dice if the Dice So Nice module is used.", "hint": "Coloration of Duality dice if the Dice So Nice module is used.",
@ -2770,7 +2764,11 @@
"material": "Material", "material": "Material",
"system": "Dice Preset", "system": "Dice Preset",
"font": "Font", "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": { "variantRules": {

View file

@ -50,7 +50,7 @@ export default class DHAppearanceSettings extends HandlebarsApplicationMixin(App
{ id: 'hope', label: 'DAGGERHEART.GENERAL.hope' }, { id: 'hope', label: 'DAGGERHEART.GENERAL.hope' },
{ id: 'fear', label: 'DAGGERHEART.GENERAL.fear' }, { id: 'fear', label: 'DAGGERHEART.GENERAL.fear' },
{ id: 'advantage', label: 'DAGGERHEART.GENERAL.Advantage.full' }, { id: 'advantage', label: 'DAGGERHEART.GENERAL.Advantage.full' },
{ id: 'disadvantage', label: 'DAGGERHEART.GENERAL.Disadvantage.full' }, { id: 'disadvantage', label: 'DAGGERHEART.GENERAL.Disadvantage.full' }
], ],
initial: 'hope' initial: 'hope'
} }
@ -175,7 +175,6 @@ export default class DHAppearanceSettings extends HandlebarsApplicationMixin(App
(acc, key) => ({ (acc, key) => ({
...acc, ...acc,
[key]: { [key]: {
diceTab: key !== 'general',
values: this.setting.diceSoNice[key], values: this.setting.diceSoNice[key],
fields: this.setting.schema.getField(`diceSoNice.${key}`).fields, fields: this.setting.schema.getField(`diceSoNice.${key}`).fields,
animations: ['hope', 'fear'].includes(key) ? getAnimationsOptions(key) : {} animations: ['hope', 'fear'].includes(key) ? getAnimationsOptions(key) : {}

View file

@ -3,7 +3,7 @@
<div class="field-section form-fields"> <div class="field-section form-fields">
{{#if isGM}} {{#if isGM}}
<div class="form-group"> <div class="form-group">
<label for="dsn-overrideEnabled">{{localize "DAGGERHEART.SETTINGS.Menu.appearance.defaultAnimations"}}</label> <label for="dsn-overrideEnabled">{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.defaultAnimations"}}</label>
<input id="dsn-overrideEnabled" type="checkbox" class="default-animations-input" {{checked globalOverrides.diceSoNice.sfx.overrideEnabled}} /> <input id="dsn-overrideEnabled" type="checkbox" class="default-animations-input" {{checked globalOverrides.diceSoNice.sfx.overrideEnabled}} />
</div> </div>
{{/if}} {{/if}}

View file

@ -1,5 +1,5 @@
<div class="field-section"> <div class="field-section">
<h3>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceAppearance"}}</h3> <h3>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.diceAppearance"}}</h3>
<div class="label-container full-width"> <div class="label-container full-width">
<label>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.system"}}</label> <label>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.system"}}</label>
@ -41,7 +41,7 @@
</div> </div>
{{#if animations}} {{#if animations}}
<h3>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.animations"}}</h3> <h3>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.animations"}}</h3>
<div class="label-container full-width"> <div class="label-container full-width">
<label>{{localize "DAGGERHEART.CONFIG.DaggerheartDiceAnimationEvents.higher.name"}}</label> <label>{{localize "DAGGERHEART.CONFIG.DaggerheartDiceAnimationEvents.higher.name"}}</label>
{{formInput fields.sfx.fields.higher.fields.class value=values.sfx.higher.class blank="" localize=true}} {{formInput fields.sfx.fields.higher.fields.class value=values.sfx.higher.class blank="" localize=true}}
@ -49,7 +49,7 @@
{{/if}} {{/if}}
<div class="diceSoNice-footer"> <div class="diceSoNice-footer">
<label>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.previewAnimation"}}</label> <label>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.previewAnimation"}}</label>
<select name="{{concat id "PreviewAnimation"}}"> <select name="{{concat id "PreviewAnimation"}}">
{{selectOptions @root.animationEvents selected=@root.previewAnimation blank="" localize=true }} {{selectOptions @root.animationEvents selected=@root.previewAnimation blank="" localize=true }}
</select> </select>