Package ch.poole.openinghoursparser
Class I18n
- java.lang.Object
-
- ch.poole.openinghoursparser.I18n
-
public class I18n extends java.lang.ObjectTranslation support forOpeningHoursParser
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsetLocale(java.util.Locale locale)Sets the locale used for translations.static java.lang.Stringtr(java.lang.String key, java.lang.Object... arguments)Returns the translation for the given translationkeyand the suppliedarguments.
-
-
-
Method Detail
-
setLocale
public static void setLocale(java.util.Locale locale)
Sets the locale used for translations.- Parameters:
locale- the locale- See Also:
ResourceBundle.getBundle(java.lang.String, java.util.Locale)
-
tr
public static java.lang.String tr(java.lang.String key, java.lang.Object... arguments)Returns the translation for the given translationkeyand the suppliedarguments.- Parameters:
key- the translation key to fetch the translationarguments- the translation arguments which are used for formatting- Returns:
- the translated string
-
-