Author: michiel
Date: 2010-02-09 16:38:05 +0100 (Tue, 09 Feb 2010)
New Revision: 40945

Modified:
   mmbase/trunk/core/src/main/java/org/mmbase/datatypes/BasicDataType.java
Log:
made the resoure bundle for error descriptions a bit easier to override

Modified: 
mmbase/trunk/core/src/main/java/org/mmbase/datatypes/BasicDataType.java
===================================================================
--- mmbase/trunk/core/src/main/java/org/mmbase/datatypes/BasicDataType.java     
2010-02-09 15:36:32 UTC (rev 40944)
+++ mmbase/trunk/core/src/main/java/org/mmbase/datatypes/BasicDataType.java     
2010-02-09 15:38:05 UTC (rev 40945)
@@ -1166,12 +1166,19 @@
             this.value = v;
         }
 
+        /**
+         * @since MMBase-1.9.3
+         */
+        protected String getErrorDescriptionBundle() {
+            return DATATYPE_BUNDLE;
+        }
+
         public LocalizedString getErrorDescription() {
             if (errorDescription == null) {
                 // this is postponsed to first use, because otherwise 
'getBaseTypeIdentifier' give correct value only after constructor of parent.
                 String key = parent.getBaseTypeIdentifier() + "." + name + 
".error";
                 errorDescription = new LocalizedString(key);
-                errorDescription.setBundle(DATATYPE_BUNDLE);
+                errorDescription.setBundle(getErrorDescriptionBundle());
             }
             return errorDescription;
         }

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to