Pavel--<br><br>I've noticed myself that cs and cz are used in the Asterisk source. But it's not a matter of what seems right...<br>the code should be from ISO 639-1 if there is a 2-letter language code there, or ISO-639-2's 3 letter code instead.<br>
"cs" is the correct 2 letter code for Czech. "ces" is the correct 3-digit code. <br><br>I also note that "se" is used for swedish, but really, it should be "sv". "se" is the 2-letter code for Northern Saami, <br>
spoken in Norway, otherwise known as “Norwegian Lapp”, with 3-digit code "sme". The 3-letter code for swedish is<br>"swe".<br><br>I haven't filed any bug report for this yet; you are welcome to; for both these languages if you want.<br>
<br>The only problem I can see with "fixing" these wrong language codes, is that those involved will have<br>to make changes to their source/dialplans/whatever, or they suddenly will find that things aren't<br>
quite working right anymore. But a conflict (cs vs. cz) is a conflict and really should be fixed, in 1.4, 1.6.x and trunk,<br>and everyone will just have to adapt. While sv vs. sw is apparently not yet a conflict, someday, the true owners<br>
of se will want to provide translations, and then there will be a conflict also. Might as well get it straightened out<br>now.<br><br>murf<br><br><br><div class="gmail_quote">On Mon, Nov 16, 2009 at 10:14 AM, Pavel Troller <span dir="ltr"><<a href="mailto:patrol@sinus.cz">patrol@sinus.cz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi there,<br>
I've found that we have (at least in 1.6.1 branch) a conflict in language<br>
codes for the Czech language.<br>
- app_voicemail.c requires the "cz" code to activate the Czech voicemail<br>
syntax rules. It doesn't work if the "cs" code is used (it is not used<br>
anywhere in the code).<br>
- say.c contains the following:<br>
<br>
} else if (!strncasecmp(language, "cz", 2)) { /* deprecated Czech syntax */<br>
static int deprecation_warning = 0;<br>
if (deprecation_warning++ % 10 == 0) {<br>
ast_log(LOG_WARNING, "cz is not a standard language code. Please switch to using cs instead.\n");<br>
}<br>
return ast_say_number_full_cs(chan, num, ints, language, options, audiofd, ctrlfd);<br>
<br>
but if the user follows the request, the voicemail stops speaking properly.<br>
So, which language code should be preferred ? I think that cz is better,<br>
becaus cs means "CzechoSlovak" and we don't have such entity anymore, Slovakia<br>
has its own "sk" code, so it should be okay to use cz for Czech...<br>
With regards,<br>
Pavel Troller<br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Steve Murphy<br>ParseTree Corp<br><br>