WIP: Localization

master
U~man 2020-07-12 13:15:15 +02:00
parent 60fbd30bce
commit d22f4634c2
13 changed files with 488 additions and 441 deletions

View File

@ -10,15 +10,26 @@
"OSE.Success": "Success",
"OSE.Failure": "Failure",
"OSE.dialog.tweaks": "Tweaks",
"OSE.Formula": "Formula",
"OSE.SitMod": "Situational Modifier",
"OSE.Modifier": "Modifier",
"OSE.Modifiers": "Modifiers",
"OSE.RollMode": "Roll Mode",
"OSE.RollExample": "e.g. +1d4",
"OSE.RollFormula": "{label} roll",
"OSE.appearing.check": "Appearing Check",
"OSE.morale.check": "Morale Check",
"OSE.roll.appearing": "Appearing roll",
"OSE.roll.morale": "Morale check",
"OSE.roll.hd": "Hit Dice roll",
"OSE.roll.attackWith": "Attacks with {name}",
"OSE.roll.attacks": "{name} attacks!",
"OSE.roll.save": "Save",
"OSE.roll.attribute": "Attribute check",
"OSE.roll.details.attribute": "Roll 1d20 <= {score} for success",
"OSE.roll.exploration": "Test",
"OSE.roll.reaction": "Reaction roll",
"OSE.details.name": "Name",
"OSE.details.class": "Class",
@ -31,7 +42,7 @@
"OSE.details.experience.award": "XP Award",
"OSE.details.treasure": "Treasure type",
"OSE.details.treasureTable": "Table",
"OSE.details.TreasureTableHint": "Drop a rollable table here to roll the monster treasure",
"OSE.details.treasureTableHint": "Drop a rollable table here to roll the monster treasure",
"OSE.details.morale": "Morale",
"OSE.details.reaction": "Reaction",
"OSE.details.appearing": "NA",
@ -45,7 +56,6 @@
"OSE.Loyalty": "Loyalty Rating",
"OSE.LoyaltyShort": "LR",
"OSE.scores.check": "Attribute Check",
"OSE.scores.details": "Roll 1d20 <= {score} for success",
"OSE.scores.str.long": "Strength",
"OSE.scores.str.short": "STR",
@ -60,7 +70,6 @@
"OSE.scores.cha.long": "Charisma",
"OSE.scores.cha.short": "CHA",
"OSE.saves.check": "Save",
"OSE.saves.details": "Roll 1d20 >= {save} for success",
"OSE.saves.death.short": "D",
"OSE.saves.death.long": "Death Poison",
@ -94,8 +103,6 @@
"OSE.ArmorClass": "Armor Class",
"OSE.ArmorClassShort": "AC",
"OSE.AscArmorClassShort": "AAC",
"OSE.SpellDC": "Spell DC",
"OSE.SpellDCShort": "DC",
"OSE.Thac0": "THAC0",
"OSE.ABShort": "AB",
"OSE.AB": "Attack Bonus",
@ -148,8 +155,6 @@
"OSE.Setting.MovementAuto": "Calculate Movement",
"OSE.Setting.SignificantTreasure": "Significant Treasure Weight",
"OSE.Setting.SignificantTreasureHint": "Weight at which treasure will reduce the movement, only useful for basic encumbrance",
"OSE.Setting.Welcome": "Display Welcome message",
"OSE.Setting.WelcomeHint": "Display this annoying welcome message",
"OSE.items.Equip": "Equip",
"OSE.items.Unequip": "Unequip",
@ -217,7 +222,7 @@
"OSE.messages.AttackFailure": "<b>Attack fails</b> ({bonus})",
"OSE.messages.InflictsDamage": "Inflicts damage!",
"OSE.messages.applyDamage": "Apply Damage",
"OSE.messages.ApplyHealing": "Apply Healing",
"OSE.messages.applyHealing": "Apply Healing",
"OSE.colors.green": "Green",
"OSE.colors.red": "Red",

View File

