#include <stdio.h>
#include <glib.h>
#include "config.h"
#include <locale.h>
#include "gettext.h"
#include "languages.h"
#include <liberregxml/erregapi.h>
Go to the source code of this file.
Functions | |
void | languagesInit () |
void languagesInit | ( | ) |
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 }