Language.getPreferred

Returns the list of languages that the user prefers.

The list is specified by the PANGO_LANGUAGE or LANGUAGE environment variables, in order of preference. Note that this list does not necessarily include the language returned by pango.language.Language.getDefault.

When choosing language-specific resources, such as the sample text returned by pango.language.Language.getSampleString, you should first try the default language, followed by the languages returned by this function.

class Language
static
getPreferred
()

Return Value

Type: pango.language.Language[]

a null-terminated array of pango.language.Language*