mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-27 15:45:53 -05:00
add more detail on no language set for translation
also made default langauge 'en_us' instead of 'en'
This commit is contained in:
parent
f295d2f780
commit
7b335661d7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user