fix(i18n): localisation des notifications et messages d'erreur du système

This commit is contained in:
2026-08-04 09:14:29 +02:00
parent de1fa8ba72
commit 6719deb8fc
11 changed files with 102 additions and 25 deletions
+7 -7
View File
@@ -154,7 +154,7 @@ export class BoLRoll {
// Manage specific case
let fightOption = actor.getActiveFightOption()
if (fightOption && fightOption.system.properties.fightoptiontype == "fulldefense") {
ui.notifications.warn(`{{actor.name}} est en Défense Totale ! Il ne peut pas attaquer ce round.`)
ui.notifications.warn(game.i18n.format("BOL.notification.FullDefense", { actor: actor.name }))
return
}
@@ -175,7 +175,7 @@ export class BoLRoll {
const li = $(event.currentTarget).parents(".item")
let weapon = actor.items.get(li.data("item-id"))
if (!weapon) {
ui.notifications.warn("Unable to find weapon !")
ui.notifications.warn(game.i18n.localize("BOL.notification.WeaponNotFound"))
return
}
weapon = foundry.utils.duplicate(weapon)
@@ -187,7 +187,7 @@ export class BoLRoll {
const li = $(event.currentTarget).parents(".item");
let alchemy = actor.items.get(li.data("item-id"));
if (!alchemy) {
ui.notifications.warn("Unable to find Alchemy !");
ui.notifications.warn(game.i18n.localize("BOL.notification.AlchemyNotFound"));
return;
}
alchemy = foundry.utils.duplicate(alchemy)
@@ -198,7 +198,7 @@ export class BoLRoll {
static alchemyCheckWithItem(actor, alchemy) {
let alchemyData = alchemy.system
if (alchemyData.properties.pccurrent < alchemyData.properties.pccost) {
ui.notifications.warn("Pas assez de Points de Création investis dans la Préparation !")
ui.notifications.warn(game.i18n.localize("BOL.notification.NotEnoughCreationPrep"))
return
}
@@ -260,13 +260,13 @@ export class BoLRoll {
/* -------------------------------------------- */
static spellCheck(actor, event) {
if (actor.system.resources.power.value <= 0) {
ui.notifications.warn("Plus assez de points de Pouvoir !")
ui.notifications.warn(game.i18n.localize("BOL.notification.NoPower"))
return
}
const li = $(event.currentTarget).parents(".item")
let spell = actor.items.get(li.data("item-id"))
if (!spell) {
ui.notifications.warn("Impossible de trouver ce sort !")
ui.notifications.warn(game.i18n.localize("BOL.notification.SpellNotFound"))
return
}
spell = foundry.utils.duplicate(spell)
@@ -583,7 +583,7 @@ export class BoLRoll {
callback: (event, button, dialog) => {
console.log("Submit Roll!!!!");
if (rollData.mode == 'spell' && rollData.ppCurrent < rollData.ppCost) {
ui.notifications.warn("Pas assez de Points de Pouvoir !")
ui.notifications.warn(game.i18n.localize("BOL.notification.NoPower"))
return false
}
rollData.registerInit = (rollData.aptitude && rollData.aptitude.key == 'init') ?