aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-05-09 18:15:49 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-05-09 18:15:49 +0200
commit23fb72d1b80288b37cfac54bcc1b334d8ff0f460 (patch)
treea5b1b20a8c057fe60480b47b76371a25d19fcc38 /src
parent3c6ffd36bc58c05875957a509117c3136511d0d7 (diff)
downloadexperiment-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.
Diffstat (limited to 'src')
-rw-r--r--src/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index a720e91..6d4fcfc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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??? */