[loc-en-dev] Norwegian special lookup
Mark Davis ☕
mark at macchiato.com
Tue Jul 13 10:36:48 PDT 2010
I restructured a bit, so that I could see more clearly what was going on.
And I suggest one change. It is it clearer to me by reducing it to exactly
three outcomes.
1. If request matches pattern "no_NO_NY[_*]",
1. Insert "nn_NO[_*]" *before* every level.
2. At the end, append "nn", "no_NO" and "no" in this order.
2. If request matches pattern "nn_NO[_*],* generate same results as as #1
with:*
1. Insert "no_NO_NY[_*]" *after* every level.
2. At the end, append "nn", "no_NO" and "no" in this order.
3. Otherwise if request contains language "no"
1. Insert locale replacing "no" with "nb" at each level *before* (was
"after") "no" version.
4. If request contains language "nb",* **generate same results as as #3
with:*
1. Insert locale replacing "nb" with "no" at each level after "nb"
version.
5. Otherwise if request contains language "nn",
1. At the end, append "no"
In practice it should make no difference, since we never expect both old and
new formats in the same resource bundles. But I think it is clearer, and
reduces your table size substantially!
Mark
— Il meglio è l’inimico del bene —
On Tue, Jul 13, 2010 at 09:07, Yoshito Umaoka <y.umaoka at gmail.com> wrote:
> * If request contains language "no", but not matching pattern
> "no_NO_NY[_*]", create the default candidate list, then insert
> locale replacing "no" with "nb" at each level after "no" version.
> * If request contains language "nb", create the default candidate
> list, then insert locale replacing "nb" with "no" at each level
> after "nb" version.
> * If request matches pattern "no_NO_NY[_*]", insert "nn_NO[_*]"
> before every level. Once it reaches "no_NO_NY", then append "nn",
> "no_NO" and "no" in this order.
> * If request matches pattern "nn_NO[_*], insert "no_NO_NY[_*]" after
> every level. Once it reaches "no_NO_NY", then append "nn", "no_NO"
> and "no" in this order.
> * If request contains language "nn", but region is not "NO", append
> "no" at the end of default candidate list.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/locale-enhancement-dev/attachments/20100713/0273c6e9/attachment.html
More information about the locale-enhancement-dev
mailing list