diff --git a/lang/ca.json b/lang/ca.json index 56c1096..da51d56 100644 --- a/lang/ca.json +++ b/lang/ca.json @@ -244,5 +244,8 @@ "DG.VehicleSheet.NotesTabName": "Notes", "DG.VehicleSheet.GearTabName": "Gear", "DG.VehicleSheet.NotesLabel": "NOTES", - "DG.VehicleSheet.DescriptionPlaceHolder": "Vehicle Description" + "DG.VehicleSheet.DescriptionPlaceHolder": "Vehicle Description", + + "DG.Generic.CheckDamagedBondsBoxUntilNextHomeScene": "Check a damaged Bond's box until the next Home Scene ends.", + "DG.Generic.ClearAll": "Clear All" } diff --git a/lang/en.json b/lang/en.json index 724e04b..19a602a 100644 --- a/lang/en.json +++ b/lang/en.json @@ -250,5 +250,8 @@ "DG.VehicleSheet.NotesTabName": "Notes", "DG.VehicleSheet.GearTabName": "Gear", "DG.VehicleSheet.NotesLabel": "NOTES", - "DG.VehicleSheet.DescriptionPlaceHolder": "Vehicle Description" + "DG.VehicleSheet.DescriptionPlaceHolder": "Vehicle Description", + + "DG.Generic.CheckDamagedBondsBoxUntilNextHomeScene": "Check a damaged Bond's box until the next Home Scene ends.", + "DG.Generic.ClearAll": "Clear All" } \ No newline at end of file diff --git a/lang/es.json b/lang/es.json index 40dce1b..b48e467 100644 --- a/lang/es.json +++ b/lang/es.json @@ -255,5 +255,8 @@ "TYPES.Item.armor": "Armor", "TYPES.Item.motivation": "Motivation", "TYPES.Item.bond": "Bond", - "TYPES.Item.gear": "Gear" + "TYPES.Item.gear": "Gear", + + "DG.Generic.CheckDamagedBondsBoxUntilNextHomeScene": "Check a damaged Bond's box until the next Home Scene ends.", + "DG.Generic.ClearAll": "Clear All" } \ No newline at end of file diff --git a/lang/ja.json b/lang/ja.json index 90f65c3..c085f5b 100644 --- a/lang/ja.json +++ b/lang/ja.json @@ -244,5 +244,8 @@ "DG.VehicleSheet.NotesTabName": "ノート", "DG.VehicleSheet.GearTabName": "装備", "DG.VehicleSheet.NotesLabel": "ノート", - "DG.VehicleSheet.DescriptionPlaceHolder": "" + "DG.VehicleSheet.DescriptionPlaceHolder": "", + + "DG.Generic.CheckDamagedBondsBoxUntilNextHomeScene": "すぎのホーム・シーヌまで、傷つけた絆のボックスにチェクを", + "DG.Generic.ClearAll": "全てのチェックを消す" } \ No newline at end of file diff --git a/lang/pt-BR.json b/lang/pt-BR.json index 1c3e126..41ae1a9 100644 --- a/lang/pt-BR.json +++ b/lang/pt-BR.json @@ -210,5 +210,8 @@ "DG.ImpossibleLanscapes.CorruptionFirstHalf": "Corrup", "DG.ImpossibleLanscapes.CorruptionSecondHalf": "ção", "DG.ImpossibleLanscapes.Gift": "Dom", - "DG.ImpossibleLanscapes.Insight": "Intuição" + "DG.ImpossibleLanscapes.Insight": "Intuição", + + "DG.Generic.CheckDamagedBondsBoxUntilNextHomeScene": "Check a damaged Bond's box until the next Home Scene ends.", + "DG.Generic.ClearAll": "Clear All" } \ No newline at end of file diff --git a/module/other/utility-functions.js b/module/other/utility-functions.js index e4782a8..9d4d0ea 100644 --- a/module/other/utility-functions.js +++ b/module/other/utility-functions.js @@ -8,13 +8,17 @@ export function localizeWithFallback(key, fallback){ return translatedValue; } else{ + + console.warn(`Untranslated localization key '${key}'.`); + // can't have single quotes in a handlebars string literal input, so sort of hack in an escape character for them. fallback = fallback.replace("'", "'"); + return fallback; } } catch(ex){ - console.log(ex); + console.warn(ex); return fallback; } } \ No newline at end of file diff --git a/templates/actor/actor-sheet.html b/templates/actor/actor-sheet.html index 9ce4e78..b978309 100644 --- a/templates/actor/actor-sheet.html +++ b/templates/actor/actor-sheet.html @@ -470,7 +470,7 @@