mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-27 15:45:53 -05:00
added fix to process.env.LANG = "C"
This commit is contained in:
parent
7b335661d7
commit
f8cb33d5bf
@ -45,7 +45,11 @@ var msh = {};
|
||||
var translation = JSON.parse(msh.translation);
|
||||
|
||||
var lang = require('util-language').current;
|
||||
if (lang == null) { lang = 'en_us'; }
|
||||
if (lang == null) { lang = 'en'; }
|
||||
if (lang == "C"){
|
||||
lang = 'en';
|
||||
console.log("Langauge envronment variable was not set (process.env.LANG). Defaulting to English ('en').\nSee the agent-translations.json file for a list of current languages that are implemented\nUsage: meshcentral -lang=en\n");
|
||||
}
|
||||
if (process.argv.getParameter('lang', lang) == null)
|
||||
{
|
||||
console.log('\nCurrent Language: ' + lang + '\n');
|
||||
@ -60,7 +64,8 @@ else
|
||||
if (translation[lang.split('-')[0]] == null)
|
||||
{
|
||||
console.log('Language: ' + lang + ' is not translated.');
|
||||
console.log("try: './meshcentral -lang=en_us'"
|
||||
console.log("try: './meshcentral -lang=en' for English");
|
||||
console.log("See the agent-translations.json file for a list of current languages that are implemented.")
|
||||
process.exit();
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user