[rt-devel] Language detection bug
Jesse Vincent
jesse at bestpractical.com
Thu Feb 6 13:28:25 EST 2003
On Thu, Feb 06, 2003 at 04:44:40PM +0100, Andrew Snare wrote:
> At 08:48 PM 6/02/2003 +0800, Autrijus Tang wrote:
> >This is because 'en-us' is provided, instead of 'en'. This is arguably
> >wrong,
> >since there's no US-specific things in that lexicon -- maybe just mv
> >rt/lib/RT/I18N/en_us.po to en.po?
>
> While this fix may work, I think there's still a bug in the
> language-matching. According to my reading of RFC2616, Section 14.4, if
> 'en' is in my list, RT should be matching that against the 'en-us' that it
> can supply.
Which part of the language in that section? I'm not seeing it.
FWIW, RT is using Locale::Maketext to do the parsing of the language
tags. Switching from en-us to en seems to be at least _one_ of the right
things to do. If we can make a case for anything else, I'm sure Sean
would be happy to let us try to sell him on it.
-j
>
> - Andrew
>
>
> _______________________________________________
> rt-devel mailing list
> rt-devel at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel
>
--
»|« http://www.bestpractical.com/rt -- Trouble Ticketing. Free.
More information about the Rt-devel
mailing list