Improve CMS UI framework.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / Localized.java
index 1c7c8e5303143bfc93f5dc0117c9ef0b6411ae91..bc37608ed013fd423007412c01a5abbcf71352aa 100644 (file)
@@ -24,4 +24,18 @@ public interface Localized {
                return LocaleUtils.lead(local(locale).toString(), locale);
        }
 
+       static class Untranslated implements Localized {
+               private String msg;
+
+               public Untranslated(String msg) {
+                       super();
+                       this.msg = msg;
+               }
+
+               @Override
+               public Object local(Locale locale) {
+                       return msg;
+               }
+
+       }
 }