Skip to content

Commit

Permalink
Use a translated list for default display expression field candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 19, 2019
1 parent e8ef12d commit bb6993f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3139,7 +3139,7 @@ QString QgsVectorLayer::displayExpression() const
// more "interesting" field names first. As such, name should
// be selected before oldname, othername, etc.
// This candidates list is a prioritized list of candidates ranked by "interestingness"!
static QStringList sCandidates{ QStringLiteral( "name" ), QStringLiteral( "descript" ), QStringLiteral( "street" ), QStringLiteral( "road" ), QStringLiteral( "id" )};
static const QStringList sCandidates( tr( "name,desc,street,road,id" ).split( ',' ) );
for ( const QString &candidate : sCandidates )
{
for ( const QgsField &field : mFields )
Expand Down

0 comments on commit bb6993f

Please sign in to comment.