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
This commit is contained in:
Kevin P. Fleming
2005-07-07 22:32:20 +00:00
parent f1a18b8066
commit f268ea2b3c
9 changed files with 17 additions and 17 deletions

View File

@@ -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");
}