Skip to content

Commit

Permalink
[processing][needs-docs] Standardize names of z/m value algorithms
Browse files Browse the repository at this point in the history
Ensures consistent capitalization and (non)hyphenation of algorithm names
  • Loading branch information
nyalldawson committed Jan 3, 2019
1 parent cef9c4e commit d59a346
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/analysis/processing/qgsalgorithmdrape.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/analysis/processing/qgsalgorithmfiltervertices.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/analysis/processing/qgsalgorithmtaperedbuffer.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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." );
}

Expand Down

0 comments on commit d59a346

Please sign in to comment.