Language Organization (#281)

* Organized language

* Organized high level folders

* Some deeper organization

* More org. That's enough ._.

* Capitalized initial system localization categories
This commit is contained in:
WBHarry 2025-07-06 17:43:12 +02:00 committed by GitHub
parent 8a7ff2306a
commit 488844603a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
149 changed files with 2130 additions and 2512 deletions

View file

@ -8,10 +8,10 @@
{{localize 'TYPES.Item.armor'}}
</h3>
<h3>
{{localize "DAGGERHEART.Sheets.Armor.baseScore"}}:
{{localize "DAGGERHEART.ITEMS.Armor.baseScore"}}:
{{source.system.baseScore}}
<span>-</span>
{{localize "DAGGERHEART.Sheets.Armor.baseThresholds.base"}}:
{{localize "DAGGERHEART.ITEMS.Armor.baseThresholds.base"}}:
{{source.system.baseThresholds.major}}
<span>/</span>
{{source.system.baseThresholds.severe}}

View file

@ -5,18 +5,18 @@
>
<fieldset class="two-columns">
<legend>{{localize tabs.settings.label}}</legend>
<span>{{localize "DAGGERHEART.Tiers.singular"}}</span>
<span>{{localize "DAGGERHEART.GENERAL.Tiers.singular"}}</span>
{{formField systemFields.tier value=source.system.tier}}
<span>{{localize "DAGGERHEART.Sheets.Armor.baseScore"}}</span>
<span>{{localize "DAGGERHEART.ITEMS.Armor.baseScore"}}</span>
{{formField systemFields.baseScore value=source.system.baseScore}}
<span>{{localize "DAGGERHEART.Sheets.Armor.feature"}}</span>
<span>{{localize "TYPES.Item.feature"}}</span>
<input type="text" class="features-input" value="{{features}}" />
<span>{{localize "DAGGERHEART.Sheets.Armor.baseThresholds.base"}}</span>
<span>{{localize "DAGGERHEART.ITEMS.Armor.baseThresholds.base"}}</span>
<div class="nest-inputs">
{{ formField systemFields.baseThresholds.fields.major value=source.system.baseThresholds.major label=(localize "DAGGERHEART.Sheets.Armor.baseThresholds.major") }}
{{ formField systemFields.baseThresholds.fields.severe value=source.system.baseThresholds.severe label=(localize "DAGGERHEART.Sheets.Armor.baseThresholds.severe") }}
{{ formField systemFields.baseThresholds.fields.major value=source.system.baseThresholds.major label=(localize "DAGGERHEART.ITEMS.Armor.baseThresholds.major") }}
{{ formField systemFields.baseThresholds.fields.severe value=source.system.baseThresholds.severe label=(localize "DAGGERHEART.ITEMS.Armor.baseThresholds.severe") }}
</div>
</fieldset>
</section>

View file

@ -9,19 +9,19 @@
</div>
<fieldset class="two-columns">
<legend>{{localize "DAGGERHEART.Sheets.Beastform.FIELDS.advantageOn.label"}}</legend>
<legend>{{localize "DAGGERHEART.ITEMS.Beastform.FIELDS.advantageOn.label"}}</legend>
{{!-- {{formGroup systemFields.examples value=source.system.examples localize=true}} --}}
</fieldset>
<fieldset class="two-columns even">
<legend>{{localize "DAGGERHEART.Sheets.Beastform.tokenTitle"}}</legend>
<legend>{{localize "DAGGERHEART.ITEMS.Beastform.tokenTitle"}}</legend>
<div class="full-width">
{{formGroup systemFields.tokenImg value=source.system.tokenImg localize=true}}
</div>
{{formGroup systemFields.tokenSize.fields.height value=source.system.tokenSize.height localize=true placeholder=(localize "DAGGERHEART.Sheets.Beastform.FIELDS.tokenSize.placeholder") }}
{{formGroup systemFields.tokenSize.fields.width value=source.system.tokenSize.width localize=true placeholder=(localize "DAGGERHEART.Sheets.Beastform.FIELDS.tokenSize.placeholder")}}
{{formGroup systemFields.tokenSize.fields.height value=source.system.tokenSize.height localize=true placeholder=(localize "DAGGERHEART.ITEMS.Beastform.FIELDS.tokenSize.placeholder") }}
{{formGroup systemFields.tokenSize.fields.width value=source.system.tokenSize.width localize=true placeholder=(localize "DAGGERHEART.ITEMS.Beastform.FIELDS.tokenSize.placeholder")}}
</fieldset>
</section>

View file

@ -5,7 +5,7 @@
>
<div class="two-columns even">
<fieldset>
<legend>{{localize "DAGGERHEART.Sheets.Class.HopeFeatures"}} <a><i class="fa-solid fa-plus icon-button" data-type="hope" data-action="addFeature"></i></a></legend>
<legend>{{localize "DAGGERHEART.ITEMS.Class.hopeFeatures"}} <a><i class="fa-solid fa-plus icon-button" data-type="hope" data-action="addFeature"></i></a></legend>
<div class="feature-list">
{{#each source.system.hopeFeatures as |feature|}}
{{> 'systems/daggerheart/templates/sheets/global/partials/feature-section-item.hbs' type='hope' feature=feature}}
@ -14,7 +14,7 @@
</fieldset>
<fieldset>
<legend>{{localize "DAGGERHEART.Sheets.Class.ClassFeatures"}} <a><i class="fa-solid fa-plus icon-button" data-type="class" data-action="addFeature"></i></a></legend>
<legend>{{localize "DAGGERHEART.ITEMS.Class.classFeatures"}} <a><i class="fa-solid fa-plus icon-button" data-type="class" data-action="addFeature"></i></a></legend>
<div class="feature-list">
{{#each source.system.classFeatures as |feature|}}
{{> 'systems/daggerheart/templates/sheets/global/partials/feature-section-item.hbs' type='class' feature=feature}}
@ -38,7 +38,7 @@
class='effect-control'
data-action='viewDoc'
data-uuid={{subclass.uuid}}
data-tooltip='{{localize "DAGGERHEART.Tooltip.openItemWorld"}}'
data-tooltip='{{localize "DAGGERHEART.UI.Tooltip.openItemWorld"}}'
>
<i class="fa-solid fa-globe"></i>
</a>
@ -47,7 +47,7 @@
data-action='removeItemFromCollection'
data-target="subclasses"
data-uuid={{subclass.uuid}}
data-tooltip='{{localize "DAGGERHEART.Tooltip.delete"}}'
data-tooltip='{{localize "CONTROLS.CommonDelete"}}'
>
<i class='fas fa-trash'></i>
</a>

View file

@ -5,7 +5,7 @@
<div class='item-description'>
<h3>{{localize 'TYPES.Item.class'}}</h3>
<h3 class="form-fields domain-section">
<span>{{localize "DAGGERHEART.Sheets.Class.Domains"}}</span>
<span>{{localize "DAGGERHEART.GENERAL.Domain.plural"}}</span>
<input class="domain-input" value="{{domains}}" />
</h3>
</div>

View file

@ -11,31 +11,31 @@
<div class="fieldsets-section">
<fieldset class="drop-section two-columns">
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.Suggestions.Traits.Title"}}</legend>
<legend>{{localize "DAGGERHEART.GENERAL.Trait.plural"}}</legend>
<span>{{localize "DAGGERHEART.Abilities.agility.name"}}</span>
<span>{{localize "DAGGERHEART.CONFIG.Traits.agility.name"}}</span>
<input type="text" name="system.characterGuide.suggestedTraits.agility" value="{{source.system.characterGuide.suggestedTraits.agility}}" />
<span>{{localize "DAGGERHEART.Abilities.strength.name"}}</span>
<span>{{localize "DAGGERHEART.CONFIG.Traits.strength.name"}}</span>
<input type="text" name="system.characterGuide.suggestedTraits.strength" value="{{source.system.characterGuide.suggestedTraits.strength}}" />
<span>{{localize "DAGGERHEART.Abilities.finesse.name"}}</span>
<span>{{localize "DAGGERHEART.CONFIG.Traits.finesse.name"}}</span>
<input type="text" name="system.characterGuide.suggestedTraits.finesse" value="{{source.system.characterGuide.suggestedTraits.finesse}}" />
<span>{{localize "DAGGERHEART.Abilities.instinct.name"}}</span>
<span>{{localize "DAGGERHEART.CONFIG.Traits.instinct.name"}}</span>
<input type="text" name="system.characterGuide.suggestedTraits.instinct" value="{{source.system.characterGuide.suggestedTraits.instinct}}" />
<span>{{localize "DAGGERHEART.Abilities.presence.name"}}</span>
<span>{{localize "DAGGERHEART.CONFIG.Traits.presence.name"}}</span>
<input type="text" name="system.characterGuide.suggestedTraits.presence" value="{{source.system.characterGuide.suggestedTraits.presence}}" />
<span>{{localize "DAGGERHEART.Abilities.knowledge.name"}}</span>
<span>{{localize "DAGGERHEART.CONFIG.Traits.knowledge.name"}}</span>
<input type="text" name="system.characterGuide.suggestedTraits.knowledge" value="{{source.system.characterGuide.suggestedTraits.knowledge}}" />
</fieldset>
<fieldset class="one-column">
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.Suggestions.Title"}}</legend>
<legend>{{localize "DAGGERHEART.ITEMS.Class.guide.suggestedEquipment"}}</legend>
<fieldset class="one-column drop-section primary-weapon-section">
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.SuggestedPrimaryWeaponTitle"}}</legend>
<legend>{{localize "DAGGERHEART.ITEMS.Class.guide.suggestedPrimaryWeaponTitle"}}</legend>
<div class="drop-section-body list-items">
{{#if document.system.characterGuide.suggestedPrimaryWeapon}}
<div class="suggested-item item-line" data-action="viewDoc" data-uuid="{{document.system.characterGuide.suggestedPrimaryWeapon.uuid}}">
@ -50,7 +50,7 @@
</fieldset>
<fieldset class="one-column drop-section secondary-weapon-section">
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.SuggestedSecondaryWeaponTitle"}}</legend>
<legend>{{localize "DAGGERHEART.ITEMS.Class.guide.suggestedSecondaryWeaponTitle"}}</legend>
<div class="drop-section-body list-items">
{{#if document.system.characterGuide.suggestedSecondaryWeapon}}
<div class="suggested-item item-line" data-action="viewDoc" data-uuid="{{system.system.characterGuide.suggestedSecondaryWeapon.uuid}}">
@ -65,7 +65,7 @@
</fieldset>
<fieldset class="one-column drop-section armor-section">
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.SuggestedArmorTitle"}}</legend>
<legend>{{localize "DAGGERHEART.ITEMS.Class.guide.suggestedArmorTitle"}}</legend>
<div class="drop-section-body list-items">
{{#if document.system.characterGuide.suggestedArmor}}
<div class="suggested-item item-line" data-action="viewDoc" data-uuid="{{document.system.characterGuide.suggestedArmor.uuid}}">
@ -81,9 +81,9 @@
</fieldset>
<fieldset class="one-column">
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.Inventory.Title"}}</legend>
<legend>{{localize "DAGGERHEART.GENERAL.inventory"}}</legend>
<fieldset class="one-column drop-section take-section">
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.Inventory.Take"}}</legend>
<legend>{{localize "DAGGERHEART.GENERAL.take"}}</legend>
<div class="drop-section-body list-items">
{{#each source.system.inventory.take}}
<div class="suggested-item item-line" data-action="viewDoc" data-uuid="{{this.uuid}}">
@ -98,7 +98,7 @@
</fieldset>
<fieldset class="one-column drop-section choice-a-section">
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.Inventory.ThenChoose"}}</legend>
<legend>{{localize "DAGGERHEART.ITEMS.Class.guide.inventory.thenChoose"}}</legend>
<div class="drop-section-body list-items">
{{#each source.system.inventory.choiceA}}
<div class="suggested-item item-line" data-action="viewDoc" data-uuid="{{this.uuid}}">
@ -113,7 +113,7 @@
</fieldset>
<fieldset class="one-column drop-section choice-b-section">
<legend>{{localize "DAGGERHEART.Sheets.Class.Guide.Inventory.AndEither"}}</legend>
<legend>{{localize "DAGGERHEART.ITEMS.Class.guide.inventory.andEither"}}</legend>
<div class="drop-section-body list-items">
{{#each source.system.inventory.choiceB}}
<div class="suggested-item item-line" data-action="viewDoc" data-uuid="{{this.uuid}}">

View file

@ -5,10 +5,10 @@
>
<fieldset class="two-columns">
<legend>{{localize tabs.settings.label}}</legend>
<span>{{localize "DAGGERHEART.Sheets.Consumable.Quantity"}}</span>
<span>{{localize "DAGGERHEART.GENERAL.quantity"}}</span>
{{formField systemFields.quantity value=source.system.quantity}}
<span>{{localize "DAGGERHEART.Sheets.Consumable.ConsumeOnUse"}}</span>
<span>{{localize "DAGGERHEART.ITEMS.Consumable.consumeOnUse"}}</span>
{{formField systemFields.consumeOnUse value=source.system.consumeOnUse}}
</fieldset>
</section>

View file

@ -2,7 +2,7 @@
<img class='profile' src='{{source.img}}' data-action='editImage' data-edit='img' />
<div class="item-icons-list">
<span class="item-icon">
<span class="recall-label">{{localize "DAGGERHEART.Sheets.DomainCard.RecallCost"}}</span>
<span class="recall-label">{{localize "DAGGERHEART.ITEMS.DomainCard.recallCost"}}</span>
<span class="recall-value">{{source.system.recallCost}}</span>
<i class="fa-solid fa-bolt"></i>
</span>
@ -12,11 +12,11 @@
<div class='item-description'>
<h3>{{localize 'TYPES.Item.domainCard'}}</h3>
<h3>
{{localize (concat 'DAGGERHEART.Domain.CardTypes.' source.system.type)}}
{{localize (concat 'DAGGERHEART.CONFIG.DomainCardTypes.' source.system.type)}}
<span>-</span>
{{localize (concat 'DAGGERHEART.Domains.' source.system.domain '.label')}}
{{localize (concat 'DAGGERHEART.GENERAL.Domain.' source.system.domain '.label')}}
<span>-</span>
{{localize "DAGGERHEART.Sheets.DomainCard.Level"}}:
{{localize "DAGGERHEART.GENERAL.level"}}:
{{source.system.level}}
</h3>
</div>

View file

@ -6,15 +6,15 @@
<fieldset class="two-columns">
<legend>{{localize tabs.settings.label}}</legend>
<span>{{localize "DAGGERHEART.Sheets.DomainCard.Type"}}</span>
<span>{{localize "DAGGERHEART.GENERAL.type"}}</span>
{{formField systemFields.type value=source.system.type localize=true}}
<span>{{localize "DAGGERHEART.Sheets.DomainCard.Foundation"}}</span>
<span>{{localize "DAGGERHEART.ITEMS.DomainCard.foundation"}}</span>
{{formField systemFields.foundation value=source.system.foundation }}
<span>{{localize "DAGGERHEART.Sheets.DomainCard.Domain"}}</span>
<span>{{localize "DAGGERHEART.GENERAL.Domain.single"}}</span>
{{formField systemFields.domain value=source.system.domain localize=true}}
<span>{{localize "DAGGERHEART.Sheets.DomainCard.Level"}}</span>
<span>{{localize "DAGGERHEART.GENERAL.level"}}</span>
{{formField systemFields.level value=source.system.level data-dtype="Number"}}
<span>{{localize "DAGGERHEART.Sheets.DomainCard.RecallCost"}}</span>
<span>{{localize "DAGGERHEART.ITEMS.DomainCard.recallCost"}}</span>
{{formField systemFields.recallCost value=source.system.recallCost data-dtype="Number"}}
</fieldset>
</section>

View file

@ -5,7 +5,7 @@
>
<fieldset class="two-columns">
<legend>{{localize tabs.settings.label}}</legend>
<span>{{localize "DAGGERHEART.Sheets.Miscellaneous.Quantity"}}</span>
<span>{{localize "DAGGERHEART.GENERAL.quantity"}}</span>
{{formField systemFields.quantity value=source.system.quantity}}
</fieldset>
</section>

View file

@ -5,7 +5,7 @@
>
<fieldset class="drop-section" data-type="foundationFeature">
<legend>
{{localize "DAGGERHEART.Sheets.Subclass.Tabs.Foundation"}}
{{localize "DAGGERHEART.GENERAL.Tabs.foundation"}}
<a {{#if source.system.foundationFeature}}disabled{{/if}}><i data-action="addFeature" data-type="foundationFeature" class="fa-solid fa-plus icon-button {{#if source.system.foundationFeature}}disabled{{/if}}"></i></a>
</legend>
@ -18,7 +18,7 @@
<fieldset class="drop-section" data-type="specializationFeature">
<legend>
{{localize "DAGGERHEART.Sheets.Subclass.Tabs.Specialization"}}
{{localize "DAGGERHEART.GENERAL.Tabs.specialization"}}
<a {{#if source.system.specializationFeature}}disabled{{/if}}><i data-action="addFeature" data-type="specializationFeature" class="fa-solid fa-plus icon-button {{#if source.system.specializationFeature}}disabled{{/if}}"></i></a>
</legend>
@ -31,7 +31,7 @@
<fieldset class="drop-section" data-type="masteryFeature">
<legend>
{{localize "DAGGERHEART.Sheets.Subclass.Tabs.Mastery"}}
{{localize "DAGGERHEART.GENERAL.Tabs.mastery"}}
<a {{#if source.system.masteryFeature}}disabled{{/if}}><i data-action="addFeature" data-type="masteryFeature" class="fa-solid fa-plus icon-button {{#if source.system.masteryFeature}}disabled{{/if}}"></i></a>
</legend>

View file

@ -4,7 +4,7 @@
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
<div class='item-description'>
<h3>{{localize 'TYPES.Item.subclass'}}</h3>
{{#if source.system.spellcastingTrait}}<h3>{{localize (concat 'DAGGERHEART.Abilities.' source.system.spellcastingTrait '.name')}}</h3>{{/if}}
{{#if source.system.spellcastingTrait}}<h3>{{localize (concat 'DAGGERHEART.CONFIG.Traits.' source.system.spellcastingTrait '.name')}}</h3>{{/if}}
</div>
</div>
</header>

View file

@ -6,7 +6,7 @@
<fieldset class="two-columns">
<legend>{{localize tabs.settings.label}}</legend>
<span>{{localize "DAGGERHEART.Sheets.Subclass.SpellcastingTrait"}}</span>
<span>{{localize "DAGGERHEART.ITEMS.Subclass.spellcastingTrait"}}</span>
{{formField systemFields.spellcastingTrait value=source.system.spellcastingTrait localize=true}}
</fieldset>
</section>

View file

@ -5,20 +5,20 @@
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
<div class='item-description'>
{{#if source.system.secondary}}
<h3>{{localize "DAGGERHEART.Sheets.Weapon.SecondaryWeapon"}}</h3>
<h3>{{localize "DAGGERHEART.ITEMS.Weapon.secondaryWeapon"}}</h3>
{{else}}
<h3>{{localize "DAGGERHEART.Sheets.Weapon.PrimaryWeapon"}}</h3>
<h3>{{localize "DAGGERHEART.ITEMS.Weapon.primaryWeapon"}}</h3>
{{/if}}
<h3>
{{localize (concat 'DAGGERHEART.Abilities.' source.system.trait '.short')}}
{{localize (concat 'DAGGERHEART.CONFIG.Traits.' source.system.trait '.short')}}
<span>-</span>
{{localize (concat 'DAGGERHEART.Range.' source.system.range '.name')}}
{{localize (concat 'DAGGERHEART.CONFIG.Range.' source.system.range '.name')}}
<span>-</span>
{{log this}}
{{source.system.damage.dice}} + {{source.system.damage.bonus}}
({{localize (concat 'DAGGERHEART.DamageType.' source.system.damage.type '.abbreviation')}})
({{localize (concat 'DAGGERHEART.CONFIG.DamageType.' source.system.damage.type '.abbreviation')}})
<span>-</span>
{{localize (concat 'DAGGERHEART.Burden.' source.system.burden)}}
{{localize (concat 'DAGGERHEART.CONFIG.Burden.' source.system.burden)}}
</h3>
</div>
</div>

View file

@ -5,30 +5,30 @@
>
<fieldset class="two-columns">
<legend>{{localize tabs.settings.label}}</legend>
<span>{{localize "DAGGERHEART.Tiers.singular"}}</span>
<span>{{localize "DAGGERHEART.GENERAL.Tiers.singular"}}</span>
{{formField systemFields.tier value=source.system.tier}}
<span>{{localize "DAGGERHEART.Sheets.Weapon.SecondaryWeapon"}}</span>
<span>{{localize "DAGGERHEART.ITEMS.Weapon.secondaryWeapon"}}</span>
{{formField systemFields.secondary value=source.system.secondary}}
<span>{{localize "DAGGERHEART.Sheets.Weapon.Trait"}}</span>
<span>{{localize "DAGGERHEART.GENERAL.Trait.single"}}</span>
{{formField systemFields.trait value=source.system.trait localize=true}}
<span>{{localize "DAGGERHEART.Sheets.Weapon.Range"}}</span>
<span>{{localize "DAGGERHEART.GENERAL.range"}}</span>
{{formField systemFields.range value=source.system.range localize=true}}
<span>{{localize "DAGGERHEART.Sheets.Weapon.Burden"}}</span>
<span>{{localize "DAGGERHEART.GENERAL.burden"}}</span>
{{formField systemFields.burden value=source.system.burden localize=true}}
</fieldset>
<fieldset class="two-columns">
<legend>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Title"}}</legend>
<span>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Die"}}</span>
<legend>{{localize "DAGGERHEART.GENERAL.title"}}</legend>
<span>{{localize "DAGGERHEART.GENERAL.Dice.single"}}</span>
{{formGroup systemFields.damage.fields.dice value=source.system.damage.dice}}
<span>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Bonus"}}</span>
<span>{{localize "DAGGERHEART.GENERAL.bonus"}}</span>
{{formGroup systemFields.damage.fields.bonus value=source.system.damage.bonus}}
<span>{{localize "DAGGERHEART.Sheets.Weapon.Damage.Type"}}</span>
<span>{{localize "DAGGERHEART.GENERAL.type"}}</span>
{{formGroup systemFields.damage.fields.type value=source.system.damage.type localize=true}}
</fieldset>
<fieldset class="two-columns">
<legend>{{localize "DAGGERHEART.Sheets.Weapon.Feature"}}</legend>
<span>{{localize "DAGGERHEART.Sheets.Weapon.Feature"}}</span>
<legend>{{localize "TYPES.Item.feature"}}</legend>
<span>{{localize "TYPES.Item.feature"}}</span>
<input type="text" class="features-input" value="{{features}}" />
</fieldset>
</section>