summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_sayunixtime.c11
-rwxr-xr-xapps/app_voicemail.c2
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 */