Skip to content
Permalink
Browse files

Reword vector layer capability strings for consistency

  • Loading branch information
nyalldawson committed Feb 24, 2016
1 parent 1e3c64d commit cd145bb4b3f08364d459b6bf8b512a3891764400
Showing with 6 additions and 6 deletions.
  1. +5 −5 src/core/qgsvectordataprovider.cpp
  2. +1 −1 src/core/qgsvectorlayer.cpp
@@ -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( ", " );
@@ -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";

0 comments on commit cd145bb

Please sign in to comment.
You can’t perform that action at this time.