aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 06:59:48 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 06:59:48 +0000
commit58794fd3d17801db697b4b6feb5ca0b3c7229e24 (patch)
tree08d3052e25957ff309790865d9778dfae282106f
parentb85f549b2988bf502ffab7befe9e528bc5de68d5 (diff)
downloadelgg-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.js6
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);
};
/**