diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-05-09 18:15:49 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-05-09 18:15:49 +0200 |
commit | 23fb72d1b80288b37cfac54bcc1b334d8ff0f460 (patch) | |
tree | a5b1b20a8c057fe60480b47b76371a25d19fcc38 | |
parent | 3c6ffd36bc58c05875957a509117c3136511d0d7 (diff) | |
download | experiment-player-23fb72d1b80288b37cfac54bcc1b334d8ff0f460.tar.gz |
enforce "English" as locale
experiment-player is currently not localized. this resulted in different
languages for stock items and custom-labeled items.
-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??? */ |