[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:27:28 CDT 2009
The following issue has been RESOLVED.
======================================================================
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: resolved
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:27 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
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2009-08-25 14:27 svnbot Status assigned => resolved
2009-08-25 14:27 svnbot Resolution open => fixed
======================================================================
More information about the asterisk-bugs
mailing list