diff options
-rw-r--r-- | src/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -2,6 +2,8 @@ #include "config.h" #endif +#include <locale.h> + #ifdef HAVE_X11_XLIB_H #include <X11/Xlib.h> #endif @@ -127,6 +129,14 @@ main(int argc, char *argv[]) GtkBuilder *builder; GtkAdjustment *adj; + /* FIXME: support internationalization instead of enforcing English */ +#ifdef __WIN32__ + g_setenv("LC_ALL", "English", TRUE); +#else + g_setenv("LC_ALL", "en", TRUE); +#endif + setlocale(LC_ALL, ""); + /* init threads */ #ifdef HAVE_X11_XLIB_H XInitThreads(); /* FIXME: really required??? */ |