diff --git a/lang/en.json b/lang/en.json index 07a8e41..563537d 100644 --- a/lang/en.json +++ b/lang/en.json @@ -60,11 +60,77 @@ "DG.Attributes.HP": "HP", "DG.Attributes.WP": "WP", "DG.Attributes.SAN": "SAN", + "DG.Attributes.str": "STR", + "DG.Attributes.con": "CON", + "DG.Attributes.dex": "DEX", + "DG.Attributes.int": "INT", + "DG.Attributes.pow": "POW", + "DG.Attributes.cha": "CHA", "DG.Navigation.Skills": "Skills", "DG.Navigation.Physical": "Physical", "DG.Navigation.Mental": "Mental", "DG.Navigation.Gear": "Gear", "DG.Navigation.CV": "C.V.", - "DG.Navigation.Contacts": "Contacts" + "DG.Navigation.Contacts": "Contacts", + + "DG.Roll.Rolling": "Rolling", + "DG.Roll.Target": "Target: ", + "DG.Roll.Success": "Success", + "DG.Roll.Failure": "Failure", + "DG.Roll.Critical": "Critical", + "DG.Roll.Lethality": "Lethality", + "DG.Roll.Lethal": "Lethal", + "DG.Roll.For": "For", + "DG.Roll.Damage": "Damage", + "DG.Roll.RollingDamageFor": "Rolling DAMAGE for", + "DG.Roll.Or": "Or", + + "DG.Physical.Wounds": "Wounds", + "DG.Physical.FirstAidLabel": "First Aid Has Already Been Attempted: ", + + "DG.Generic.AddButtonLabel": "Add", + + "DG.Mental.BreakingPoint": "Breaking Point: ", + "DG.Mental.Reset": "Reset", + "DG.Mental.SanityLossIncidentsLabel": "Incidents of SAN Loss Without Going Insane", + "DG.Mental.Violence": "Violence", + "DG.Mental.Helplessness": "Helplessness", + "DG.Mental.AdaptedToViolence": "Adapted to Violence", + "DG.Mental.AdaptedToHelplessness": "Adapted to Helplessness", + "DG.Mental.Motivations": "Motivations", + "DG.Mental.Disorders": "Disorders", + + "DG.Gear.Weapons": "WEAPONS", + "DG.Gear.Armor": "ARMOR", + "DG.Gear.OtherGear": "OTHER GEAR", + "DG.Gear.Name": "Name", + "DG.Gear.DamageOrLethality": "Damage/Lethality", + "DG.Gear.ArmorPiercing": "Armor Piercing", + "DG.Gear.ArmorRating": "Armor Rating", + "DG.Gear.Equipped": "EQUIPPED", + + "DG.CV.Sex": "Sex", + "DG.CV.SexPlaceholder": "Sex", + "DG.CV.AgeAndDoB": "Age and D.O.B.", + "DG.CV.AgeAndDoBPlaceholder": "Age & Date of Birth", + "DG.CV.Employer": "Employer", + "DG.CV.EmployerPlaceholder": "Employer or Work History", + "DG.CV.Nationality": "Nationality", + "DG.CV.NationalityPlaceholder": "Nationality", + "DG.CV.Education": "Education", + "DG.CV.EducationPlaceholder": "Education", + "DG.CV.PhysicalDescriptionLabel": "Physical Description/Notes", + + "DG.Bonds.Bond": "Bond", + "DG.Bonds.Name": "Name", + "DG.Bonds.Score": "Score", + "DG.Bonds.NewBond": "New Bond", + + "DG.ItemTypes.weapon": "Weapon", + "DG.ItemTypes.armor": "Armor", + "DG.ItemTypes.motivation": "Motivation", + "DG.ItemTypes.bond": "Bond", + "DG.ItemTypes.gear": "Gear", + "DG.ItemTypes.NewPrefix": "New " } \ No newline at end of file diff --git a/lang/ja.json b/lang/ja.json index 2230b95..4b9cf83 100644 --- a/lang/ja.json +++ b/lang/ja.json @@ -59,12 +59,78 @@ "DG.Attributes.HP": "HP", "DG.Attributes.WP": "WP", - "DG.Attributes.SAN": "SAN", + "DG.Attributes.SAN": "正気", + "DG.Attributes.str": "筋力", + "DG.Attributes.con": "耐久力", + "DG.Attributes.dex": "敏捷力", + "DG.Attributes.int": "知力", + "DG.Attributes.pow": "判断力", + "DG.Attributes.cha": "魅力", "DG.Navigation.Skills": "技術", "DG.Navigation.Physical": "健康", "DG.Navigation.Mental": "精神", - "DG.Navigation.Gear": "道義", - "DG.Navigation.CV": "装備", - "DG.Navigation.Contacts": "絆" + "DG.Navigation.Gear": "装備", + "DG.Navigation.CV": "履歴書", + "DG.Navigation.Contacts": "絆", + + "DG.Roll.Rolling": "ローリング", + "DG.Roll.Target": "リミット", + "DG.Roll.Success": "成功", + "DG.Roll.Failure": "失敗", + "DG.Roll.Critical": "クリティカル", + "DG.Roll.Lethality": "致命率", + "DG.Roll.Lethal": "致命傷", + "DG.Roll.For": " : ", + "DG.Roll.Damage": "ダメージ", + "DG.Roll.RollingDamageFor": "ダメージ・ロール:", + "DG.Roll.Or": " / ", + + "DG.Physical.Wounds": "傷", + "DG.Physical.FirstAidLabel": "応急処置は既に施された", + + "DG.Generic.AddButtonLabel": "加える", + + "DG.Mental.BreakingPoint": "ブレーキポイント: ", + "DG.Mental.Reset": "リセット", + "DG.Mental.SanityLossIncidentsLabel": "正気を失わずにあった正気のダメージの事件", + "DG.Mental.Violence": "暴力", + "DG.Mental.Helplessness": "無力", + "DG.Mental.AdaptedToViolence": "暴力無効", + "DG.Mental.AdaptedToHelplessness": "無力無効", + "DG.Mental.Motivations": "モチベーション", + "DG.Mental.Disorders": "精神障害", + + "DG.Gear.Weapons": "武器", + "DG.Gear.Armor": "武具", + "DG.Gear.OtherGear": "他の装備", + "DG.Gear.Name": "名前", + "DG.Gear.DamageOrLethality": "ダメージ・致命率", + "DG.Gear.ArmorPiercing": "アーマーピアス", + "DG.Gear.ArmorRating": "アーマースコア", + "DG.Gear.Equipped": "装備中", + + "DG.CV.Sex": "性別", + "DG.CV.SexPlaceholder": "性別", + "DG.CV.AgeAndDoB": "年齢と誕生日", + "DG.CV.AgeAndDoBPlaceholder": "年齢と誕生日", + "DG.CV.Employer": "雇用者", + "DG.CV.EmployerPlaceholder": "雇用者と職歴", + "DG.CV.Nationality": "国籍", + "DG.CV.NationalityPlaceholder": "国籍", + "DG.CV.Education": "教育", + "DG.CV.EducationPlaceholder": "教育", + "DG.CV.PhysicalDescriptionLabel": "身体的特徴とメモ", + + "DG.Bonds.Bond": "絆", + "DG.Bonds.Name": "名前", + "DG.Bonds.Score": "スコア", + "DG.Bonds.NewBond": "新しい絆", + + "DG.ItemTypes.weapon": "武器", + "DG.ItemTypes.armor": "武具", + "DG.ItemTypes.motivation": "モチベーション", + "DG.ItemTypes.bond": "絆", + "DG.ItemTypes.gear": "装備", + "DG.ItemTypes.NewPrefix": "新" } \ No newline at end of file diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index 1c238cf..fc344db 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -214,7 +214,8 @@ export class DeltaGreenActorSheet extends ActorSheet { // Grab any data associated with this control. const data = duplicate(header.dataset); // Initialize a default name. - const name = `New ${type.capitalize()}`; + //const name = `New ${type.capitalize()}`; + const name = game.i18n.localize("DG.ItemTypes.NewPrefix") + game.i18n.localize("DG.ItemTypes." + type) // Prepare the item object. const itemData = { name: name, @@ -261,22 +262,23 @@ export class DeltaGreenActorSheet extends ActorSheet { // check the 'data-target="something" property to determine how to grab the target for the roll if(rollType === "skill" || rollType === "typeskill"){ targetVal = dataset.target; + label = game.i18n.localize(label).toUpperCase(); sendPercentileTestToChat(this.actor, label, targetVal); } else if(dataset.target === "statistic.x5"){ let stat = this.actor.data.data.statistics[key]; targetVal = stat.x5; + label = game.i18n.localize("DG.Attributes." + key).toUpperCase(); sendPercentileTestToChat(this.actor, label, targetVal); } else if(rollType === "sanity"){ targetVal = this.actor.data.data.sanity.value; - //label += `, Target: ${targetVal}`; + label = game.i18n.localize("DG.Attributes.SAN").toUpperCase(); sendPercentileTestToChat(this.actor, label, targetVal); } else if(rollType === "damage"){ // damage roll, not a skill check label = dataset.label ? dataset.label : ''; - sendDamageRollToChat(this.actor, label, dataset.roll); } else if(rollType === "lethality"){ diff --git a/module/roll/roll.js b/module/roll/roll.js index 9a31e54..d3c95bb 100644 --- a/module/roll/roll.js +++ b/module/roll/roll.js @@ -4,7 +4,7 @@ export function sendPercentileTestToChat(actor, skill, target){ let isCritical = false; let isSuccess = false; let html = ''; - let label = `Rolling ${skill.toUpperCase()} Target ${target}`; + let label = `${game.i18n.localize("DG.Roll.Rolling")} ${skill} ${game.i18n.localize("DG.Roll.Target")} ${target}`; let resultString = ''; let styleOverride = ''; @@ -15,11 +15,11 @@ export function sendPercentileTestToChat(actor, skill, target){ } if(isCritical){ - resultString = 'CRITICAL '; + resultString = `${game.i18n.localize("DG.Roll.Critical")} `; } if(isSuccess){ - resultString += "Success"; + resultString += `${game.i18n.localize("DG.Roll.Success")}`; if(isCritical){ resultString = resultString.toUpperCase() + '!'; @@ -27,7 +27,7 @@ export function sendPercentileTestToChat(actor, skill, target){ } } else{ - resultString += "Failure"; + resultString += `${game.i18n.localize("DG.Roll.Failure")}`; if(isCritical){ resultString = resultString.toUpperCase() + '!'; @@ -123,17 +123,17 @@ export function sendPercentileTestToChat(actor, skill, target){ let isLethal = false; let html = ''; - let label = `Rolling LETHALITY for ${weaponName.toUpperCase()} Target ${target}`; + let label = `${game.i18n.localize("DG.Roll.Rolling")} ${game.i18n.localize("DG.Roll.Lethality").toUpperCase()} ${game.i18n.localize("DG.Roll.For")} ${weaponName.toUpperCase()} ${game.i18n.localize("DG.Roll.Target")} ${target}`; let resultString = ''; let styleOverride = ''; if(skillCheckTotal <= target){ isLethal = true; - resultString = "LETHAL"; + resultString = `${game.i18n.localize("DG.Roll.Lethal").toUpperCase()}`; styleOverride="color: red"; } else{ - resultString = "Fail"; + resultString = `${game.i18n.localize("DG.Roll.Failure")}`; } html = `
`; - html += ` d100 OR d10 + d10`; + html += ` d100 ${game.i18n.localize("DG.Roll.Or").toUpperCase()} d10 + d10`; html += ` ${roll.total}`; html += `
`; html += `