connectionMgr/inc/languages.h File Reference

#include "config.h"
#include "gettext.h"

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _(String)   gettext (String)

Functions

void languagesInit ()


Define Documentation

#define _ ( String   )     gettext (String)

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

Definition at line 34 of file languages.h.


Function Documentation

void languagesInit (  ) 

init the language/localisation settings

Parameters:
none 
Returns:
void
Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

Definition at line 32 of file languages.c.

00033 {
00034     char   *result;
00035     regUserSetting_t *theUserSetting = NULL;
00036 
00037     // tryout
00038     //setlocale(LC_ALL,"nl_NL");
00039     
00040     // get sections from registry 
00041     theUserSetting = erRegGetUserSetting();
00042     if (theUserSetting)
00043     {
00044         setlocale(LC_ALL, theUserSetting->language);
00045         erRegFreeUserSetting(theUserSetting);
00046     }
00047     else
00048     {
00049         // default is english
00050         setlocale(LC_ALL, "");
00051     }
00052 
00053     textdomain(PACKAGE);
00054 
00055     result = bindtextdomain(PACKAGE, LOCALE_DIR);;
00056 
00057     textdomain(PACKAGE);
00058 }

Here is the call graph for this function:


Generated on Sun Dec 14 17:15:49 2008 by  doxygen 1.5.6