fix(i18n): lien du succès héroïque localisé (EN/FR) et avertissement XP traduit
This commit is contained in:
@@ -195,6 +195,7 @@
|
||||
"BOL.ui.deletetitle": "Delete",
|
||||
"BOL.ui.confirmdelete": "Are you sure to delete this item ?",
|
||||
"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.selectactor": "Select the actors to apply the macro",
|
||||
"BOL.ui.itemnotfound": "Impossible to find the object of this macro",
|
||||
|
||||
@@ -195,6 +195,7 @@
|
||||
"BOL.ui.deletetitle": "Borrar",
|
||||
"BOL.ui.confirmdelete": "¿Seguro que quieres borrar este objeto?",
|
||||
"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.selectactor": "Selecciona un actora para aplicar la macro",
|
||||
"BOL.ui.itemnotfound": "Imposible encontrar el objeto de esta macro",
|
||||
|
||||
@@ -229,6 +229,7 @@
|
||||
"BOL.ui.deletetitle": "Suppression",
|
||||
"BOL.ui.confirmdelete": "Vous êtes sûr de vouloir supprimer cet item ?",
|
||||
"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.selectactor": "Selectionnez votre personnage pour utiliser la macro",
|
||||
"BOL.ui.itemnotfound": "Impossible de trouver l'objet de cette macro",
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
{{/if}}
|
||||
</div>
|
||||
<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>
|
||||
{{#if (and isCritical weapon)}}
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user