Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYevgeny Makarov <jenkm>2019-10-01 21:15:16 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-10-01 21:18:48 +0300
commit3e8276311ed17d12e8b47b4fe8e2f68c1ce8c603 (patch)
tree8ded1a157eff21907d21f7c66b1cb903eb86d76e /source/blender/editors/mesh/editmesh_tools.c
parent17f6b4d0f8d9b55b631fbf3fa24e81d1266c3ec8 (diff)
UI: use correct singular and plural nouns in report messages
Differential Revision: https://developer.blender.org/D5729
Diffstat (limited to 'source/blender/editors/mesh/editmesh_tools.c')
-rw-r--r--source/blender/editors/mesh/editmesh_tools.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index 51c668ed43c..4636d1ee71e 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -2044,7 +2044,11 @@ static int edbm_edge_rotate_selected_exec(bContext *C, wmOperator *op)
}
if (tot_failed_all != 0) {
- BKE_reportf(op->reports, RPT_WARNING, "Unable to rotate %d edge(s)", tot_failed_all);
+ BKE_reportf(op->reports,
+ RPT_WARNING,
+ tot_failed_all == 1 ? "Unable to rotate %d edge" :
+ "Unable to rotate %d edges",
+ tot_failed_all);
}
return OPERATOR_FINISHED;
@@ -3161,7 +3165,11 @@ static int edbm_remove_doubles_exec(bContext *C, wmOperator *op)
}
MEM_freeN(objects);
- BKE_reportf(op->reports, RPT_INFO, "Removed %d vertices", count_multi);
+ BKE_reportf(op->reports,
+ RPT_INFO,
+ count_multi == 1 ? "Removed %d vertex" :
+ "Removed %d vertices",
+ count_multi);
return OPERATOR_FINISHED;
}