Class I18N
- java.lang.Object
-
- net.sourceforge.jbizmo.commons.i18n.I18N
-
public class I18N extends Object
Utility class for the translation of text fragments
Copyright 2017 (C) by Martin Ganserer
- Version:
- 1.0.0
- Author:
- Martin Ganserer
-
-
Field Summary
Fields Modifier and Type Field Description static StringLABEL_SEPARATOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetTranslation(ResourceBundle resourceBoundle, String key, Object... params)static StringgetTranslationForFieldLabel(ResourceBundle resourceBoundle, String key)
-
-
-
Field Detail
-
LABEL_SEPARATOR
public static final String LABEL_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTranslation
public static String getTranslation(ResourceBundle resourceBoundle, String key, Object... params)
- Parameters:
resourceBoundle-key-params-- Returns:
- the translation text from the given resource bundle by using the given key
-
getTranslationForFieldLabel
public static String getTranslationForFieldLabel(ResourceBundle resourceBoundle, String key)
- Parameters:
resourceBoundle-key-- Returns:
- the translation for a field label from the given resource bundle by using the given key
-
-