diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 06:59:48 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 06:59:48 +0000 |
commit | 58794fd3d17801db697b4b6feb5ca0b3c7229e24 (patch) | |
tree | 08d3052e25957ff309790865d9778dfae282106f | |
parent | b85f549b2988bf502ffab7befe9e528bc5de68d5 (diff) | |
download | elgg-58794fd3d17801db697b4b6feb5ca0b3c7229e24.tar.gz elgg-58794fd3d17801db697b4b6feb5ca0b3c7229e24.tar.bz2 |
Commented elgg.add_translation
Utilizing elgg.extend instead of $.extend
git-svn-id: http://code.elgg.org/elgg/trunk@7362 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | js/lib/languages.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/lib/languages.js b/js/lib/languages.js index 82cfa7a01..0ac654508 100644 --- a/js/lib/languages.js +++ b/js/lib/languages.js @@ -6,10 +6,14 @@ elgg.provide('elgg.config.translations'); elgg.config.language = 'en';
+/**
+ * Analagous to the php version. Merges translations for a
+ * given language into the current translations map.
+ */
elgg.add_translation = function(lang, translations) {
elgg.provide('elgg.config.translations.' + lang);
- $.extend(elgg.config.translations[lang], translations);
+ elgg.extend(elgg.config.translations[lang], translations);
};
/**
|