|
mate-desktop 1.29.2
Library with common API for various MATE modules
|
#include <glib.h>Functions | |
| char * | mate_get_language_from_locale (const char *locale, const char *translation) |
| char * | mate_get_country_from_locale (const char *locale, const char *translation) |
| char ** | mate_get_all_locales (void) |
| gboolean | mate_parse_locale (const char *locale, char **language_codep, char **country_codep, char **codesetp, char **modifierp) |
| mate_parse_locale: @locale: a locale string @language_codep: (out) (allow-none) (transfer full): location to store the language code, or NULL @country_codep: (out) (allow-none) (transfer full): location to store the country code, or NULL @codesetp: (out) (allow-none) (transfer full): location to store the codeset, or NULL @modifierp: (out) (allow-none) (transfer full): location to store the modifier, or NULL | |
| char * | mate_normalize_locale (const char *locale) |
| gboolean | mate_language_has_translations (const char *code) |
| char * | mate_get_language_from_code (const char *code, const char *translation) |
| char * | mate_get_country_from_code (const char *code, const char *translation) |
| char ** mate_get_all_locales | ( | void | ) |
Referenced by test_locales().
| char * mate_get_country_from_code | ( | const char * | code, |
| const char * | translation | ||
| ) |
Referenced by test_one_locale().
| char * mate_get_country_from_locale | ( | const char * | locale, |
| const char * | translation | ||
| ) |
Referenced by test_one_locale().
| char * mate_get_language_from_code | ( | const char * | code, |
| const char * | translation | ||
| ) |
Referenced by test_one_locale().
| char * mate_get_language_from_locale | ( | const char * | locale, |
| const char * | translation | ||
| ) |
Referenced by test_one_locale().
| gboolean mate_language_has_translations | ( | const char * | code | ) |
Referenced by test_one_locale().
| char * mate_normalize_locale | ( | const char * | locale | ) |
References construct_language_name(), and mate_parse_locale().
Referenced by test_one_locale().
| gboolean mate_parse_locale | ( | const char * | locale, |
| char ** | language_codep, | ||
| char ** | country_codep, | ||
| char ** | codesetp, | ||
| char ** | modifierp | ||
| ) |
mate_parse_locale: @locale: a locale string @language_codep: (out) (allow-none) (transfer full): location to store the language code, or NULL @country_codep: (out) (allow-none) (transfer full): location to store the country code, or NULL @codesetp: (out) (allow-none) (transfer full): location to store the codeset, or NULL @modifierp: (out) (allow-none) (transfer full): location to store the modifier, or NULL
Extracts the various components of a locale string of the form [language[_country][.codeset][@modifier]]. See http://en.wikipedia.org/wiki/Locale.
Return value: TRUE if parsing was successful.
Since: 1.22
References construct_language_name(), language_name_is_valid(), and normalize_codeset().
Referenced by mate_normalize_locale(), and test_one_locale().