From: Mark Michelson Date: Tue, 25 Sep 2012 23:07:59 +0000 (+0000) Subject: Fix saying of date in Dutch. X-Git-Tag: 1.8.18.0-rc1~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee1ca213e06d9b85a40dee67993a3394201f1ce9;p=thirdparty%2Fasterisk.git Fix saying of date in Dutch. The Dutch say the date before the month. (closes issue ASTERISK-20353) Reported by: Teun Ouwehand git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@373773 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/say.c b/main/say.c index 6a9c6540ef..fe714431d7 100644 --- a/main/say.c +++ b/main/say.c @@ -5286,7 +5286,7 @@ int ast_say_date_with_format_nl(struct ast_channel *chan, time_t t, const char * char sndfile[256], nextmsg[256]; if (format == NULL) - format = "ABdY 'digits/at' IMp"; + format = "AdBY 'digits/at' IMp"; ast_localtime(&when, &tm, tzone); @@ -5408,7 +5408,7 @@ int ast_say_date_with_format_nl(struct ast_channel *chan, time_t t, const char * res = wait_file(chan, ints, nextmsg, lang); break; case 'Q': - /* Shorthand for "Today", "Yesterday", or ABdY */ + /* Shorthand for "Today", "Yesterday", or AdBY */ /* XXX As emphasized elsewhere, this should the native way in your * language to say the date, with changes in what you say, depending * upon how recent the date is. XXX */ @@ -5428,12 +5428,12 @@ int ast_say_date_with_format_nl(struct ast_channel *chan, time_t t, const char * /* Yesterday */ res = wait_file(chan, ints, "digits/yesterday", lang); } else { - res = ast_say_date_with_format_nl(chan, t, ints, lang, "ABdY", tzone); + res = ast_say_date_with_format_nl(chan, t, ints, lang, "AdBY", tzone); } } break; case 'q': - /* Shorthand for "" (today), "Yesterday", A (weekday), or ABdY */ + /* Shorthand for "" (today), "Yesterday", A (weekday), or AdBY */ { struct timeval now = ast_tvnow(); struct ast_tm tmnow; @@ -5452,7 +5452,7 @@ int ast_say_date_with_format_nl(struct ast_channel *chan, time_t t, const char * /* Within the last week */ res = ast_say_date_with_format_nl(chan, t, ints, lang, "A", tzone); } else { - res = ast_say_date_with_format_nl(chan, t, ints, lang, "ABdY", tzone); + res = ast_say_date_with_format_nl(chan, t, ints, lang, "AdBY", tzone); } } break;