Package com.evolveum.midpoint.common
Interface LocalizationService
-
- All Known Implementing Classes:
LocalizationServiceImpl
public interface LocalizationService
Created by Viliam Repan (lazyman).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @NotNull Locale
getDefaultLocale()
default String
translate(PolyString polyString)
default String
translate(PolyString polyString, boolean allowOrig)
String
translate(PolyString polyString, Locale locale, boolean allowOrig)
default String
translate(LocalizableMessage msg)
String
translate(LocalizableMessage msg, Locale locale)
String
translate(LocalizableMessage msg, Locale locale, String defaultMessage)
String
translate(String key, Object[] params, Locale locale)
String
translate(String key, Object[] params, Locale locale, String defaultMessage)
<T extends CommonException>
Ttranslate(T e)
Fills-in message and localizedMessage based on userFriendlyMessage, if needed.
-
-
-
Method Detail
-
translate
String translate(LocalizableMessage msg, Locale locale)
-
translate
String translate(LocalizableMessage msg, Locale locale, String defaultMessage)
-
translate
default String translate(LocalizableMessage msg)
-
translate
String translate(PolyString polyString, Locale locale, boolean allowOrig)
-
translate
default String translate(PolyString polyString)
-
translate
default String translate(PolyString polyString, boolean allowOrig)
-
translate
<T extends CommonException> T translate(T e)
Fills-in message and localizedMessage based on userFriendlyMessage, if needed.
-
getDefaultLocale
@NotNull @NotNull Locale getDefaultLocale()
-
-