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".
This commit is contained in:
Ton Roosendaal 2011-01-09 12:38:54 +00:00
parent a825df946a
commit 99e203dbd4

@ -488,7 +488,8 @@ static int removedoublesflag_exec(bContext *C, wmOperator *op)
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;