From 17f4d010b408b394c16b8b2d1600f81080c5b885 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 31 Jan 2003 13:52:26 +0000 Subject: [PATCH] * ./src/libvlc.c: strings in the main module are now translated (fixes: #92). --- src/libvlc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libvlc.c b/src/libvlc.c index c3795c8809..6f377350ef 100644 --- a/src/libvlc.c +++ b/src/libvlc.c @@ -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 * Samuel Hocevar @@ -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 -- 2.20.1