diff options
author | Russell Bryant <russell@russellbryant.com> | 2005-09-16 18:11:00 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2005-09-16 18:11:00 +0000 |
commit | 56ca94095a2bf7a071232d2432563643adaa46ef (patch) | |
tree | 4b5e4492714a9863a8b4e638bd93b2204e52e53a /pbx.c | |
parent | b28847320dce3a150f2ded114d442066a7cac534 (diff) |
clean up singular vs. plural output for the 'show dialplan' CLI command
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -3506,8 +3506,10 @@ static int handle_show_dialplan(int fd, int argc, char *argv[]) return RESULT_FAILURE; } - ast_cli(fd,"-= %d extensions (%d priorities) in %d contexts. =-\n", - counters.total_exten, counters.total_prio, counters.total_context); + ast_cli(fd,"-= %d %s (%d %s) in %d %s. =-\n", + counters.total_exten, counters.total_exten == 1 ? "extension" : "extensions", + counters.total_prio, counters.total_prio == 1 ? "priority" : "priorities", + counters.total_context, counters.total_context == 1 ? "context" : "contexts"); /* everything ok */ return RESULT_SUCCESS; |