Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TranslationUtil

        public TranslationUtil()
    • 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 bundle
        key - the key of the translation
        params - the parameter of the translation
        Returns:
        the translated string or the key if the translation was not found or the format is invalid