vlc | branch: master | Rémi Denis-Courmont <[email protected]> | 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");

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to