|
Java Developer’s Internationalization |
|
|
Language
|
Code Country |
Code Description |
en |
US |
English & USA |
fr |
FR |
French & France |
es |
ES |
Spanish & Spain |
en |
GB |
English & Great
Britain |
fr |
CA |
French & Canada |
Find full list of language codes from:
http://www.ics.uci.edu/pub/ietf/http/
related/iso639.txt
Find full list of country codes from:
http://www.chemie.fu-berlin.de/diverse/
doc/ISO_3166.html
|
|
Output:
When the set of language code and country
code is provided at run time, the output is
shown according to that particular locale. For
example, in the output below, for “es” and “ES” the output is displayed in Spanish
language. The text displayed is fetched from
MessageBundle_es_ES.properties file. If “fr” and “FR” codes are provided at run time
then values are displayed in French language.
Now this text is fetched from
MessageBundle_fr_FR.properties file.
Here we are not changing and compiling the
source code to work for different locale
because the program references the keys,
not the values. |
|
|
|
sept 2007 | Java Jazz Up |12 |
|
|
|
Pages:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53 ,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63 ,
64,
65 ,
66 ,
67 ,
68 ,
69 ,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79, Download PDF |
|
|
|
|
|
|
|
|
|