@ -13,32 +13,37 @@
"OSE.Formula": "Formula",
"OSE.SitMod": "Modificador Situational",
"OSE.Modifier": "Modificador",
"OSE.Modifiers": "Modificadors",
"OSE.RollMode": "Modo Tirada",
"OSE.RollExample": "ej. +1d4",
"OSE.RollFormula": "{label} tirada",
"OSE.details.name": "Nombre",
"OSE.details.class": "Clase",
"OSE.details.title": "Titulo",
"OSE.details.alignment": "Alineamiento",
"OSE.details.level": "Nivel",
"OSE.details.experience.base": "Experiencia",
"OSE.details.experience.bonus": "Bonus Experiencia",
"OSE.details.experience.award": "Premio EXP",
"OSE.details.treasure": "Tipo de Tesoro",
"OSE.details.treasureTable": "Tabla",
"OSE.details.treasureTableHint": "Arrastra una tabla aquí para tirar el tesoro del monstruo",
"OSE.details.morale": "Moral",
"OSE.details.reaction": "Reacción",
"OSE.details.appearing": "NA",
"OSE.Name": "Nombre",
"OSE.Class": "Clase",
"OSE.Title": "Titulo",
"OSE.Alignment": "Alineamiento",
"OSE.Level": "Nivel",
"OSE.Experience": "Experiencia",
"OSE.ExperienceBonus": "Bonus Experiencia",
"OSE.ExperienceAward": "Premio EXP",
"OSE.Treasure": "Tipo de Tesoro",
"OSE.TreasureTable": "Tabla",
"OSE.TreasureTableHint": "Arrastra una tabla aquí para tirar el tesoro del monstruo",
"OSE.Size": "Tamaño",
"OSE.Morale": "Moral",
"OSE.Retainer": "Seguidores",
"OSE.Appearing": "NA",
"OSE.Attack": "Ataque",
"OSE.Encumbrance": "Carga",
"OSE.Retainer": "Seguidores",
"OSE.RetainerWage": "Salario",
"OSE.RetainerUpkeep": "Mantenimiento",
"OSE.Loyalty": "Puntuación Lealtad",
"OSE.LoyaltyShort": "PL",
"OSE.AttributeCheck": "Prueba de Atributo",
"OSE.AttributeCheckDetails": "Tira 1d20 <= {score} para éxito",
"OSE.scores.check": "Prueba de Atributo",
"OSE.scores.details": "Tira 1d20 <= {score} para éxito",
"OSE.scores.str.long": "Fuerza",
"OSE.scores.str.short": "FUE",
"OSE.scores.wis.long": "Sabiduría",
@ -52,8 +57,8 @@
"OSE.scores.cha.long": "Carisma",
"OSE.scores.cha.short": "CAR",
"OSE.SavingThrow": "Salvación",
"OSE.SavingThrowDetails": "Tira 1d20 >= {save} para éxito",
"OSE.saves.check": "Salvación",
"OSE.saves.details": "Tira 1d20 >= {save} para éxito",
"OSE.saves.death.short": "M",
"OSE.saves.death.long": "Veneno o Muerte",
"OSE.saves.wand.short": "V",
@ -71,14 +76,17 @@
"OSE.HealthShort": "PG",
"OSE.HitDice": "Puntos de Golpe",
"OSE.HitDiceShort": "DG",
"OSE.Movement": "Movimiento",
"OSE.MovementDetails": "Detalles de Movimiento",
"OSE.MovementEncounter": "Combate",
"OSE.MovementEncounterShort": "Co",
"OSE.MovementOverland": "Base",
"OSE.MovementOverlandShort": "Ba",
"OSE.MovementExplorationShort": "Ex",
"OSE.MovementShort": "MV",
"OSE.movement.base": "Movimiento",
"OSE.movement.short": "MV",
"OSE.movement.details": "Detalles de Movimiento",
"OSE.movement.encounter.long": "Combate",
"OSE.movement.encounter.short": "Co",
"OSE.movement.overland.long": "Base",
"OSE.movement.overland.short": "Ba",
"OSE.movement.exploration.short": "Ex",
"OSE.movement.exploration.long": "Exploration Movement Rate",
"OSE.ArmorClassNaked": "Sin Armadura",
"OSE.ArmorClass": "Clase de Armadura",
"OSE.ArmorClassShort": "CA",
@ -102,6 +110,7 @@
"OSE.Damage": "Daño",
"OSE.Spellcaster": "Lanzador Conjuros",
"OSE.Language": "Lenguaje",
"OSE.SpokenLanguages": "Lenguajes Hablados",
"OSE.Literacy": "Leer/Esc.",
"OSE.Literate": "Alfabetizado",
@ -115,6 +124,7 @@
"OSE.category.abilities": "Habilidades",
"OSE.category.spells": "Conjuros",
"OSE.category.notes": "Notas",
"OSE.category.description": "Descripción",
"OSE.category.equipment": "Equipo",
"OSE.Setting.IndividualInit": "Iniciativa Individual",
@ -134,8 +144,6 @@
"OSE.Setting.MovementAuto": "Calcular Movimiento",
"OSE.Setting.SignificantTreasure": "Peso de tesoro significativo",
"OSE.Setting.SignificantTreasureHint": "Peso con el que el tesoro reducirá el movimiento, solo útil para el cálculo básico",
"OSE.Setting.Welcome": "Mostrar mensaje de Bienvenida",
"OSE.Setting.WelcomeHint": "Muestra este molesto mensaje de Bienvenida",
"OSE.items.Equip": "Equipar",
"OSE.items.Unequip": "Desequipar",
@ -160,6 +168,8 @@
"OSE.items.roundAttacks": "Ataques usados este Round",
"OSE.items.roundAttacksMax": "Máximo Ataques por Round",
"OSE.items.resetAttacks": "Reiniciar Ataques por Round",
"OSE.items.hasShield": "Tiene un bono de Escudo",
"OSE.items.typeTag": "Escriba una lista de etiquetas separadas por comas, por ejemplo 'Melee, Misile (5'-10' / 11'-20' / 21'-30')'",
"OSE.armor.type": "Tipo Armadura",
"OSE.armor.unarmored": "Sin Armadura",
@ -180,7 +190,7 @@
"OSE.abilities.Requirements": "Requisitos",
"OSE.exploration.check": "Check",
"OSE.exploration.check": "Prueba de Exploración",
"OSE.exploration.details": "Tirar 1d6 <= {expl} para éxito",
"OSE.exploration.ld.long": "Escuchar Ruidos",
"OSE.exploration.ld.short": "Escuchar Ruidos",
@ -209,5 +219,12 @@
"OSE.colors.purple": "Purpura",
"OSE.colors.blue": "Azul",
"OSE.colors.orange": "Naranja",
"OSE.colors.white": "Blanco"
"OSE.colors.white": "Blanco",
"OSE.reaction.check": "Tirada de Reacción",
"OSE.reaction.Hostile": "{name} es Hostil",
"OSE.reaction.Unfriendly": "{name} es Antipático",
"OSE.reaction.Neutral": "{name} es Neutral",
"OSE.reaction.Indifferent": "{name} es Indifferente",
"OSE.reaction.Friendly": "{name} es Amistoso"
}

