summaryrefslogtreecommitdiff
path: root/library/WT/I18N.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/WT/I18N.php')
-rw-r--r--library/WT/I18N.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/WT/I18N.php b/library/WT/I18N.php
index 26bf4aa74a..aeb7a24b35 100644
--- a/library/WT/I18N.php
+++ b/library/WT/I18N.php
@@ -132,6 +132,9 @@ class WT_I18N {
// Load the translation file
self::$translation_adapter = new Zend_Translate('gettext', WT_ROOT.'language/'.$locale.'.mo', $locale);
+ // Deprecated - some custom modules use this to add translations
+ Zend_Registry::set('Zend_Translate', self::$translation_adapter);
+
// Load any local user translations
if (is_dir(WT_DATA_DIR.'language')) {
if (file_exists(WT_DATA_DIR.'language/'.$locale.'.mo')) {