language_get_preferred
Description:
[ CCode ( array_length = false , array_null_terminated = true ) ]
[ Version ( replacement = "Language.get_preferred" , since = "1.48" ) ]
public unowned Language[]? language_get_preferred ()
[ 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 [func@Pango.Language.get_default].
When choosing language-specific resources, such as the sample text returned by [method@Pango.Language.get_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