diff --git a/module/system/handlebars-manager.mjs b/module/system/handlebars-manager.mjs index 5b81fc5..5149280 100644 --- a/module/system/handlebars-manager.mjs +++ b/module/system/handlebars-manager.mjs @@ -98,8 +98,9 @@ export const registerHandlebarsHelpers = function () { }); // search translation with variables - Handlebars.registerHelper('smarttl', function (arrayLabel, objectLabel, options) { - return game.i18n.localize(arrayLabel + "." + objectLabel + ".name"); + Handlebars.registerHelper('smarttl', function (arrayLabel, objectLabel, key) { + if (!key || typeof key !== 'string') key = 'name'; + return game.i18n.localize(arrayLabel + "." + objectLabel + "." + key); }); // Return an object of skills ordered alphabetically by their localized diff --git a/templates/actor/appv2/character-totem.hbs b/templates/actor/appv2/character-totem.hbs index 0ac2652..429ced5 100644 --- a/templates/actor/appv2/character-totem.hbs +++ b/templates/actor/appv2/character-totem.hbs @@ -13,10 +13,10 @@

{{smarttl "TOTEMS" system.identity.totem "description"}}

-
Principes
{{smarttl "TOTEMS" system.identity.totem "instincts"}}
+
{{ localize 'IDENTITY.instincts' }}
{{smarttl "TOTEMS" system.identity.totem "instincts"}}
-
Interdits
{{smarttl "TOTEMS" system.identity.totem "bans"}}
+
{{ localize 'IDENTITY.prohibits' }}
{{smarttl "TOTEMS" system.identity.totem "bans"}}
diff --git a/templates/actor/character/character-totem.hbs b/templates/actor/character/character-totem.hbs index 7ceeeec..165873d 100644 --- a/templates/actor/character/character-totem.hbs +++ b/templates/actor/character/character-totem.hbs @@ -12,10 +12,10 @@

{{smarttl "TOTEMS" system.identity.totem "description"}}

-
Principes
{{smarttl "TOTEMS" system.identity.totem "instincts"}}
+
{{ localize 'IDENTITY.instincts' }}
{{smarttl "TOTEMS" system.identity.totem "instincts"}}
-
Interdits
{{smarttl "TOTEMS" system.identity.totem "bans"}}
+
{{ localize 'IDENTITY.prohibits' }}
{{smarttl "TOTEMS" system.identity.totem "bans"}}