[asterisk-bugs] [Asterisk 0015273]: [patch] german time (20:01:00 oh clock) is announced wrong

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jun 5 07:44:43 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15273 
====================================================================== 
Reported By:                Benjamin Kluck
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15273
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
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:              
====================================================================== 
Date Submitted:             2009-06-04 11:31 CDT
Last Modified:              2009-06-05 07:44 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
====================================================================== 

---------------------------------------------------------------------- 
 (0106041) Benjamin Kluck (reporter) - 2009-06-05 07:44
 https://issues.asterisk.org/view.php?id=15273#c106041 
---------------------------------------------------------------------- 
disclaimer is "OK" now 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-05 07:44 Benjamin Kluck Note Added: 0106041                          
======================================================================




More information about the asterisk-bugs mailing list