Skip to content

Commit

Permalink
Fix localization for treat wounds macro and identify item (#14973)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosFdez committed Jun 5, 2024
1 parent 2bafa86 commit a74ffb1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/scripts/macros/treat-wounds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function treatWounds(options: ActionDefaultOptions): Promise<void>
return;
}

const medicineName = game.i18n.localize("PF2E.SkillMedicine");
const medicineName = game.i18n.localize("PF2E.Skill.Medicine");
const chirurgeon = CheckFeat(actor, "chirurgeon");
const naturalMedicine = CheckFeat(actor, "natural-medicine");
const domIdAppend = fu.randomID(); // Attached to element id attributes for DOM uniqueness
Expand All @@ -35,8 +35,8 @@ export async function treatWounds(options: ActionDefaultOptions): Promise<void>
<label for="skill-${domIdAppend}">${game.i18n.localize("PF2E.Actions.TreatWounds.SkillSelect")}</label>
<select id="skill-${domIdAppend}"${!chirurgeon && !naturalMedicine ? " disabled" : ""}>
<option value="medicine">${medicineName}</option>
${chirurgeon ? `<option value="crafting">${game.i18n.localize("PF2E.SkillCrafting")}</option>` : ``}
${naturalMedicine ? `<option value="nature">${game.i18n.localize("PF2E.SkillNature")}</option>` : ``}
${chirurgeon ? `<option value="crafting">${game.i18n.localize("PF2E.Skill.Crafting")}</option>` : ``}
${naturalMedicine ? `<option value="nature">${game.i18n.localize("PF2E.Skill.Nature")}</option>` : ``}
</select>
</div>
</form>
Expand Down
12 changes: 6 additions & 6 deletions static/templates/actors/identify-item.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
<table>
<tbody>
<tr data-skill="arcana" data-dc="{{dcs.arcana}}">
<th>{{localize "PF2E.SkillArcana"}}</th>
<th>{{localize "PF2E.Skill.Arcana"}}</th>
<td>{{dcs.arcana}}</td>
</tr>
<tr data-skill="nature" data-dc="{{dcs.nature}}">
<th>{{localize "PF2E.SkillNature"}}</th>
<th>{{localize "PF2E.Skill.Nature"}}</th>
<td>{{dcs.nature}}</td>
</tr>
<tr data-skill="occultism" data-dc="{{dcs.occultism}}">
<th>{{localize "PF2E.SkillOccultism"}}</th>
<th>{{localize "PF2E.Skill.Occultism"}}</th>
<td>{{dcs.occultism}}</td>
</tr>
<tr data-skill="religion" data-dc="{{dcs.religion}}">
<th>{{localize "PF2E.SkillReligion"}}</th>
<th>{{localize "PF2E.Skill.Religion"}}</th>
<td>{{dcs.religion}}</td>
</tr>
</table>
Expand All @@ -25,7 +25,7 @@
<table>
<tbody>
<tr data-skill="crafting" data-dc="{{dcs.crafting}}">
<th>{{localize "PF2E.SkillCrafting"}}</th>
<th>{{localize "PF2E.Skill.Crafting"}}</th>
<td>{{dcs.crafting}}</td>
</tr>
</table>
Expand All @@ -34,7 +34,7 @@
<table>
<tbody>
<tr data-skill="crafting" data-dc="{{dcs.dc}}">
<th>{{localize "PF2E.SkillCrafting"}}</th>
<th>{{localize "PF2E.Skill.Crafting"}}</th>
<td>{{dcs.dc}}</td>
</tr>
</table>
Expand Down

0 comments on commit a74ffb1

Please sign in to comment.