Переглянути джерело

temporal: more clear user messages

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61846 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 10 роки тому
батько
коміт
7700dc407c

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

@@ -123,7 +123,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()
@@ -141,7 +141,7 @@ def aggregate_raster_maps(inputs, base, start, end, count, method,
                          "use overwrite flag to overwrite"%({"name":new_map.get_name()})))
             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
@@ -166,7 +166,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()
@@ -266,7 +266,7 @@ def aggregate_by_topology(granularity_list,  granularity,  map_list,  topo_list,
                 aggregation_list.append(map_layer.get_name())
 
         if aggregation_list:
-            msgr.verbose(_("Aggregate %(len)i raster maps from %(start)s to %(end)s") \
+            msgr.verbose(_("Aggregating %(len)i raster maps from %(start)s to %(end)s") \
                            %({"len":len(aggregation_list),
                            "start":str(granule.temporal_extent.get_start_time()), 
                            "end":str(granule.temporal_extent.get_end_time())}))
@@ -284,7 +284,7 @@ def aggregate_by_topology(granularity_list,  granularity,  map_list,  topo_list,
 
             if map_layer.map_exists() is True and overwrite is False:
                 msgr.fatal(_("Unable to perform aggregation. Output raster map <%(name)s> "\
-                             "exists and overwrite flag is not set"%({"name":output_name})))
+                             "exists and overwrite flag was not set"%({"name":output_name})))
 
             output_list.append(map_layer)
 

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

@@ -174,7 +174,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()})
 
@@ -388,12 +388,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 "