[loc-en-dev] he/iw issue
Naoto Sato
naoto.sato at oracle.com
Fri Dec 10 11:31:36 PST 2010
> what we get with this is just allowing people to use either he or iw
Well, I see this is important enough as:
- he is important as it's the ISO code for Hebrew.
- iw is important for compatibility.
I think supporting both would overcome the lookup cost (and it can be
limited only to he/iw etc.). Again, asking apps to provide a custom
Control for legit codes sounds too much.
Naoto
(12/10/10 11:22 AM), Yoshito Umaoka wrote:
> On 12/10/2010 1:36 PM, Naoto Sato wrote:
>> Hi,
>>
>> I cannot seem to remember why we dropped he/iw lookup in
>> ResourceBundle. The design notes
>> (http://sites.google.com/site/openjdklocale/design-notes/resource-bundle-lookup-order)
>> just mentions:
>>
>> Note: Special Case 1 is removed. If someone really need resources to
>> be tagged by he/yi/id, he/she should use ResourceBundle.Control to
>> control the behavior.
>>
>> What was the reason we dropped this? It seems to me it is asking too
>> much for applications to provide a custom ResourceBundle.Control for
>> the legit ISO639 language codes.
>>
>> Naoto
>>
>
> Several reasons. Unlike other special cases, there is no way to create a
> locale with language code "he"/"yi"/"id". Therefore, you cannot
> represent them in the candidate Locale list used by resource bundle. It
> is still possible to look for both _he and _iw with a candidate Locale
> iw, but we did not see much value with this implementation - what we get
> with this is just allowing people to use either he or iw, while the
> downside is additional cost to look up these variants.
>
> -Yoshito
More information about the locale-enhancement-dev
mailing list