View File

@ -10,34 +10,51 @@
"OSE.Success": "Succès",
"OSE.Failure": "Échec",
"OSE.dialog.tweaks": "Ajustements",
"OSE.Formula": "Formule",
"OSE.SitMod": "Modificateur de situation",
"OSE.SitMod": "Mod. de situation",
"OSE.Modifier": "Modificateur",
"OSE.RollMode": "Mode de Jet",
"OSE.RollExample": "ex. +1d4",
"OSE.RollFormula": "Lancer de {label}",
"OSE.roll.appearing": "Nombre Apparaissant",
"OSE.roll.morale": "Jet de Moral",
"OSE.roll.hd": "Lancer de Dé de Vie",
"OSE.roll.attackWith": "Attacks with {name}",
"OSE.roll.attacks": "{name} attacks!",
"OSE.roll.save": "Sauvegarde",
"OSE.roll.attribute": "Jet de Caractéristique",
"OSE.roll.details.attribute": "Lancez 1d20 <= {score} pour réussir",
"OSE.roll.exploration": "Test",
"OSE.roll.reaction": "Jet de Réaction",
"OSE.details.name": "Nom",
"OSE.details.class": "Classe",
"OSE.details.title": "Titre",
"OSE.details.alignment": "Alignement",
"OSE.details.level": "Niveau",
"OSE.details.experience.base": "Expérience",
"OSE.details.experience.bonus": "Ajustement d'XP",
"OSE.details.experience.next": "Prochain Niveau",
"OSE.details.experience.award": "XP de Récompense",
"OSE.details.treasure": "Type de Trésor",
"OSE.details.treasureTable": "Table",
"OSE.details.treasureTableHint": "Lâchez une Table aléatoire pour la lier",
"OSE.details.morale": "Moral",
"OSE.details.reaction": "Réaction",
"OSE.details.appearing": "NA",
"OSE.Name": "Nom",
"OSE.Class": "Classe",
"OSE.Title": "Titre",
"OSE.Alignment": "Alignement",
"OSE.Level": "Niveau",
"OSE.Experience": "Expérience",
"OSE.ExperienceBonus": "Expérience supplémentaire",
"OSE.ExperienceAward": "PX de Récompense",
"OSE.Treasure": "Butin",
"OSE.TreasureTable": "Table",
"OSE.TreasureTableHint": "Drop a rollable table here to roll the monster treasure",
"OSE.Morale": "Moral",
"OSE.Retainer": "Sbire",
"OSE.Appearing": "NA",
"OSE.Attack": "Attaque",
"OSE.Encumbrance": "Encombrement",
"OSE.Loyalty": "Score de Loyauté",
"OSE.LoyaltyShort": "LR",
"OSE.Retainer": "Suivant",
"OSE.RetainerWage": "Tarif",
"OSE.RetainerUpkeep": "Entretien",
"OSE.Loyalty": "Loyauté",
"OSE.LoyaltyShort": "LOY",
"OSE.AttributeCheck": "Jet d'Attribute",
"OSE.AttributeCheckDetails": "Lancez 1d20 <= {score} pour réussir",
"OSE.scores.str.long": "Force",
"OSE.scores.str.short": "FOR",
"OSE.scores.wis.long": "Sagesse",
@ -51,48 +68,48 @@
"OSE.scores.cha.long": "Charisme",
"OSE.scores.cha.short": "CHA",
"OSE.SavingThrow": "Sauvegarde",
"OSE.SavingThrowDetails": "Lancez 1d20 >= {save} pour réussir",
"OSE.saves.death.short": "D",
"OSE.saves.death.long": "Mort, Poison",
"OSE.saves.wand.short": "W",
"OSE.saves.wand.long": "Baguette",
"OSE.saves.paralysis.short": "P",
"OSE.saves.paralysis.long": "Paralysie, Petrification",
"OSE.saves.breath.short": "B",
"OSE.saves.details": "Lancez 1d20 >= {save} pour réussir",
"OSE.saves.death.short": "MP",
"OSE.saves.death.long": "Mort Poison",
"OSE.saves.wand.short": "B",
"OSE.saves.wand.long": "Baguettes",
"OSE.saves.paralysis.short": "PP",
"OSE.saves.paralysis.long": "Paralysie Pétrification",
"OSE.saves.breath.short": "S",
"OSE.saves.breath.long": "Souffle",
"OSE.saves.spell.short": "S",
"OSE.saves.spell.long": "Baton, Sorts",
"OSE.saves.magic.long": "Bonus contre Magie",
"OSE.saves.spell.short": "SBB",
"OSE.saves.spell.long": "Sorts Bâtons",
"OSE.saves.magic.long": "Sauv. Magie",
"OSE.Health": "Points de Vie",
"OSE.HealthMax": "Points de Vie Maximaux",
"OSE.HealthShort": "PV",
"OSE.HitDice": "Dé de Vie",
"OSE.HitDiceShort": "DV",
"OSE.Movement": "Score de Mouvement",
"OSE.MovementDetails": "Détail de Mouvement",
"OSE.MovementEncounter": "Mouvement en Rencontre",
"OSE.MovementEncounterShort": "En",
"OSE.MovementOverland": "Mouvement ",
"OSE.MovementOverlandShort": "Ov",
"OSE.MovementExplorationShort": "Ex",
"OSE.MovementShort": "MV",
"OSE.ArmorClassNaked": "Classe d'Armure Nu",
"OSE.movement.base": "Déplacement",
"OSE.movement.short": "Dp",
"OSE.movement.details": "Détail du Déplacement",
"OSE.movement.encounter.long": "Déplacement de Rencontre",
"OSE.movement.encounter.short": "Ren",
"OSE.movement.overland.long": "Déplacement en Extérieur",
"OSE.movement.overland.short": "Ext",
"OSE.movement.exploration.short": "Dp",
"OSE.movement.exploration.long": "Déplacement",
"OSE.ArmorClassNaked": "Sans Armure",
"OSE.ArmorClass": "Classe d'Armure",
"OSE.ArmorClassShort": "CA",
"OSE.AscArmorClassShort": "CAA",
"OSE.SpellDC": "Spell DC",
"OSE.SpellDCShort": "DC",
"OSE.Thac0": "THAC0",
"OSE.ABShort": "BBA",
"OSE.AB": "Bonus d'Attaque",
"OSE.MeleeShort": "MEL",
"OSE.Melee": "Mêlée",
"OSE.MeleeBonus": "Bonus de Mêlée",
"OSE.MissileShort": "MIS",
"OSE.Missile": "Missile",
"OSE.MissileBonus": "Bonus de Missile",
"OSE.MissileShort": "PROJ",
"OSE.Missile": "Projectiles",
"OSE.MissileBonus": "Bonus de Projectile",
"OSE.Initiative": "Initiative",
"OSE.InitiativeBonus": "Bonus d'Initiative",
"OSE.InitiativeShort": "INIT",
@ -101,19 +118,22 @@
"OSE.Damage": "Dégâts",
"OSE.Spellcaster": "Lanceur de Sort",
"OSE.Language": "Langue",
"OSE.SpokenLanguages": "Langues parlées",
"OSE.Literacy": "Alphabétisme",
"OSE.Literate": "Alphabète",
"OSE.LiteracyBasic": "Basic",
"OSE.Illiterate": "Analphabète",
"OSE.NPCReaction": "Réaction PNJ",
"OSE.RetainersMax": "#Sbires",
"OSE.Literacy": "Lire/Écrire",
"OSE.Literate": "Oui",
"OSE.LiteracyBasic": "Basique",
"OSE.Illiterate": "Non",
"OSE.NPCReaction": "Réaction",
"OSE.RetainersMax": "#Suivants",
"OSE.category.attributes": "Attributs",
"OSE.category.attributes": "Caractéristiques",
"OSE.category.inventory": "Inventaire",
"OSE.category.abilities": "Aptitudes",
"OSE.category.spells": "Sorts",
"OSE.category.notes": "Notes",
"OSE.category.languages": "Langues",
"OSE.category.description": "Descriptions",
"OSE.category.equipment": "Équipement",
"OSE.Setting.IndividualInit": "Initiative Individuelle",
@ -128,9 +148,9 @@
"OSE.Setting.EncumbranceHint": "Choisissez comment l'encombrement est calculé",
"OSE.Setting.EncumbranceBasic": "Basique",
"OSE.Setting.EncumbranceDetailed": "Detaillé",
"OSE.Setting.MovementAuto": "Calculer le mouvement",
"OSE.Setting.MovementAuto": "Calculer Déplacement",
"OSE.Setting.SignificantTreasure": "Poids d'un Trésor Significatif",
"OSE.Setting.SignificantTreasureHint": "Poids auquel le Trésor réduit le mouvement. Utilisé pour l'encombrement Basique",
"OSE.Setting.SignificantTreasureHint": "Poids auquel le Trésor réduit le déplacement. Utilisé pour l'encombrement Basique",
"OSE.items.Equip": "Equiper",
"OSE.items.Unequip": "Déséquiper",
@ -147,7 +167,7 @@
"OSE.items.BlindRoll": "Aveugle",
"OSE.items.Damage": "Dégâts",
"OSE.items.Melee": "Mêlée",
"OSE.items.Missile": "Missile",
"OSE.items.Missile": "Projectile",
"OSE.items.Slow": "Lent",
"OSE.items.ArmorAC": "CA",
"OSE.items.ArmorAAC": "CAA",
@ -155,6 +175,8 @@
"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 (510 / 1120 / 2130)'",
"OSE.armor.type": "Type d'Armure",
"OSE.armor.unarmored": "Sans Armure",
@ -175,28 +197,27 @@
"OSE.abilities.Requirements": "Prérequis",
"OSE.exploration.check": "Test",
"OSE.exploration.details": "Lancer 1d6 <= {expl} pour réussir",
"OSE.exploration.ld.long": "Listen at Door",
"OSE.exploration.ld.short": "Listen Door",
"OSE.exploration.ld.abrev": "LD",
"OSE.exploration.od.long": "Open Stuck Door",
"OSE.exploration.od.short": "Open Door",
"OSE.exploration.od.abrev": "OD",
"OSE.exploration.sd.long": "Find Secret Door",
"OSE.exploration.sd.short": "Secret Door",
"OSE.exploration.sd.abrev": "SD",
"OSE.exploration.ft.long": "Find Room Trap",
"OSE.exploration.ft.short": "Find Trap",
"OSE.exploration.ft.abrev": "FT",
"OSE.exploration.ld.long": "Ecoute aux Portes",
"OSE.exploration.ld.short": "Eco. Porte",
"OSE.exploration.ld.abrev": "EP",
"OSE.exploration.od.long": "Ouverture de Portes",
"OSE.exploration.od.short": "Ouv. Porte",
"OSE.exploration.od.abrev": "OP",
"OSE.exploration.sd.long": "Détection des Passages Secrets",
"OSE.exploration.sd.short": "Dét. Secrets",
"OSE.exploration.sd.abrev": "DS",
"OSE.exploration.ft.long": "Détecter les Pièges",
"OSE.exploration.ft.short": "Dét. Pièges",
"OSE.exploration.ft.abrev": "DP",
"OSE.messages.GetExperience": "{name} a gagné {value} points d'expérience !",
"OSE.messages.InflictsDamage": "Inflige des dégâts !",
"OSE.messages.applyDamage": "Appliquer les dégâts",
"OSE.messages.applyHealing": "Appliquer les soins",
"OSE.messages.AttackSuccess": "<b>Touche une CA de {result}!</b> ({bonus})",
"OSE.messages.AttackAscendingSuccess": "<b>Touche une CAA de {result}!</b>",
"OSE.messages.AttackFailure": "<b>L'Attaque échoue</b> ({bonus})",
"OSE.messages.InflictsDamage": "Inflige des dégâts !",
"OSE.ChatContextDamage": "Appliquer les dégâts",
"OSE.ChatContextHealing": "Appliquer les soins",
"OSE.colors.green": "Vert",
"OSE.colors.red": "Rouge",
@ -204,5 +225,11 @@
"OSE.colors.purple": "Violet",
"OSE.colors.blue": "Bleu",
"OSE.colors.orange": "Orange",
"OSE.colors.white": "Blanc"
"OSE.colors.white": "Blanc",
"OSE.reaction.Hostile": "{name} est Hostile",
"OSE.reaction.Unfriendly": "{name} est Inamical",
"OSE.reaction.Neutral": "{name} est Neutre",
"OSE.reaction.Indifferent": "{name} est Indifférent",
"OSE.reaction.Friendly": "{name} est Amical"
}

