language_get_preferred


Description:


[ Version ( replacement = "Language.get_preferred" , since = "1.48" ) ]
public unowned Language? language_get_preferred ()

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 [[email protected]_default].

When choosing language-specific resources, such as the sample text returned by [[email protected]_sample_string], you should first try the default language, followed by the languages returned by this function.

Returns:

a null-terminated array of `PangoLanguage`*


Namespace: Pango
Package: pango



2022 vala-language.org