[asterisk-bugs] [Asterisk 0016272]: Language code collisions for certan languages

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Dec 3 13:39:37 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16272 
====================================================================== 
Reported By:                patrol-cz
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   16272
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.1.9 
JIRA:                       SWP-424 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-11-18 09:39 CST
Last Modified:              2009-12-03 13:39 CST
====================================================================== 
Summary:                    Language code collisions for certan languages
Description: 
Probably in all current Asterisk branches, there are collisions for at
least two language codes: Czech (cs/cz) and Swedish (sv/se). For example,
the Czech language code is "cz" in all the tonezone stuff and also in
app_voicemail.c, while in say.c, request to use the correct code "cs" is
printed when an obsolete "cz" code is used, but following it would break
Czech voicemail syntax rules in app_voicemail.c.So, I feel necessary to
unify the codes and start to use only one of them, probably "cs".
====================================================================== 

---------------------------------------------------------------------- 
 (0114675) tilghman (administrator) - 2009-12-03 13:39
 https://issues.asterisk.org/view.php?id=16272#c114675 
---------------------------------------------------------------------- 
While I agree with the changes to voicemail (and any other places where
prompts are used), there shouldn't be a change to tonezone, and here's
why:

We're dealing with two different sets of codes, and their purpose is
slightly different.  In the case of the language setting, these are ISO 639
codes.  For country codes, we use ISO 3166.  The differences are striking. 
For example, you can speak Spanish (lang=es) in a country which uses US
tones (tonezone=us).  So while in some situations, there is parity between
the language and the tonezone, while in other situations, they clearly need
to be different. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-03 13:39 tilghman       Note Added: 0114675                          
======================================================================




More information about the asterisk-bugs mailing list