View File

@ -235,7 +235,7 @@ export class OseActorSheet extends ActorSheet {
if (this.options.editable && canConfigure) {
buttons = [
{
label: "Tweaks",
label: game.i18n.localize("OSE.dialog.tweaks"),
class: "configure-actor",
icon: "fas fa-code",
onclick: (ev) => this._onConfigureActor(ev),

View File

@ -87,13 +87,12 @@ export class OseActor extends Actor {
data: data,
skipDialog: skip,
speaker: ChatMessage.getSpeaker({ actor: this }),
flavor: `${label} ${game.i18n.localize("OSE.saves.check")}`,
title: `${label} ${game.i18n.localize("OSE.saves.check")}`,
flavor: `${label} ${game.i18n.localize("OSE.roll.save")}`,
title: `${label} ${game.i18n.localize("OSE.roll.save")}`,
});
}
rollMorale(options = {}) {
const label = game.i18n.localize(`OSE.details.morale`);
const rollParts = ["2d6"];
const data = {
@ -113,13 +112,13 @@ export class OseActor extends Actor {
data: data,
skipDialog: true,
speaker: ChatMessage.getSpeaker({ actor: this }),
flavor: game.i18n.localize("OSE.morale.check"),
title: game.i18n.localize("OSE.morale.check"),
flavor: game.i18n.localize("OSE.roll.morale"),
title: game.i18n.localize("OSE.roll.morale"),
});
}
rollLoyalty(options = {}) {
const label = game.i18n.localize(`OSE.Loyalty`);
const label = game.i18n.localize(`OSE.roll.loyalty`);
const rollParts = ["2d6"];
const data = {
@ -139,8 +138,8 @@ export class OseActor extends Actor {
data: data,
skipDialog: true,
speaker: ChatMessage.getSpeaker({ actor: this }),
flavor: `${label} ${game.i18n.localize("OSE.Roll")}`,
title: `${label} ${game.i18n.localize("OSE.Roll")}`,
flavor: label,
title: label,
});
}
@ -214,13 +213,13 @@ export class OseActor extends Actor {
data: data,
skipDialog: skip,
speaker: ChatMessage.getSpeaker({ actor: this }),
flavor: `${label} ${game.i18n.localize("OSE.scores.check")}`,
title: `${label} ${game.i18n.localize("OSE.scores.check")}`,
flavor: `${label} ${game.i18n.localize("OSE.roll.attribute")}`,
title: `${label} ${game.i18n.localize("OSE.roll.attribute")}`,
});
}
rollHitDice(options = {}) {
const label = game.i18n.localize(`OSE.HitDice`);
const label = game.i18n.localize(`OSE.roll.hd`);
const rollParts = [this.data.data.hp.hd];
const data = {
@ -239,8 +238,8 @@ export class OseActor extends Actor {
data: data,
skipDialog: true,
speaker: ChatMessage.getSpeaker({ actor: this }),
flavor: `${label} ${game.i18n.localize("OSE.Roll")}`,
title: `${label} ${game.i18n.localize("OSE.Roll")}`,
flavor: label,
title: label,
});
}
@ -301,8 +300,8 @@ export class OseActor extends Actor {
data: data,
skipDialog: skip,
speaker: ChatMessage.getSpeaker({ actor: this }),
flavor: `${label} ${game.i18n.localize("OSE.exploration.check")}`,
title: `${label} ${game.i18n.localize("OSE.exploration.check")}`,
flavor: `${label} ${game.i18n.localize("OSE.roll.exploration")}`,
title: `${label} ${game.i18n.localize("OSE.roll.exploration")}`,
});
}

