Method

FlatpakInstallationget_default_locales

since: 1.5.1

Declaration [src]

char**
flatpak_installation_get_default_locales (
  FlatpakInstallation* self
  GError** error
)

Description [src]

Like flatpak_installation_get_default_languages() but includes territory information (e.g. en_US rather than en) which may be included in the extra-languages configuration.

Strings returned by this function are in the format specified by setlocale(): language[_territory][.codeset][modifier].

Available since: 1.5.1

Return value

Type: An array of utf8

A possibly empty array of locale strings, or NULL on error.

The array is NULL-terminated.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.
Each element is a NUL terminated UTF-8 string.