Enhance localization stuff

This commit is contained in:
sladecraven 2022-05-11 22:05:35 +02:00
parent 44ce88dd17
commit c9722b9b04
4 changed files with 17 additions and 7 deletions

View File

@ -87,6 +87,7 @@
"BOL.ui.failure": "Échec", "BOL.ui.failure": "Échec",
"BOL.ui.fumble": "Échec critique", "BOL.ui.fumble": "Échec critique",
"BOL.ui.critical": "Succès critique", "BOL.ui.critical": "Succès critique",
"BOL.ui.criticallegend": "Succès légendaire !",
"BOL.ui.maneuvers": "Actions de combat", "BOL.ui.maneuvers": "Actions de combat",
"BOL.ui.stacksize": "Taille de pile (max)", "BOL.ui.stacksize": "Taille de pile (max)",
"BOL.ui.weapons": "Armes", "BOL.ui.weapons": "Armes",
@ -366,7 +367,7 @@
"BOL.chat.rolldamage": "Lancer les dommages", "BOL.chat.rolldamage": "Lancer les dommages",
"BOL.chat.rolldamage6": "Lancer les dommages +6", "BOL.chat.rolldamage6": "Lancer les dommages +6",
"BOL.chat.rolldamage12": "Dommages +12 (1 Pt. d'Heroisme)", "BOL.chat.rolldamage12": "Dommages +12 (1 Pt. d'Heroisme)",
"BOL.chat.damageresult": "Dommages de {weapon.name} : {total}", "BOL.chat.damageresult": "Dommages de {name} : {total}",
"BOL.chat.damagetarget": "Cible : {target}", "BOL.chat.damagetarget": "Cible : {target}",
"BOL.chat.applydamagetotarget": "Appliquer les dommages à la cible", "BOL.chat.applydamagetotarget": "Appliquer les dommages à la cible",
"BOL.chat.fightoption": "Option de combat", "BOL.chat.fightoption": "Option de combat",

View File

@ -25,6 +25,7 @@ export class BoLRoll {
let rollData = { let rollData = {
mode: "attribute", mode: "attribute",
actorId: actor.id, actorId: actor.id,
img: actor.img,
attribute: attribute, attribute: attribute,
attrValue: attribute.value, attrValue: attribute.value,
aptValue: 0, aptValue: 0,
@ -52,6 +53,7 @@ export class BoLRoll {
{ {
mode: "aptitude", mode: "aptitude",
actorId: actor.id, actorId: actor.id,
img: actor.img,
attribute: attribute, attribute: attribute,
aptitude: aptitude, aptitude: aptitude,
attrValue: attribute.value, attrValue: attribute.value,
@ -84,6 +86,7 @@ export class BoLRoll {
let rolldata = { let rolldata = {
mode: "weapon", mode: "weapon",
actorId: actor.id, actorId: actor.id,
img: actor.img,
weapon: weapon, weapon: weapon,
isRanged: weaponData.properties.ranged || weaponData.properties.throwing, isRanged: weaponData.properties.ranged || weaponData.properties.throwing,
targetId: target?.id, targetId: target?.id,
@ -131,6 +134,7 @@ export class BoLRoll {
let alchemyDef = { let alchemyDef = {
mode: "alchemy", mode: "alchemy",
actorId: actor.id, actorId: actor.id,
img: actor.img,
alchemy: alchemy, alchemy: alchemy,
attribute: actor.data.data.attributes.mind, attribute: actor.data.data.attributes.mind,
attrValue: actor.data.data.attributes.mind.value, attrValue: actor.data.data.attributes.mind.value,
@ -154,6 +158,7 @@ export class BoLRoll {
let spellDef = { let spellDef = {
mode: "spell", mode: "spell",
actorId: actor.id, actorId: actor.id,
img: actor.img,
spell: spell, spell: spell,
attribute: actor.data.data.attributes.mind, attribute: actor.data.data.attributes.mind,
attrValue: actor.data.data.attributes.mind.value, attrValue: actor.data.data.attributes.mind.value,

View File

@ -14,7 +14,7 @@
"url": "https://github.com/ZigmundKreud/bol", "url": "https://github.com/ZigmundKreud/bol",
"license": "LICENSE.txt", "license": "LICENSE.txt",
"flags": {}, "flags": {},
"version": "1.3.10", "version": "1.3.11",
"templateVersion": 10, "templateVersion": 10,
"minimumCoreVersion": "0.8.6", "minimumCoreVersion": "0.8.6",
"compatibleCoreVersion": "9", "compatibleCoreVersion": "9",

View File

@ -1,9 +1,13 @@
<div> <div>
{{#if isSuccess}} {{#if isSuccess}}
{{#if isCritical}} {{#if isLegendary}}
<h2 class="success critical"><i class="fas fa-check-double"></i>&nbsp;{{localize "BOL.ui.critical"}}... <h2 class="success critical"><i class="fas fa-check-double"></i>&nbsp;{{localize "BOL.ui.criticallegend"}}...
{{else}} {{else}}
<h2 class="success"><i class="fas fa-check"></i>&nbsp;{{localize "BOL.ui.success"}}... {{#if isCritical}}
<h2 class="success critical"><i class="fas fa-check-double"></i>&nbsp;{{localize "BOL.ui.critical"}}...
{{else}}
<h2 class="success"><i class="fas fa-check"></i>&nbsp;{{localize "BOL.ui.success"}}...
{{/if}}
{{/if}} {{/if}}
{{/if}} {{/if}}
{{#if isFailure}} {{#if isFailure}}
@ -13,7 +17,7 @@
<h2 class="failure"><i class="fas fa-times"></i>&nbsp;{{localize "BOL.ui.failure"}}... <h2 class="failure"><i class="fas fa-times"></i>&nbsp;{{localize "BOL.ui.failure"}}...
{{/if}} {{/if}}
{{/if}} {{/if}}
<img class="chat-icon" src="{{actor.img}}" alt="{{actor.name}}"/> <img class="chat-icon" src="{{img}}" alt="{{actor.name}}"/>
</h2> </h2>
</div> </div>
@ -36,7 +40,7 @@
{{#if alchemy}} {{#if alchemy}}
{{> "systems/bol/templates/chat/rolls/alchemy-roll-card.hbs"}} {{> "systems/bol/templates/chat/rolls/alchemy-roll-card.hbs"}}
{{/if}} {{/if}}
{{#if reroll}} {{#if reroll}}
<button class="chat-button button hero-reroll" data-roll-id=="{{rollId}}" data-actor-id="{{actor.id}}">{{localize "BOL.chat.reroll"}}</button> <button class="chat-button button hero-reroll" data-roll-id=="{{rollId}}" data-actor-id="{{actor.id}}">{{localize "BOL.chat.reroll"}}</button>
{{/if}} {{/if}}