diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-23 17:44:20 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-23 17:44:20 +0000 |
commit | 48cff611a5c85d678601352df5f7fc7afcfe3fe5 (patch) | |
tree | 0ec687f7442e998f51f5d3b0816a0121f3ee5666 /apps | |
parent | d501075341bcadf3a2ae92491b39e82441153163 (diff) |
support Swedish grammar for voicemail message counts (bug #4227)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5985 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_voicemail.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 084dc61e1..61f63d3f8 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3229,6 +3229,10 @@ static int play_message_datetime(struct ast_channel *chan, struct ast_vm_user *v #endif if (the_zone) res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, the_zone->msg_format, the_zone->timezone); + else if(!strcasecmp(chan->language,"se")) /* SWEDISH syntax */ + res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, "'vm-received' dB 'digits/at' k 'and' M", NULL); + else if(!strcasecmp(chan->language,"no")) /* NORWEGIAN syntax */ + res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, "'vm-received' Q 'digits/at' HM", NULL); else if(!strcasecmp(chan->language,"de")) /* GERMAN syntax */ res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, "'vm-received' Q 'digits/at' HM", NULL); else if (!strcasecmp(chan->language,"nl")) /* DUTCH syntax */ @@ -3347,7 +3351,12 @@ static int play_message(struct ast_channel *chan, struct ast_vm_user *vmu, struc else if (vms->curmsg == vms->lastmsg) res = wait_file2(chan, vms, "vm-last"); /* "last" */ if (!res) { - res = wait_file2(chan, vms, "vm-message"); /* "message" */ + if (!strcasecmp(chan->language, "se")) { /* SWEDISH syntax */ + res = wait_file2(chan, vms, "vm-meddelandet"); /* "message" */ + } + else { + res = wait_file2(chan, vms, "vm-message"); /* "message" */ + } if (vms->curmsg && (vms->curmsg != vms->lastmsg)) { if (!res) res = ast_say_number(chan, vms->curmsg + 1, AST_DIGIT_ANY, chan->language, (char *) NULL); |