[QGIS Commit] r11054 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Jul 13 08:09:18 EDT 2009


Author: jef
Date: 2009-07-13 08:09:17 -0400 (Mon, 13 Jul 2009)
New Revision: 11054

Modified:
   trunk/qgis/src/app/qgsmaptoolidentify.cpp
Log:
turn start/end into first/last (note: f<l vs. s>e) in identify dialog and make them translatable

Modified: trunk/qgis/src/app/qgsmaptoolidentify.cpp
===================================================================
--- trunk/qgis/src/app/qgsmaptoolidentify.cpp	2009-07-13 10:31:34 UTC (rev 11053)
+++ trunk/qgis/src/app/qgsmaptoolidentify.cpp	2009-07-13 12:09:17 UTC (rev 11054)
@@ -352,13 +352,13 @@
       {
         // Add the start and end points in as derived attributes
         str.setNum( f_it->geometry()->asPolyline().first().x(), 'g', 10 );
-        mResults->addDerivedAttribute( featureNode, "startX", str );
+        mResults->addDerivedAttribute( featureNode, tr("firstX"), str );
         str.setNum( f_it->geometry()->asPolyline().first().y(), 'g', 10 );
-        mResults->addDerivedAttribute( featureNode, "startY", str );
+        mResults->addDerivedAttribute( featureNode, tr("firstY"), str );
         str.setNum( f_it->geometry()->asPolyline().last().x(), 'g', 10 );
-        mResults->addDerivedAttribute( featureNode, "endX", str );
+        mResults->addDerivedAttribute( featureNode, tr("lastX"), str );
         str.setNum( f_it->geometry()->asPolyline().last().y(), 'g', 10 );
-        mResults->addDerivedAttribute( featureNode, "endY", str );
+        mResults->addDerivedAttribute( featureNode, tr("lastY"), str );
       }
     }
     else if ( layer->geometryType() == QGis::Polygon )



More information about the QGIS-commit mailing list