Class Localization

java.lang.Object
com.polarion.platform.i18n.Localization

public class Localization extends Object
Parameters with null value are rendered as empty string.
  • Field Details

  • Constructor Details

    • Localization

      public Localization()
  • Method Details

    • getLocale

      public static Locale getLocale()
      Since:
      3.6.1
    • isShowExternalized

      public static boolean isShowExternalized()
    • keyExists

      public static boolean keyExists(@NotNull String key)
    • getString

      public static String getString(@NotNull String key)
    • getValue

      public String getValue(@NotNull String key)
      Since:
      3.5.2
    • getString

      public static String getString(@NotNull String key, @NotNull Object... params)
      Gets the localized value for given key. Accepts objects as parameters and will use the object's toString() method to render the string representation of the given objects.

      Parameters with null value are rendered as empty string.
      Since:
      3.10.3
    • getString

      public static String getString(@NotNull String key, @NotNull String... params)
      Parameters with null value are rendered as empty string.
    • getValue

      public String getValue(@NotNull String key, @NotNull String... params)
      Parameters with null value are rendered as empty string.
      Since:
      3.5.2
    • getString

      public static String getString(@NotNull String key, @NotNull List params)
      Parameters with null value are rendered as empty string.
    • getValue

      public String getValue(@NotNull String key, @NotNull List<String> params)
      Parameters with null value are rendered as empty string.
      Since:
      3.5.2
    • getValue

      public String getValue(@NotNull String key, @Nullable String param1)
      Parameter with null value is rendered as empty string.
      Since:
      3.5.2
    • getStringWithSpace

      @Deprecated public static String getStringWithSpace(@NotNull String key)
      Deprecated.
    • getStringWighSpace

      @Deprecated public static String getStringWighSpace(@NotNull String key, @Nullable String param1)
      Deprecated.
    • formatNumber

      @NotNull public static String formatNumber(@Nullable Number number)
      Formats the number using Polarion's default format.
      Since:
      3.20.2