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 translation = JSON.parse(msh.translation);
|
||||||
|
|
||||||
var lang = require('util-language').current;
|
var lang = require('util-language').current;
|
||||||
if (lang == null) { lang = 'en'; }
|
if (lang == null) { lang = 'en_us'; }
|
||||||
if (process.argv.getParameter('lang', lang) == null)
|
if (process.argv.getParameter('lang', lang) == null)
|
||||||
{
|
{
|
||||||
console.log('\nCurrent Language: ' + lang + '\n');
|
console.log('\nCurrent Language: ' + lang + '\n');
|
||||||
@ -60,6 +60,7 @@ else
|
|||||||
if (translation[lang.split('-')[0]] == null)
|
if (translation[lang.split('-')[0]] == null)
|
||||||
{
|
{
|
||||||
console.log('Language: ' + lang + ' is not translated.');
|
console.log('Language: ' + lang + ' is not translated.');
|
||||||
|
console.log("try: './meshcentral -lang=en_us'"
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -352,4 +353,4 @@ if (!skip)
|
|||||||
console.log(e);
|
console.log(e);
|
||||||
process.exit();
|
process.exit();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user