mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 15:39:02 +01:00
Fix localisation
This commit is contained in:
parent
abc2fe76ff
commit
32de5e0604
3 changed files with 8 additions and 1 deletions
|
|
@ -2291,6 +2291,9 @@
|
||||||
"ResetSettings": {
|
"ResetSettings": {
|
||||||
"resetConfirmationTitle": "Reset Settings",
|
"resetConfirmationTitle": "Reset Settings",
|
||||||
"resetConfirmationText": "Are you sure you want to reset the {settings}?"
|
"resetConfirmationText": "Are you sure you want to reset the {settings}?"
|
||||||
|
},
|
||||||
|
"Scene": {
|
||||||
|
"rangeMeasurementOverride": "Override Global Range Measurement Settings"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"UI": {
|
"UI": {
|
||||||
|
|
|
||||||
|
|
@ -27,15 +27,19 @@ export default class DhMeasuredTemplate extends foundry.canvas.placeables.Measur
|
||||||
}
|
}
|
||||||
if (distance <= settings.melee) {
|
if (distance <= settings.melee) {
|
||||||
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.melee.name');
|
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.melee.name');
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
if (distance <= settings.veryClose) {
|
if (distance <= settings.veryClose) {
|
||||||
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.veryClose.name');
|
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.veryClose.name');
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
if (distance <= settings.close) {
|
if (distance <= settings.close) {
|
||||||
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.close.name');
|
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.close.name');
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
if (distance <= settings.far) {
|
if (distance <= settings.far) {
|
||||||
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.far.name');
|
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.far.name');
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
if (distance > settings.far) {
|
if (distance > settings.far) {
|
||||||
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.veryFar.name');
|
result.distance = game.i18n.localize('DAGGERHEART.CONFIG.Range.veryFar.name');
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<div class="tab{{#if tab.active}} active{{/if}}" data-group="{{tab.group}}" data-tab="{{tab.id}}">
|
<div class="tab{{#if tab.active}} active{{/if}}" data-group="{{tab.group}}" data-tab="{{tab.id}}">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="form-fields">
|
<div class="form-fields">
|
||||||
<label>{{localize "Override Global Range Measurement Settings"}}</label>
|
<label>{{localize 'DAGGERHEART.SETTINGS.Scene.rangeMeasurementOverride'}}</label>
|
||||||
<input type="checkbox" name="flags.daggerheart.rangeMeasurementOverride" {{checked
|
<input type="checkbox" name="flags.daggerheart.rangeMeasurementOverride" {{checked
|
||||||
document.flags.daggerheart.rangeMeasurementOverride}} />
|
document.flags.daggerheart.rangeMeasurementOverride}} />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue