@@ -58,9 +58,9 @@ QgsStyleV2ManagerDialog::QgsStyleV2ManagerDialog( QgsStyleV2* style, QWidget* pa
5858 tabItemType->setDocumentMode ( true );
5959#endif
6060#if QT_VERSION >= 0x40700
61- searchBox->setPlaceholderText ( tr ( " Type here to filter symbols ..." ) );
61+ searchBox->setPlaceholderText ( tr ( " Type here to filter symbols..." ) );
6262#else
63- searchBox->setToolTip ( tr ( " Type here to filter symbols ..." ) );
63+ searchBox->setToolTip ( tr ( " Type here to filter symbols..." ) );
6464#endif
6565
6666 // setup icons
@@ -77,9 +77,9 @@ QgsStyleV2ManagerDialog::QgsStyleV2ManagerDialog( QgsStyleV2* style, QWidget* pa
7777 connect ( btnEditItem, SIGNAL ( clicked () ), this , SLOT ( editItem () ) );
7878 connect ( btnRemoveItem, SIGNAL ( clicked () ), this , SLOT ( removeItem () ) );
7979
80- QMenu *shareMenu = new QMenu ( " Share Menu" , this );
81- QAction *exportAction = shareMenu->addAction ( " Export" );
82- QAction *importAction = shareMenu->addAction ( " Import" );
80+ QMenu *shareMenu = new QMenu ( tr ( " Share Menu" ) , this );
81+ QAction *exportAction = shareMenu->addAction ( tr ( " Export" ) );
82+ QAction *importAction = shareMenu->addAction ( tr ( " Import" ) );
8383 connect ( exportAction, SIGNAL ( triggered () ), this , SLOT ( exportItems () ) );
8484 connect ( importAction, SIGNAL ( triggered () ), this , SLOT ( importItems () ) );
8585 btnShare->setMenu ( shareMenu );
@@ -106,9 +106,9 @@ QgsStyleV2ManagerDialog::QgsStyleV2ManagerDialog( QgsStyleV2* style, QWidget* pa
106106 connect ( groupModel, SIGNAL ( itemChanged ( QStandardItem* ) ),
107107 this , SLOT ( groupRenamed ( QStandardItem* ) ) );
108108
109- QMenu *groupMenu = new QMenu ( " Group Actions" , this );
110- QAction *groupSymbols = groupMenu->addAction ( " Group Symbols" );
111- QAction *editSmartgroup = groupMenu->addAction ( " Edit Smart Group" );
109+ QMenu *groupMenu = new QMenu ( tr ( " Group Actions" ) , this );
110+ QAction *groupSymbols = groupMenu->addAction ( tr ( " Group Symbols" ) );
111+ QAction *editSmartgroup = groupMenu->addAction ( tr ( " Edit Smart Group" ) );
112112 btnManageGroups->setMenu ( groupMenu );
113113 connect ( groupSymbols, SIGNAL ( triggered () ), this , SLOT ( groupSymbolsAction () ) );
114114 connect ( editSmartgroup, SIGNAL ( triggered () ), this , SLOT ( editSmartgroupAction () ) );
@@ -922,7 +922,7 @@ void QgsStyleV2ManagerDialog::addGroup()
922922 }
923923 else
924924 {
925- itemName = QString ( " New Group" );
925+ itemName = QString ( tr ( " New Group" ) );
926926 itemData = QVariant ( " newgroup" );
927927 }
928928
@@ -1030,7 +1030,7 @@ void QgsStyleV2ManagerDialog::groupSymbolsAction()
10301030 if ( mGrouppingMode )
10311031 {
10321032 mGrouppingMode = false ;
1033- senderAction->setText ( " Group Symbols" );
1033+ senderAction->setText ( tr ( " Group Symbols" ) );
10341034 // disconnect slot which handles regrouping
10351035 disconnect ( model, SIGNAL ( itemChanged ( QStandardItem* ) ),
10361036 this , SLOT ( regrouped ( QStandardItem* ) ) );
@@ -1067,7 +1067,7 @@ void QgsStyleV2ManagerDialog::groupSymbolsAction()
10671067
10681068 mGrouppingMode = true ;
10691069 // Change the text menu
1070- senderAction->setText ( " Finish Grouping" );
1070+ senderAction->setText ( tr ( " Finish Grouping" ) );
10711071 // Remove all Symbol editing functionalities
10721072 disconnect ( treeModel, SIGNAL ( itemChanged ( QStandardItem* ) ),
10731073 this , SLOT ( groupRenamed ( QStandardItem* ) ) );
@@ -1259,37 +1259,37 @@ void QgsStyleV2ManagerDialog::grouptreeContextMenu( const QPoint& point )
12591259 QPoint globalPos = groupTree->viewport ()->mapToGlobal ( point );
12601260
12611261 QModelIndex index = groupTree->indexAt ( point );
1262- QgsDebugMsg ( " Now you clicked : " + index.data ().toString () );
1262+ QgsDebugMsg ( " Now you clicked: " + index.data ().toString () );
12631263
12641264 QMenu groupMenu;
12651265
12661266 if ( index.parent ().isValid () && ( index.data ().toString () != " Ungrouped" ) )
12671267 {
12681268 if ( index.parent ().data ( Qt::UserRole + 1 ).toString () == " smartgroups" )
12691269 {
1270- groupMenu.addAction ( " Edit Group" );
1270+ groupMenu.addAction ( tr ( " Edit Group" ) );
12711271 }
12721272 else
12731273 {
1274- groupMenu.addAction ( " Add Group" );
1274+ groupMenu.addAction ( tr ( " Add Group" ) );
12751275 }
1276- groupMenu.addAction ( " Remove Group" );
1276+ groupMenu.addAction ( tr ( " Remove Group" ) );
12771277 }
12781278 else if ( index.data ( Qt::UserRole + 1 ) == " groups" || index.data ( Qt::UserRole + 1 ) == " smartgroups" )
12791279 {
1280- groupMenu.addAction ( " Add Group" );
1280+ groupMenu.addAction ( tr ( " Add Group" ) );
12811281 }
12821282
12831283
12841284 QAction* selectedItem = groupMenu.exec ( globalPos );
12851285
12861286 if ( selectedItem )
12871287 {
1288- if ( selectedItem->text () == " Add Group" )
1288+ if ( selectedItem->text () == tr ( " Add Group" ) )
12891289 addGroup ();
1290- else if ( selectedItem->text () == " Remove Group" )
1290+ else if ( selectedItem->text () == tr ( " Remove Group" ) )
12911291 removeGroup ();
1292- else if ( selectedItem->text () == " Edit Group" )
1292+ else if ( selectedItem->text () == tr ( " Edit Group" ) )
12931293 editSmartgroupAction ();
12941294 }
12951295}
@@ -1300,15 +1300,15 @@ void QgsStyleV2ManagerDialog::listitemsContextMenu( const QPoint& point )
13001300
13011301 QMenu *groupMenu = new QMenu ( this );
13021302 QMenu *groupList = new QMenu ( this );
1303- groupList->setTitle ( " Apply Group" );
1303+ groupList->setTitle ( tr ( " Apply Group" ) );
13041304
13051305 QStringList groups = mStyle ->groupNames ();
13061306 foreach ( QString group, groups )
13071307 {
13081308 groupList->addAction ( group );
13091309 }
13101310 groupMenu->addMenu ( groupList );
1311- groupMenu->addAction ( " Un-group" );
1311+ groupMenu->addAction ( tr ( " Un-group" ) );
13121312
13131313 QAction* selectedItem = groupMenu->exec ( globalPos );
13141314
@@ -1321,7 +1321,7 @@ void QgsStyleV2ManagerDialog::listitemsContextMenu( const QPoint& point )
13211321 return ;
13221322 }
13231323 int groupId = 0 ;
1324- if ( selectedItem->text () != " Un-group" )
1324+ if ( selectedItem->text () != tr ( " Un-group" ) )
13251325 {
13261326 groupId = mStyle ->groupId ( selectedItem->text () );
13271327 }
0 commit comments