update localization

This commit is contained in:
TheLastScrub
2023-07-29 10:31:59 -07:00
parent 6568d58ca8
commit 328f2a5f65
7 changed files with 26 additions and 7 deletions
+4 -1
View File
@@ -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"
}
+4 -1
View File
@@ -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"
}
+4 -1
View File
@@ -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"
}
+4 -1
View File
@@ -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": "全てのチェックを消す"
}
+4 -1
View File
@@ -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"
}
+5 -1
View File
@@ -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;
}
}
+1 -1
View File
@@ -470,7 +470,7 @@
<ol class="items-list">
<li class="item flexrow item-header">
<div class="item-icon"><a class="clear-all-bond-damage-checks" title="Clear All"><i class="fas fa-arrow-rotate-left"></i></a></div>
<div class="item-icon"><a class="clear-all-bond-damage-checks" title="{{localizeWithFallback 'DG.Generic.ClearAll' 'Clear All'}}"><i class="fas fa-arrow-rotate-left"></i></a></div>
<div class="item-image"></div>
<div class="item-name">{{localize 'DG.Bonds.Name'}}</div>
<div class="item-name">{{localize 'DG.Bonds.Relationship'}}</div>