瀏覽代碼

v.db.join: message cosmetics + i18n

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48381 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父節點
當前提交
dd29ca436b
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      scripts/v.db.join/v.db.join.py

+ 6 - 6
scripts/v.db.join/v.db.join.py

@@ -68,13 +68,13 @@ def main():
     driver = f['driver']
 
     if driver == 'dbf':
-	grass.fatal(_("JOIN is not supported for tables stored in DBF format."))
+	grass.fatal(_("JOIN is not supported for tables stored in DBF format"))
 
     if not maptable:
-	grass.fatal(_("There is no table connected to this map. Cannot join any column."))
+	grass.fatal(_("There is no table connected to this map. Unable to join any column."))
 
     if not grass.vector_columns(map, layer).has_key(column):
-	grass.fatal(_("Column <%> not found in table <%s> at layer <%s>") % (column, map, layer))
+	grass.fatal(_("Column <%s> not found in table <%s> at layer <%s>") % (column, map, layer))
 
     all_cols_ot = grass.db_describe(otable, driver = driver, database = database)['cols']
     all_cols_tt = grass.vector_columns(map, int(layer)).keys()
@@ -98,15 +98,15 @@ def main():
 	# Add only the new column to the table
 	if colname not in all_cols_tt:
 	    if grass.run_command('v.db.addcolumn', map = map, columns = colspec, layer = layer) != 0:
-	        grass.fatal(_("Error creating column <%s>.") % colname)
+	        grass.fatal(_("Error creating column <%s>") % colname)
 
 	stmt = template.substitute(table = maptable, column = column,
 				   otable = otable, ocolumn = ocolumn,
 				   colname = colname)
 
-        grass.verbose("Update column <" + colname + "> of vector map <" + map + ">")
+        grass.verbose(_("Updating column <%s> of vector map <%s>...") % (colname, map))
 	if grass.write_command('db.execute', stdin = stmt, input = '-', database = database, driver = driver) != 0:
-	    grass.fatal(_("Error filling column <%s>.") % colname)
+	    grass.fatal(_("Error filling column <%s>") % colname)
 
     # write cmd history:
     grass.vector_history(map)