Skip to content

Commit 8e53a65

Browse files
committed
Fix some untranslatable strings
(cherry-picked from 0b6bfc3)
1 parent b58849f commit 8e53a65

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/gui/qgsmaptoolidentify.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -347,18 +347,18 @@ void QgsMapToolIdentify::closestVertexAttributes( const QgsAbstractGeometry &geo
347347
QgsPoint closestPoint = geometry.vertexAt( vId );
348348

349349
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 ) );
352352

353353
if ( closestPoint.is3D() )
354354
{
355355
str = QLocale().toString( closestPoint.z(), 'g', 10 );
356-
derivedAttributes.insert( QStringLiteral( "Closest vertex Z" ), str );
356+
derivedAttributes.insert( tr( "Closest vertex Z" ), str );
357357
}
358358
if ( closestPoint.isMeasure() )
359359
{
360360
str = QLocale().toString( closestPoint.m(), 'g', 10 );
361-
derivedAttributes.insert( QStringLiteral( "Closest vertex M" ), str );
361+
derivedAttributes.insert( tr( "Closest vertex M" ), str );
362362
}
363363

364364
if ( vId.type == QgsVertexId::CurveVertex )
@@ -527,19 +527,19 @@ QMap< QString, QString > QgsMapToolIdentify::featureDerivedAttributes( const Qgs
527527
// Include the x and y coordinates of the point as a derived attribute
528528
QgsPointXY pnt = mCanvas->mapSettings().layerToMapCoordinates( layer, feature.geometry().asPoint() );
529529
QString str = formatXCoordinate( pnt );
530-
derivedAttributes.insert( QStringLiteral( "X" ), str );
530+
derivedAttributes.insert( tr( "X" ), str );
531531
str = formatYCoordinate( pnt );
532-
derivedAttributes.insert( QStringLiteral( "Y" ), str );
532+
derivedAttributes.insert( tr( "Y" ), str );
533533

534534
if ( QgsWkbTypes::hasZ( wkbType ) )
535535
{
536536
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 );
538538
}
539539
if ( QgsWkbTypes::hasM( wkbType ) )
540540
{
541541
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 );
543543
}
544544
}
545545
else

0 commit comments

Comments
 (0)