Index: python/plugins/fTools/tools/doRandPoints.py =================================================================== --- python/plugins/fTools/tools/doRandPoints.py (revision 13858) +++ python/plugins/fTools/tools/doRandPoints.py (working copy) @@ -212,9 +212,11 @@ sFeat = QgsFeature() sGeom = QgsGeometry() sPoints = [] - if design == "field": + if design == self.tr("field"): for (i, attr) in sProvider.fields().iteritems(): - if (unicode(numRand) == attr.name()): index = i #get input field index + if (unicode(numRand) == attr.name()): + index = i #get input field index + break count = 10.00 add = 60.00 / sProvider.featureCount() while sProvider.nextFeature(sFeat):