@@ -347,18 +347,18 @@ void QgsMapToolIdentify::closestVertexAttributes( const QgsAbstractGeometry &geo
347
347
QgsPoint closestPoint = geometry.vertexAt ( vId );
348
348
349
349
QgsPointXY closestPointMapCoords = mCanvas ->mapSettings ().layerToMapCoordinates ( layer, QgsPointXY ( closestPoint.x (), closestPoint.y () ) );
350
- derivedAttributes.insert ( QStringLiteral ( " Closest vertex X" ), formatXCoordinate ( closestPointMapCoords ) );
351
- derivedAttributes.insert ( QStringLiteral ( " Closest vertex Y" ), formatYCoordinate ( closestPointMapCoords ) );
350
+ derivedAttributes.insert ( tr ( " Closest vertex X" ), formatXCoordinate ( closestPointMapCoords ) );
351
+ derivedAttributes.insert ( tr ( " Closest vertex Y" ), formatYCoordinate ( closestPointMapCoords ) );
352
352
353
353
if ( closestPoint.is3D () )
354
354
{
355
355
str = QLocale ().toString ( closestPoint.z (), ' g' , 10 );
356
- derivedAttributes.insert ( QStringLiteral ( " Closest vertex Z" ), str );
356
+ derivedAttributes.insert ( tr ( " Closest vertex Z" ), str );
357
357
}
358
358
if ( closestPoint.isMeasure () )
359
359
{
360
360
str = QLocale ().toString ( closestPoint.m (), ' g' , 10 );
361
- derivedAttributes.insert ( QStringLiteral ( " Closest vertex M" ), str );
361
+ derivedAttributes.insert ( tr ( " Closest vertex M" ), str );
362
362
}
363
363
364
364
if ( vId.type == QgsVertexId::CurveVertex )
@@ -527,19 +527,19 @@ QMap< QString, QString > QgsMapToolIdentify::featureDerivedAttributes( const Qgs
527
527
// Include the x and y coordinates of the point as a derived attribute
528
528
QgsPointXY pnt = mCanvas ->mapSettings ().layerToMapCoordinates ( layer, feature.geometry ().asPoint () );
529
529
QString str = formatXCoordinate ( pnt );
530
- derivedAttributes.insert ( QStringLiteral ( " X" ), str );
530
+ derivedAttributes.insert ( tr ( " X" ), str );
531
531
str = formatYCoordinate ( pnt );
532
- derivedAttributes.insert ( QStringLiteral ( " Y" ), str );
532
+ derivedAttributes.insert ( tr ( " Y" ), str );
533
533
534
534
if ( QgsWkbTypes::hasZ ( wkbType ) )
535
535
{
536
536
str = QLocale ().toString ( static_cast <const QgsPoint *>( feature.geometry ().constGet () )->z (), ' g' , 10 );
537
- derivedAttributes.insert ( QStringLiteral ( " Z" ), str );
537
+ derivedAttributes.insert ( tr ( " Z" ), str );
538
538
}
539
539
if ( QgsWkbTypes::hasM ( wkbType ) )
540
540
{
541
541
str = QLocale ().toString ( static_cast <const QgsPoint *>( feature.geometry ().constGet () )->m (), ' g' , 10 );
542
- derivedAttributes.insert ( QStringLiteral ( " M" ), str );
542
+ derivedAttributes.insert ( tr ( " M" ), str );
543
543
}
544
544
}
545
545
else
0 commit comments