View File

@ -11,13 +11,13 @@ export const addChatMessageContextOptions = function(html, options) {
let canApply = li => canvas.tokens.controlled.length && li.find(".dice-roll").length;
options.push(
{
name: game.i18n.localize("OSE.messages.ApplyDamage"),
name: game.i18n.localize("OSE.messages.applyDamage"),
icon: '<i class="fas fa-user-minus"></i>',
condition: canApply,
callback: li => applyChatCardDamage(li, 1)
},
{
name: game.i18n.localize("OSE.messages.ApplyHealing"),
name: game.i18n.localize("OSE.messages.applyHealing"),
icon: '<i class="fas fa-user-plus"></i>',
condition: canApply,
callback: li => applyChatCardDamage(li, -1)

View File

@ -18,7 +18,7 @@ export class OseEntityTweaks extends FormApplication {
* @type {String}
*/
get title() {
return `${this.object.name}: OSE Tweaks`;
return `${this.object.name}: ${game.i18n.localize('OSE.dialog.tweaks')}`;
}
/* -------------------------------------------- */

View File

@ -126,8 +126,8 @@ export class OseItem extends Item {
data: data,
skipDialog: true,
speaker: ChatMessage.getSpeaker({ actor: this }),
flavor: `${label} ${game.i18n.localize("OSE.Roll")}`,
title: `${label} ${game.i18n.localize("OSE.Roll")}`,
flavor: game.i18n.format("OSE.RollFormula", {label: label}),
title: game.i18n.format("OSE.RollFormula", {label: label}),
});
}

View File

@ -19,7 +19,7 @@ export class OseItemSheet extends ItemSheet {
return mergeObject(super.defaultOptions, {
classes: ["ose", "sheet", "item"],
width: 520,
height: 380,
height: 390,
resizable: false,
tabs: [
{

View File

@ -22,13 +22,13 @@
</div>
{{#if (eq this.type 'character')}}
<div class="form-group">
<label>{{localize "OSE.experience.next"}}</label>
<label>{{localize "OSE.details.experience.next"}}</label>
<div class="form-fields">
<input type="text" name="data.details.xp.next" id="experiencenext" value="{{data.details.xp.next}}" />
</div>
</div>
<div class="form-group">
<label>{{localize "OSE.experience.bonus"}} (%)</label>
<label>{{localize "OSE.details.experience.bonus"}} (%)</label>
<div class="form-fields">
<input type="text" name="data.details.xp.bonus" id="experience" value="{{data.details.xp.bonus}}" />
</div>

View File

@ -42,7 +42,7 @@
<li class="flex2">
<input type="text" name="data.details.xp.value" value="{{data.details.xp.value}}" data-dtype="Number"
/>
<label>{{localize 'OSE.experience.base'}}</label>
<label>{{localize 'OSE.details.experience.base'}}</label>
{{#if data.details.xp.bonus}}
<span class="xp-bonus">+{{data.details.xp.bonus}}%</span>
{{/if}}

View File

@ -7,46 +7,45 @@
<li class="flex2 flexrow check-field">
<div>
<input type="text" name="data.details.alignment" value="{{data.details.alignment}}" />
<label>{{localize 'OSE.Alignment'}}</label>
<label>{{localize 'OSE.details.alignment'}}</label>
</div>
<div class="check reaction-check" title="{{localize 'OSE.ReactionCheck'}}"><a><i class="fas fa-dice"></i></a></div>
<div class="check reaction-check" title="{{localize 'OSE.roll.reaction'}}"><a><i class="fas fa-dice"></i></a></div>
</li>
<li class="flexrow check-field" data-check="dungeon">
<div>
<input type="text" name="data.details.appearing.d" value="{{data.details.appearing.d}}" />
<label>{{localize 'OSE.Appearing'}}</label>
<label>{{localize 'OSE.details.appearing'}}</label>
</div>
<div class="check appearing-check" title="{{localize 'OSE.AppearingCheck'}}"><a><i class="fas fa-dice"></i></a></div>
<div class="check appearing-check" title="{{localize 'OSE.roll.appearing'}}"><a><i class="fas fa-dice"></i></a></div>
</li>
<li class="flexrow check-field" data-check="wilderness">
<div>
(<input type="text" name="data.details.appearing.w" value="{{data.details.appearing.w}}" />)
<label>{{localize 'OSE.Appearing'}}</label>
</div>
<div class="check appearing-check" title="{{localize 'OSE.AppearingCheck'}}"><a><i class="fas fa-dice"></i></a></div>
<div class="check appearing-check" title="{{localize 'OSE.roll.appearing'}}"><a><i class="fas fa-dice"></i></a></div>
</li>
{{#if config.morale}}
<li class="flexrow check-field">
<div>
<input type="text" name="data.details.morale" value="{{data.details.morale}}" />
<label>{{localize 'OSE.Morale'}}</label>
<label>{{localize 'OSE.details.morale'}}</label>
</div>
<div class="check morale-check" title="{{localize 'OSE.MoraleCheck'}}"><a><i class="fas fa-dice"></i></a></div>
<div class="check morale-check" title="{{localize 'OSE.roll.morale'}}"><a><i class="fas fa-dice"></i></a></div>
</li>
{{/if}}
</ul>
<ul class="summary flexrow">
<li class="flex3">
<input type="text" name="data.details.xp" value="{{data.details.xp}}" />
<label>{{localize 'OSE.ExperienceAward'}}</label>
<label>{{localize 'OSE.details.experience.award'}}</label>
</li>
<li class="flex3">
<input type="text" name="data.details.treasure.type" value="{{data.details.treasure.type}}" />
<label>{{localize 'OSE.Treasure'}}</label>
<label>{{localize 'OSE.details.treasure'}}</label>
</li>
<li title="{{localize 'OSE.TreasureTableHint'}}">
<li title="{{localize 'OSE.details.treasureTableHint'}}">
<div>{{data.details.treasure.table}}</div>
<label>{{localize 'OSE.TreasureTable'}}</label>
<label>{{localize 'OSE.details.treasureTable'}}</label>
</li>
</ul>
</section>

View File

@ -24,7 +24,7 @@
{{#if data.save}}
<button data-action="save" data-save="{{data.save}}" disabled>
{{lookup config.saves_long data.save}} {{ localize "OSE.saves.check" }}
{{lookup config.saves_long data.save}} {{ localize "OSE.roll.save" }}
</button>
{{/if}}