<br><font size=2 face="sans-serif">Jesse,</font>
<br>
<br><font size=2 face="sans-serif">I'm sending in a header that looks like:</font>
<br>
<br><font size=2 face="sans-serif">en-us, ja;q=0.8</font>
<br>
<br><font size=2 face="sans-serif">Instead of getting en back (as matching the en-us tag prefix), I'm getting ja. The specification isn't written in clearly understandable way, but I believe the key element is the following quoted sentence with my interpretations in brackets from RFC 2616, section 14.4:</font>
<br>
<br><font size=2 face="sans-serif">A language-range matches a language-tag if it exactly equals the tag [ie, en-us = en-us or ja = ja], or if it exactly equals a prefix of the tag [ie, en = en-us] such that the first tag character following the prefix is "-".</font>
<br>
<br><font size=2 face="sans-serif">FWIW, I put the I18N::AcceptLanguage module on CPAN a long while ago that did this determination properly per my understanding of the RFC.<br>
<br>
Thanks,<br>
Christian<br>
<br>
----------------------<br>
Christian Gilmore<br>
Technology Leader<br>
GeT Support Application Development<br>
IBM Software Group<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Jesse Vincent <jesse@bestpractical.com></b></font>
<br><font size=1 face="sans-serif">Sent by: rt-users-admin@lists.fsck.com</font>
<p><font size=1 face="sans-serif">08/05/03 01:38 PM</font>
<br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To: Christian Gilmore/Austin/IBM@IBMUS</font>
<br><font size=1 face="sans-serif"> cc: rt-users@lists.fsck.com</font>
<br><font size=1 face="sans-serif"> Subject: Re: [rt-users] How is language determined in RT?</font>
<br></table>
<br>
<br>
<br><font size=2 face="Courier New"><br>
<br>
<br>
On Tue, Aug 05, 2003 at 01:34:47PM -0500, Christian Gilmore wrote:<br>
> Where within/underneath RT is the language to send to the client browser <br>
> determined? I don't believe it is properly implementing the RFC.<br>
<br>
It actually hands off that determination to Locale::Maketext, which<br>
processes the browser's Accpet-language: header. What behaviour are you<br>
seeing that's suspect?<br>
<br>
> Thanks,<br>
> Christian<br>
> <br>
> ----------------------<br>
> Christian Gilmore<br>
> Technology Leader<br>
> GeT Support Application Development<br>
> IBM Software Group<br>
<br>
-- <br>
http://www.bestpractical.com/rt -- Trouble Ticketing. Free.<br>
_______________________________________________<br>
rt-users mailing list<br>
rt-users@lists.fsck.com<br>
http://lists.fsck.com/mailman/listinfo/rt-users<br>
<br>
Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm<br>
</font>
<br>
<br>