[GRASS-SVN] r40132 - grass/trunk/scripts/v.krige
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 24 16:27:14 EST 2009
Author: martinl
Date: 2009-12-24 16:27:14 -0500 (Thu, 24 Dec 2009)
New Revision: 40132
Modified:
grass/trunk/scripts/v.krige/v.krige.py
Log:
v.krige: cosmetics in messages (be more verbose + i18n)
Modified: grass/trunk/scripts/v.krige/v.krige.py
===================================================================
--- grass/trunk/scripts/v.krige/v.krige.py 2009-12-24 21:20:48 UTC (rev 40131)
+++ grass/trunk/scripts/v.krige/v.krige.py 2009-12-24 21:27:14 UTC (rev 40132)
@@ -840,12 +840,13 @@
# rpy2
global robjects
global rinterface
+ grass.message(_('Loading packages, please wait...'))
try:
import rpy2.robjects as robjects
import rpy2.rinterface as rinterface #to speed up kriging? for plots.
haveRpy2 = True
except ImportError:
- print >> sys.stderr, "Rpy2 not found. Please install it and re-run." # ok for other OSes?
+ print >> sys.stderr, _("Rpy2 not found. Please install it and re-run.") # ok for other OSes?
haveRpy2 = False
if not haveRpy2:
sys.exit(1)
@@ -854,7 +855,7 @@
# @FIXME: it leaves a Rtmpxxxx folder into the make tempfolder and causes make complain. [markus]
for each in ["gstat", "spgrass6"]:
if not robjects.r.require(each, quietly = True)[0]:
- sys.exit(_("R package " + each + " is missing. Install it and re-run v.krige."))
+ sys.exit(_("R package % is missing. Install it and re-run v.krige.") % each)
if __name__ == '__main__':
if len(sys.argv) > 1:
More information about the grass-commit
mailing list