Pickup default language from i18n module

This commit is contained in:
Nick O'Leary
2015-11-23 13:55:17 +00:00
parent d2be7f8c8f
commit 1dd9984521
2 changed files with 15 additions and 15 deletions

View File

@@ -172,7 +172,7 @@ function loadNodeConfig(fileInfo) {
index = regExp.lastIndex;
var help = content.substring(regExp.lastIndex-match[1].length,regExp.lastIndex);
var lang = "en-US";
var lang = runtime.i18n.defaultLang;
if ((match = langRegExp.exec(help)) !== null) {
lang = match[1];
}
@@ -332,7 +332,7 @@ function getNodeHelp(node,lang) {
if (help) {
node.help[lang] = help;
} else {
node.help[lang] = node.help["en-US"];
node.help[lang] = node.help[runtime.i18n.defaultLang];
}
}