Windows: cs_CZ localization
[openafs.git] / src / config / NTLang.bat
1 @echo off
2 rem Copyright 2000, International Business Machines Corporation and others.
3 rem All Rights Reserved.
4 rem 
5 rem This software has been released under the terms of the IBM Public
6 rem License.  For details, see the LICENSE file in the top-level source
7 rem directory or online at http://www.openafs.org/dl/license10.html
8
9 REM AFS build environment language selection for Windows NT.
10 REM ########################################################################
11
12
13 REM ########################################################################
14 REM Accept language name as an argument; default to English.
15
16 rem # Detect requests for English
17 rem
18 if "%1"=="eng" goto en_US
19 if "%1"=="english" goto en_US
20 if "%1"=="English" goto en_US
21 if "%1"=="ENGLISH" goto en_US
22 if "%1"=="en_US" goto en_US
23 if "%1"=="EN_US" goto en_US
24 if "%1"=="en_us" goto en_US
25 if "%1"=="EN_us" goto en_US
26 if "%1"=="" goto en_US
27
28 rem # Detect requests for Japanese
29 rem
30 if "%1"=="jap" goto ja_JP
31 if "%1"=="japanese" goto ja_JP
32 if "%1"=="Japanese" goto ja_JP
33 if "%1"=="JAPANESE" goto ja_JP
34 if "%1"=="ja_JP" goto ja_JP
35 if "%1"=="JA_JP" goto ja_JP
36 if "%1"=="ja_jp" goto ja_JP
37 if "%1"=="JA_jp" goto ja_JP
38
39 rem # Detect requests for Korean
40 rem
41 if "%1"=="kor" goto ko_KR
42 if "%1"=="korean" goto ko_KR
43 if "%1"=="Korean" goto ko_KR
44 if "%1"=="KOREAN" goto ko_KR
45 if "%1"=="ko_KR" goto ko_KR
46 if "%1"=="KO_KR" goto ko_KR
47 if "%1"=="ko_kr" goto ko_KR
48 if "%1"=="KO_kr" goto ko_KR
49
50 rem # Detect requests for Chinese (Simplified; PR China)
51 rem
52 if "%1"=="chi" goto zh_CN
53 if "%1"=="chinese" goto zh_CN
54 if "%1"=="Chinese" goto zh_CN
55 if "%1"=="CHINESE" goto zh_CN
56 if "%1"=="zh_CN" goto zh_CN
57 if "%1"=="ZH_CN" goto zh_CN
58 if "%1"=="zh_cn" goto zh_CN
59 if "%1"=="ZH_cn" goto zh_CN
60
61 rem # Detect requests for Chinese (Traditional; Taiwan)
62 rem
63 if "%1"=="tai" goto zh_TW
64 if "%1"=="taiwan" goto zh_TW
65 if "%1"=="Taiwan" goto zh_TW
66 if "%1"=="TAIWAN" goto zh_TW
67 if "%1"=="zh_TW" goto zh_TW
68 if "%1"=="ZH_TW" goto zh_TW
69 if "%1"=="zh_tw" goto zh_TW
70 if "%1"=="ZH_tw" goto zh_TW
71
72 rem # Detect requests for Brazilian Portuguese
73 rem
74 if "%1"=="bra" goto pt_BR
75 if "%1"=="por" goto pt_BR
76 if "%1"=="brazil" goto pt_BR
77 if "%1"=="Brazil" goto pt_BR
78 if "%1"=="BRAZIL" goto pt_BR
79 if "%1"=="pt_BR" goto pt_BR
80 if "%1"=="PT_BR" goto pt_BR
81 if "%1"=="pt_br" goto pt_BR
82 if "%1"=="PT_br" goto pt_BR
83
84 rem # Detect requests for German
85 rem
86 if "%1"=="ger" goto de_DE
87 if "%1"=="german" goto de_DE
88 if "%1"=="German" goto de_DE
89 if "%1"=="GERMAN" goto de_DE
90 if "%1"=="de_DE" goto de_DE
91 if "%1"=="DE_DE" goto de_DE
92 if "%1"=="de_de" goto de_DE
93 if "%1"=="DE_de" goto de_DE
94
95 rem # Detect requests for Spanish
96 rem
97 if "%1"=="esp" goto es_ES
98 if "%1"=="spa" goto es_ES
99 if "%1"=="spanish" goto es_ES
100 if "%1"=="Spanish" goto es_ES
101 if "%1"=="SPANISH" goto es_ES
102 if "%1"=="es_es" goto es_ES
103 if "%1"=="es_ES" goto es_ES
104 if "%1"=="ES_ES" goto es_ES
105 if "%1"=="ES_es" goto es_ES
106
107 rem # Detect requests for Spanish
108 rem
109 if "%1"=="czech" goto cs_CZ
110 if "%1"=="Czech" goto cs_CZ
111 if "%1"=="CZECH" goto cs_CZ
112 if "%1"=="cs_cz" goto cs_CZ
113 if "%1"=="cs_CZ" goto cs_CZ
114 if "%1"=="CS_CZ" goto cs_CZ
115 if "%1"=="CS_cz" goto cs_CZ
116
117 rem # Complain if we couldn't match the requested language
118 rem
119 echo Don't know how to build language %1.
120 goto end
121
122 rem # Language Identifiers
123 rem #
124 rem # LANGNAME:
125 rem #    A simple abbreviation reflecting a language and sublanguage.
126 rem #    Our translation lab picks these and uses them when giving
127 rem #    us back translated files.
128 rem #
129 rem # LANGID:
130 rem #    A decimal representation of a 16-bit Win32 LANGID matching that
131 rem #    language and sublanguage. The format and relevant constants are
132 rem #    defined in WINNT.H--the upper 6 bits are the sublanguage, and
133 rem #    the lower 10 bits are the language. For example:
134 rem #    LANG_ENGLISH = 9
135 rem #    SUBLANG_ENGLISH_US = 1
136 rem #    LANGID = MAKELANGID(9,1) = 000001 0000001001 = 0x0409 = 1033
137 rem # 
138 rem # LANGCP:
139 rem #    The default code page for this language; this value is used when
140 rem #    building a .RC file with the /c switch. You'll have to look these
141 rem #    up in a some table somewhere if you add more languages.
142 rem
143
144 :en_US
145 set LANGID=1033
146 set LANGNAME=en_US
147 set LANGCP=1252
148 echo Building English resources (%LANGID%, %LANGNAME%)
149 goto arg2
150
151 :ja_JP
152 set LANGID=1041
153 set LANGNAME=ja_JP
154 set LANGCP=932
155 echo Building Japanese resources (%LANGID%, %LANGNAME%)
156 goto arg2
157
158 :ko_KR
159 set LANGID=1042
160 set LANGNAME=ko_KR
161 set LANGCP=949
162 echo Building Korean resources (%LANGID%, %LANGNAME%)
163 goto arg2
164
165 :zh_CN
166 set LANGID=2052
167 set LANGNAME=zh_CN
168 set LANGCP=936
169 echo Building Chinese (Simplified: PR China) resources (%LANGID%, %LANGNAME%)
170 goto arg2
171
172 :zh_TW
173 set LANGID=1028
174 set LANGNAME=zh_TW
175 set LANGCP=950
176 echo Building Chinese (Traditional: Taiwan) resources (%LANGID%, %LANGNAME%)
177 goto arg2
178
179 :pt_BR
180 set LANGID=1046
181 set LANGNAME=pt_BR
182 set LANGCP=1252
183 echo Building Brazilian Portuguese resources (%LANGID%, %LANGNAME%)
184 goto arg2
185
186 :es_ES
187 set LANGID=1034
188 set LANGNAME=es_ES
189 set LANGCP=1252
190 echo Building Spanish resources (%LANGID%, %LANGNAME%)
191 goto arg2
192
193 :de_DE
194 set LANGID=1032
195 set LANGNAME=de_DE
196 set LANGCP=1252
197 echo Building German resources (%LANGID%, %LANGNAME%)
198 goto arg2
199
200 :cs_CZ
201 set LANGID=1029
202 set LANGNAME=cs_CZ
203 set LANGCP=1250
204 echo Building Czech resources (%LANGID%, %LANGNAME%)
205 goto arg2
206
207 ###############################################################################
208 # Accept a second command-line argument reflecting a command to execute
209
210 :arg2
211 if "%2"=="" goto end
212 %2 %3 %4 %5 %6 %7 %8 %9
213 goto end
214
215 :end
216 echo.
217