diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-07 22:32:20 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-07 22:32:20 +0000 |
commit | f268ea2b3c1ec5e3718dddea2aeaed0329eeaa24 (patch) | |
tree | a573b667aaa5d433b557f82b7ca439d79d1fd191 /apps | |
parent | f1a18b8066d100676b06cf7ee62c6a76c53b2530 (diff) |
make CLI output use singular/plural when appropriate (bug #4654)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_groupcount.c | 2 | ||||
-rwxr-xr-x | apps/app_read.c | 2 | ||||
-rwxr-xr-x | apps/app_realtime.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_groupcount.c b/apps/app_groupcount.c index d9a841f5d..ab31a3942 100755 --- a/apps/app_groupcount.c +++ b/apps/app_groupcount.c @@ -202,7 +202,7 @@ static int group_show_channels(int fd, int argc, char *argv[]) if (havepattern) regfree(®exbuf); - ast_cli(fd, "%d active channel(s)\n", numchans); + ast_cli(fd, "%d active channel%s\n", numchans, (numchans != 1) ? "s" : ""); return RESULT_SUCCESS; } diff --git a/apps/app_read.c b/apps/app_read.c index 0f0ab3752..0884c0d8b 100755 --- a/apps/app_read.c +++ b/apps/app_read.c @@ -159,7 +159,7 @@ static int read_exec(struct ast_channel *chan, void *data) tries--; if (option_verbose > 2) { if (tries) - ast_verbose(VERBOSE_PREFIX_3 "User entered nothing, %d chance(s) left\n", tries); + ast_verbose(VERBOSE_PREFIX_3 "User entered nothing, %d chance%s left\n", tries, (tries != 1) ? "s" : ""); else ast_verbose(VERBOSE_PREFIX_3 "User entered nothing.\n"); } diff --git a/apps/app_realtime.c b/apps/app_realtime.c index d4ded9c20..339801954 100755 --- a/apps/app_realtime.c +++ b/apps/app_realtime.c @@ -92,7 +92,7 @@ static int cli_update_realtime(int fd, int argc, char **argv) { return RESULT_SUCCESS; } - ast_cli(fd, "Updated %d RealTime record(s).\n", res); + ast_cli(fd, "Updated %d RealTime record%s.\n", res, (res != 1) ? "s" : ""); return RESULT_SUCCESS; } |