cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r1226315 - /cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/I18nTransformer.java
Date Sun, 01 Jan 2012 23:37:30 GMT
Author: thorsten
Date: Sun Jan  1 23:37:30 2012
New Revision: 1226315

URL: http://svn.apache.org/viewvc?rev=1226315&view=rev
Log:
Extending transformer to allow custom encoding in constructor

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=1226315&r1=1226314&r2=1226315&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
Sun Jan  1 23:37:30 2012
@@ -735,12 +735,14 @@ public class I18nTransformer extends Abs
 
     public I18nTransformer(final Locale locale, final String bundle,
             final String untranslated) {
-
+        this(locale, bundle, untranslated, DEFAULT_ENCODING);
+    }
+    
+    public I18nTransformer(final Locale locale, final String bundle,
+            final String untranslated, final String encoding) {
         super();
-
-        this.init(locale, bundle, untranslated, DEFAULT_ENCODING);
+        this.init(locale, bundle, untranslated, encoding);
     }
-
     private void init(final Locale locale, final String bundle,
             final String untranslated, final String encoding) {
 



Mime
View raw message