fix(i18n): lien du succès héroïque localisé (EN/FR) et avertissement XP traduit
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user