[asterisk-bugs] [Asterisk 0015273]: [patch] german time (20:01:00 oh clock) is announced wrong
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Aug 25 14:33:25 CDT 2009
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=15273
======================================================================
Reported By: Benjamin Kluck
Assigned To: tilghman
======================================================================
Project: Asterisk
Issue ID: 15273
Category: Core/General
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Asterisk Version: 1.6.1.0
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2009-06-04 11:31 CDT
Last Modified: 2009-08-25 14:33 CDT
======================================================================
Summary: [patch] german time (20:01:00 oh clock) is announced
wrong
Description:
Hi!
This bug is a bit tricky to explain.
Please consider the following dialplan:
exten => 1,1,Set(CHANNEL(language)=de)
exten => 1,n,DateTime(1240336860,Europe/Berlin,HM)
asterisk says:
"Zwanzig Uhr Eine" ("Eine" is the german female (1F.gsm) of
"Eins"(1.gsm))
This is wrong. Correct would be:
"Zwanzig Uhr Eins"
We only have to say "Eine" if we say "Minute" ("Eine Minute" is correct).
So
exten => 1,n,DateTime(1240336862,Europe/Berlin,HMS)
is working correctly ("Zwanzig Uhr Eine Minute Zwei Sekunden)
There is also another problem:
In Germany we say "eine Sekunde" and "zwei Sekunden" (just like the
english "one second", "two seconds") but asterisk always says "Sekunden".
I attached a patch which corrects this behavior. Use it for your needs.
Cheers
Ben
======================================================================
----------------------------------------------------------------------
(0109611) svnbot (reporter) - 2009-08-25 14:33
https://issues.asterisk.org/view.php?id=15273#c109611
----------------------------------------------------------------------
Repository: asterisk
Revision: 214071
_U trunk/
U trunk/main/say.c
------------------------------------------------------------------------
r214071 | tilghman | 2009-08-25 14:33:25 -0500 (Tue, 25 Aug 2009) | 17
lines
Merged revisions 214068-214069 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r214068 | tilghman | 2009-08-25 14:26:50 -0500 (Tue, 25 Aug 2009) | 6
lines
Fix pronunciation of German dates.
(closes issue https://issues.asterisk.org/view.php?id=15273)
Reported by: Benjamin Kluck
Patches:
say_c.patch uploaded by Benjamin Kluck (license 803)
........
r214069 | tilghman | 2009-08-25 14:28:42 -0500 (Tue, 25 Aug 2009) | 2
lines
I should always compile before committing...
........
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=214071
Issue History
Date Modified Username Field Change
======================================================================
2009-08-25 14:33 svnbot Checkin
2009-08-25 14:33 svnbot Note Added: 0109611
======================================================================
More information about the asterisk-bugs
mailing list