Skip to content

Commit

Permalink
Applies patch to add several new strings from the fTools modules to t…
Browse files Browse the repository at this point in the history
…he qgis_xx.ts files; Patch provided by Carlos Davila

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11365 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer committed Aug 13, 2009
1 parent e2ee32c commit 061a839
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions python/plugins/fTools/tools/doPointDistance.py
@@ -1,4 +1,4 @@
#-----------------------------------------------------------
#-----------------------------------------------------------
#
# Create Point Distance Matrix
#
Expand Down Expand Up @@ -49,7 +49,7 @@ def __init__(self, iface):
QObject.connect(self.inPoint1, SIGNAL("currentIndexChanged(QString)"), self.update1)
QObject.connect(self.inPoint2, SIGNAL("currentIndexChanged(QString)"), self.update2)
# populate layer list
self.setWindowTitle("Distance matrix")
self.setWindowTitle(self.tr("Distance matrix"))
self.progressBar.setValue(0)
mapCanvas = self.iface.mapCanvas()
for i in range(mapCanvas.layerCount()):
Expand Down Expand Up @@ -104,7 +104,7 @@ def accept(self):
self.outFile.clear()
self.compute(point1, point2, field1, field2, outPath, matType, nearest, self.progressBar)
self.progressBar.setValue(100)
addToTOC = QMessageBox.information(self, "Create Point Distance Matrix", "Created output matrix:\n" + outPath)
addToTOC = QMessageBox.information(self, "Create Point Distance Matrix", self.tr("Created output matrix:\n") + outPath)
self.progressBar.setValue(0)

def saveFile(self):
Expand Down
8 changes: 4 additions & 4 deletions python/plugins/fTools/tools/doPointsInPolygon.py
@@ -1,4 +1,4 @@
#-----------------------------------------------------------
#-----------------------------------------------------------
#
# Points in Polygon
#
Expand Down Expand Up @@ -44,7 +44,7 @@ def __init__(self, iface):
# Set up the user interface from Designer.
self.setupUi(self)
QObject.connect(self.toolOut, SIGNAL("clicked()"), self.outFile)
self.setWindowTitle("Points in polygon")
self.setWindowTitle(self.tr("Points in polygon"))
# populate layer list
self.progressBar.setValue(0)
mapCanvas = self.iface.mapCanvas()
Expand Down Expand Up @@ -78,7 +78,7 @@ def accept(self):
outName = outName.left(outName.length() - 4)
self.compute(inPoly, inPts, inField, outPath, self.progressBar)
self.outShape.clear()
addToTOC = QMessageBox.question(self, "Count Points in Polygons", "Created output Shapefile:\n" + outPath
addToTOC = QMessageBox.question(self, "Count Points in Polygons", self.tr("Created output Shapefile:\n") + outPath
+ "\n\nWould you like to add the new layer to the TOC?", QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton)
if addToTOC == QMessageBox.Yes:
self.vlayer = QgsVectorLayer(outPath, unicode(outName), "ogr")
Expand Down Expand Up @@ -154,7 +154,7 @@ def getVectorLayerByName(self, myName):
if vlayer.isValid():
return vlayer
else:
QMessageBox.information(self, "Counts Points In Polygons", "Vector layer is not valid")
QMessageBox.information(self, "Counts Points In Polygons", self.tr("Vector layer is not valid"))

def getFieldList(self, vlayer):
fProvider = vlayer.dataProvider()
Expand Down
16 changes: 8 additions & 8 deletions python/plugins/fTools/tools/doSelectByLocation.py
@@ -1,4 +1,4 @@
from PyQt4.QtCore import *
from PyQt4.QtCore import *
from PyQt4.QtGui import *

from qgis.core import *
Expand All @@ -21,20 +21,20 @@ def __init__(self, iface):
self.inPolygon.addItem(layer.name())
self.inPoint.addItem(layer.name())
self.updateUI()
self.cmbModify.addItems(["creating new selection", "adding to current selection", "removing from current selection"])
self.cmbModify.addItems([self.tr("creating new selection"), self.tr("adding to current selection"), self.tr("removing from current selection")])

def updateUI(self):
self.label_5.setVisible(False)
self.lnField.setVisible(False)
self.outShape.setVisible(False)
self.toolOut.setVisible(False)
self.label_2.setVisible(False)
self.setWindowTitle("Select by location")
self.label_3.setText("Select features in:")
self.label_4.setText("that intersect features in:")
self.setWindowTitle(self.tr("Select by location"))
self.label_3.setText(self.tr("Select features in:"))
self.label_4.setText(self.tr("that intersect features in:"))
self.label_mod = QLabel(self)
self.label_mod.setObjectName("label_mod")
self.label_mod.setText("Modify current selection by:")
self.label_mod.setText(self.tr("Modify current selection by:"))
self.cmbModify = QComboBox(self)
self.cmbModify.setObjectName("cmbModify")
self.gridlayout.addWidget(self.label_mod,2,0,1,1)
Expand All @@ -43,9 +43,9 @@ def updateUI(self):

def accept(self):
if self.inPolygon.currentText() == "":
QMessageBox.information(self, "Select by location", "Please specify input layer")
QMessageBox.information(self, "Select by location", self.tr( "Please specify input layer"))
elif self.inPoint.currentText() == "":
QMessageBox.information(self, "Select by location", "Please specify select layer")
QMessageBox.information(self, "Select by location", self.tr("Please specify select layer"))
else:
inPoly = self.inPolygon.currentText()
inPts = self.inPoint.currentText()
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/fTools/tools/doSumLines.py
@@ -1,4 +1,4 @@
#-----------------------------------------------------------
#-----------------------------------------------------------
#
# Sum Lines In Polygons
#
Expand Down Expand Up @@ -44,7 +44,7 @@ def __init__(self, iface):
# Set up the user interface from Designer.
self.setupUi(self)
QObject.connect(self.toolOut, SIGNAL("clicked()"), self.outFile)
self.setWindowTitle("Sum line lengths")
self.setWindowTitle(self.tr("Sum line lengths"))
# populate layer list
self.progressBar.setValue(0)
mapCanvas = self.iface.mapCanvas()
Expand Down

0 comments on commit 061a839

Please sign in to comment.