[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34193] trunk/blender/source/blender/ editors/mesh/editmesh_tools.c: Bugfix #25547

Ton Roosendaal ton at blender.org
Sun Jan 9 13:38:54 CET 2011


Revision: 34193
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=34193
Author:   ton
Date:     2011-01-09 12:38:54 +0000 (Sun, 09 Jan 2011)
Log Message:
-----------
Bugfix #25547

Improved report print for 'remove doubles' to make it correct english.
Unsure if this kind of code can survive though, static strings do much
better for future translation efforts.

Instead of providing nice grammar sentences, we could make it more
declarative, like:

"Removed vertex amount: %d".

Modified Paths:
--------------
    trunk/blender/source/blender/editors/mesh/editmesh_tools.c

Modified: trunk/blender/source/blender/editors/mesh/editmesh_tools.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/editmesh_tools.c	2011-01-09 12:38:22 UTC (rev 34192)
+++ trunk/blender/source/blender/editors/mesh/editmesh_tools.c	2011-01-09 12:38:54 UTC (rev 34193)
@@ -488,7 +488,8 @@
 		WM_event_add_notifier(C, NC_GEOM|ND_DATA, obedit->data);
 	}
 
-	BKE_reportf(op->reports, RPT_INFO, "Removed %d vertices", count);
+	BKE_reportf(op->reports, RPT_INFO, "Removed %d vert%s.", count, (count==1)?"ex":"ices");
+
 	BKE_mesh_end_editmesh(obedit->data, em);
 
 	return OPERATOR_FINISHED;




More information about the Bf-blender-cvs mailing list