Fix trigger difficulty level (9daa7520ef) for translation

Discussed with elexis

Trac Tickets: #4931

Differential Revision: https://code.wildfiregames.com/D1207
This was SVN commit r20790.
This commit is contained in:
mimo
2018-01-07 17:37:17 +00:00
parent a2e93de942
commit e50beaedc0
3 changed files with 16 additions and 3 deletions
@@ -1575,7 +1575,7 @@ function reloadTriggerDifficulties()
g_TriggerDifficultyList = prepareForDropdown(
triggerDifficultyList.map(diff => ({
"Id": diff.Difficulty,
"Title": diff.Name,
"Title": diff.Title,
"Description": diff.Tooltip,
"Default": diff.Name == g_GameAttributes.settings.SupportedTriggerDifficulties.Default
})));
+9 -1
View File
@@ -599,9 +599,17 @@
{
"extractor": "json",
"filemasks": [
"simulation/data/settings/map_sizes.json",
"simulation/data/settings/trigger_difficulties.json"
],
"options": {
"keywords": ["Title", "Tooltip"]
}
},
{
"extractor": "json",
"filemasks": [
"simulation/data/settings/map_sizes.json",
],
"options": {
"keywords": [
"Name",
@@ -1,30 +1,35 @@
{
"TranslatedKeys": ["Name", "Tooltip"],
"TranslatedKeys": ["Title", "Tooltip"],
"Data":
[
{
"Difficulty": 1,
"Name": "Very Easy",
"Title": "Very Easy",
"Tooltip": "Choose this difficulty if you are discovering 0 A.D."
},
{
"Difficulty": 2,
"Name": "Easy",
"Title": "Easy",
"Tooltip": "Choose this difficulty if you do not like being knocked down."
},
{
"Difficulty": 3,
"Name": "Medium",
"Title": "Medium",
"Tooltip": "Choose this difficulty if you have already a good experience with 0 A.D."
},
{
"Difficulty": 4,
"Name": "Hard",
"Title": "Hard",
"Tooltip": "Choose this difficulty if you want to be really challenged."
},
{
"Difficulty": 5,
"Name": "Very Hard",
"Title": "Very Hard",
"Tooltip": "Choose this difficulty if you do not mind being swept out."
}
]