Class Text


  • public class Text
    extends java.lang.Object
    Small wrapper for ResourceBundle
    • Constructor Summary

      Constructors 
      Constructor Description
      Text()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String l10n​(java.lang.String key)
      Retrieves the localized version of the string.
      static java.lang.String l10n​(java.lang.String key, java.lang.Object... args)
      Retrieves the localized and formatted version of the string.
      • Methods inherited from class java.lang.Object

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

      • Text

        public Text()
    • Method Detail

      • l10n

        public static java.lang.String l10n​(java.lang.String key)
        Retrieves the localized version of the string.
        Parameters:
        key - key to search
        Returns:
        if the key is found it retrieves the value, in case of error it returns the key itself
      • l10n

        public static java.lang.String l10n​(java.lang.String key,
                                            java.lang.Object... args)
        Retrieves the localized and formatted version of the string.
        Parameters:
        key - key to search
        args - arguments used for formatting
        Returns:
        if the key is found it retrieves the value, in case of error it returns the key itself
        See Also:
        String.format(java.lang.String, java.lang.Object...)