Compat v14 : replace broken localize² with new helper localizeEmbedded

This commit is contained in:
Vlyan
2026-04-06 12:43:36 +02:00
parent 71f01b1c5c
commit 852703c4ef
13 changed files with 62 additions and 54 deletions

View File

@@ -37,6 +37,14 @@ export const RegisterHandlebars = function () {
return sanitizeIfFail(game.i18n.localize(isYes ? "Yes" : "No")); 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 */ /* Dice */
/* ------------------------------------ */ /* ------------------------------------ */

View File

@@ -65,7 +65,7 @@
<ul> <ul>
{{#each data.splitTechniquesList as |list techName|}} {{#each data.splitTechniquesList as |list techName|}}
<li> <li>
<strong>{{localize (localize 'l5r5e.techniques.{techName}' techName=techName) }}</strong> <strong>{{localizeEmbedded 'l5r5e.techniques.{techName}' techName=techName}}</strong>
<ul> <ul>
{{#each list as |technique|}} {{#each list as |technique|}}
<li> <li>
@@ -130,7 +130,7 @@
<li>{{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'}}</li> <li>{{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'}}</li>
{{#each data.splitItemsList as |cat type|}} {{#each data.splitItemsList as |cat type|}}
<li> <li>
<strong>{{localize (localize 'l5r5e.{type}s.title' type=type)}} ({{cat.length}})</strong> <strong>{{localizeEmbedded 'l5r5e.{type}s.title' type=type}} ({{cat.length}})</strong>
<ul> <ul>
{{#each cat as |item|}} {{#each cat as |item|}}
<li>{{> 'systems/l5r5e/templates/items/item/item-text.html' data=item editable=../../options.editable}}</li> <li>{{> 'systems/l5r5e/templates/items/item/item-text.html' data=item editable=../../options.editable}}</li>
@@ -209,20 +209,20 @@
{{/ifCond}} {{/ifCond}}
<h2>{{localize 'l5r5e.twenty_questions.title'}}</h2> <h2>{{localize 'l5r5e.twenty_questions.title'}}</h2>
<ul> <ul>
<li>{{localize (localize 'l5r5e.twenty_questions.part2.q4{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step4.stand_out}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part2.q4{suffix}' suffix}} : {{data.system.twenty_questions.step4.stand_out}}</li>
<li>{{localize (localize 'l5r5e.twenty_questions.part3.q7{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step7.clan_relations}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part3.q7{suffix}' suffix}} : {{data.system.twenty_questions.step7.clan_relations}}</li>
<li>{{localize (localize 'l5r5e.twenty_questions.part3.q8{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step8.bushido}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part3.q8{suffix}' suffix}} : {{data.system.twenty_questions.step8.bushido}}</li>
<li>{{localize (localize 'l5r5e.twenty_questions.part4.q9{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step9.success}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part4.q9{suffix}' suffix}} : {{data.system.twenty_questions.step9.success}}</li>
<li>{{localize (localize 'l5r5e.twenty_questions.part4.q10{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step10.difficulty}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part4.q10{suffix}' suffix}} : {{data.system.twenty_questions.step10.difficulty}}</li>
<li>{{localize (localize 'l5r5e.twenty_questions.part4.q11{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step11.calms}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part4.q11{suffix}' suffix}} : {{data.system.twenty_questions.step11.calms}}</li>
<li>{{localize (localize 'l5r5e.twenty_questions.part4.q12{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step12.worries}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part4.q12{suffix}' suffix}} : {{data.system.twenty_questions.step12.worries}}</li>
<li>{{localize (localize 'l5r5e.twenty_questions.part4.q13{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step13.most_learn}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part4.q13{suffix}' suffix}} : {{data.system.twenty_questions.step13.most_learn}}</li>
<li>{{localize (localize 'l5r5e.twenty_questions.part5.q14{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step14.first_sight}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part5.q14{suffix}' suffix}} : {{data.system.twenty_questions.step14.first_sight}}</li>
<li>{{localize (localize 'l5r5e.twenty_questions.part5.q15{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step15.stress}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part5.q15{suffix}' suffix}} : {{data.system.twenty_questions.step15.stress}}</li>
<li>{{localize (localize 'l5r5e.twenty_questions.part5.q16{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step16.relations}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part5.q16{suffix}' suffix}} : {{data.system.twenty_questions.step16.relations}}</li>
<li>{{localize (localize 'l5r5e.twenty_questions.part6.q17{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step17.parents_pov}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part6.q17{suffix}' suffix}} : {{data.system.twenty_questions.step17.parents_pov}}</li>
<li>{{localize (localize 'l5r5e.twenty_questions.part6.q18{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step18.heritage_name}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part6.q18{suffix}' suffix}} : {{data.system.twenty_questions.step18.heritage_name}}</li>
<li>{{localize (localize 'l5r5e.twenty_questions.part7.q20{suffix}' suffix=suffix)}} : {{data.system.twenty_questions.step20.death}}</li> <li>{{localizeEmbedded 'l5r5e.twenty_questions.part7.q20{suffix}' suffix}} : {{data.system.twenty_questions.step20.death}}</li>
</ul> </ul>
</section> </section>

View File

@@ -2,7 +2,7 @@
<legend class="section-header"> <legend class="section-header">
{{localize 'l5r5e.conflict.initiative.title'}} {{localize 'l5r5e.conflict.initiative.title'}}
<a class="encounter prepared-control" data-id="{{data.type}}"> <a class="encounter prepared-control" data-id="{{data.type}}">
<i class="fa fas prepared-icon prepared-icon-{{data.system.prepared}} prepared-{{data.type}}" title="{{localize (localize 'l5r5e.conflict.initiative.prepared_{value}' value=data.system.prepared)}}"></i> <i class="fa fas prepared-icon prepared-icon-{{data.system.prepared}} prepared-{{data.type}}" title="{{localizeEmbedded 'l5r5e.conflict.initiative.prepared_{value}' value=data.system.prepared}}"></i>
</a> </a>
</legend> </legend>
<button class="initiative dice-picker" data-initiative="true" data-skill="sentiment">{{localize 'l5r5e.conflict.initiative.intrigue'}}</button> <button class="initiative dice-picker" data-initiative="true" data-skill="sentiment">{{localize 'l5r5e.conflict.initiative.intrigue'}}</button>

View File

@@ -16,7 +16,7 @@
<fieldset class="section-header flexrow"> <fieldset class="section-header flexrow">
<legend class="technique-controls"> <legend class="technique-controls">
<span class="technique-controls toggle-on-click" data-toggle="toggle-technique-category-{{technique}}"> <span class="technique-controls toggle-on-click" data-toggle="toggle-technique-category-{{technique}}">
{{localize (localize 'l5r5e.techniques.{technique}' technique=technique)}} {{localizeEmbedded 'l5r5e.techniques.{technique}' technique=technique}}
</span> </span>
{{#ifCond ../data.editable_not_soft_locked '&&' (lookup ../data.system.techniques technique)}} {{#ifCond ../data.editable_not_soft_locked '&&' (lookup ../data.system.techniques technique)}}
<a data-item-type="technique" class="technique-control item-add" data-tech-type="{{technique}}" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a> <a data-item-type="technique" class="technique-control item-add" data-tech-type="{{technique}}" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>

View File

@@ -2,7 +2,7 @@
<legend class="section-header"> <legend class="section-header">
{{localize 'l5r5e.conflict.initiative.title'}} {{localize 'l5r5e.conflict.initiative.title'}}
<a class="encounter prepared-control" data-id="{{data.type}}"> <a class="encounter prepared-control" data-id="{{data.type}}">
<i class="fa fas prepared-icon prepared-icon-{{data.system.prepared}} prepared-{{data.system.type}}" title="{{localize (localize 'l5r5e.conflict.initiative.prepared_{value}' value=data.system.prepared)}}"></i> <i class="fa fas prepared-icon prepared-icon-{{data.system.prepared}} prepared-{{data.system.type}}" title="{{localizeEmbedded 'l5r5e.conflict.initiative.prepared_{value}' value=data.system.prepared}}"></i>
</a> </a>
</legend> </legend>
<button class="initiative dice-picker" data-initiative="true" data-skill="sentiment">{{localize 'l5r5e.conflict.initiative.intrigue'}}</button> <button class="initiative dice-picker" data-initiative="true" data-skill="sentiment">{{localize 'l5r5e.conflict.initiative.intrigue'}}</button>

View File

@@ -19,7 +19,7 @@
<fieldset class="section-header flexrow"> <fieldset class="section-header flexrow">
<legend class="technique-controls"> <legend class="technique-controls">
<span class="technique-controls toggle-on-click" data-toggle="toggle-technique-category-{{technique}}"> <span class="technique-controls toggle-on-click" data-toggle="toggle-technique-category-{{technique}}">
{{localize (localize 'l5r5e.techniques.{technique}' technique=technique)}} {{localizeEmbedded 'l5r5e.techniques.{technique}' technique=technique}}
</span> </span>
{{#ifCond ../data.editable_not_soft_locked '&&' (lookup ../data.system.techniques technique)}} {{#ifCond ../data.editable_not_soft_locked '&&' (lookup ../data.system.techniques technique)}}
<a data-item-type="technique" class="technique-control item-add" data-tech-type="{{technique}}" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a> <a data-item-type="technique" class="technique-control item-add" data-tech-type="{{technique}}" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>

View File

@@ -27,12 +27,12 @@
</label> </label>
<br> <br>
<br> <br>
<i>{{localize (localize 'l5r5e.twenty_questions.part0.section{suffix}' suffix=suffix)}}</i> <i>{{localizeEmbedded 'l5r5e.twenty_questions.part0.section{suffix}' suffix=suffix}}</i>
<button class="next" name="next" type="button">{{localize 'l5r5e.twenty_questions.bt_next'}} <i class='fas fa-arrow-right'></i></button> <button class="next" name="next" type="button">{{localize 'l5r5e.twenty_questions.bt_next'}} <i class='fas fa-arrow-right'></i></button>
</article> </article>
<article class="tab parts part1" data-group="primary" data-tab="part1"> <article class="tab parts part1" data-group="primary" data-tab="part1">
<h2>{{localize (localize 'l5r5e.twenty_questions.part1.title{suffix}' suffix=suffix)}}</h2> <h2>{{localizeEmbedded 'l5r5e.twenty_questions.part1.title{suffix}' suffix=suffix}}</h2>
<h3>{{localize (localize 'l5r5e.twenty_questions.part1.q1{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part1.q1{suffix}' suffix=suffix}}</h3>
<div> <div>
<input type="text" name="step1.clan" value="{{data.step1.clan}}"> <input type="text" name="step1.clan" value="{{data.step1.clan}}">
</div> </div>
@@ -73,7 +73,7 @@
</td> </td>
</tr> </tr>
</table> </table>
<h3>{{localize (localize 'l5r5e.twenty_questions.part1.q2{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part1.q2{suffix}' suffix=suffix}}</h3>
<div> <div>
<input type="text" name="step2.family" value="{{data.step2.family}}"> <input type="text" name="step2.family" value="{{data.step2.family}}">
</div> </div>
@@ -122,7 +122,7 @@
</article> </article>
<article class="tab parts part2" data-group="primary" data-tab="part2"> <article class="tab parts part2" data-group="primary" data-tab="part2">
<h2>{{localize 'l5r5e.twenty_questions.part2.title'}}</h2> <h2>{{localize 'l5r5e.twenty_questions.part2.title'}}</h2>
<h3>{{localize (localize 'l5r5e.twenty_questions.part2.q3{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part2.q3{suffix}' suffix=suffix}}</h3>
<label class="full"> <label class="full">
{{localize 'l5r5e.twenty_questions.part2.school'}} {{localize 'l5r5e.twenty_questions.part2.school'}}
<input type="text" name="step3.school" value="{{data.step3.school}}"> <input type="text" name="step3.school" value="{{data.step3.school}}">
@@ -214,7 +214,7 @@
</td> </td>
</tr> </tr>
</table> </table>
<h3>{{localize (localize 'l5r5e.twenty_questions.part2.q4{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part2.q4{suffix}' suffix=suffix}}</h3>
<textarea name="step4.stand_out">{{data.step4.stand_out}}</textarea> <textarea name="step4.stand_out">{{data.step4.stand_out}}</textarea>
<label> <label>
{{localize 'l5r5e.twenty_questions.increase_ring1'}} {{localize 'l5r5e.twenty_questions.increase_ring1'}}
@@ -226,8 +226,8 @@
<button class="next" name="next" type="button">{{localize 'l5r5e.twenty_questions.bt_next'}} <i class='fas fa-arrow-right'></i></button> <button class="next" name="next" type="button">{{localize 'l5r5e.twenty_questions.bt_next'}} <i class='fas fa-arrow-right'></i></button>
</article> </article>
<article class="tab parts part3" data-group="primary" data-tab="part3"> <article class="tab parts part3" data-group="primary" data-tab="part3">
<h2>{{localize (localize 'l5r5e.twenty_questions.part3.title{suffix}' suffix=suffix)}}</h2> <h2>{{localizeEmbedded 'l5r5e.twenty_questions.part3.title{suffix}' suffix=suffix}}</h2>
<h3>{{localize (localize 'l5r5e.twenty_questions.part3.q5{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part3.q5{suffix}' suffix=suffix}}</h3>
<label> <label>
{{#ifCond data.template '==' 'core'}} {{#ifCond data.template '==' 'core'}}
{{localize 'l5r5e.twenty_questions.part3.choose_giri'}} {{localize 'l5r5e.twenty_questions.part3.choose_giri'}}
@@ -236,12 +236,12 @@
{{/ifCond}} {{/ifCond}}
<textarea name="step5.social_giri">{{data.step5.social_giri}}</textarea> <textarea name="step5.social_giri">{{data.step5.social_giri}}</textarea>
</label> </label>
<h3>{{localize (localize 'l5r5e.twenty_questions.part3.q6{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part3.q6{suffix}' suffix=suffix}}</h3>
<label> <label>
{{localize 'l5r5e.twenty_questions.part3.choose_ninjo'}} {{localize 'l5r5e.twenty_questions.part3.choose_ninjo'}}
<textarea name="step6.social_ninjo">{{data.step6.social_ninjo}}</textarea> <textarea name="step6.social_ninjo">{{data.step6.social_ninjo}}</textarea>
</label> </label>
<h3>{{localize (localize 'l5r5e.twenty_questions.part3.q7{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part3.q7{suffix}' suffix=suffix}}</h3>
<textarea name="step7.clan_relations">{{data.step7.clan_relations}}</textarea> <textarea name="step7.clan_relations">{{data.step7.clan_relations}}</textarea>
<table> <table>
<tr> <tr>
@@ -265,7 +265,7 @@
</td> </td>
</tr> </tr>
</table> </table>
<h3>{{localize (localize 'l5r5e.twenty_questions.part3.q8{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part3.q8{suffix}' suffix=suffix}}</h3>
<textarea name="step8.bushido">{{data.step8.bushido}}</textarea> <textarea name="step8.bushido">{{data.step8.bushido}}</textarea>
<table> <table>
<tr> <tr>
@@ -315,31 +315,31 @@
</article> </article>
<article class="tab parts part4" data-group="primary" data-tab="part4"> <article class="tab parts part4" data-group="primary" data-tab="part4">
<h2>{{localize 'l5r5e.twenty_questions.part4.title'}}</h2> <h2>{{localize 'l5r5e.twenty_questions.part4.title'}}</h2>
<h3>{{localize (localize 'l5r5e.twenty_questions.part4.q9{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part4.q9{suffix}' suffix=suffix}}</h3>
<textarea name="step9.success">{{data.step9.success}}</textarea> <textarea name="step9.success">{{data.step9.success}}</textarea>
<label> <label>
{{localize 'l5r5e.twenty_questions.part4.distinction'}} {{localize 'l5r5e.twenty_questions.part4.distinction'}}
{{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step9.distinction stepName='step9.distinction' itemType='peculiarities' hideDndAt=1}} {{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step9.distinction stepName='step9.distinction' itemType='peculiarities' hideDndAt=1}}
</label> </label>
<h3>{{localize (localize 'l5r5e.twenty_questions.part4.q10{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part4.q10{suffix}' suffix=suffix}}</h3>
<textarea name="step10.difficulty">{{data.step10.difficulty}}</textarea> <textarea name="step10.difficulty">{{data.step10.difficulty}}</textarea>
<label> <label>
{{localize 'l5r5e.twenty_questions.part4.adversity'}} {{localize 'l5r5e.twenty_questions.part4.adversity'}}
{{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step10.adversity stepName='step10.adversity' itemType='peculiarities' hideDndAt=1}} {{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step10.adversity stepName='step10.adversity' itemType='peculiarities' hideDndAt=1}}
</label> </label>
<h3>{{localize (localize 'l5r5e.twenty_questions.part4.q11{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part4.q11{suffix}' suffix=suffix}}</h3>
<textarea name="step11.calms">{{data.step11.calms}}</textarea> <textarea name="step11.calms">{{data.step11.calms}}</textarea>
<label> <label>
{{localize 'l5r5e.twenty_questions.part4.passion'}} {{localize 'l5r5e.twenty_questions.part4.passion'}}
{{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step11.passion stepName='step11.passion' itemType='peculiarities' hideDndAt=1}} {{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step11.passion stepName='step11.passion' itemType='peculiarities' hideDndAt=1}}
</label> </label>
<h3>{{localize (localize 'l5r5e.twenty_questions.part4.q12{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part4.q12{suffix}' suffix=suffix}}</h3>
<textarea name="step12.worries">{{data.step12.worries}}</textarea> <textarea name="step12.worries">{{data.step12.worries}}</textarea>
<label> <label>
{{localize 'l5r5e.twenty_questions.part4.anxiety'}} {{localize 'l5r5e.twenty_questions.part4.anxiety'}}
{{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step12.anxiety stepName='step12.anxiety' itemType='peculiarities' hideDndAt=1}} {{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step12.anxiety stepName='step12.anxiety' itemType='peculiarities' hideDndAt=1}}
</label> </label>
<h3>{{localize (localize 'l5r5e.twenty_questions.part4.q13{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part4.q13{suffix}' suffix=suffix}}</h3>
<textarea name="step13.most_learn">{{data.step13.most_learn}}</textarea> <textarea name="step13.most_learn">{{data.step13.most_learn}}</textarea>
<table> <table>
<tr> <tr>
@@ -376,13 +376,13 @@
</article> </article>
<article class="tab parts part5" data-group="primary" data-tab="part5"> <article class="tab parts part5" data-group="primary" data-tab="part5">
<h2>{{localize 'l5r5e.twenty_questions.part5.title'}}</h2> <h2>{{localize 'l5r5e.twenty_questions.part5.title'}}</h2>
<h3>{{localize (localize 'l5r5e.twenty_questions.part5.q14{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part5.q14{suffix}' suffix=suffix}}</h3>
<textarea name="step14.first_sight">{{data.step14.first_sight}}</textarea> <textarea name="step14.first_sight">{{data.step14.first_sight}}</textarea>
<label> <label>
{{localize 'l5r5e.twenty_questions.part5.accoutrement'}} {{localize 'l5r5e.twenty_questions.part5.accoutrement'}}
{{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step14.special_features stepName='step14.special_features' itemType='items' hideDndAt=1}} {{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step14.special_features stepName='step14.special_features' itemType='items' hideDndAt=1}}
</label> </label>
<h3>{{localize (localize 'l5r5e.twenty_questions.part5.q15{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part5.q15{suffix}' suffix=suffix}}</h3>
<textarea name="step15.stress">{{data.step15.stress}}</textarea> <textarea name="step15.stress">{{data.step15.stress}}</textarea>
{{#ifCond data.template '==' 'core'}} {{#ifCond data.template '==' 'core'}}
<h3>{{localize 'l5r5e.twenty_questions.part5.q16'}}</h3> <h3>{{localize 'l5r5e.twenty_questions.part5.q16'}}</h3>
@@ -395,16 +395,16 @@
<button class="next" name="next" type="button">{{localize 'l5r5e.twenty_questions.bt_next'}} <i class='fas fa-arrow-right'></i></button> <button class="next" name="next" type="button">{{localize 'l5r5e.twenty_questions.bt_next'}} <i class='fas fa-arrow-right'></i></button>
</article> </article>
<article class="tab parts part6" data-group="primary" data-tab="part6"> <article class="tab parts part6" data-group="primary" data-tab="part6">
<h2>{{localize (localize 'l5r5e.twenty_questions.part6.title{suffix}' suffix=suffix)}}</h2> <h2>{{localizeEmbedded 'l5r5e.twenty_questions.part6.title{suffix}' suffix=suffix}}</h2>
{{#ifCond data.template '==' 'pow'}} {{#ifCond data.template '==' 'pow'}}
<h3>{{localize (localize 'l5r5e.twenty_questions.part5.q16_pow' suffix=suffix)}}</h3> <h3>{{localize 'l5r5e.twenty_questions.part5.q16_pow'}}</h3>
<textarea name="step16.relations">{{data.step16.relations}}</textarea> <textarea name="step16.relations">{{data.step16.relations}}</textarea>
<label> <label>
{{localize 'l5r5e.twenty_questions.part5.object'}} {{localize 'l5r5e.twenty_questions.part5.object'}}
{{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step16.item stepName='step16.item' itemType='items' hideDndAt=1}} {{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step16.item stepName='step16.item' itemType='items' hideDndAt=1}}
</label> </label>
{{/ifCond}} {{/ifCond}}
<h3>{{localize (localize 'l5r5e.twenty_questions.part6.q17{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part6.q17{suffix}' suffix=suffix}}</h3>
<textarea name="step17.parents_pov">{{data.step17.parents_pov}}</textarea> <textarea name="step17.parents_pov">{{data.step17.parents_pov}}</textarea>
{{#ifCond data.template '==' 'core'}} {{#ifCond data.template '==' 'core'}}
<label> <label>
@@ -424,7 +424,7 @@
{{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step17.bond stepName='step17.bond' itemType='bonds' hideDndAt=1}} {{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step17.bond stepName='step17.bond' itemType='bonds' hideDndAt=1}}
</label> </label>
{{/ifCond}} {{/ifCond}}
<h3>{{localize (localize 'l5r5e.twenty_questions.part6.q18{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part6.q18{suffix}' suffix=suffix}}</h3>
<textarea name="step18.heritage_name">{{data.step18.heritage_name}}</textarea> <textarea name="step18.heritage_name">{{data.step18.heritage_name}}</textarea>
{{#ifCond data.template '==' 'core'}} {{#ifCond data.template '==' 'core'}}
<table> <table>
@@ -491,7 +491,7 @@
</select> </select>
</label> </label>
{{/ifCond}} {{/ifCond}}
<h3>{{localize (localize 'l5r5e.twenty_questions.part6.q19{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part6.q19{suffix}' suffix=suffix}}</h3>
<textarea name="step19.firstname">{{data.step19.firstname}}</textarea> <textarea name="step19.firstname">{{data.step19.firstname}}</textarea>
<button class="next" name="next" type="button">{{localize 'l5r5e.twenty_questions.bt_next'}} <i class='fas fa-arrow-right'></i></button> <button class="next" name="next" type="button">{{localize 'l5r5e.twenty_questions.bt_next'}} <i class='fas fa-arrow-right'></i></button>
</article> </article>
@@ -499,7 +499,7 @@
<h2>{{localize 'l5r5e.twenty_questions.part7.title'}}</h2> <h2>{{localize 'l5r5e.twenty_questions.part7.title'}}</h2>
<div> <div>
<label> <label>
<h3>{{localize (localize 'l5r5e.twenty_questions.part7.q20{suffix}' suffix=suffix)}}</h3> <h3>{{localizeEmbedded 'l5r5e.twenty_questions.part7.q20{suffix}' suffix=suffix}}</h3>
<textarea name="step20.death">{{data.step20.death}}</textarea> <textarea name="step20.death">{{data.step20.death}}</textarea>
</label> </label>
</div> </div>

View File

@@ -2,14 +2,14 @@
<ul class="encounter"> <ul class="encounter">
{{#each encounterTypeList}} {{#each encounterTypeList}}
<li class="encounter encounter-control" data-id="{{this}}"> <li class="encounter encounter-control" data-id="{{this}}">
<i class="fa fas encounter-icon-{{this}}{{#ifCond this '==' ../encounterType}} active{{/ifCond}}" title="{{localize (localize 'l5r5e.conflict.initiative.{id}' id=this)}}"></i> <i class="fa fas encounter-icon-{{this}}{{#ifCond this '==' ../encounterType}} active{{/ifCond}}" title="{{localizeEmbedded 'l5r5e.conflict.initiative.{id}' id=this}}"></i>
</li> </li>
{{/each}} {{/each}}
</ul> </ul>
<ul class="prepared"> <ul class="prepared">
{{#each prepared as |prepared charType|}} {{#each prepared as |prepared charType|}}
<li class="encounter prepared-control" data-id="{{charType}}"> <li class="encounter prepared-control" data-id="{{charType}}">
<i class="fa fas prepared-icon-{{prepared}} prepared-{{charType}}" title="{{localize (localize 'l5r5e.conflict.initiative.prepared_{value}' value=prepared)}} ({{localize (localize 'l5r5e.character_types.{type}' type=charType)}})"></i> <i class="fa fas prepared-icon-{{prepared}} prepared-{{charType}}" title="{{localizeEmbedded 'l5r5e.conflict.initiative.prepared_{value}' value=prepared}} ({{localizeEmbedded 'l5r5e.character_types.{type}' type=charType}})"></i>
</li> </li>
{{/each}} {{/each}}
</ul> </ul>

View File

@@ -32,7 +32,7 @@
</td> </td>
<td> <td>
<a data-actor-uuid="{{actor.uuid}}" data-type="prepared" class="actor-modify-control"> <a data-actor-uuid="{{actor.uuid}}" data-type="prepared" class="actor-modify-control">
<i data-type="text" data-text="<h2>{{localize 'l5r5e.conflict.initiative.title'}} : {{localize (localize 'l5r5e.conflict.initiative.prepared_{value}' value=actor.isPrepared)}}</h2>" class="fa fas prepared-icon-{{actor.isPrepared}} {{#ifCond actor.isPrepared '==' 'false'}}badvalue{{/ifCond}} actor-infos-control"></i> <i data-type="text" data-text="<h2>{{localize 'l5r5e.conflict.initiative.title'}} : {{localizeEmbedded 'l5r5e.conflict.initiative.prepared_{value}' value=actor.isPrepared}}</h2>" class="fa fas prepared-icon-{{actor.isPrepared}} {{#ifCond actor.isPrepared '==' 'false'}}badvalue{{/ifCond}} actor-infos-control"></i>
</a> </a>
</td> </td>
<td>{{#if actor.haveWeaponEquipped}}<i data-type="weapons" data-actor-uuid="{{actor.uuid}}" class="fas fa-fan actor-infos-control {{#if actor.haveWeaponReadied}}badvalue{{/if}}"></i>{{/if}}</td> <td>{{#if actor.haveWeaponEquipped}}<i data-type="weapons" data-actor-uuid="{{actor.uuid}}" class="fas fa-fan actor-infos-control {{#if actor.haveWeaponReadied}}badvalue{{/if}}"></i>{{/if}}</td>

View File

@@ -31,7 +31,7 @@
</td> </td>
<td> <td>
<a data-actor-uuid="{{actor.uuid}}" class="actor-modify-control" data-action="toggle_prepared"> <a data-actor-uuid="{{actor.uuid}}" class="actor-modify-control" data-action="toggle_prepared">
<i data-type="text" data-text="<h2>{{localize 'l5r5e.conflict.initiative.title'}} : {{localize (localize 'l5r5e.conflict.initiative.prepared_{value}' value=actor.isPrepared)}}</h2>" class="fa fas prepared-icon-{{actor.isPrepared}} {{#ifCond actor.isPrepared '==' 'false'}}badvalue{{/ifCond}} actor-infos-control"></i> <i data-type="text" data-text="<h2>{{localize 'l5r5e.conflict.initiative.title'}} : {{localizeEmbedded 'l5r5e.conflict.initiative.prepared_{value}' value=actor.isPrepared}}</h2>" class="fa fas prepared-icon-{{actor.isPrepared}} {{#ifCond actor.isPrepared '==' 'false'}}badvalue{{/ifCond}} actor-infos-control"></i>
</a> </a>
</td> </td>
<td>{{#if actor.haveWeaponEquipped}}<i data-type="weapons" data-actor-uuid="{{actor.uuid}}" class="fas fa-fan actor-infos-control {{#if actor.haveWeaponReadied}}badvalue{{/if}}"></i>{{/if}}</td> <td>{{#if actor.haveWeaponEquipped}}<i data-type="weapons" data-actor-uuid="{{actor.uuid}}" class="fas fa-fan actor-infos-control {{#if actor.haveWeaponReadied}}badvalue{{/if}}"></i>{{/if}}</td>

View File

@@ -20,9 +20,9 @@
{{#ifCond actor_type "==" "character"}} {{#ifCond actor_type "==" "character"}}
{{!-- 20Q --}} {{!-- 20Q --}}
<ul> <ul>
<li><b>{{localize (localize 'l5r5e.twenty_questions.part5.q14{suffix}' suffix=suffix)}}</b> : {{actorData.system.twenty_questions.step14.first_sight}}</li> <li><b>{{localizeEmbedded 'l5r5e.twenty_questions.part5.q14' suffix}}</b> : {{actorData.system.twenty_questions.step14.first_sight}}</li>
<li><b>{{localize (localize 'l5r5e.twenty_questions.part5.q15{suffix}' suffix=suffix)}}</b> : {{actorData.system.twenty_questions.step15.stress}}</li> <li><b>{{localizeEmbedded 'l5r5e.twenty_questions.part5.q15' suffix}}</b> : {{actorData.system.twenty_questions.step15.stress}}</li>
<li><b>{{localize (localize 'l5r5e.twenty_questions.part7.q20{suffix}' suffix=suffix)}}</b> : {{actorData.system.twenty_questions.step20.death}}</li> <li><b>{{localizeEmbedded 'l5r5e.twenty_questions.part7.q20' suffix}}</b> : {{actorData.system.twenty_questions.step20.death}}</li>
</ul> </ul>
{{/ifCond}} {{/ifCond}}
<p>{{{actorData.enrichedHtml.description}}}</p> <p>{{{actorData.enrichedHtml.description}}}</p>

View File

@@ -1,6 +1,6 @@
{{#each data.splitItemsList as |cat type|}} {{#each data.splitItemsList as |cat type|}}
<h3 class="toggle-on-click" data-toggle="inventory-item-list-{{type}}"> <h3 class="toggle-on-click" data-toggle="inventory-item-list-{{type}}">
{{localize (localize 'l5r5e.{type}s.title' type=type)}} ({{cat.length}}) {{localizeEmbedded 'l5r5e.{type}s.title' type=type}} ({{cat.length}})
{{#if ../data.editable_not_soft_locked}} {{#if ../data.editable_not_soft_locked}}
<a data-item-type="{{type}}" class="item-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a> <a data-item-type="{{type}}" class="item-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}} {{/if}}

View File

@@ -8,7 +8,7 @@
<strong>{{localize 'l5r5e.rings.label'}}</strong> : {{localizeRing data.system.ring}} <strong>{{localize 'l5r5e.rings.label'}}</strong> : {{localizeRing data.system.ring}}
</li> </li>
<li> <li>
<strong>{{localize 'l5r5e.sheets.types'}}</strong> : {{localize (localize 'l5r5e.peculiarities.types.{type}' type=data.system.peculiarity_type)}} <strong>{{localize 'l5r5e.sheets.types'}}</strong> : {{localizeEmbedded 'l5r5e.peculiarities.types.{type}' type=data.system.peculiarity_type}}
</li> </li>
<li> <li>
<strong>{{localize 'l5r5e.advancements.curriculum'}}</strong> : {{localizeYesNo data.system.in_curriculum}} <strong>{{localize 'l5r5e.advancements.curriculum'}}</strong> : {{localizeYesNo data.system.in_curriculum}}
@@ -26,7 +26,7 @@
<strong>{{localize 'l5r5e.sheets.types'}}</strong> : {{data.system.types}} <strong>{{localize 'l5r5e.sheets.types'}}</strong> : {{data.system.types}}
</li> </li>
</ul> </ul>
{{> 'systems/l5r5e/templates/items/item/item-text-partial-reference.html'}} {{> 'systems/l5r5e/templates/items/item/item-text-partial-reference.html'}}
</section> </section>
</div> </div>