Class DefaultLocaleLanguage

java.lang.Object
com._1c.g5.v8.dt.platform.DefaultLocaleLanguage

public final class DefaultLocaleLanguage extends Object
Utility methods to get current Locale dependent default language and script variant settings.
Restriction:
This class is not intended to be sub-classed by clients.
Restriction:
This class is not intended to be instantiated by clients.
  • Method Details

    • getDefaultScriptVariant

      public static ScriptVariant getDefaultScriptVariant()
      Returns default ScriptVariant to use based on current JVM Locale.
      Returns:
      the default ScriptVariant to use, cannot be null
    • getDefaultLanguage

      public static Language getDefaultLanguage()
      Returns application shared default Language to use based on current JVM Locale.

      This instance is shared among the entire application and must not be attached to any configuration. To attach default language to the configuration client may use createDefaultLanguage() method.

      Returns:
      the default Language to use, cannot be null
    • createDefaultLanguage

      public static Language createDefaultLanguage()
      Creates and returns a new default Language instance to use based on current JVM Locale.
      Returns:
      the created default Language to use based on current JVM Locale