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:
authorCampbell Barton <ideasman42@gmail.com>2021-11-05 07:58:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-11-05 07:58:01 +0300
commit68e86c4816a0fb18a8bd393d938dc8f95c1d0807 (patch)
tree93dce8ce86e04619103bed1d6563de32175c11b6 /source/blender/editors/curve/editcurve.c
parent9b1882f986848ff98de8261e6fee2ce3c26f70db (diff)
Cleanup: use (s) postfix for messages that may be plural
Ref 01c824ac88a0ff95a26c26be09f7a8853e47e446
Diffstat (limited to 'source/blender/editors/curve/editcurve.c')
-rw-r--r--source/blender/editors/curve/editcurve.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c
index 029c8b05923..46bf1f6c9b5 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -1437,20 +1437,13 @@ static int separate_exec(bContext *C, wmOperator *op)
/* Some curves changed, but some curves failed: don't explain why it failed. */
if (status.changed) {
- BKE_reportf(op->reports,
- RPT_INFO,
- tot_errors == 1 ? "%d curve could not be separated" :
- "%d curves could not be separated",
- tot_errors);
+ BKE_reportf(op->reports, RPT_INFO, "%d curve(s) could not be separated", tot_errors);
return OPERATOR_FINISHED;
}
/* All curves failed: If there is more than one error give a generic error report. */
if (((status.error_vertex_keys ? 1 : 0) + (status.error_generic ? 1 : 0)) > 1) {
- BKE_report(op->reports,
- RPT_ERROR,
- tot_errors == 1 ? "Could not separate selected curves" :
- "Could not separate selected curve");
+ BKE_report(op->reports, RPT_ERROR, "Could not separate selected curve(s)");
}
/* All curves failed due to the same error. */
@@ -4708,11 +4701,7 @@ static int make_segment_exec(bContext *C, wmOperator *op)
if (tot_errors > 0) {
/* Some curves changed, but some curves failed: don't explain why it failed. */
if (status.changed) {
- BKE_reportf(op->reports,
- RPT_INFO,
- tot_errors == 1 ? "%d curve could not make segments" :
- "%d curves could not make segments",
- tot_errors);
+ BKE_reportf(op->reports, RPT_INFO, "%d curves could not make segments", tot_errors);
return OPERATOR_FINISHED;
}