summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-03-21 11:37:50 +0000
committerCarl Hetherington <cth@carlh.net>2013-03-21 11:37:50 +0000
commit9d283e1f5ed5b06dea2ff818daf4eff2a7e8cae5 (patch)
treee070c20bcb4e0da918be69799aae1bbe66d6d454 /src
parentfec9770dd454fdb6902180322fd3d221f2c86ed2 (diff)
Another attempt to fix i18n.
Diffstat (limited to 'src')
-rw-r--r--src/lib/util.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index abbc35749..765835bc4 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -251,8 +251,14 @@ dvdomatic_setup ()
void
dvdomatic_setup_i18n (string lang)
{
+#ifdef DVDOMATIC_WINDOWS
+ string const e = "LANGUAGE=" + lang;
+ putenv (e.c_str());
+#endif
+
+ setlocale (LC_ALL, "");
+ textdomain ("libdvdomatic");
bindtextdomain ("libdvdomatic", LOCALE_PREFIX);
- setlocale (LC_ALL, lang.c_str ());
}
/** @param start Start position for the crop within the image.