diff options
author | Yevgeny Makarov <jenkm> | 2019-10-01 21:15:16 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-10-01 21:18:48 +0300 |
commit | 3e8276311ed17d12e8b47b4fe8e2f68c1ce8c603 (patch) | |
tree | 8ded1a157eff21907d21f7c66b1cb903eb86d76e /source/blender/editors/space_outliner/outliner_edit.c | |
parent | 17f6b4d0f8d9b55b631fbf3fa24e81d1266c3ec8 (diff) |
UI: use correct singular and plural nouns in report messages
Differential Revision: https://developer.blender.org/D5729
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_edit.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_edit.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c index 0e2a8afea17..c81d292a859 100644 --- a/source/blender/editors/space_outliner/outliner_edit.c +++ b/source/blender/editors/space_outliner/outliner_edit.c @@ -770,7 +770,11 @@ static int outliner_id_copy_exec(bContext *C, wmOperator *op) BLI_make_file_string("/", str, BKE_tempdir_base(), "copybuffer.blend"); BKE_copybuffer_save(bmain, str, op->reports); - BKE_reportf(op->reports, RPT_INFO, "Copied %d selected data-blocks", num_ids); + BKE_reportf(op->reports, + RPT_INFO, + num_ids == 1 ? "Copied %d selected data-block" : + "Copied %d selected data-blocks", + num_ids); return OPERATOR_FINISHED; } @@ -804,7 +808,11 @@ static int outliner_id_paste_exec(bContext *C, wmOperator *op) WM_event_add_notifier(C, NC_WINDOW, NULL); - BKE_reportf(op->reports, RPT_INFO, "%d data-blocks pasted", num_pasted); + BKE_reportf(op->reports, + RPT_INFO, + num_pasted == 1 ? "%d data-block pasted" : + "%d data-blocks pasted", + num_pasted); return OPERATOR_FINISHED; } @@ -2257,7 +2265,11 @@ static int outliner_orphans_purge_exec(bContext *C, wmOperator *op) BKE_id_multi_tagged_delete(bmain); - BKE_reportf(op->reports, RPT_INFO, "Deleted %d data-blocks", num_tagged[INDEX_ID_NULL]); + BKE_reportf(op->reports, + RPT_INFO, + num_tagged[INDEX_ID_NULL] == 1 ? "Deleted %d data-block" : + "Deleted %d data-blocks", + num_tagged[INDEX_ID_NULL]); /* XXX: tree management normally happens from draw_outliner(), but when * you're clicking to fast on Delete object from context menu in |