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>
This commit is contained in:
Dirk Hohndel 2012-10-15 16:32:11 -07:00
parent 72c7d7c9c4
commit f97f75f961
2 changed files with 4 additions and 1 deletions

View file

@ -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";
}