]> git.sesse.net Git - vlc/commitdiff
winvlc: enable improved gettext language detection for Windows Vista
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 12 Jul 2012 19:39:44 +0000 (22:39 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 12 Jul 2012 19:39:44 +0000 (22:39 +0300)
bin/winvlc.c

index de7674928d7e6efa3e9bd60926f2ed45d6f9e986..e86fe755a1ad89437933abd2a0eecb443fca670e 100644 (file)
@@ -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");