Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv20594
Modified Files:
pbx.c
Log Message:
clean up singular vs. plural output for the 'show dialplan' CLI command
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.275
retrieving revision 1.276
diff -u -d -r1.275 -r1.276
--- pbx.c 14 Sep 2005 20:46:49 -0000 1.275
+++ pbx.c 16 Sep 2005 18:11:00 -0000 1.276
@@ -3506,8 +3506,10 @@
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;
_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs