The Java class java.util.Locale
has a set of public static final
fields for languages/countries for direct references to specific locales. Other locales can easily be used via the appropriate constructors.
However, the selection of values seems rather arbitrary to me.
The languages are (in the order in which they appear in the source): English, French, German, Italian, Japanese, Korean, Chinese, Simplified Chinese, Traditional Chinese
The countries are: France, Germany, Italy, Japan, Korea, China, PRC, Taiwan, UK, US, Canda and Canada French (for the locale fr_CA).
Does anyone have an idea (or even a guess) how those languages/countries where chosen?
Locale.UK
butUK
is not a valid country code - the corresponding country code isGB
... – AttenweilerGB
versusUK
, we have an entire Question from someone getting tripped up on that. – Avaria