Function

MateDesktopget_country_from_locale

since: 1.22

Declaration [src]

char*
mate_get_country_from_locale (
  const char* locale,
  const char* translation
)

Description [src]

Gets the country description for locale. If translation is provided the returned string is translated accordingly.

Available since: 1.22

Parameters

locale

Type: const char*

A locale string.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
translation

Type: const char*

A locale string.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: char*

The country description. Caller takes ownership.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.