Commit 7910ae7a authored by Christophe Mutricy's avatar Christophe Mutricy

Only do translation in Qt when asked.

parent aa9715b2
...@@ -283,6 +283,7 @@ static void Init( intf_thread_t *p_intf ) ...@@ -283,6 +283,7 @@ static void Init( intf_thread_t *p_intf )
else else
/*if( p_intf->pf_show_dialog )*/ /*if( p_intf->pf_show_dialog )*/
vlc_thread_ready( p_intf ); vlc_thread_ready( p_intf );
#ifdef ENABLE_NLS
// Translation - get locale // Translation - get locale
QLocale ql = QLocale::system(); QLocale ql = QLocale::system();
// Translations for qt's own dialogs // Translations for qt's own dialogs
...@@ -299,7 +300,7 @@ static void Init( intf_thread_t *p_intf ) ...@@ -299,7 +300,7 @@ static void Init( intf_thread_t *p_intf )
if (!b_loaded) if (!b_loaded)
msg_Dbg( p_intf, "Error while initializing qt-specific localization" ); msg_Dbg( p_intf, "Error while initializing qt-specific localization" );
app->installTranslator( &qtTranslator ); app->installTranslator( &qtTranslator );
#endif //ENABLE_NLS
/* Start playing if needed */ /* Start playing if needed */
if( !p_intf->pf_show_dialog && p_intf->b_play ) if( !p_intf->pf_show_dialog && p_intf->b_play )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment