aboutsummaryrefslogtreecommitdiffstats
path: root/say.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-25 13:46:35 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-25 13:46:35 +0000
commite2573d9dce4fdb597da2257c561e16f79905a6cc (patch)
tree32abd6db69afbea316c73bb5f080ec5fe1325cf5 /say.c
parent43559f82c873005f8976041cbfb4dab18ce922e4 (diff)
Issue 9791 - Fix pronunciation of seconds in Dutch
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@66127 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'say.c')
-rw-r--r--say.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/say.c b/say.c
index 4e9f23703..077a057a3 100644
--- a/say.c
+++ b/say.c
@@ -4573,32 +4573,7 @@ int ast_say_date_with_format_nl(struct ast_channel *chan, time_t time, const cha
break;
case 'S':
/* Seconds */
- if (tm.tm_sec == 0) {
- snprintf(nextmsg,sizeof(nextmsg), "digits/%d", tm.tm_sec);
- res = wait_file(chan,ints,nextmsg,lang);
- } else if (tm.tm_sec < 10) {
- res = wait_file(chan,ints, "digits/oh",lang);
- if (!res) {
- snprintf(nextmsg,sizeof(nextmsg), "digits/%d", tm.tm_sec);
- res = wait_file(chan,ints,nextmsg,lang);
- }
- } else if ((tm.tm_sec < 21) || (tm.tm_sec % 10 == 0)) {
- snprintf(nextmsg,sizeof(nextmsg), "digits/%d", tm.tm_sec);
- res = wait_file(chan,ints,nextmsg,lang);
- } else {
- int ten, one;
- ten = (tm.tm_sec / 10) * 10;
- one = (tm.tm_sec % 10);
- snprintf(nextmsg,sizeof(nextmsg), "digits/%d", ten);
- res = wait_file(chan,ints,nextmsg,lang);
- if (!res) {
- /* Fifty, not fifty-zero */
- if (one != 0) {
- snprintf(nextmsg,sizeof(nextmsg), "digits/%d", one);
- res = wait_file(chan,ints,nextmsg,lang);
- }
- }
- }
+ res = ast_say_number(chan, tm.tm_sec, ints, lang, (char *) NULL);
break;
case 'T':
res = ast_say_date_with_format(chan, time, ints, lang, "HMS", timezone);