2 #include "config.h" // for USE_GETTEXT
7 #define gettext(String) String
10 #define _(String) gettext(String)
11 #define gettext_noop(String) String
12 #define N_(String) gettext_noop (String)
14 inline void init_gettext(const char *path) {
16 bindtextdomain(PROJECT_NAME, path);
17 textdomain(PROJECT_NAME);
21 inline wchar_t* chartowchar_t(const char *str)
23 size_t l = strlen(str)+1;
24 wchar_t* nstr = new wchar_t[l];
25 mbstowcs(nstr, str, l);
29 inline void changeCtype(const char *l)
32 ret = setlocale(LC_CTYPE, l);
34 std::cout<<"locale could not be set"<<std::endl;
36 std::cout<<"locale has been set to:"<<ret<<std::endl;
38 #define GETTEXT_HEADER