mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Issue 9791 - Fix pronunciation of seconds in Dutch
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@66127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
27
say.c
27
say.c
@@ -4573,32 +4573,7 @@ int ast_say_date_with_format_nl(struct ast_channel *chan, time_t time, const cha
|
|||||||
break;
|
break;
|
||||||
case 'S':
|
case 'S':
|
||||||
/* Seconds */
|
/* Seconds */
|
||||||
if (tm.tm_sec == 0) {
|
res = ast_say_number(chan, tm.tm_sec, ints, lang, (char *) NULL);
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'T':
|
case 'T':
|
||||||
res = ast_say_date_with_format(chan, time, ints, lang, "HMS", timezone);
|
res = ast_say_date_with_format(chan, time, ints, lang, "HMS", timezone);
|
||||||
|
Reference in New Issue
Block a user