Package com._1c.g5.v8.dt.common
Class LocaleUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.common.LocaleUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LocalecreateLocale(String localeAsString)Create locale from given string representation (seeLocale.toString()).static booleanisRtlLanguage(String languageCode)Determines whether the editing language is RTL-based or not.
-
-
-
Method Detail
-
createLocale
public static Locale createLocale(String localeAsString)
Create locale from given string representation (seeLocale.toString()).- Parameters:
localeAsString- string-represented locale.- Returns:
- created locale, never
null
-
isRtlLanguage
public static boolean isRtlLanguage(String languageCode)
Determines whether the editing language is RTL-based or not.- Parameters:
languageCode- the language code of the configuration editing language, can benull- Returns:
trueif editing language is RTL-based
-
-