Skip to content

Commit

Permalink
Localization of feature count attr table titles
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Nov 30, 2021
1 parent b336967 commit 792ec70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/qgsattributetabledialog.cpp
Expand Up @@ -401,7 +401,7 @@ void QgsAttributeTableDialog::updateTitle()
QWidget *w = mDock ? qobject_cast<QWidget *>( mDock )
: mDialog ? qobject_cast<QWidget *>( mDialog )
: qobject_cast<QWidget *>( this );
w->setWindowTitle( tr( " %1 — Features Total: %2, Filtered: %3, Selected: %4" )
w->setWindowTitle( tr( " %1 — Features Total: %L2, Filtered: %L3, Selected: %L4" )
.arg( mLayer->name() )
.arg( std::max( static_cast< long long >( mMainView->featureCount() ), mLayer->featureCount() ) ) // layer count may be estimated, so use larger of the two
.arg( mMainView->filteredFeatureCount() )
Expand Down
2 changes: 1 addition & 1 deletion src/gui/attributetable/qgsdualview.cpp
Expand Up @@ -1310,7 +1310,7 @@ void QgsDualView::progress( int i, bool &cancel )
mProgressDlg->show();
}

mProgressDlg->setLabelText( tr( "%1 features loaded." ).arg( i ) );
mProgressDlg->setLabelText( tr( "%L1 features loaded." ).arg( i ) );
QCoreApplication::processEvents();

cancel = mProgressDlg && mProgressDlg->wasCanceled();
Expand Down

0 comments on commit 792ec70

Please sign in to comment.