Function

MateDesktopget_language_from_code

since: 1.22

Declaration [src]

char*
mate_get_language_from_code (
  const char* code,
  const char* translation
)

Description [src]

Gets the language name for code. If locale is provided the returned string is translated accordingly.

Available since: 1.22

Parameters

code

Type: const char*

An ISO 639 code 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 language name. 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.