commit | author | age
|
dfefc4
|
1 |
# For adding more supported languages to server, |
A |
2 |
# in console, rerun locale-config by calling: |
|
3 |
|
|
4 |
dpkg-reconfigure locales |
|
5 |
|
|
6 |
# and either choise what you need, or tag "All languages" on top. Note at when having lots of locales in machine, it will slow down |
|
7 |
# installing and upgrading multilingual applications. You can (and should) leave system default as it is. |
|
8 |
|
|
9 |
#For now my "locale -a" outputs this: |
|
10 |
|
|
11 |
bokmal |
|
12 |
bokmål |
|
13 |
C |
|
14 |
de_DE |
|
15 |
de_DE@euro |
|
16 |
de_DE.iso88591 |
|
17 |
de_DE.iso885915@euro |
|
18 |
de_DE.utf8 |
|
19 |
deutsch |
|
20 |
en_US |
|
21 |
en_US.iso88591 |
|
22 |
en_US.iso885915 |
|
23 |
en_US.utf8 |
|
24 |
fi_FI |
|
25 |
fi_FI@euro |
|
26 |
fi_FI.iso88591 |
|
27 |
fi_FI.iso885915@euro |
|
28 |
fi_FI.utf8 |
|
29 |
finnish |
|
30 |
français |
|
31 |
french |
|
32 |
fr_FR |
|
33 |
fr_FR@euro |
|
34 |
fr_FR.iso88591 |
|
35 |
fr_FR.iso885915@euro |
|
36 |
fr_FR.utf8 |
|
37 |
german |
|
38 |
nb_NO |
|
39 |
nb_NO.iso88591 |
|
40 |
nb_NO.utf8 |
|
41 |
no_NO |
|
42 |
no_NO.ISO-8859-1 |
|
43 |
norwegian |
|
44 |
POSIX |
|
45 |
sv_SE |
|
46 |
sv_SE.iso88591 |
|
47 |
sv_SE.iso885915 |
|
48 |
sv_SE.utf8 |
|
49 |
swedish |
|
50 |
|
|
51 |
|
|
52 |
# Edit /etc/apache2/conf.d/charset and add/edit following section: |
|
53 |
|
|
54 |
AddDefaultCharset off |
|
55 |
|
|
56 |
# official list of charset names and their respective RFCs. |
|
57 |
# |
|
58 |
AddCharset us-ascii .ascii .us-ascii |
|
59 |
AddCharset ISO-8859-1 .iso8859-1 .latin1 |
|
60 |
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen |
|
61 |
AddCharset ISO-8859-3 .iso8859-3 .latin3 |
|
62 |
AddCharset ISO-8859-4 .iso8859-4 .latin4 |
|
63 |
AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru |
|
64 |
AddCharset ISO-8859-6 .iso8859-6 .arb .arabic |
|
65 |
AddCharset ISO-8859-7 .iso8859-7 .grk .greek |
|
66 |
AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew |
|
67 |
AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk |
|
68 |
AddCharset ISO-8859-10 .iso8859-10 .latin6 |
|
69 |
AddCharset ISO-8859-13 .iso8859-13 |
|
70 |
AddCharset ISO-8859-14 .iso8859-14 .latin8 |
|
71 |
AddCharset ISO-8859-15 .iso8859-15 .latin9 |
|
72 |
AddCharset ISO-8859-16 .iso8859-16 .latin10 |
|
73 |
AddCharset ISO-2022-JP .iso2022-jp .jis |
|
74 |
AddCharset ISO-2022-KR .iso2022-kr .kis |
|
75 |
AddCharset ISO-2022-CN .iso2022-cn .cis |
|
76 |
AddCharset Big5 .Big5 .big5 .b5 |
|
77 |
AddCharset cn-Big5 .cn-big5 |
|
78 |
# For russian, more than one charset is used (depends on client, mostly): |
|
79 |
AddCharset WINDOWS-1251 .cp-1251 .win-1251 |
|
80 |
AddCharset CP866 .cp866 |
|
81 |
AddCharset KOI8 .koi8 |
|
82 |
AddCharset KOI8-E .koi8-e |
|
83 |
AddCharset KOI8-r .koi8-r .koi8-ru |
|
84 |
AddCharset KOI8-U .koi8-u |
|
85 |
AddCharset KOI8-ru .koi8-uk .ua |
|
86 |
AddCharset ISO-10646-UCS-2 .ucs2 |
|
87 |
AddCharset ISO-10646-UCS-4 .ucs4 |
|
88 |
AddCharset UTF-7 .utf7 |
|
89 |
AddCharset UTF-8 .utf8 |
|
90 |
AddCharset UTF-16 .utf16 |
|
91 |
AddCharset UTF-16BE .utf16be |
|
92 |
AddCharset UTF-16LE .utf16le |
|
93 |
AddCharset UTF-32 .utf32 |
|
94 |
AddCharset UTF-32BE .utf32be |
|
95 |
AddCharset UTF-32LE .utf32le |
|
96 |
AddCharset euc-cn .euc-cn |
|
97 |
AddCharset euc-gb .euc-gb |
|
98 |
AddCharset euc-jp .euc-jp |
|
99 |
AddCharset euc-kr .euc-kr |
|
100 |
#Not sure how euc-tw got in - IANA doesn't list it??? |
|
101 |
AddCharset EUC-TW .euc-tw |
|
102 |
AddCharset gb2312 .gb2312 .gb |
|
103 |
AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2 |
|
104 |
AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4 |
|
105 |
AddCharset shift_jis .shift_jis .sjis |
|
106 |
|
|
107 |
AddLanguage ca .ca |
|
108 |
AddLanguage cs .cz .cs |
|
109 |
AddLanguage da .dk |
|
110 |
AddLanguage de .de |
|
111 |
AddLanguage el .el |
|
112 |
AddLanguage en .en |
|
113 |
AddLanguage eo .eo |
|
114 |
AddLanguage es .es |
|
115 |
AddLanguage et .et |
|
116 |
AddLanguage fi .fi |
|
117 |
AddLanguage fr .fr |
|
118 |
AddLanguage he .he |
|
119 |
AddLanguage hr .hr |
|
120 |
AddLanguage it .it |
|
121 |
AddLanguage ja .ja |
|
122 |
AddLanguage ko .ko |
|
123 |
AddLanguage ltz .ltz |
|
124 |
AddLanguage nl .nl |
|
125 |
AddLanguage nn .nn |
|
126 |
AddLanguage no .no |
|
127 |
AddLanguage pl .po |
|
128 |
AddLanguage pt .pt |
|
129 |
AddLanguage pt-BR .pt-br |
|
130 |
AddLanguage ru .ru |
|
131 |
AddLanguage sv .sv |
|
132 |
AddLanguage zh-CN .zh-cn |
|
133 |
AddLanguage zh-TW .zh-tw |
|
134 |
|
|
135 |
|
|
136 |
#this information could also be in two sections in there, and if most of it looks |
787032
|
137 |
#like to be on place already, most important change is "AddDefaultCharset off" |
dfefc4
|
138 |
|
787032
|
139 |
# After modification, restart Apache service |
dfefc4
|
140 |
|
A |
141 |
/etc/init.d/apache2 restart |
|
142 |
|
|
143 |
|
|
144 |
|