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