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
+3 -3
View File
@@ -301,7 +301,7 @@ export class BoLActor extends Actor {
this.update({ [`system.attributes.${key}`]: attr, [`system.xp`]: xp })
this.addXPLog("attribute", key, nextXP, attr.value)
} 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.addXPLog("aptitude", key, nextXP, apt.value)
} 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.addXPLog("career", career.name, nextXP, career.system.rank + 1)
} 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";
})
// 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
Handlebars.registerHelper('select', function (selected, options) {
const escapedValue = RegExp.escape(Handlebars.escapeExpression(selected));