Apply suggestions from code review

Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
This commit is contained in:
Harrissou Sant-anna 2025-05-19 09:41:31 +02:00 committed by Nyall Dawson
parent 1667545641
commit 34f3e6ad18
7 changed files with 9 additions and 10 deletions

View File

@ -43,8 +43,7 @@ QString QgsRefactorFieldsAlgorithm::shortHelpString() const
QString QgsRefactorFieldsAlgorithm::shortDescription() const
{
return QObject::tr( "Allows editing the structure of the attributes table of a vector layer. Fields can be modified "
"in their type and name, using a fields mapping." );
return QObject::tr( "Allows editing the structure of the attributes table of a vector layer, permitting field renaming, creation and deletion." );
}
QStringList QgsRefactorFieldsAlgorithm::tags() const

View File

@ -50,7 +50,7 @@ QString QgsShortestLineAlgorithm::groupId() const
QString QgsShortestLineAlgorithm::shortDescription() const
{
return QObject::tr( "Creates a line layer as the shortest line between features in source and destination layers." );
return QObject::tr( "Calculates the shortest lines between features in source and destination layers." );
}
QString QgsShortestLineAlgorithm::shortHelpString() const

View File

@ -40,13 +40,13 @@ QStringList QgsShortestPathLayerToPointAlgorithm::tags() const
QString QgsShortestPathLayerToPointAlgorithm::shortHelpString() const
{
return QObject::tr( "This algorithm computes optimal (shortest or fastest) route "
return QObject::tr( "This algorithm computes optimal (shortest or fastest) routes "
"from multiple start points defined by a vector layer and a given end point." );
}
QString QgsShortestPathLayerToPointAlgorithm::shortDescription() const
{
return QObject::tr( "Computes optimal (shortest or fastest) route "
return QObject::tr( "Computes optimal (shortest or fastest) routes "
"from multiple start points defined by a vector layer and a given end point." );
}

View File

@ -69,7 +69,7 @@ QString QgsSmoothAlgorithm::shortHelpString() const
QString QgsSmoothAlgorithm::shortDescription() const
{
return QObject::tr( "Smooths the geometries in a line or polygon layer by adding vertices and corners." );
return QObject::tr( "Smooths the geometries in a line or polygon layer by adding vertices and rounding corners." );
}
QgsSmoothAlgorithm *QgsSmoothAlgorithm::createInstance() const

View File

@ -67,7 +67,7 @@ void QgsTransectAlgorithm::initAlgorithm( const QVariantMap & )
QString QgsTransectAlgorithm::shortHelpString() const
{
return QObject::tr( "This algorithm creates transects on vertices for (multi)linestring.\n" )
return QObject::tr( "This algorithm creates transects on vertices for (multi)linestrings.\n" )
+ QObject::tr( "A transect is a line oriented from an angle (by default perpendicular) to the input polylines (at vertices)." )
+ QStringLiteral( "\n\n" )
+ QObject::tr( "Field(s) from feature(s) are returned in the transect with these new fields:\n" )
@ -81,7 +81,7 @@ QString QgsTransectAlgorithm::shortHelpString() const
QString QgsTransectAlgorithm::shortDescription() const
{
return QObject::tr( "Creates transects on vertices for (multi)linestring." );
return QObject::tr( "Creates transects on vertices for (multi)linestrings." );
}
Qgis::ProcessingAlgorithmDocumentationFlags QgsTransectAlgorithm::documentationFlags() const

View File

@ -84,7 +84,7 @@ QString QgsTransformAlgorithm::shortHelpString() const
QString QgsTransformAlgorithm::shortDescription() const
{
return QObject::tr( "Creates a vector layer with geometries reprojected to a new CRS." );
return QObject::tr( "Creates a vector layer with geometries transformed to a new CRS." );
}
QgsTransformAlgorithm *QgsTransformAlgorithm::createInstance() const

View File

@ -40,7 +40,7 @@ QString QgsWriteVectorTilesBaseAlgorithm::shortHelpString() const
QString QgsWriteVectorTilesBaseAlgorithm::shortDescription() const
{
return QObject::tr( "Exports one or more vector layers to vector tiles - a data format optimized for fast map rendering and small data size." );
return QObject::tr( "Exports one or more vector layers to vector tiles." );
}
void QgsWriteVectorTilesBaseAlgorithm::addBaseParameters()