2 rem Copyright 2000, International Business Machines Corporation and others.
3 rem All Rights Reserved.
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
9 REM AFS build environment language selection for Windows NT.
10 REM ########################################################################
13 REM ########################################################################
14 REM Accept language name as an argument; default to English.
16 rem # Detect requests for English
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
28 rem # Detect requests for Japanese
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
39 rem # Detect requests for Korean
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
50 rem # Detect requests for Chinese (Simplified; PR China)
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
61 rem # Detect requests for Chinese (Traditional; Taiwan)
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
72 rem # Detect requests for Brazilian Portuguese
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
84 rem # Detect requests for German
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
95 rem # Detect requests for Spanish
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
107 rem # Complain if we couldn't match the requested language
109 echo Don't know how to build language %1.
112 rem # Language Identifiers
115 rem # A simple abbreviation reflecting a language and sublanguage.
116 rem # Our translation lab picks these and uses them when giving
117 rem # us back translated files.
120 rem # A decimal representation of a 16-bit Win32 LANGID matching that
121 rem # language and sublanguage. The format and relevant constants are
122 rem # defined in WINNT.H--the upper 6 bits are the sublanguage, and
123 rem # the lower 10 bits are the language. For example:
124 rem # LANG_ENGLISH = 9
125 rem # SUBLANG_ENGLISH_US = 1
126 rem # LANGID = MAKELANGID(9,1) = 000001 0000001001 = 0x0409 = 1033
129 rem # The default code page for this language; this value is used when
130 rem # building a .RC file with the /c switch. You'll have to look these
131 rem # up in a some table somewhere if you add more languages.
138 echo Building English resources (%LANGID%, %LANGNAME%)
145 echo Building Japanese resources (%LANGID%, %LANGNAME%)
152 echo Building Korean resources (%LANGID%, %LANGNAME%)
159 echo Building Chinese (Simplified: PR China) resources (%LANGID%, %LANGNAME%)
166 echo Building Chinese (Traditional: Taiwan) resources (%LANGID%, %LANGNAME%)
173 echo Building Brazilian Portuguese resources (%LANGID%, %LANGNAME%)
180 echo Building Spanish resources (%LANGID%, %LANGNAME%)
187 echo Building German resources (%LANGID%, %LANGNAME%)
190 ###############################################################################
191 # Warn the user that ntlang.reg is required to build non-us languages
194 echo NOTE: If you have not already run WINNT/docs/NTLang.reg, do so now!
197 ###############################################################################
198 # Accept a second command-line argument reflecting a command to execute
202 %2 %3 %4 %5 %6 %7 %8 %9