[vlmc-devel] AbstractGraphicsMediaItem.cpp: Translate menu items

Rohit Yadav git at videolan.org
Wed Jul 27 19:29:48 CEST 2011


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Wed Jul 27 23:15:23 2011 +0530| [64bd0d80ce946d9b46b29542844e7db27f442584] | committer: Rohit Yadav

AbstractGraphicsMediaItem.cpp: Translate menu items

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=64bd0d80ce946d9b46b29542844e7db27f442584
---

 src/Gui/timeline/AbstractGraphicsMediaItem.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/Gui/timeline/AbstractGraphicsMediaItem.cpp b/src/Gui/timeline/AbstractGraphicsMediaItem.cpp
index 076e662..5d5644d 100644
--- a/src/Gui/timeline/AbstractGraphicsMediaItem.cpp
+++ b/src/Gui/timeline/AbstractGraphicsMediaItem.cpp
@@ -75,8 +75,8 @@ AbstractGraphicsMediaItem::contextMenuEvent( QGraphicsSceneContextMenuEvent* eve
 
     QMenu menu( tracksView() );
 
-    QAction* removeAction = menu.addAction( "Remove" );
-    QAction* muteAction = menu.addAction( "Mute" );
+    QAction* removeAction = menu.addAction( tr( "Remove" ) );
+    QAction* muteAction = menu.addAction( tr( "Mute" ) );
     muteAction->setCheckable( true );
     muteAction->setChecked( m_muted );
 
@@ -84,11 +84,11 @@ AbstractGraphicsMediaItem::contextMenuEvent( QGraphicsSceneContextMenuEvent* eve
     QAction* unlinkAction = NULL;
 
     if ( groupItem() )
-        unlinkAction = menu.addAction( "Unlink" );
+        unlinkAction = menu.addAction( tr( "Unlink" ) );
     else
     {
         QList<QGraphicsItem*> items = scene()->selectedItems();
-        linkAction = menu.addAction( "Link" );
+        linkAction = menu.addAction( tr( "Link" ) );
 
         if ( items.count() != 2 )
             linkAction->setEnabled( false );
@@ -96,7 +96,7 @@ AbstractGraphicsMediaItem::contextMenuEvent( QGraphicsSceneContextMenuEvent* eve
 
     menu.addSeparator();
 
-    QAction* changeColorAction = menu.addAction( "Set color" );
+    QAction* changeColorAction = menu.addAction( tr( "Set color" ) );
 
     QAction* selectedAction = menu.exec( event->screenPos() );
 



More information about the Vlmc-devel mailing list