PgLanguage.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 [type_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.

class PgLanguage
static
getPreferred
()

Return Value

a %NULL-terminated array of PangoLanguage*

Meta

Since

1.48