Class LocalizationUtil
- java.lang.Object
-
- com.evolveum.midpoint.gui.api.util.LocalizationUtil
-
public class LocalizationUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description LocalizationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Enum>
StringcreateKeyForEnum(T value)
static @NotNull Locale
findLocale()
static String
translate(String key)
static String
translate(String key, Object[] params)
static String
translate(String key, Object[] params, String defaultMsg)
static String
translate(String key, Object[] params, String defaultMsg, Locale locale)
static String
translateEnum(Enum<?> e)
static String
translateEnum(Enum<?> e, String nullKey)
static String
translateLookupTableRowLabel(@NotNull LookupTableRowType row)
static String
translateMessage(LocalizableMessage msg)
static String
translateMessage(LocalizableMessageType msg)
static String
translatePolyString(PolyString poly)
static String
translatePolyString(PolyString poly, Locale locale)
static String
translatePolyString(PolyStringType poly)
static String
translatePolyString(PolyStringType poly, Locale locale)
-
-
-
Method Detail
-
findLocale
@NotNull public static @NotNull Locale findLocale()
-
translate
public static String translate(String key, Object[] params, String defaultMsg, Locale locale)
-
translateMessage
public static String translateMessage(LocalizableMessageType msg)
-
translateMessage
public static String translateMessage(LocalizableMessage msg)
-
translateLookupTableRowLabel
public static String translateLookupTableRowLabel(@NotNull @NotNull LookupTableRowType row)
-
translatePolyString
public static String translatePolyString(PolyStringType poly)
-
translatePolyString
public static String translatePolyString(PolyStringType poly, Locale locale)
-
translatePolyString
public static String translatePolyString(PolyString poly)
-
translatePolyString
public static String translatePolyString(PolyString poly, Locale locale)
-
-