properly display translated strings in setWindowTitle in qt4 interface
authorPavlov Konstantin <thresh@videolan.org>
Mon, 13 Nov 2006 10:38:16 +0000 (10:38 +0000)
committerPavlov Konstantin <thresh@videolan.org>
Mon, 13 Nov 2006 10:38:16 +0000 (10:38 +0000)
modules/gui/qt4/dialogs/errors.cpp
modules/gui/qt4/dialogs/extended.cpp
modules/gui/qt4/dialogs/messages.cpp
modules/gui/qt4/dialogs/prefs_dialog.cpp
modules/gui/qt4/dialogs/sout.cpp
modules/gui/qt4/dialogs/streaminfo.cpp
modules/gui/qt4/main_interface.cpp

index 6b57bbb..177ea23 100644 (file)
@@ -34,7 +34,7 @@ ErrorsDialog *ErrorsDialog::instance = NULL;
 
 ErrorsDialog::ErrorsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
 {
-    setWindowTitle( _("Errors" ) );
+    setWindowTitle( qtr( "Errors" ) );
     resize( 500 , 200 );
 
     QGridLayout *layout = new QGridLayout( this );
index e143a7b..1765595 100644 (file)
@@ -38,7 +38,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
 
     l->addWidget( tab );
 
-    setWindowTitle( _("Extended controls" ) );
+    setWindowTitle( qtr( "Extended controls" ) );
     Equalizer *foo = new Equalizer( p_intf, this );
 
     tab->addTab( foo, qtr( "Equalizer" ) );
index 57d87d3..31f81b5 100644 (file)
@@ -38,7 +38,7 @@ MessagesDialog *MessagesDialog::instance = NULL;
 
 MessagesDialog::MessagesDialog( intf_thread_t *_p_intf) :  QVLCFrame( _p_intf )
 {
-    setWindowTitle( _("Messages" ) );
+    setWindowTitle( qtr( "Messages" ) );
     resize(600, 400);
 
     QGridLayout *layout = new QGridLayout(this);
index a1466a1..36f0c91 100644 (file)
@@ -40,7 +40,7 @@ PrefsDialog *PrefsDialog::instance = NULL;
 PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
 {
      QGridLayout *main_layout = new QGridLayout(this);
-     setWindowTitle( qtr("Preferences" ) );
+     setWindowTitle( qtr( "Preferences" ) );
      resize( 800, 450 );
 
      tree_panel = new QWidget(0);
index d9c3f8a..5ed3884 100644 (file)
@@ -29,7 +29,7 @@
 
 SoutDialog::SoutDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
 {
-    setWindowTitle( _("Stream output") );
+    setWindowTitle( qtr( "Stream output") );
     main = new QWidget( this );
 
     /* UI stuff */
index 1d8eed4..4b2979f 100644 (file)
@@ -37,7 +37,7 @@ StreamInfoDialog *StreamInfoDialog::instance = NULL;
 StreamInfoDialog::StreamInfoDialog( intf_thread_t *_p_intf ) :QVLCFrame( _p_intf )
 {
     i_runs = 0;
-    setWindowTitle( _("Stream information" ) );
+    setWindowTitle( qtr( "Stream information" ) );
     QGridLayout *layout = new QGridLayout(this);
 
     IT = new InfoTab( this, p_intf, true ) ;
index 1c794e5..72cb23e 100644 (file)
@@ -102,7 +102,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     visualSelectorEnabled= settings->value( "visual-selector", false ).toBool();
 
     /* UI */
-    setWindowTitle( QString::fromUtf8( _("VLC media player") ) );
+    setWindowTitle( qtr( "VLC media player" ) );
     handleMainUi( settings );
     QVLCMenu::createMenuBar( this, p_intf, playlistEmbeddedFlag,
                              advControlsEnabled, visualSelectorEnabled );