summaryrefslogtreecommitdiffstats
path: root/windows.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-15 16:32:11 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-15 16:32:11 -0700
commitf97f75f9616259addb0d3b38b807b7d65a883147 (patch)
treec5fc06944170ea1576ab891d41f6347bd49060a8 /windows.c
parent72c7d7c9c49f2f74268062dd60f8ebc0e9746493 (diff)
downloadsubsurface-f97f75f9616259addb0d3b38b807b7d65a883147.tar.gz
Set locale under Windows
This is mostly a quick hack to be able to test localization under Windows. It seems to work fine under Windows 7 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'windows.c')
-rw-r--r--windows.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/windows.c b/windows.c
index b099193f8..6ee763245 100644
--- a/windows.c
+++ b/windows.c
@@ -153,6 +153,9 @@ const char *subsurface_default_filename()
const char *subsurface_gettext_domainpath()
{
+ char buffer[80];
+ snprintf(buffer, sizeof(buffer), "LANGUAGE=%s.UTF-8", g_win32_getlocale());
+ putenv(buffer);
return "./locale";
}