[vlc-commits] winvlc: enable improved gettext language detection for Windows Vista

Rémi Denis-Courmont git at videolan.org
Thu Jul 12 21:55:54 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 12 22:39:44 2012 +0300| [89e8034a7250a3dd7bf9e6c00aa03798c530c544] | committer: Rémi Denis-Courmont

winvlc: enable improved gettext language detection for Windows Vista

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=89e8034a7250a3dd7bf9e6c00aa03798c530c544
---

 bin/winvlc.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bin/winvlc.c b/bin/winvlc.c
index de76749..e86fe75 100644
--- a/bin/winvlc.c
+++ b/bin/winvlc.c
@@ -121,6 +121,13 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
     int argc;
 
 #ifndef UNDER_CE
+    /* VLC does not change the thread locale, so gettext/libintil will use the
+     * user default locale as reference. */
+    /* gettext versions 0.18-0.18.1 will use the Windows Vista locale name
+     * if the GETTEXT_MUI environment variable is set. If not set or if running
+     * on Windows 2000/XP/2003 an hard-coded language ID list is used. This
+     * putenv() call may become redundant with later versions of gettext. */
+    putenv("GETTEXT_MUI=1");
 #ifdef TOP_BUILDDIR
     putenv("VLC_PLUGIN_PATH=Z:"TOP_BUILDDIR"/modules");
     putenv("VLC_DATA_PATH=Z:"TOP_SRCDIR"/share");



More information about the vlc-commits mailing list