diff options
author | wei <> | 2006-09-23 07:30:43 +0000 |
---|---|---|
committer | wei <> | 2006-09-23 07:30:43 +0000 |
commit | 0ba115b57b6c8196b9de794afdd1d3855a3b9011 (patch) | |
tree | 1cfacf49c090131e7ab74de655a6e284c89aa6bb /framework/I18N/Translation.php | |
parent | d43aab408a618001d90721c0d6f437f5aad00243 (diff) |
Fixed #382
Diffstat (limited to 'framework/I18N/Translation.php')
-rw-r--r-- | framework/I18N/Translation.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/I18N/Translation.php b/framework/I18N/Translation.php index 33696304..7394842b 100644 --- a/framework/I18N/Translation.php +++ b/framework/I18N/Translation.php @@ -54,6 +54,10 @@ class Translation extends TComponent self::$formatter = new MessageFormat($source, $app->getCharset());
+ //mark untranslated text
+ if($ps=$config['marker'])
+ self::$formatter->setUntranslatedPS(array($ps,$ps));
+
//save the message on end request
Prado::getApplication()->attachEventHandler(
'OnEndRequest', array('Translation', 'saveMessages'));
|