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

git version control git at videolan.org
Thu Aug 28 00:43:29 CEST 2008


vlc | branch: 0.9-bugfix | Christophe Mutricy <xtophe at videolan.org> | Wed Aug 27 20:17:08 2008 +0100| [6313898a6a5177b1d55bcc54acdb5eb6a4199272] | committer: Christophe Mutricy 

i18n: Fixes in Qt4 tooltips.

Remeber that N_( DEFINE ) is not enough

Spotted-by: Cristian Secară
(cherry picked from commit 643c841118cd53ea2b98baebd500dac5ddfec2d2)

Signed-off-by: Christophe Mutricy <xtophe at videolan.org>

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

 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 e10a0ba..dee3774 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -850,13 +850,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