summaryrefslogtreecommitdiff
path: root/framework/I18N/TTranslate.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/I18N/TTranslate.php')
-rw-r--r--framework/I18N/TTranslate.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/I18N/TTranslate.php b/framework/I18N/TTranslate.php
index 409015ed..327119fd 100644
--- a/framework/I18N/TTranslate.php
+++ b/framework/I18N/TTranslate.php
@@ -239,17 +239,17 @@ class TTranslate extends TI18NControl
if(is_null($config = $app->getTranslationConfiguration()))
return strtr($text, $subs);
- Translation::init();
-
$catalogue = $this->getCatalogue();
if(empty($catalogue) && isset($config['catalogue']))
$catalogue = $config['catalogue'];
-
+ if (empty($catalogue)) $catalogue='messages';
+ Translation::init($catalogue);
+
$key = $this->getKey();
if(!empty($key)) $text = $key;
//translate it
- return Translation::formatter()->format($text,
+ return Translation::formatter($catalogue)->format($text,
$subs, $catalogue, $this->getCharset());
}
}