Bladeren bron

temporal: more clear user messages

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61844 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 10 jaren geleden
bovenliggende
commit
70bf5c6333
2 gewijzigde bestanden met toevoegingen van 10 en 10 verwijderingen
  1. 5 5
      lib/python/temporal/mapcalc.py
  2. 5 5
      lib/python/temporal/register.py

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

@@ -103,9 +103,9 @@ def dataset_mapcalculator(inputs, output, type, expression, base, method,
 
     # Sample all inputs by the first input and create a sample matrix
     if spatial:
-        msgr.message(_("Start spatio-temporal sampling"))
+        msgr.message(_("Starting spatio-temporal sampling..."))
     else:
-        msgr.message(_("Start temporal sampling"))
+        msgr.message(_("Starting temporal sampling..."))
     map_matrix = []
     id_list = []
     sample_map_list = []
@@ -167,7 +167,7 @@ def dataset_mapcalculator(inputs, output, type, expression, base, method,
 
         if list is None:
             dbif.close()
-            msgr.message(_("No maps in input dataset"))
+            msgr.message(_("No maps registered in input dataset"))
             return 0
 
         map_name_list = []
@@ -183,7 +183,7 @@ def dataset_mapcalculator(inputs, output, type, expression, base, method,
 
     if len(map_matrix) > 0:
 
-        msgr.message(_("Start mapcalc computation"))
+        msgr.message(_("Starting mapcalc computation..."))
 
         count = 0
         # Get the number of samples
@@ -278,7 +278,7 @@ def dataset_mapcalculator(inputs, output, type, expression, base, method,
                 proc_list = []
 
         # Register the new maps in the output space time dataset
-        msgr.message(_("Start map registration in temporal database"))
+        msgr.message(_("Starting map registration in temporal database..."))
 
         temporal_type, semantic_type, title, description = first_input.get_initial_values()
 

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

@@ -163,7 +163,7 @@ def register_maps_in_space_time_dataset(
     # Store the ids of datasets that must be updated
     datatsets_to_modify = {}
 
-    msgr.message(_("Gathering map informations"))
+    msgr.message(_("Gathering map information..."))
 
     for count in range(len(maplist)):
         if count % 50 == 0:
@@ -288,7 +288,7 @@ def register_maps_in_space_time_dataset(
             #  Gather the SQL insert statement
             statement += map.insert(dbif=dbif, execute=False)
 
-        # Sqlite3 performace better for huge datasets when committing in
+        # Sqlite3 performance is better for huge datasets when committing in
         # small chunks
         if dbif.dbmi.__name__ == "sqlite3":
             if count % 100 == 0:
@@ -303,14 +303,14 @@ def register_maps_in_space_time_dataset(
     msgr.percent(num_maps, num_maps, 1)
 
     if statement is not None and statement != "":
-        msgr.message(_("Register maps in the temporal database"))
+        msgr.message(_("Registering maps in the temporal database..."))
         dbif.execute_transaction(statement)
 
     # Finally Register the maps in the space time dataset
     if name and map_object_list:
         count = 0
         num_maps = len(map_object_list)
-        msgr.message(_("Register maps in the space time raster dataset"))
+        msgr.message(_("Registering maps in the space time raster dataset..."))
         for map in map_object_list:
             if count % 50 == 0:
                 msgr.percent(count, num_maps, 1)
@@ -319,7 +319,7 @@ def register_maps_in_space_time_dataset(
 
     # Update the space time tables
     if name and map_object_list:
-        msgr.message(_("Update space time raster dataset"))
+        msgr.message(_("Updating space time raster dataset..."))
         sp.update_from_registered_maps(dbif)
         if update_cmd_list is True:
             sp.update_command_string(dbif=dbif)