Package com.polarion.platform.i18n
Class Localization
java.lang.Object
com.polarion.platform.i18n.Localization
Parameters with
null
value are rendered as empty string.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatNumber
(Number number) Formats the number using Polarion'sdefault format
.static Locale
static String
static String
Gets the localized value for given key.static String
Parameters withnull
value are rendered as empty string.static String
Parameters withnull
value are rendered as empty string.static String
getStringWighSpace
(String key, String param1) Deprecated.static String
getStringWithSpace
(String key) Deprecated.Use" " +
.getString(String)
Parameter withnull
value is rendered as empty string.Parameters withnull
value are rendered as empty string.Parameters withnull
value are rendered as empty string.static boolean
static boolean
-
Field Details
-
DEFAULT_NUMBER_FORMAT
- Since:
- 3.20.2
- See Also:
-
-
Constructor Details
-
Localization
public Localization()
-
-
Method Details
-
getLocale
- Since:
- 3.6.1
-
isShowExternalized
public static boolean isShowExternalized() -
keyExists
-
getString
-
getValue
- Since:
- 3.5.2
-
getString
Gets the localized value for given key. Accepts objects as parameters and will use the object'stoString()
method to render the string representation of the given objects.
Parameters withnull
value are rendered as empty string.- Since:
- 3.10.3
-
getString
Parameters withnull
value are rendered as empty string. -
getValue
Parameters withnull
value are rendered as empty string.- Since:
- 3.5.2
-
getString
Parameters withnull
value are rendered as empty string. -
getValue
Parameters withnull
value are rendered as empty string.- Since:
- 3.5.2
-
getValue
Parameter withnull
value is rendered as empty string.- Since:
- 3.5.2
-
getStringWithSpace
Deprecated.Use" " +
.getString(String)
-
getStringWighSpace
Deprecated.Use" " +
.getString(String, String...)
-
formatNumber
Formats the number using Polarion'sdefault format
.- Since:
- 3.20.2
-
" " +
.getString(String, String...)