#include <stdio.h>#include <stdlib.h>#include <ctype.h>#include <glib.h>#include "xap_UnixEncodingManager.h"#include "ut_debugmsg.h"#include "ut_string.h"#include "ut_string_class.h"#include <string.h>Enumerations | |
| enum | { COMPONENT_CODESET = 1 << 0, COMPONENT_TERRITORY = 1 << 1, COMPONENT_MODIFIER = 1 << 2 } |
Functions | |
| const GList * | g_i18n_get_language_list (const gchar *category_name) |
| g_i18n_get_language_list: : Name of category to look up, e.g. | |
| static void | read_aliases (const char *file) |
| static char * | unalias_lang (char *lang) |
| static void | free_entry (void *ekey, void *eval, void *) |
| static guint | explode_locale (const gchar *locale, gchar **language, gchar **territory, gchar **codeset, gchar **modifier) |
| static GList * | compute_locale_variants (const gchar *locale) |
| static const gchar * | guess_category_value (const gchar *categoryname) |
Variables | |
| static GHashTable * | alias_table = NULL |
| static GHashTable * | category_table = NULL |
| bool | prepped_table = 0 |
| static UT_UTF8String | NativeEncodingName |
| static UT_UTF8String | NativeSystemEncodingName |
| static UT_UTF8String | Native8BitEncodingName |
| static UT_UTF8String | NativeNonUnicodeEncodingName |
| static UT_UTF8String | NativeUnicodeEncodingName |
| static UT_UTF8String | LanguageISOName |
| static UT_UTF8String | LanguageISOTerritory |
| static GList* compute_locale_variants | ( | const gchar * | locale | ) | [static] |
References COMPONENT_CODESET, COMPONENT_MODIFIER, COMPONENT_TERRITORY, explode_locale(), gchar, and UT_return_val_if_fail.
Referenced by g_i18n_get_language_list().
| static guint explode_locale | ( | const gchar * | locale, | |
| gchar ** | language, | |||
| gchar ** | territory, | |||
| gchar ** | codeset, | |||
| gchar ** | modifier | |||
| ) | [static] |
References gchar.
Referenced by compute_locale_variants(), and XAP_UnixEncodingManager::initialize().
| static void free_entry | ( | void * | ekey, | |
| void * | eval, | |||
| void * | ||||
| ) | [static] |
Referenced by g_i18n_get_language_list().
| const GList* g_i18n_get_language_list | ( | const gchar * | category_name | ) |
g_i18n_get_language_list: : Name of category to look up, e.g.
"LC_MESSAGES".
This computes a list of language strings. It searches in the standard environment variables to find the list, which is sorted in order from most desirable to least desirable. The `C' locale is appended to the list if it does not already appear (other routines depend on this behaviour). If is NULL, then LC_ALL is assumed.
Return value: the list of languages, this list should not be freed as it is owned by gnome-i18n
References alias_table, category_table, compute_locale_variants(), free_entry(), gchar, guess_category_value(), prepped_table, unalias_lang(), and xxx_UT_DEBUGMSG.
| static const gchar* guess_category_value | ( | const gchar * | categoryname | ) | [static] |
References gchar.
Referenced by g_i18n_get_language_list().
| static void read_aliases | ( | const char * | file | ) | [static] |
References alias_table, fgets(), and prepped_table.
Referenced by unalias_lang().
| static char* unalias_lang | ( | char * | lang | ) | [static] |
References alias_table, prepped_table, and read_aliases().
Referenced by g_i18n_get_language_list().
GHashTable* alias_table = NULL [static] |
Referenced by g_i18n_get_language_list(), read_aliases(), and unalias_lang().
GHashTable* category_table = NULL [static] |
Referenced by g_i18n_get_language_list().
UT_UTF8String LanguageISOName [static] |
UT_UTF8String LanguageISOTerritory [static] |
UT_UTF8String Native8BitEncodingName [static] |
UT_UTF8String NativeEncodingName [static] |
UT_UTF8String NativeSystemEncodingName [static] |
UT_UTF8String NativeUnicodeEncodingName [static] |
| bool prepped_table = 0 |
Referenced by g_i18n_get_language_list(), read_aliases(), and unalias_lang().
1.7.1