Class 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
    • 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