[vlc-devel] commit: i18n: Fixes in Qt4 tooltips. (Christophe Mutricy )

git version control git at videolan.org
Wed Aug 27 21:23:41 CEST 2008


vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Wed Aug 27 20:17:08 2008 +0100| [643c841118cd53ea2b98baebd500dac5ddfec2d2] | committer: Christophe Mutricy 

i18n: Fixes in Qt4 tooltips.

Remeber that N_( DEFINE ) is not enough

Spotted-by: Cristian Secară

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=643c841118cd53ea2b98baebd500dac5ddfec2d2
---

 modules/gui/qt4/components/interface_widgets.cpp |    8 ++++----
 modules/gui/qt4/components/open_panels.cpp       |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 305eed3..d5d9b68 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -849,13 +849,13 @@ void ControlsWidget::setNavigation( int navigation )
     {
         discFrame->hide();
     } else if( navigation == 1 ) {
-        prevSectionButton->setToolTip( qfu( HELP_PCH ) );
-        nextSectionButton->setToolTip( qfu( HELP_NCH ) );
+        prevSectionButton->setToolTip( qtr( HELP_PCH ) );
+        nextSectionButton->setToolTip( qtr( HELP_NCH ) );
         menuButton->show();
         discFrame->show();
     } else {
-        prevSectionButton->setToolTip( qfu( HELP_PCH ) );
-        nextSectionButton->setToolTip( qfu( HELP_NCH ) );
+        prevSectionButton->setToolTip( qtr( HELP_PCH ) );
+        nextSectionButton->setToolTip( qtr( HELP_NCH ) );
         menuButton->hide();
         discFrame->show();
     }
diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index ee1edca..35e7763 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -232,7 +232,7 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
     b_firstvcd = true;
     b_firstcdda = true;
 
-    ui.browseDiscButton->setToolTip( I_DEVICE_TOOLTIP );
+    ui.browseDiscButton->setToolTip( qtr( I_DEVICE_TOOLTIP ));
     ui.deviceCombo->setToolTip( I_DEVICE_TOOLTIP );
 
 #if WIN32 /* Disc drives probing for Windows */




More information about the vlc-devel mailing list