Skip to content

Commit c5a435c

Browse files
author
wonder
committed
Erased untranslatable string 'Coordinates' set at startup,
made 'Scale' translatable. Fix for ticket #489. --Thia line, and those below, will be ignored-- M gui/qgsmapcanvas.cpp M gui/qgisapp.cpp git-svn-id: http://svn.osgeo.org/qgis/trunk@6327 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4aeb352 commit c5a435c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/gui/qgisapp.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -936,15 +936,15 @@ void QgisApp::createStatusBar()
936936
// plenty of display space on 1024x768 resolutions
937937
QFont myFont( "Arial", 9 );
938938
statusBar()->setFont(myFont);
939-
mScaleLabel = new QLabel(QString("Scale"),statusBar());
939+
mScaleLabel = new QLabel(QString(),statusBar());
940940
mScaleLabel->setFont(myFont);
941941
mScaleLabel->setMinimumWidth(10);
942942
mScaleLabel->setMargin(3);
943943
mScaleLabel->setAlignment(Qt::AlignCenter);
944944
QWhatsThis::add(mScaleLabel, tr("Displays the current map scale"));
945945
statusBar()->addWidget(mScaleLabel, 0,true);
946946
//coords status bar widget
947-
mCoordsLabel = new QLabel(QString("Coordinates:"), statusBar());
947+
mCoordsLabel = new QLabel(QString(), statusBar());
948948
mCoordsLabel->setMinimumWidth(10);
949949
mCoordsLabel->setFont(myFont);
950950
mCoordsLabel->setMargin(3);

src/gui/qgsmapcanvas.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ void QgsMapCanvas::setExtent(QgsRect const & r)
393393
void QgsMapCanvas::updateScale()
394394
{
395395
double scale = mMapRender->scale();
396-
QString myScaleString("Scale ");
396+
QString myScaleString = tr("Scale ");
397397
int thePrecision = 0;
398398
if (scale == 0)
399399
myScaleString = "";

0 commit comments

Comments
 (0)