[ 
http://issues.apache.org/jira/browse/NUTCH-162?page=comments#action_12362274 ] 

Paul Baclace commented on NUTCH-162:
------------------------------------

The best practice for identifying localization is to use the ISO language and 
country code in the form of lowercase language code followed by upper case 
country code.  This makes it possible to use specific idioms used in particular 
countries.  English has over a dozen variants; a few examples are:

  enAU-English-Australia
  enIE-English-Ireland
  enJM-English-Jamaica
  enUS-English-United_States

Inexplicably, different codes were used for the Japanese language and the 
country Japan.   The locale is jaJP.  Meanwhile, Javanese in Java is jwJA.   

The web gui should obtain the user's prefered language and country combination 
from the HTTP request headers and  use the nearest matching Locale:

  http://java.sun.com/docs/books/tutorial/i18n/locale/create.html

This is preferred over having the user pick the language and/or conutry from a 
list since the user might not be able to read the labels.



> country code "jp" is used instead of language code "ja" for Japanese
> --------------------------------------------------------------------
>
>          Key: NUTCH-162
>          URL: http://issues.apache.org/jira/browse/NUTCH-162
>      Project: Nutch
>         Type: Bug
>   Components: web gui
>     Versions: 0.7.1
>  Environment: n/a
>     Reporter: KuroSaka TeruHiko
>     Priority: Trivial

>
> In locale switching link for Japanese, "jp" is used as language code but it 
> is an ISO country code.  The language code "ja" should be used.
> By the way, I don't think many users are familiar with the ISO language 
> codes.  A Canadian user may click on "ca" uknowoing that ca stands for 
> Catalan, not Canadian English or French. Rather than listing the language 
> code, listing the language names in the prospective languages may be better. 
> (I say "may be" because the browser could show some language names in 
> corrupted text if the current font does not support that language --- this is 
> a difficult problem.)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to