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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatNumber(Number number) Formats the number using Polarion'sdefault format.static Localestatic Stringstatic StringGets the localized value for given key.static StringParameters withnullvalue are rendered as empty string.static StringParameters withnullvalue are rendered as empty string.static StringgetStringWighSpace(String key, String param1) Deprecated.static StringgetStringWithSpace(String key) Deprecated.Use" " +.getString(String)Parameter withnullvalue is rendered as empty string.Parameters withnullvalue are rendered as empty string.Parameters withnullvalue are rendered as empty string.static booleanstatic 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 withnullvalue are rendered as empty string.- Since:
- 3.10.3
-
getString
Parameters withnullvalue are rendered as empty string. -
getValue
Parameters withnullvalue are rendered as empty string.- Since:
- 3.5.2
-
getString
Parameters withnullvalue are rendered as empty string. -
getValue
Parameters withnullvalue are rendered as empty string.- Since:
- 3.5.2
-
getValue
Parameter withnullvalue 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...)