gwenhywfar 5.14.1
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>
Include dependency graph for i18n.c:

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 (void)
GWEN_STRINGLISTGWEN_I18N_GetCurrentLocaleList (void)
int GWEN_I18N_ModuleFini (void)
int GWEN_I18N_ModuleInit (void)
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

◆ GWEN_I18N_BindTextDomain_Codeset()

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

Definition at line 299 of file i18n.c.

References DBG_INFO, GWEN_ERROR_GENERIC, GWEN_ERROR_NOT_SUPPORTED, GWEN_LOGDOMAIN, and NULL.

Referenced by GWEN_I18N_ModuleInit().

Here is the caller graph for this function:

◆ GWEN_I18N_BindTextDomain_Dir()

int GWEN_I18N_BindTextDomain_Dir ( const char * txtdom,
const char * folder )

Definition at line 284 of file i18n.c.

References DBG_INFO, GWEN_ERROR_GENERIC, GWEN_ERROR_NOT_SUPPORTED, GWEN_LOGDOMAIN, and NULL.

Referenced by GWEN_I18N_ModuleInit().

Here is the caller graph for this function:

◆ GWEN_I18N_GetCurrentLocale()

const char * GWEN_I18N_GetCurrentLocale ( void )

Definition at line 248 of file i18n.c.

References gwen_i18n__currentlocale.

◆ GWEN_I18N_GetCurrentLocaleList()

GWEN_STRINGLIST * GWEN_I18N_GetCurrentLocaleList ( void )

Gwenhywfar remains the owner of the object returned (if any), so you MUST NOT free it.

Definition at line 241 of file i18n.c.

References gwen_i18n__localelist.

Referenced by _getLocalOrMainPluginNode(), GWEN_PluginDescription_GetLongDescrByFormat(), and GWEN_XMLNode_GetLocalizedCharValue().

Here is the caller graph for this function:

◆ GWEN_I18N_ModuleFini()

int GWEN_I18N_ModuleFini ( void )

Definition at line 174 of file i18n.c.

References gwen_i18n__currentlocale, gwen_i18n__localelist, and GWEN_StringList_free().

Referenced by GWEN_Fini().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_I18N_ModuleInit()

int GWEN_I18N_ModuleInit ( void )

◆ GWEN_I18N_SetLocale()

int GWEN_I18N_SetLocale ( const char * s)

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_I18N_Translate()

const char * GWEN_I18N_Translate ( const char * txtdom,
const char * text )

Definition at line 255 of file i18n.c.

Referenced by GWEN_Dialog_TranslateString(), GWEN_PluginDescription_GetLongDescr(), and GWEN_PluginDescription_GetShortDescr().

Here is the caller graph for this function:

Variable Documentation

◆ gwen_i18n__currentlocale

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_i18n__localelist

GWEN_STRINGLIST* gwen_i18n__localelist =0
static