Skip to content

Commit 30e145a

Browse files
committed
Cleanup and unify text formatting in projection combo box
1 parent 4386be8 commit 30e145a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎src/gui/qgsprojectionselectionwidget.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,11 @@ void QgsProjectionSelectionWidget::setLayerCrs( const QgsCoordinateReferenceSyst
259259
{
260260
if ( layerItemIndex > -1 )
261261
{
262-
mCrsComboBox->setItemText( layerItemIndex, tr( "Layer CRS (%1, %2)" ).arg( crs.authid(), crs.description() ) );
262+
mCrsComboBox->setItemText( layerItemIndex, tr( "Layer CRS: %1 - %2" ).arg( crs.authid(), crs.description() ) );
263263
}
264264
else
265265
{
266-
mCrsComboBox->insertItem( firstRecentCrsIndex(), tr( "Layer CRS (%1, %2)" ).arg( crs.authid(), crs.description() ), QgsProjectionSelectionWidget::LayerCrs );
266+
mCrsComboBox->insertItem( firstRecentCrsIndex(), tr( "Layer CRS: %1 - %2" ).arg( crs.authid(), crs.description() ), QgsProjectionSelectionWidget::LayerCrs );
267267
}
268268
}
269269
else
@@ -280,13 +280,13 @@ void QgsProjectionSelectionWidget::addProjectCrsOption()
280280
{
281281
if ( mProjectCrs.isValid() )
282282
{
283-
mCrsComboBox->addItem( tr( "Project CRS (%1 - %2)" ).arg( mProjectCrs.authid(), mProjectCrs.description() ), QgsProjectionSelectionWidget::ProjectCrs );
283+
mCrsComboBox->addItem( tr( "Project CRS: %1 - %2" ).arg( mProjectCrs.authid(), mProjectCrs.description() ), QgsProjectionSelectionWidget::ProjectCrs );
284284
}
285285
}
286286

287287
void QgsProjectionSelectionWidget::addDefaultCrsOption()
288288
{
289-
mCrsComboBox->addItem( tr( "Default CRS (%1 - %2)" ).arg( mDefaultCrs.authid(), mDefaultCrs.description() ), QgsProjectionSelectionWidget::DefaultCrs );
289+
mCrsComboBox->addItem( tr( "Default CRS: %1 - %2" ).arg( mDefaultCrs.authid(), mDefaultCrs.description() ), QgsProjectionSelectionWidget::DefaultCrs );
290290
}
291291

292292
void QgsProjectionSelectionWidget::addCurrentCrsOption()
@@ -299,7 +299,7 @@ void QgsProjectionSelectionWidget::addCurrentCrsOption()
299299
QString QgsProjectionSelectionWidget::currentCrsOptionText( const QgsCoordinateReferenceSystem &crs ) const
300300
{
301301
if ( crs.isValid() )
302-
return tr( "Selected CRS (%1, %2)" ).arg( crs.authid(), crs.description() );
302+
return tr( "%1 - %2" ).arg( crs.authid(), crs.description() );
303303
else
304304
return tr( "invalid projection" );
305305
}

0 commit comments

Comments
 (0)