[GRASS-SVN] r61847 - grass/branches/releasebranch_7_0/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 9 11:30:38 PDT 2014
Author: neteler
Date: 2014-09-09 11:30:38 -0700 (Tue, 09 Sep 2014)
New Revision: 61847
Modified:
grass/branches/releasebranch_7_0/lib/python/temporal/aggregation.py
grass/branches/releasebranch_7_0/lib/python/temporal/register.py
Log:
temporal: more clear user messages
Modified: grass/branches/releasebranch_7_0/lib/python/temporal/aggregation.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/temporal/aggregation.py 2014-09-09 18:28:57 UTC (rev 61846)
+++ grass/branches/releasebranch_7_0/lib/python/temporal/aggregation.py 2014-09-09 18:30:38 UTC (rev 61847)
@@ -122,7 +122,7 @@
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 @@
"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 @@
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()
Modified: grass/branches/releasebranch_7_0/lib/python/temporal/register.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/temporal/register.py 2014-09-09 18:28:57 UTC (rev 61846)
+++ grass/branches/releasebranch_7_0/lib/python/temporal/register.py 2014-09-09 18:30:38 UTC (rev 61847)
@@ -177,7 +177,7 @@
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 @@
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 "
More information about the grass-commit
mailing list