fix(i18n): lien du succès héroïque localisé (EN/FR) et avertissement XP traduit

This commit is contained in:
2026-08-04 08:31:08 +02:00
parent 215a8a1a45
commit de1fa8ba72
6 changed files with 14 additions and 4 deletions
+1
View File
@@ -195,6 +195,7 @@
"BOL.ui.deletetitle": "Delete", "BOL.ui.deletetitle": "Delete",
"BOL.ui.confirmdelete": "Are you sure to delete this item ?", "BOL.ui.confirmdelete": "Are you sure to delete this item ?",
"BOL.ui.nomorealchemypoints": "No more Creation Point !", "BOL.ui.nomorealchemypoints": "No more Creation Point !",
"BOL.ui.notenoughxp": "Not enough experience points !",
"BOL.ui.armornoformula": "The Armor {protect.name} has no protection formula !", "BOL.ui.armornoformula": "The Armor {protect.name} has no protection formula !",
"BOL.ui.selectactor": "Select the actors to apply the macro", "BOL.ui.selectactor": "Select the actors to apply the macro",
"BOL.ui.itemnotfound": "Impossible to find the object of this macro", "BOL.ui.itemnotfound": "Impossible to find the object of this macro",
+1
View File
@@ -195,6 +195,7 @@
"BOL.ui.deletetitle": "Borrar", "BOL.ui.deletetitle": "Borrar",
"BOL.ui.confirmdelete": "¿Seguro que quieres borrar este objeto?", "BOL.ui.confirmdelete": "¿Seguro que quieres borrar este objeto?",
"BOL.ui.nomorealchemypoints": "¡Sin Puntos de Creación!", "BOL.ui.nomorealchemypoints": "¡Sin Puntos de Creación!",
"BOL.ui.notenoughxp": "¡No hay suficientes puntos de experiencia!",
"BOL.ui.armornoformula": "La Armadura {protect.name} no dispone de fórmula de protección!", "BOL.ui.armornoformula": "La Armadura {protect.name} no dispone de fórmula de protección!",
"BOL.ui.selectactor": "Selecciona un actora para aplicar la macro", "BOL.ui.selectactor": "Selecciona un actora para aplicar la macro",
"BOL.ui.itemnotfound": "Imposible encontrar el objeto de esta macro", "BOL.ui.itemnotfound": "Imposible encontrar el objeto de esta macro",
+1
View File
@@ -229,6 +229,7 @@
"BOL.ui.deletetitle": "Suppression", "BOL.ui.deletetitle": "Suppression",
"BOL.ui.confirmdelete": "Vous êtes sûr de vouloir supprimer cet item ?", "BOL.ui.confirmdelete": "Vous êtes sûr de vouloir supprimer cet item ?",
"BOL.ui.nomorealchemypoints": "Plus assez de Points de Création !", "BOL.ui.nomorealchemypoints": "Plus assez de Points de Création !",
"BOL.ui.notenoughxp": "Pas assez de points d'expérience !",
"BOL.ui.armornoformula": "L'armure {protect.name} n'a pas de formule pour la protection !", "BOL.ui.armornoformula": "L'armure {protect.name} n'a pas de formule pour la protection !",
"BOL.ui.selectactor": "Selectionnez votre personnage pour utiliser la macro", "BOL.ui.selectactor": "Selectionnez votre personnage pour utiliser la macro",
"BOL.ui.itemnotfound": "Impossible de trouver l'objet de cette macro", "BOL.ui.itemnotfound": "Impossible de trouver l'objet de cette macro",
+3 -3
View File
@@ -301,7 +301,7 @@ export class BoLActor extends Actor {
this.update({ [`system.attributes.${key}`]: attr, [`system.xp`]: xp }) this.update({ [`system.attributes.${key}`]: attr, [`system.xp`]: xp })
this.addXPLog("attribute", key, nextXP, attr.value) this.addXPLog("attribute", key, nextXP, attr.value)
} else { } else {
ui.notifications.warn("Pas assez de points d'expérience !") ui.notifications.warn(game.i18n.localize("BOL.ui.notenoughxp"))
} }
} }
} }
@@ -318,7 +318,7 @@ export class BoLActor extends Actor {
this.update({ [`system.aptitudes.${key}`]: apt, [`system.xp`]: xp }) this.update({ [`system.aptitudes.${key}`]: apt, [`system.xp`]: xp })
this.addXPLog("aptitude", key, nextXP, apt.value) this.addXPLog("aptitude", key, nextXP, apt.value)
} else { } else {
ui.notifications.warn("Pas assez de points d'expérience !") ui.notifications.warn(game.i18n.localize("BOL.ui.notenoughxp"))
} }
} }
} }
@@ -335,7 +335,7 @@ export class BoLActor extends Actor {
this.updateEmbeddedDocuments('Item', [{ _id: career._id, 'system.rank': career.system.rank + 1 }]) this.updateEmbeddedDocuments('Item', [{ _id: career._id, 'system.rank': career.system.rank + 1 }])
this.addXPLog("career", career.name, nextXP, career.system.rank + 1) this.addXPLog("career", career.name, nextXP, career.system.rank + 1)
} else { } else {
ui.notifications.warn("Pas assez de points d'expérience !") ui.notifications.warn(game.i18n.localize("BOL.ui.notenoughxp"))
} }
} }
} }
+7
View File
@@ -141,6 +141,13 @@ export const registerHandlebarsHelpers = function () {
return key == "creature" || key == "daemon"; return key == "creature" || key == "daemon";
}) })
// Journal entry documenting Heroic/Legendary success options, localized
Handlebars.registerHelper('criticalJournalId', function () {
return game.i18n.lang === "en"
? "cNk3xcQ1F7I3Uk8Q" // Rules summary (EN)
: "veAAxCtCKcFIsnln"; // Vademecum des Joueurs (FR)
})
// Handle v12 removal of this helper // Handle v12 removal of this helper
Handlebars.registerHelper('select', function (selected, options) { Handlebars.registerHelper('select', function (selected, options) {
const escapedValue = RegExp.escape(Handlebars.escapeExpression(selected)); const escapedValue = RegExp.escape(Handlebars.escapeExpression(selected));
+1 -1
View File
@@ -61,7 +61,7 @@
{{/if}} {{/if}}
</div> </div>
<div class="bol-margin-tb-2"> <div class="bol-margin-tb-2">
<a class="content-link" draggable="true" data-link="" data-uuid="Compendium.bol.aides-de-jeu.JournalEntry.Yl1RKQb0BjVUtilk" data-id="Yl1RKQb0BjVUtilk" data-type="JournalEntry" data-pack="bol.aides-de-jeu" data-tooltip="Journal Entry"><i class="fas fa-book-open"></i>{{localize "BOL.chat.criticalbuttonjournal"}}</a> <a class="content-link" draggable="true" data-link="" data-uuid="Compendium.bol.aides-de-jeu.JournalEntry.{{criticalJournalId}}" data-id="{{criticalJournalId}}" data-type="JournalEntry" data-pack="bol.aides-de-jeu" data-tooltip="Journal Entry"><i class="fas fa-book-open"></i>{{localize "BOL.chat.criticalbuttonjournal"}}</a>
</div> </div>
{{#if (and isCritical weapon)}} {{#if (and isCritical weapon)}}
<div> <div>