]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.cms/src/org/argeo/cms/LocaleUtils.java
Clarify ACR API
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / LocaleUtils.java
index 4bfda139d686345f261dd9675de1c500b9cb2eda..a09bf5a934187a1b7e878d95fdfca89a1748cfc6 100644 (file)
@@ -4,7 +4,6 @@ import java.util.Locale;
 import java.util.ResourceBundle;
 
 import org.argeo.api.cms.CmsLog;
-import org.argeo.cms.auth.CurrentUser;
 
 /** Utilities simplifying the development of localization enums. */
 public class LocaleUtils {
@@ -78,6 +77,8 @@ public class LocaleUtils {
 
        /** Lead transformation on the translated string. */
        public static String toLead(String raw, Locale locale) {
+               if ("".equals(raw))
+                       return "";
                return raw.substring(0, 1).toUpperCase(locale) + raw.substring(1);
        }