Class Localizer

java.lang.Object
org.bgerp.app.l10n.Localizer
Direct Known Subclasses:
TransparentLocalizer

public class Localizer extends Object
Translator to a wanted language using many Localization sequentially.
  • Field Details

    • TRANSPARENT

      public static final Localizer TRANSPARENT
  • Constructor Details

  • Method Details

    • getLang

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

      public String l(String pattern, Object... args)
      Translates to target language.
      Parameters:
      pattern - string message with '{}' placeholders.
      args - arguments for replacing placeholders.
      Returns:
    • entry

      public Map.Entry<String,String> entry(String key)
      Returns:
      a map entry with key and a found translation for it.