| 3 | import java.util.Map; |
| 4 | |
| 5 | public class I18n |
| 6 | { |
| 7 | private static Locale i18nLocale; |
| 8 | |
| 9 | static void setLocale(Locale i18nLocaleIn) |
| 10 | { |
| 11 | i18nLocale = i18nLocaleIn; |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * format(a, b) is equivalent to String.format(translate(a), b). Args: translationKey, params... |
| 16 | */ |
| 17 | public static String format(String translateKey, Object... parameters) |
| 18 | { |
| 19 | return i18nLocale.formatMessage(translateKey, parameters); |
| 20 | } |
| 21 | |
| 22 | public static Map getLocaleProperties() |
| 23 | { |
| 24 | return i18nLocale.properties; |
| 25 | } |
| 26 | } |
nothing calls this directly
no outgoing calls
no test coverage detected