Author: vsiveton
Date: Sun May 17 10:01:19 2009
New Revision: 775618

URL: http://svn.apache.org/viewvc?rev=775618&view=rev
Log:
o i18n text

Added:
    
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo.properties
   (with props)
    
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo_en.properties
   (with props)
Modified:
    
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoAggregateSink.java

Modified: 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoAggregateSink.java
URL: 
http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoAggregateSink.java?rev=775618&r1=775617&r2=775618&view=diff
==============================================================================
--- 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoAggregateSink.java
 (original)
+++ 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/java/org/apache/maven/doxia/module/fo/FoAggregateSink.java
 Sun May 17 10:01:19 2009
@@ -27,6 +27,7 @@
 import java.util.Iterator;
 import java.util.List;
 import java.util.Locale;
+import java.util.ResourceBundle;
 import java.util.Stack;
 
 import javax.swing.text.MutableAttributeSet;
@@ -577,12 +578,12 @@
     protected String getFooterText()
     {
         int actualYear;
-        String add = " • ALL RIGHTS RESERVED.";
+        String add = " • " + getBundle( Locale.US ).getString( 
"footer.rights" );
         String companyName = "";
 
         if ( docModel != null && docModel.getMeta() != null && 
docModel.getMeta().isConfidential() )
         {
-            add = add + " • PROPRIETARY AND CONFIDENTIAL";
+            add = add + " • " + getBundle( Locale.US ).getString( 
"footer.confidential" );
         }
 
         if ( docModel != null && docModel.getCover() != null && 
docModel.getCover().getCompanyName() != null )
@@ -1079,4 +1080,8 @@
         writeEndTag( TABLE_ROW_TAG );
     }
 
+    private ResourceBundle getBundle( Locale locale )
+    {
+        return ResourceBundle.getBundle( "doxia-fo", locale, 
this.getClass().getClassLoader() );
+    }
 }

Added: 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo.properties
URL: 
http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo.properties?rev=775618&view=auto
==============================================================================
--- 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo.properties
 (added)
+++ 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo.properties
 Sun May 17 10:01:19 2009
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+footer.rights=ALL RIGHTS RESERVED.
+footer.confidential=PROPRIETARY AND CONFIDENTIAL

Propchange: 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo_en.properties
URL: 
http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo_en.properties?rev=775618&view=auto
==============================================================================
--- 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo_en.properties
 (added)
+++ 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo_en.properties
 Sun May 17 10:01:19 2009
@@ -0,0 +1,23 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# NOTE:
+# This bundle is intentionally empty because English strings are provided by 
the base bundle via the parent chain. It
+# must be provided nevertheless such that a request for locale "en" will not 
errorneously pick up the bundle for the
+# JVM's default locale (which need not be "en"). See the method javadoc about
+#   ResourceBundle.getBundle(String, Locale, ClassLoader)
+# for a full description of the lookup strategy.

Propchange: 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo_en.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/main/resources/doxia-fo_en.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision


Reply via email to