From 75583383a6c00704837a753741abfc049dcc5a90 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 24 Sep 2006 02:20:54 +0000 Subject: Merge from 3.0 branch till 1443. --- framework/I18N/Translation.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'framework/I18N/Translation.php') 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')); -- cgit v1.2.3