add more detail on no language set for translation

also made default langauge 'en_us' instead of 'en'
This commit is contained in:
reddn 2022-06-01 03:58:30 -04:00 committed by GitHub
parent f295d2f780
commit 7b335661d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ var msh = {};
var translation = JSON.parse(msh.translation);
var lang = require('util-language').current;
if (lang == null) { lang = 'en'; }
if (lang == null) { lang = 'en_us'; }
if (process.argv.getParameter('lang', lang) == null)
{
console.log('\nCurrent Language: ' + lang + '\n');
@ -60,6 +60,7 @@ else
if (translation[lang.split('-')[0]] == null)
{
console.log('Language: ' + lang + ' is not translated.');
console.log("try: './meshcentral -lang=en_us'"
process.exit();
}
else
@ -352,4 +353,4 @@ if (!skip)
console.log(e);
process.exit();
});
}
}