Skip to content
Permalink
Browse files

[processing][needs-docs] Standardize names of z/m value algorithms

Ensures consistent capitalization and (non)hyphenation of algorithm names
  • Loading branch information
nyalldawson committed Jan 1, 2019
1 parent cef9c4e commit d59a34656086097b2e41ecf0ae230f6578d417c7
@@ -171,7 +171,7 @@ QString QgsDrapeToZAlgorithm::name() const

QString QgsDrapeToZAlgorithm::displayName() const
{
return QObject::tr( "Drape (set z-value from raster)" );
return QObject::tr( "Drape (set Z value from raster)" );
}

QStringList QgsDrapeToZAlgorithm::tags() const
@@ -234,7 +234,7 @@ QString QgsDrapeToMAlgorithm::name() const

QString QgsDrapeToMAlgorithm::displayName() const
{
return QObject::tr( "Set m-value from raster" );
return QObject::tr( "Set M value from raster" );
}

QStringList QgsDrapeToMAlgorithm::tags() const
@@ -244,14 +244,14 @@ QStringList QgsDrapeToMAlgorithm::tags() const

QString QgsDrapeToMAlgorithm::shortHelpString() const
{
return QObject::tr( "This algorithm sets the m-value for every vertex in the feature geometry to a value sampled from a band within a raster layer." )
return QObject::tr( "This algorithm sets the M value for every vertex in the feature geometry to a value sampled from a band within a raster layer." )
+ QStringLiteral( "\n\n" )
+ QObject::tr( "The raster values can optionally be scaled by a preset amount." );
}

QString QgsDrapeToMAlgorithm::shortDescription() const
{
return QObject::tr( "Sets the m-value for vertices to values sampled from a raster layer." );
return QObject::tr( "Sets the M value for vertices to values sampled from a raster layer." );
}

QgsDrapeToMAlgorithm *QgsDrapeToMAlgorithm::createInstance() const
@@ -123,7 +123,7 @@ QString QgsFilterVerticesByM::name() const

QString QgsFilterVerticesByM::displayName() const
{
return QObject::tr( "Filter vertices by m value" );
return QObject::tr( "Filter vertices by M value" );
}

QStringList QgsFilterVerticesByM::tags() const
@@ -173,7 +173,7 @@ QString QgsFilterVerticesByZ::name() const

QString QgsFilterVerticesByZ::displayName() const
{
return QObject::tr( "Filter vertices by z value" );
return QObject::tr( "Filter vertices by Z value" );
}

QStringList QgsFilterVerticesByZ::tags() const
@@ -160,7 +160,7 @@ QString QgsVariableWidthBufferByMAlgorithm::name() const

QString QgsVariableWidthBufferByMAlgorithm::displayName() const
{
return QObject::tr( "Variable width buffer (by m-value)" );
return QObject::tr( "Variable width buffer (by M value)" );
}

QStringList QgsVariableWidthBufferByMAlgorithm::tags() const
@@ -205,7 +205,7 @@ bool QgsVariableWidthBufferByMAlgorithm::prepareAlgorithm( const QVariantMap &pa

QString QgsVariableWidthBufferByMAlgorithm::shortHelpString() const
{
return QObject::tr( "This algorithm creates variable width buffers along lines, using the m-value of the line geometries "
return QObject::tr( "This algorithm creates variable width buffers along lines, using the M value of the line geometries "
"as the diameter of the buffer at each vertex." );
}

0 comments on commit d59a346

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