diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-13 16:13:07 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-13 16:13:07 +0000 |
commit | 9e076dc898c23c4b6f88705c9fab822aa1a11056 (patch) | |
tree | d42acc06b937b300fa78849e43034c43d9efe96b /apps | |
parent | 186326097344b69a46c5b7e775f2040b81fe1d74 (diff) |
Updates from char * to const char * + german syntax + enumeration (bug #2780)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4229 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_sayunixtime.c | 11 | ||||
-rwxr-xr-x | apps/app_voicemail.c | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/apps/app_sayunixtime.c b/apps/app_sayunixtime.c index 3c32049f3..a7d09355e 100755 --- a/apps/app_sayunixtime.c +++ b/apps/app_sayunixtime.c @@ -58,16 +58,21 @@ static int sayunixtime_exec(struct ast_channel *chan, void *data) { int res=0; struct localuser *u; - char *s,*zone=NULL,*timec; + char *s,*zone=NULL,*timec,*format; time_t unixtime; - char *format = "ABdY 'digits/at' IMp"; struct timeval tv; - + LOCAL_USER_ADD(u); gettimeofday(&tv,NULL); unixtime = (time_t)tv.tv_sec; + if( !strcasecmp(chan->language, "de" ) ) { + format = "A dBY HMS"; + } else { + format = "ABdY 'digits/at' IMp"; + } + if (data) { s = data; s = ast_strdupa(s); diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 039b74284..5e6ea023c 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2423,6 +2423,8 @@ 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,"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 */ res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, "'vm-received' q 'digits/nl-om' HM", NULL); else if (!strcasecmp(chan->language,"it")) /* ITALIAN syntax */ |