[GRASS-SVN] r40134 - grass/branches/develbranch_6/scripts/v.krige

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 24 16:31:32 EST 2009


Author: martinl
Date: 2009-12-24 16:31:32 -0500 (Thu, 24 Dec 2009)
New Revision: 40134

Modified:
   grass/branches/develbranch_6/scripts/v.krige/v.krige
Log:
v.krige: cosmetics in messages (be more verbose + i18n)
	 (merge r40132 from trunk)


Modified: grass/branches/develbranch_6/scripts/v.krige/v.krige
===================================================================
--- grass/branches/develbranch_6/scripts/v.krige/v.krige	2009-12-24 21:28:57 UTC (rev 40133)
+++ grass/branches/develbranch_6/scripts/v.krige/v.krige	2009-12-24 21:31:32 UTC (rev 40134)
@@ -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