diff --git a/src/gui/qgscoordinatereferencesystemmodel.cpp b/src/gui/qgscoordinatereferencesystemmodel.cpp index 2834817c319b..06fdc39e6a8a 100644 --- a/src/gui/qgscoordinatereferencesystemmodel.cpp +++ b/src/gui/qgscoordinatereferencesystemmodel.cpp @@ -281,7 +281,7 @@ void QgsCoordinateReferenceSystemModel::userCrsAdded( const QString &id ) if ( !group ) { std::unique_ptr< QgsCoordinateReferenceSystemModelGroupNode > newGroup = std::make_unique< QgsCoordinateReferenceSystemModelGroupNode >( - tr( "User Defined Coordinate Systems" ), + tr( "User-defined" ), QgsApplication::getThemeIcon( QStringLiteral( "/user.svg" ) ), QStringLiteral( "USER" ) ); beginInsertRows( QModelIndex(), mRootNode->children().length(), mRootNode->children().length() ); mRootNode->addChildNode( newGroup.get() ); @@ -358,7 +358,7 @@ QgsCoordinateReferenceSystemModelCrsNode *QgsCoordinateReferenceSystemModel::add QIcon groupIcon; if ( record.authName == QLatin1String( "USER" ) ) { - groupName = tr( "User Defined Coordinate Systems" ); + groupName = tr( "User-defined" ); groupId = QStringLiteral( "USER" ); groupIcon = QgsApplication::getThemeIcon( QStringLiteral( "/user.svg" ) ); } @@ -468,7 +468,7 @@ QModelIndex QgsCoordinateReferenceSystemModel::addCustomCrs( const QgsCoordinate if ( !group ) { std::unique_ptr< QgsCoordinateReferenceSystemModelGroupNode > newGroup = std::make_unique< QgsCoordinateReferenceSystemModelGroupNode >( - tr( "Custom Coordinate Systems" ), + tr( "Custom" ), QgsApplication::getThemeIcon( QStringLiteral( "/user.svg" ) ), QStringLiteral( "CUSTOM" ) ); beginInsertRows( QModelIndex(), mRootNode->children().length(), mRootNode->children().length() ); mRootNode->addChildNode( newGroup.get() ); diff --git a/tests/src/python/test_qgscoordinatereferencesystemmodel.py b/tests/src/python/test_qgscoordinatereferencesystemmodel.py index b2781a6bba96..cca3ea70d0c4 100644 --- a/tests/src/python/test_qgscoordinatereferencesystemmodel.py +++ b/tests/src/python/test_qgscoordinatereferencesystemmodel.py @@ -52,8 +52,8 @@ def test_model(self): self.assertNotIn('Cassini', top_level_items) # user and custom groups should not be created until required - self.assertNotIn("User Defined Coordinate Systems", top_level_items) - self.assertNotIn("Custom Coordinate Systems", top_level_items) + self.assertNotIn("User-defined", top_level_items) + self.assertNotIn("Custom", top_level_items) # check group ids top_level_item_group_ids = [ @@ -226,8 +226,8 @@ def test_model(self): top_level_items = [ model.data(model.index(row, 0, QModelIndex()), Qt.DisplayRole) for row in range(model.rowCount(QModelIndex())) ] - self.assertIn('User Defined Coordinate Systems', top_level_items) - self.assertNotIn("Custom Coordinate Systems", top_level_items) + self.assertIn('User-defined', top_level_items) + self.assertNotIn("Custom", top_level_items) # check group ids top_level_item_group_ids = [ @@ -306,7 +306,7 @@ def test_model(self): top_level_items = [ model.data(model.index(row, 0, QModelIndex()), Qt.DisplayRole) for row in range(model.rowCount(QModelIndex())) ] - self.assertIn("Custom Coordinate Systems", top_level_items) + self.assertIn("Custom", top_level_items) # check group ids top_level_item_group_ids = [