@@ -187,7 +187,7 @@ void QgsGeometryValidator::validatePolygon( int idx, const QgsPolygonXY &polygon
187
187
{
188
188
if ( !ringInRing ( polygon[i], polygon[0 ] ) )
189
189
{
190
- QString msg = QObject::tr ( " ring %1 of polygon %2 not in exterior ring" ).arg ( i ).arg ( idx );
190
+ QString msg = QObject::tr ( " Ring %1 of polygon %2 not in exterior ring" ).arg ( i ).arg ( idx );
191
191
QgsDebugMsg ( msg );
192
192
emit errorFound ( QgsGeometry::Error ( msg ) );
193
193
mErrorCount ++;
@@ -235,17 +235,17 @@ void QgsGeometryValidator::run()
235
235
if ( translatedErrors.empty () )
236
236
{
237
237
// Copied from https://git.osgeo.org/gitea/geos/geos/src/branch/master/src/operation/valid/TopologyValidationError.cpp
238
- translatedErrors.insert ( QStringLiteral ( " Topology Validation Error" ), QObject::tr ( " Topology Validation Error " , " GEOS Error" ) );
239
- translatedErrors.insert ( QStringLiteral ( " Repeated Point" ), QObject::tr ( " Repeated Point " , " GEOS Error" ) );
238
+ translatedErrors.insert ( QStringLiteral ( " Topology Validation Error" ), QObject::tr ( " Topology validation error " , " GEOS Error" ) );
239
+ translatedErrors.insert ( QStringLiteral ( " Repeated Point" ), QObject::tr ( " Repeated point " , " GEOS Error" ) );
240
240
translatedErrors.insert ( QStringLiteral ( " Hole lies outside shell" ), QObject::tr ( " Hole lies outside shell" , " GEOS Error" ) );
241
241
translatedErrors.insert ( QStringLiteral ( " Holes are nested" ), QObject::tr ( " Holes are nested" , " GEOS Error" ) );
242
242
translatedErrors.insert ( QStringLiteral ( " Interior is disconnected" ), QObject::tr ( " Interior is disconnected" , " GEOS Error" ) );
243
243
translatedErrors.insert ( QStringLiteral ( " Self-intersection" ), QObject::tr ( " Self-intersection" , " GEOS Error" ) );
244
- translatedErrors.insert ( QStringLiteral ( " Ring Self-intersection" ), QObject::tr ( " Ring Self -intersection" , " GEOS Error" ) );
244
+ translatedErrors.insert ( QStringLiteral ( " Ring Self-intersection" ), QObject::tr ( " Ring self -intersection" , " GEOS Error" ) );
245
245
translatedErrors.insert ( QStringLiteral ( " Nested shells" ), QObject::tr ( " Nested shells" , " GEOS Error" ) );
246
- translatedErrors.insert ( QStringLiteral ( " Duplicate Rings" ), QObject::tr ( " Duplicate Rings " , " GEOS Error" ) );
246
+ translatedErrors.insert ( QStringLiteral ( " Duplicate Rings" ), QObject::tr ( " Duplicate rings " , " GEOS Error" ) );
247
247
translatedErrors.insert ( QStringLiteral ( " Too few points in geometry component" ), QObject::tr ( " Too few points in geometry component" , " GEOS Error" ) );
248
- translatedErrors.insert ( QStringLiteral ( " Invalid Coordinate" ), QObject::tr ( " Invalid Coordinate " , " GEOS Error" ) );
248
+ translatedErrors.insert ( QStringLiteral ( " Invalid Coordinate" ), QObject::tr ( " Invalid coordinate " , " GEOS Error" ) );
249
249
translatedErrors.insert ( QStringLiteral ( " Ring is not closed" ), QObject::tr ( " Ring is not closed" , " GEOS Error" ) );
250
250
}
251
251
@@ -325,12 +325,12 @@ void QgsGeometryValidator::run()
325
325
326
326
if ( ringInRing ( mp[i][0 ], mp[j][0 ] ) )
327
327
{
328
- emit errorFound ( QgsGeometry::Error ( QObject::tr ( " Polygon %1 inside polygon %2" ).arg ( i ).arg ( j ) ) );
328
+ emit errorFound ( QgsGeometry::Error ( QObject::tr ( " Polygon %1 lies inside polygon %2" ).arg ( i ).arg ( j ) ) );
329
329
mErrorCount ++;
330
330
}
331
331
else if ( ringInRing ( mp[j][0 ], mp[i][0 ] ) )
332
332
{
333
- emit errorFound ( QgsGeometry::Error ( QObject::tr ( " Polygon %1 inside polygon %2" ).arg ( j ).arg ( i ) ) );
333
+ emit errorFound ( QgsGeometry::Error ( QObject::tr ( " Polygon %1 lies inside polygon %2" ).arg ( j ).arg ( i ) ) );
334
334
mErrorCount ++;
335
335
}
336
336
else
0 commit comments