cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simo...@apache.org
Subject svn commit: r449447 - /cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/transformation/I18nTransformer.java
Date Sun, 24 Sep 2006 18:19:34 GMT
Author: simoneg
Date: Sun Sep 24 11:19:33 2006
New Revision: 449447

URL: http://svn.apache.org/viewvc?view=rev&rev=449447
Log:
Small changes to be able to write subclasses of the I18nTransformer : protected getMessage
method and public CatalogueInfo inner class
Added a log for missing key

Modified:
    cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/transformation/I18nTransformer.java

Modified: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/transformation/I18nTransformer.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/transformation/I18nTransformer.java?view=diff&rev=449447&r1=449446&r2=449447
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/transformation/I18nTransformer.java
(original)
+++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/transformation/I18nTransformer.java
Sun Sep 24 11:19:33 2006
@@ -2098,7 +2098,7 @@
      * @param catalogueID if not null, this catalogue will be used instead of the default
one.
      * @return SaxBuffer containing message, or null if not found.
      */
-    private ParamSaxBuffer getMessage(String catalogueID, String key) {
+    protected ParamSaxBuffer getMessage(String catalogueID, String key) {
         if (getLogger().isDebugEnabled()) {
             getLogger().debug("Getting key " + key + " from catalogue " + catalogueID);
         }
@@ -2140,6 +2140,7 @@
     private ParamSaxBuffer getMessage(String key, ParamSaxBuffer defaultValue) {
         SaxBuffer value = getMessage(currentCatalogueId, key);
         if (value == null) {
+        	getLogger().debug("Untranslated key: '" + key + "'");
             return defaultValue;
         }
 
@@ -2176,7 +2177,7 @@
      * can contain references to input modules, and are resolved upon each transformer
      * usage. It is important that releaseCatalog is called when the transformer is recycled.
      */
-    private final class CatalogueInfo {
+    public final class CatalogueInfo {
         VariableResolver name;
         VariableResolver[] locations;
         String resolvedName;



Mime
View raw message