Pārlūkot izejas kodu

temporal: more clear user messages

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@61847 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 10 gadi atpakaļ
vecāks
revīzija
80524ee294

+ 3 - 3
lib/python/temporal/aggregation.py

@@ -122,7 +122,7 @@ def aggregate_raster_maps(inputs, base, start, end, count, method,
 
     msgr = get_tgis_message_interface()
 
-    msgr.verbose(_("Aggregate %s raster maps") % (len(inputs)))
+    msgr.verbose(_("Aggregating %s raster maps") % (len(inputs)))
     output = "%s_%i" % (base, int(offset) + count)
 
     mapset = get_current_mapset()
@@ -140,7 +140,7 @@ def aggregate_raster_maps(inputs, base, start, end, count, method,
                          "use overwrite flag to overwrite"))
             return
 
-    msgr.verbose(_("Compute aggregation of maps between %(st)s - %(end)s" % {
+    msgr.verbose(_("Computing aggregation of maps between %(st)s - %(end)s" % {
                    'st': str(start), 'end': str(end)}))
 
     # Create the r.series input file
@@ -165,7 +165,7 @@ def aggregate_raster_maps(inputs, base, start, end, count, method,
 
     if ret != 0:
         dbif.close()
-        msgr.fatal(_("Error while r.series computation"))
+        msgr.fatal(_("Error occurred in r.series computation"))
 
     # Read the raster map data
     new_map.load()

+ 3 - 3
lib/python/temporal/register.py

@@ -177,7 +177,7 @@ def register_maps_in_space_time_dataset(
         
         if map.map_exists() is not True:
             msgr.fatal(_("Unable to update %(t)s map <%(id)s>. "
-                            "The map does not exists.") %
+                            "The map does not exist.") %
                             {'t': map.get_type(),
                             'id': map.get_map_id()})
 
@@ -391,12 +391,12 @@ def assign_valid_time_to_map(ttype, map, start, end, unit, increment=None,
             start_time = increment_datetime_by_string(
                 start_time, increment, mult)
             if start_time is None:
-                msgr.fatal(_("Error in increment computation"))
+                msgr.fatal(_("Error occurred in increment computation"))
             if interval:
                 end_time = increment_datetime_by_string(
                     start_time, increment, 1)
                 if end_time is None:
-                    msgr.fatal(_("Error in increment computation"))
+                    msgr.fatal(_("Error occurred in increment computation"))
 
         if map.get_layer():
             msgr.debug(1, _("Set absolute valid time for map <%(id)s> with "