Package io.openems.edge.core.appmanager
Class TranslationUtil
- java.lang.Object
-
- io.openems.edge.core.appmanager.TranslationUtil
-
public class TranslationUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TranslationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getTranslation(java.util.ResourceBundle translationBundle, java.lang.String key, java.lang.Object... params)
Gets the value for the given key from the translationBundle.
-
-
-
Method Detail
-
getTranslation
public static java.lang.String getTranslation(java.util.ResourceBundle translationBundle, java.lang.String key, java.lang.Object... params)
Gets the value for the given key from the translationBundle.- Parameters:
translationBundle
- the translation bundlekey
- the key of the translationparams
- the parameter of the translation- Returns:
- the translated string or the key if the translation was not found or the format is invalid
-
-