From ac18b3030ee4de585205ab14ca0d5b92b10883a0 Mon Sep 17 00:00:00 2001 From: U~man Date: Wed, 29 Jul 2020 21:49:37 +0200 Subject: [PATCH] ENH: Localization update --- src/lang/en.json | 1 + src/lang/fr.json | 7 +++++-- src/module/dice.js | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/lang/en.json b/src/lang/en.json index cadfea8..cfbb2ca 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -252,6 +252,7 @@ "OSE.messages.AttackSuccess": "Hits AC {result}! ({bonus})", "OSE.messages.AttackAscendingSuccess": "Hits AC {result}!", "OSE.messages.AttackFailure": "Attack fails ({bonus})", + "OSE.messages.AttackAscendingFailure": "Attack fails", "OSE.messages.InflictsDamage": "Inflicts damage!", "OSE.messages.applyDamage": "Apply Damage", "OSE.messages.applyHealing": "Apply Healing", diff --git a/src/lang/fr.json b/src/lang/fr.json index 6655c55..4198b56 100644 --- a/src/lang/fr.json +++ b/src/lang/fr.json @@ -196,13 +196,16 @@ "OSE.items.ArmorAC": "CA", "OSE.items.ArmorAAC": "CAA", "OSE.items.Bonus": "Bonus", + "OSE.items.AtkBonus": "Bonus d'Attaque", "OSE.items.roundAttacks": "Attaques utilisées ce tour", "OSE.items.roundAttacksMax": "Attaques max par tour", "OSE.items.resetAttacks": "Réinitialiser les Attaques", "OSE.items.hasShield": "A un bonus de Bouclier", - "OSE.items.typeTag": "Tapez une liste de tags descriptifs ex. 'Mêlée,Missile (5’–10’ / 11’–20’ / 21’–30’)'", + "OSE.items.typeTag": "Tapez une liste de tags descriptifs ex. 'Mêlée,Missile (5’–10’ / 11’–20’ / 21’–30’)' puis Entrée", + "OSE.items.enterTag": "Tags", "OSE.items.pattern": "Marqueur de schéma d'attaque", + "OSE.items.Range": "Portée", "OSE.items.Melee": "Mêlée", "OSE.items.Missile": "Distance", "OSE.items.Slow": "Lent", @@ -249,10 +252,10 @@ "OSE.messages.AttackSuccess": "Touche une CA de {result}! ({bonus})", "OSE.messages.AttackAscendingSuccess": "Touche une CAA de {result}!", "OSE.messages.AttackFailure": "L'Attaque échoue ({bonus})", + "OSE.messages.AttackAscendingFailure": "L'Attaque échoue", "OSE.messages.InflictsDamage": "Inflige des dégâts !", "OSE.messages.applyDamage": "Appliquer les dégâts", "OSE.messages.applyHealing": "Appliquer les soins", - "OSE.messages.creationFinished": "Création de {name} terminée", "OSE.colors.green": "Vert", "OSE.colors.red": "Rouge", diff --git a/src/module/dice.js b/src/module/dice.js index 8e64225..936e4e4 100644 --- a/src/module/dice.js +++ b/src/module/dice.js @@ -131,7 +131,7 @@ export class OseDice { if (game.settings.get("ose", "ascendingAC")) { if (roll.total < targetAac) { - result.details = game.i18n.format("OSE.messages.AttackFailure", { + result.details = game.i18n.format("OSE.messages.AttackAscendingFailure", { bonus: result.target, }); return result;