diff options
author | xue <> | 2006-09-24 02:20:54 +0000 |
---|---|---|
committer | xue <> | 2006-09-24 02:20:54 +0000 |
commit | 75583383a6c00704837a753741abfc049dcc5a90 (patch) | |
tree | fcb5ac38b1eb3abfa5d17bdee494641be8d206ed /framework/I18N/Translation.php | |
parent | 6fd29b65290509f55172efccaacb5f91a4a884df (diff) |
Merge from 3.0 branch till 1443.
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'));
|