cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r1225089 - /cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java
Date Wed, 28 Dec 2011 04:32:31 GMT
Author: thorsten
Date: Wed Dec 28 04:32:31 2011
New Revision: 1225089

URL: http://svn.apache.org/viewvc?rev=1225089&view=rev
Log:
COCOON3-64
Fixing parameter replacement for keys defined in resource bundle. 

Modified:
    cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java

Modified: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java?rev=1225089&r1=1225088&r2=1225089&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java
Wed Dec 28 04:32:31 2011
@@ -963,10 +963,9 @@ public class I18nTransformer extends Abs
             }
 
             if (currentKey != null) {
-                final SAXBuffer message =
-                        getMessage(currentKey, SAXBuffer.class);
-                translatedTextRecorder = message == null
-                        ? null : new ParamSAXBuffer(message);
+                final ParamSAXBuffer message =
+                        getMessage(currentKey, ParamSAXBuffer.class);
+                translatedTextRecorder = message;
             }
         } else if (ELEM_TRANSLATE.equals(name)) {
             if (currentState != TransformerState.OUTSIDE) {



Mime
View raw message