[asterisk-bugs] [Asterisk 0015022]: [patch] Language handling for numbers, dates, etc is misbehaving when utilizing sub-regional languages

Asterisk Bug Tracker noreply at bugs.digium.com
Tue May 19 02:28:22 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15022 
====================================================================== 
Reported By:                greenfieldtech
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   15022
Category:                   Applications/General
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-03 10:50 CDT
Last Modified:              2009-05-19 02:28 CDT
====================================================================== 
Summary:                    [patch] Language handling for numbers, dates, etc is
misbehaving when utilizing sub-regional languages
Description: 
Per a discussion at Asterisk Euro DevCon, an issue was raised when a
language is defined as "language_variant" format, for example, "fr_ca"
(Candian French). 

According to KPF and russelb, Asterisk is supposed to play files from the
/var/lib/asterisk/sounds/[LANG_DIRECTORY] and
/var/lib/asterisk/sounds/digits/[LANG_DIRECTORY], while at the same time,
while playing the numbers, utilizing the logic intended for the "language"
identified. However, after testing the edge case, we've discovered that
Asterisk will default to the English grammer, thus, playing the entire
grammer wrong.
====================================================================== 

---------------------------------------------------------------------- 
 (0104992) tzafrir (manager) - 2009-05-19 02:28
 https://issues.asterisk.org/view.php?id=15022#c104992 
---------------------------------------------------------------------- 
I'm trying to see how this should be documented, to understand if the coded
behavior is consistent:

Sound files should reside in a subdirectory whose name is <CODE>[_<NAME>]

<CODE>: normally the ISO639-1 two-letter language code. e.g. "en" for
English, "fr" for French. This will be used to set rules for syntax and
numbers. As a special case, "en_GB" has a slightly different syntax than
"en".

<Name>: If you have more than one set of sound files of the same language,
you can have several directories. Make sure that the first character after
<CODE> is an Underscore (_).


What happens if other countries turn out to be like en_GB? Are there such
other cases? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-19 02:28 tzafrir        Note Added: 0104992                          
======================================================================




More information about the asterisk-bugs mailing list