forked from mirrors/0ad
Support translation of mod labels and description.
Differential Revision: https://code.wildfiregames.com/D1083 Reviewed By: Vladislav This was SVN commit r20614.
This commit is contained in:
@@ -58,6 +58,8 @@ function loadMods()
|
||||
else
|
||||
warn("Skipping mod '" + mod + "' which does not define '" + property + "'.");
|
||||
|
||||
translateObjectKeys(g_Mods, ["label", "description"]);
|
||||
|
||||
deepfreeze(g_Mods);
|
||||
|
||||
g_ModsEnabled = Engine.ConfigDB_GetValue("user", "mod.enabledmods").split(/\s+/).filter(folder => !!g_Mods[folder]);
|
||||
|
||||
@@ -293,6 +293,18 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"extractor": "json",
|
||||
"filemasks": [
|
||||
"mod.json"
|
||||
],
|
||||
"options": {
|
||||
"keywords": [
|
||||
"label",
|
||||
"description"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"extractor": "json",
|
||||
"filemasks": [
|
||||
|
||||
Reference in New Issue
Block a user