Don't try to load English translation file.

Part of #305.
This commit is contained in:
Oliver Hamlet
2014-09-24 11:32:55 +01:00
parent 7b5847e64c
commit 9b2ec0292f
+6 -4
View File
@@ -1324,10 +1324,12 @@ function initVars() {
try {
loot.settings = JSON.parse(results[2]);
l10n.getJedInstance(loot.settings.language).then(function(jed){
l10n.translateStaticText(jed);
l10n = jed;
});
if (loot.settings.language != 'en') {
l10n.getJedInstance(loot.settings.language).then(function(jed){
l10n.translateStaticText(jed);
l10n = jed;
});
}
} catch (e) {
console.log(e);
console.log('getSettings response: ' + results[2]);