Changed zh-chx to zh-hanx for agent languages in msh.

This commit is contained in:
Ylian Saint-Hilaire 2020-12-16 11:33:24 -08:00
parent f2a52d27df
commit 22beb63562
1 changed files with 6 additions and 1 deletions

View File

@ -1380,7 +1380,12 @@ function CreateMeshCentralServer(config, args) {
obj.updateMeshTools(); obj.updateMeshTools();
// Load MeshAgent translation strings // Load MeshAgent translation strings
try { obj.agentTranslations = JSON.stringify(JSON.parse(obj.fs.readFileSync(obj.path.join(__dirname, 'agents', 'agent-translations.json')).toString())); } catch (ex) { } try {
var translations = JSON.parse(obj.fs.readFileSync(obj.path.join(__dirname, 'agents', 'agent-translations.json')).toString());
if (translations['zh-chs']) { translations['zh-hans'] = translations['zh-chs']; delete translations['zh-chs']; }
if (translations['zh-cht']) { translations['zh-hant'] = translations['zh-cht']; delete translations['zh-cht']; }
obj.agentTranslations = JSON.stringify(translations);
} catch (ex) { }
// Load the list of mesh agents and install scripts // Load the list of mesh agents and install scripts
if (obj.args.noagentupdate == 1) { for (i in obj.meshAgentsArchitectureNumbers) { obj.meshAgentsArchitectureNumbers[i].update = false; } } if (obj.args.noagentupdate == 1) { for (i in obj.meshAgentsArchitectureNumbers) { obj.meshAgentsArchitectureNumbers[i].update = false; } }