diff --git a/system/scripts/handlebars.js b/system/scripts/handlebars.js
index 50643e3..6dd5874 100644
--- a/system/scripts/handlebars.js
+++ b/system/scripts/handlebars.js
@@ -37,6 +37,14 @@ export const RegisterHandlebars = function () {
return sanitizeIfFail(game.i18n.localize(isYes ? "Yes" : "No"));
});
+ // Replace "localize (localize" for partial var (broken in v14)
+ Handlebars.registerHelper("localizeEmbedded", function (string, objects) {
+ Object.keys(objects.hash).forEach(key => {
+ string = string.replace("{" + key + "}", objects.hash[key]);
+ });
+ return sanitizeIfFail(game.i18n.localize(string));
+ });
+
/* ------------------------------------ */
/* Dice */
/* ------------------------------------ */
diff --git a/system/templates/actors/actor-export.html b/system/templates/actors/actor-export.html
index 377ad82..037c384 100644
--- a/system/templates/actors/actor-export.html
+++ b/system/templates/actors/actor-export.html
@@ -65,7 +65,7 @@
{{#each data.splitTechniquesList as |list techName|}}
-
- {{localize (localize 'l5r5e.techniques.{techName}' techName=techName) }}
+ {{localizeEmbedded 'l5r5e.techniques.{techName}' techName=techName}}
{{#each list as |technique|}}
-
@@ -130,7 +130,7 @@
- {{localize 'l5r5e.money.title'}} : {{data.system.money.koku}} {{localize 'l5r5e.money.koku'}} / {{data.system.money.bu}} {{localize 'l5r5e.money.bu'}} / {{data.system.money.zeni}} {{localize 'l5r5e.money.zeni'}}
{{#each data.splitItemsList as |cat type|}}
-
- {{localize (localize 'l5r5e.{type}s.title' type=type)}} ({{cat.length}})
+ {{localizeEmbedded 'l5r5e.{type}s.title' type=type}} ({{cat.length}})
{{#each cat as |item|}}
- {{> 'systems/l5r5e/templates/items/item/item-text.html' data=item editable=../../options.editable}}
@@ -209,20 +209,20 @@
{{/ifCond}}
{{localize 'l5r5e.twenty_questions.title'}}
- - {{localize (localize 'l5r5e.twenty_questions.part2.q4{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step4.stand_out}}
- - {{localize (localize 'l5r5e.twenty_questions.part3.q7{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step7.clan_relations}}
- - {{localize (localize 'l5r5e.twenty_questions.part3.q8{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step8.bushido}}
- - {{localize (localize 'l5r5e.twenty_questions.part4.q9{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step9.success}}
- - {{localize (localize 'l5r5e.twenty_questions.part4.q10{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step10.difficulty}}
- - {{localize (localize 'l5r5e.twenty_questions.part4.q11{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step11.calms}}
- - {{localize (localize 'l5r5e.twenty_questions.part4.q12{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step12.worries}}
- - {{localize (localize 'l5r5e.twenty_questions.part4.q13{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step13.most_learn}}
- - {{localize (localize 'l5r5e.twenty_questions.part5.q14{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step14.first_sight}}
- - {{localize (localize 'l5r5e.twenty_questions.part5.q15{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step15.stress}}
- - {{localize (localize 'l5r5e.twenty_questions.part5.q16{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step16.relations}}
- - {{localize (localize 'l5r5e.twenty_questions.part6.q17{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step17.parents_pov}}
- - {{localize (localize 'l5r5e.twenty_questions.part6.q18{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step18.heritage_name}}
- - {{localize (localize 'l5r5e.twenty_questions.part7.q20{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step20.death}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part2.q4{suffix}' suffix}} : {{data.system.twenty_questions.step4.stand_out}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part3.q7{suffix}' suffix}} : {{data.system.twenty_questions.step7.clan_relations}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part3.q8{suffix}' suffix}} : {{data.system.twenty_questions.step8.bushido}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part4.q9{suffix}' suffix}} : {{data.system.twenty_questions.step9.success}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part4.q10{suffix}' suffix}} : {{data.system.twenty_questions.step10.difficulty}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part4.q11{suffix}' suffix}} : {{data.system.twenty_questions.step11.calms}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part4.q12{suffix}' suffix}} : {{data.system.twenty_questions.step12.worries}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part4.q13{suffix}' suffix}} : {{data.system.twenty_questions.step13.most_learn}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part5.q14{suffix}' suffix}} : {{data.system.twenty_questions.step14.first_sight}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part5.q15{suffix}' suffix}} : {{data.system.twenty_questions.step15.stress}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part5.q16{suffix}' suffix}} : {{data.system.twenty_questions.step16.relations}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part6.q17{suffix}' suffix}} : {{data.system.twenty_questions.step17.parents_pov}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part6.q18{suffix}' suffix}} : {{data.system.twenty_questions.step18.heritage_name}}
+ - {{localizeEmbedded 'l5r5e.twenty_questions.part7.q20{suffix}' suffix}} : {{data.system.twenty_questions.step20.death}}
diff --git a/system/templates/actors/character/conflict.html b/system/templates/actors/character/conflict.html
index 814855f..f85693a 100644
--- a/system/templates/actors/character/conflict.html
+++ b/system/templates/actors/character/conflict.html
@@ -2,7 +2,7 @@
diff --git a/system/templates/actors/character/techniques.html b/system/templates/actors/character/techniques.html
index 19a843d..7cecfb7 100644
--- a/system/templates/actors/character/techniques.html
+++ b/system/templates/actors/character/techniques.html
@@ -16,7 +16,7 @@