Package com._1c.g5.v8.dt.common
Class LocaleUtil
java.lang.Object
com._1c.g5.v8.dt.common.LocaleUtil
Locale
utility methods.- Restriction:
- Clients are not allowed to extend a class or interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic Locale
createLocale
(String localeAsString) Create locale from given string representation (seeLocale.toString()
).static boolean
isRtlLanguage
(String languageCode) Determines whether the editing language is RTL-based or not.
-
Method Details
-
createLocale
Create locale from given string representation (seeLocale.toString()
).- Parameters:
localeAsString
- string-represented locale.- Returns:
- created locale, never
null
-
isRtlLanguage
Determines whether the editing language is RTL-based or not.- Parameters:
languageCode
- the language code of the configuration editing language, can benull
- Returns:
true
if editing language is RTL-based
-