[vlc-devel] commit: Disambiguate trivial tool tips (fixes: #3068) ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Sep 14 19:30:28 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Sep 14 20:29:19 2009 +0300| [9024e28cb0c9fabb3734ab67261b1e79142ba730] | committer: Rémi Denis-Courmont 

Disambiguate trivial tool tips (fixes: #3068)

This was requested for Arabic.

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

 modules/gui/qt4/components/controller_widget.cpp |    4 ++--
 modules/gui/qt4/util/customwidgets.cpp           |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/components/controller_widget.cpp b/modules/gui/qt4/components/controller_widget.cpp
index db29542..0111aca 100644
--- a/modules/gui/qt4/components/controller_widget.cpp
+++ b/modules/gui/qt4/components/controller_widget.cpp
@@ -140,7 +140,7 @@ void SoundWidget::updateVolume( int i_sliderVolume )
     if( i_sliderVolume == 0 )
     {
         volMuteLabel->setPixmap( QPixmap(":/toolbar/volume-muted" ) );
-        volMuteLabel->setToolTip( qtr( "Unmute" ) );
+        volMuteLabel->setToolTip(qfu(vlc_pgettext("Tooltip|Unmute", "Unmute")));
         return;
     }
 
@@ -149,7 +149,7 @@ void SoundWidget::updateVolume( int i_sliderVolume )
     else if( i_sliderVolume > (VOLUME_MAX * 2 / 3 ) )
         volMuteLabel->setPixmap( QPixmap( ":/toolbar/volume-high" ) );
     else volMuteLabel->setPixmap( QPixmap( ":/toolbar/volume-medium" ) );
-    volMuteLabel->setToolTip( qtr( "Mute" ) );
+    volMuteLabel->setToolTip( qfu(vlc_pgettext("Tooltip|Mute", "Mute")) );
 }
 
 void SoundWidget::updateVolume()
diff --git a/modules/gui/qt4/util/customwidgets.cpp b/modules/gui/qt4/util/customwidgets.cpp
index 6135a10..9004517 100644
--- a/modules/gui/qt4/util/customwidgets.cpp
+++ b/modules/gui/qt4/util/customwidgets.cpp
@@ -133,7 +133,7 @@ SearchLineEdit::SearchLineEdit( QWidget *parent ) : QFrame( parent )
     clearButton->setAutoRaise( true );
     clearButton->setMaximumWidth( 30 );
     clearButton->setIcon( QIcon( ":/toolbar/clear" ) );
-    clearButton->setToolTip( qtr( "Clear" ) );
+    clearButton->setToolTip( qfu(vlc_pgettext("Tooltip|Clear", "Clear")) );
     clearButton->hide();
 
     CONNECT( clearButton, clicked(), searchLine, clear() );




More information about the vlc-devel mailing list