Jelajahi Sumber

v.krige: cosmetics in messages (be more verbose + i18n)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40132 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 tahun lalu
induk
melakukan
39c11f1ce2
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      scripts/v.krige/v.krige.py

+ 3 - 2
scripts/v.krige/v.krige.py

@@ -840,12 +840,13 @@ def importR():
     # 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 @@ def importR():
     # @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: