diff options
Diffstat (limited to 'js/lib')
-rw-r--r-- | js/lib/languages.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/lib/languages.js b/js/lib/languages.js index 3231cf77d..640764282 100644 --- a/js/lib/languages.js +++ b/js/lib/languages.js @@ -9,7 +9,7 @@ elgg.add_translation = function(lang, translations) { elgg.provide('elgg.config.translations.' + lang);
$.extend(elgg.config.translations[lang], translations);
-}
+};
/**
* Load the translations for the given language.
@@ -22,7 +22,7 @@ elgg.reload_all_translations = function(language) { var lang = language || elgg.get_language();
elgg.getJSON('_css/js.php', {
data: {
- 'js': 'languages/'+lang,
+ 'js': 'languages/' + lang,
'viewtype': 'default',
'lastcache': elgg.config.lastcache
},
@@ -64,7 +64,7 @@ elgg.echo = function(key, language) { return translations[key];
}
- if (language == dlang) {
+ if (language === dlang) {
return undefined;
}
|