]> git.sesse.net Git - vlc/commitdiff
* ./src/libvlc.c: strings in the main module are now translated (fixes: #92).
authorSam Hocevar <sam@videolan.org>
Fri, 31 Jan 2003 13:52:26 +0000 (13:52 +0000)
committerSam Hocevar <sam@videolan.org>
Fri, 31 Jan 2003 13:52:26 +0000 (13:52 +0000)
src/libvlc.c

index c3795c8809fe1c1762d01a1b5d0adf869a9ff7fe..6f377350efb0dcaff0eadab04c009c518692714f 100644 (file)
@@ -2,7 +2,7 @@
  * libvlc.c: main libvlc source
  *****************************************************************************
  * Copyright (C) 1998-2002 VideoLAN
- * $Id: libvlc.c,v 1.59 2003/01/27 17:41:01 ipkiss Exp $
+ * $Id: libvlc.c,v 1.60 2003/01/31 13:52:26 sam Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -167,6 +167,11 @@ int VLC_Create( void )
         msg_Dbg( &libvlc, COPYRIGHT_MESSAGE );
         msg_Dbg( &libvlc, "libvlc was configured with %s", CONFIGURE_LINE );
 
+        /* Set language now, otherwise the main module's strings will not
+         * be translated. FIXME: this is a hack, the correct way is to have
+         * SetLanguage dynamically retranslate all module strings. */
+        SetLanguage( "" );
+
         /* Initialize the module bank and load the configuration of the
          * main module. We need to do this at this stage to be able to display
          * a short help if required by the user. (short help == main module