#include "i18n_l.h"#include <gwenhywfar/debug.h>#include <gwenhywfar/misc.h>#include <gwenhywfar/pathmanager.h>#include <gwenhywfar/gwenhywfar.h>#include <stdio.h>#include <assert.h>#include <string.h>#include <errno.h>Go to the source code of this file.
Functions | |
| int | GWEN_I18N_BindTextDomain_Codeset (const char *textdomain, const char *cs) |
| int | GWEN_I18N_BindTextDomain_Dir (const char *textdomain, const char *folder) |
| const char * | GWEN_I18N_GetCurrentLocale () |
| GWEN_STRINGLIST * | GWEN_I18N_GetCurrentLocaleList () |
| int | GWEN_I18N_ModuleFini () |
| int | GWEN_I18N_ModuleInit () |
| int | GWEN_I18N_SetLocale (const char *s) |
| const char * | GWEN_I18N_Translate (const char *textdomain, const char *text) |
Variables | |
| static char * | gwen_i18n__currentlocale = 0 |
| static GWEN_STRINGLIST * | gwen_i18n__localelist = 0 |
| int GWEN_I18N_BindTextDomain_Codeset | ( | const char * | textdomain, | |
| const char * | cs | |||
| ) |
Definition at line 188 of file i18n.c.
References DBG_INFO, GWEN_ERROR_GENERIC, GWEN_ERROR_NOT_SUPPORTED, GWEN_LOGDOMAIN, and NULL.
Referenced by GWEN_I18N_ModuleInit().
| int GWEN_I18N_BindTextDomain_Dir | ( | const char * | textdomain, | |
| const char * | folder | |||
| ) |
Definition at line 174 of file i18n.c.
References DBG_INFO, GWEN_ERROR_GENERIC, GWEN_ERROR_NOT_SUPPORTED, GWEN_LOGDOMAIN, and NULL.
Referenced by GWEN_I18N_ModuleInit().
| const char* GWEN_I18N_GetCurrentLocale | ( | ) |
| GWEN_STRINGLIST* GWEN_I18N_GetCurrentLocaleList | ( | ) |
Definition at line 152 of file i18n.c.
References gwen_i18n__localelist.
Referenced by GWEN_LoadPluginDescrsByType(), GWEN_PluginDescription_GetLongDescrByFormat(), and GWEN_XMLNode_GetLocalizedCharValue().
| int GWEN_I18N_ModuleFini | ( | ) |
Definition at line 99 of file i18n.c.
References gwen_i18n__currentlocale, gwen_i18n__localelist, and GWEN_StringList_free().
Referenced by GWEN_Fini().
| int GWEN_I18N_ModuleInit | ( | ) |
Definition at line 58 of file i18n.c.
References DBG_ERROR, DBG_WARN, gwen_i18n__localelist, GWEN_I18N_BindTextDomain_Codeset(), GWEN_I18N_BindTextDomain_Dir(), GWEN_I18N_SetLocale(), GWEN_LOGDOMAIN, GWEN_PathManager_GetPaths(), GWEN_PM_LIBNAME, GWEN_PM_LOCALEDIR, GWEN_StringList_Count(), GWEN_StringList_FirstString(), GWEN_StringList_free(), and GWEN_StringList_new().
Referenced by GWEN_Init().
| int GWEN_I18N_SetLocale | ( | const char * | s | ) |
Definition at line 107 of file i18n.c.
References DBG_INFO, gwen_i18n__currentlocale, gwen_i18n__localelist, GWEN_LOGDOMAIN, GWEN_StringList_AppendString(), GWEN_StringList_Clear(), and NULL.
Referenced by GWEN_I18N_ModuleInit().
| const char* GWEN_I18N_Translate | ( | const char * | textdomain, | |
| const char * | text | |||
| ) |
char* gwen_i18n__currentlocale = 0 [static] |
Definition at line 54 of file i18n.c.
Referenced by GWEN_I18N_GetCurrentLocale(), GWEN_I18N_ModuleFini(), and GWEN_I18N_SetLocale().
GWEN_STRINGLIST* gwen_i18n__localelist = 0 [static] |
Definition at line 53 of file i18n.c.
Referenced by GWEN_I18N_GetCurrentLocaleList(), GWEN_I18N_ModuleFini(), GWEN_I18N_ModuleInit(), and GWEN_I18N_SetLocale().
1.5.6