summaryrefslogtreecommitdiff
path: root/framework/I18N/TTranslate.php
diff options
context:
space:
mode:
authortof <>2008-03-09 15:02:01 +0000
committertof <>2008-03-09 15:02:01 +0000
commit6b2547714960641dd55b341061dab1cba93ae203 (patch)
tree0ff8ff125cf188ca12526e95a5ac0b49b908f43e /framework/I18N/TTranslate.php
parentd3e8a0e6a7737bb6b847bac325325f8933d6cd76 (diff)
Fixed #636
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());
}
}