Skip to content

Commit

Permalink
Reword vector layer capability strings for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 24, 2016
1 parent 1e3c64d commit cd145bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/core/qgsvectordataprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,20 +204,20 @@ QString QgsVectorDataProvider::capabilitiesString() const

if ( abilities & QgsVectorDataProvider::SimplifyGeometries )
{
abilitiesList += tr( "Simplify Geometries" );
QgsDebugMsg( "Capability: Simplify Geometries before fetch the feature" );
abilitiesList += tr( "Presimplify Geometries" );
QgsDebugMsg( "Capability: Simplify Geometries before fetching the feature" );
}

if ( abilities & QgsVectorDataProvider::SimplifyGeometriesWithTopologicalValidation )
{
abilitiesList += tr( "Simplify Geometries with topological validation" );
abilitiesList += tr( "Presimplify Geometries with Validity Check" );
QgsDebugMsg( "Capability: Simplify Geometries before fetch the feature ensuring that the result is a valid geometry" );
}

if ( abilities & QgsVectorDataProvider::ChangeFeatures )
{
abilitiesList += tr( "Joint Geometry and Attributes updates" );
QgsDebugMsg( "Capability: change attributes and geometries at once" );
abilitiesList += tr( "Simultaneous Geometry and Attribute Updates" );
QgsDebugMsg( "Capability: change both feature attributes and geometry at once" );
}

return abilitiesList.join( ", " );
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3541,7 +3541,7 @@ QString QgsVectorLayer::metadata()
myMetadata += QString::number( featureCount() );
myMetadata += "</p>\n";
//capabilities
myMetadata += "<p class=\"glossy\">" + tr( "Editing capabilities of this layer" ) + "</p>\n";
myMetadata += "<p class=\"glossy\">" + tr( "Capabilities of this layer" ) + "</p>\n";
myMetadata += "<p>";
myMetadata += capabilitiesString();
myMetadata += "</p>\n";
Expand Down

0 comments on commit cd145bb

Please sign in to comment.