Skip to content

Commit

Permalink
Add missing translatable strings
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed Jan 15, 2018
1 parent e3cfbb0 commit 066d677
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/layout/qgslayoutlegendwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ void QgsLayoutLegendWidget::mMoveDownToolButton_clicked()
if ( !node && !legendNode )
return;

mLegend->beginCommand( QStringLiteral( "Moved Legend Item Down" ) );
mLegend->beginCommand( tr( "Moved Legend Item Down" ) );

if ( node )
{
Expand Down Expand Up @@ -563,7 +563,7 @@ void QgsLayoutLegendWidget::mMoveUpToolButton_clicked()
if ( !node && !legendNode )
return;

mLegend->beginCommand( QStringLiteral( "Move Legend Item Up" ) );
mLegend->beginCommand( tr( "Move Legend Item Up" ) );

if ( node )
{
Expand All @@ -585,7 +585,7 @@ void QgsLayoutLegendWidget::mMoveUpToolButton_clicked()

void QgsLayoutLegendWidget::mCheckBoxAutoUpdate_stateChanged( int state )
{
mLegend->beginCommand( QStringLiteral( "Change Auto Update" ) );
mLegend->beginCommand( tr( "Change Auto Update" ) );

mLegend->setAutoUpdateModel( state == Qt::Checked );

Expand Down Expand Up @@ -699,7 +699,7 @@ void QgsLayoutLegendWidget::mAddToolButton_clicked()
const QList<QgsMapLayer *> layers = addDialog.selectedLayers();
if ( !layers.empty() )
{
mLegend->beginCommand( QStringLiteral( "Add Legend Item(s)" ) );
mLegend->beginCommand( tr( "Add Legend Item(s)" ) );
for ( QgsMapLayer *layer : layers )
{
mLegend->model()->rootGroup()->addLayer( layer );
Expand All @@ -723,7 +723,7 @@ void QgsLayoutLegendWidget::mRemoveToolButton_clicked()
return;
}

mLegend->beginCommand( QStringLiteral( "Remove Legend Item" ) );
mLegend->beginCommand( tr( "Remove Legend Item" ) );

QList<QPersistentModelIndex> indexes;
Q_FOREACH ( const QModelIndex &index, selectionModel->selectedIndexes() )
Expand Down

0 comments on commit 066d677

Please sign in to comment.