summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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.