i18n.c File Reference

#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 *txtdom, const char *cs)
int GWEN_I18N_BindTextDomain_Dir (const char *txtdom, const char *folder)
const char * GWEN_I18N_GetCurrentLocale ()
GWEN_STRINGLISTGWEN_I18N_GetCurrentLocaleList ()
int GWEN_I18N_ModuleFini ()
int GWEN_I18N_ModuleInit ()
int GWEN_I18N_SetLocale (const char *s)
const char * GWEN_I18N_Translate (const char *txtdom, const char *text)

Variables

static char * gwen_i18n__currentlocale = 0
static GWEN_STRINGLISTgwen_i18n__localelist = 0

Function Documentation

int GWEN_I18N_BindTextDomain_Codeset ( const char *  txtdom,
const char *  cs 
)

Definition at line 206 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 *  txtdom,
const char *  folder 
)

Definition at line 192 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 (  ) 

Definition at line 158 of file i18n.c.

References gwen_i18n__currentlocale.

GWEN_STRINGLIST* GWEN_I18N_GetCurrentLocaleList (  ) 
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 (  ) 
int GWEN_I18N_SetLocale ( const char *  s  ) 
const char* GWEN_I18N_Translate ( const char *  txtdom,
const char *  text 
)

Definition at line 164 of file i18n.c.


Variable Documentation

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().


Generated by  doxygen 1.6.2