Package ru.bgerp.l10n

Class Localizer


  • public class Localizer
    extends java.lang.Object
    Translator to a wanted language using many Localization sequentially.
    • Constructor Summary

      Constructors 
      Constructor Description
      Localizer​(java.lang.String lang, Localization... localizations)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLang()  
      java.lang.String l​(java.lang.String pattern, java.lang.Object... args)
      Translates to target language.
      • Methods inherited from class java.lang.Object

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

      • Localizer

        public Localizer​(java.lang.String lang,
                         Localization... localizations)
    • Method Detail

      • getLang

        public java.lang.String getLang()
        Returns:
        target language.
      • l

        public java.lang.String l​(java.lang.String pattern,
                                  java.lang.Object... args)
        Translates to target language.
        Parameters:
        pattern -
        args -
        Returns: