Skip to content

Commit 2101af5

Browse files
committed
More untranslatable string fixes in vector layer properties.
1 parent ec2992e commit 2101af5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/gui/symbology-ng/qgssmartgroupeditordialog.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ QgsSmartGroupCondition::QgsSmartGroupCondition( int id, QWidget* parent ) : QWid
3030

3131
mConditionId = id;
3232

33-
mCondCombo->addItem( "has the tag", QVariant( "tag" ) );
34-
mCondCombo->addItem( "is a member of group", QVariant( "group" ) );
35-
mCondCombo->addItem( "has a part of name matching", QVariant( "name" ) );
36-
mCondCombo->addItem( "does NOT have the tag", QVariant( "!tag" ) );
37-
mCondCombo->addItem( "is NOT a member of group", QVariant( "!group" ) );
38-
mCondCombo->addItem( "has NO part of name matching", QVariant( "!name" ) );
33+
mCondCombo->addItem( tr( "has the tag" ), QVariant( "tag" ) );
34+
mCondCombo->addItem( tr( "is a member of group" ), QVariant( "group" ) );
35+
mCondCombo->addItem( tr( "has a part of name matching" ), QVariant( "name" ) );
36+
mCondCombo->addItem( tr( "does NOT have the tag" ), QVariant( "!tag" ) );
37+
mCondCombo->addItem( tr( "is NOT a member of group" ), QVariant( "!group" ) );
38+
mCondCombo->addItem( tr( "has NO part of name matching" ), QVariant( "!name" ) );
3939

4040
mRemoveBtn->setIcon( QIcon( QgsApplication::iconPath( "symbologyRemove.png" ) ) );
4141

@@ -83,8 +83,8 @@ QgsSmartGroupEditorDialog::QgsSmartGroupEditorDialog( QgsStyleV2* style, QWidget
8383

8484
mCondCount = 0;
8585

86-
mAndOrCombo->addItem( "ALL the constraints", QVariant( "AND" ) );
87-
mAndOrCombo->addItem( "any ONE of the constraints", QVariant( "OR" ) );
86+
mAndOrCombo->addItem( tr( "ALL the constraints" ), QVariant( "AND" ) );
87+
mAndOrCombo->addItem( tr( "any ONE of the constraints" ), QVariant( "OR" ) );
8888

8989
mLayout = new QGridLayout( mConditionsBox );
9090
addCondition();

src/gui/symbology-ng/qgssymbolslistwidget.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ QgsSymbolsListWidget::QgsSymbolsListWidget( QgsSymbolV2* symbol, QgsStyleV2* sty
7171
}
7272
// Set the Style Menu under btnStyle
7373
QMenu *styleMenu = new QMenu( btnStyle );
74-
QAction *styleMgrAction = new QAction( "Style Manager", styleMenu );
74+
QAction *styleMgrAction = new QAction( tr( "Style Manager" ), styleMenu );
7575
styleMenu->addAction( styleMgrAction );
76-
QAction *saveStyle = new QAction( "Save in symbol library...", styleMenu );
76+
QAction *saveStyle = new QAction( tr( "Save in symbol library..." ), styleMenu );
7777
styleMenu->addAction( saveStyle );
7878
connect( styleMgrAction, SIGNAL( triggered() ), this, SLOT( openStyleManager() ) );
7979
connect( saveStyle, SIGNAL( triggered() ), this, SLOT( addSymbolToStyle() ) );

0 commit comments

Comments
 (0)