一些非英语的AVG可能在游戏开始前调用了相关API进行判断,如果和设定语言不同,便进不了游戏。: d% j, T5 P0 o- n7 {% ^
) d, C7 K1 k3 S5 ]7 v
http://www.microsoft.com/globaldev/reference/localetable.mspx$ ~" V7 {& }2 L6 c' N/ x# C& H
3 k/ w5 ], x* x& ?Language Group% B$ O( D$ N! D, q% B+ ]2 |$ e
The language group controls which system locale, user locales, input locales, and User Interface (UI) languages a person can select.. K" a, V4 Q0 g/ m# P8 T/ R
5 w/ Q$ \. [: c
Windows 2000 installs with the Western Europe and United States language group. Installing the Western Europe and United States is not optional, and this default cannot be removed.. P6 L' o' H! v. T
( [ m5 o" C) J& i9 `+ S3 X, E2 }For each localized version the language group needed to display the system's UI language is also default and can't be removed. If the English version of Windows 2000 is installed in a non-English country, the user will typically install another language group.
0 J' C- q2 {1 h8 \( _& j
3 V. M; g( x: S) ^& i( uWhen a person adds a language group Windows 2000 copies (but does not activate) the necessary keyboard files, Input Method Editors (IMEs), TrueType Font files, bitmap font files, and National Language Support (.nls) files. Adding a language group also adds registry values for Font Linking and installs scripting engines for Complex Script languages (Arabic, Hebrew, Indic, and Thai).4 U5 c4 z9 I/ S3 ` Z
4 L+ M( ^ U6 U( h0 n# U
In addition to Western Europe and United States (default) there are sixteen language groups: Arabic, Armenian, Baltic, Central Europe, Cyrillic, Georgian, Greek, Hebrew, Indic, Japanese, Korean, Simplified Chinese, Thai, Traditional Chinese, Turkish, and Vietnamese. Any number and combination of language groups can be installed on any Windows 2000 version.- S% M' k+ U6 P+ {
; h% W) ` L+ _2 S: v
Example: A Spanish user is a translator for Russian. In order to type Russian texts he needs to install the Cyrillic language group. Note: The application, which is used to type the Russian documents needs to support this. Adding the appropriate language group will not automatically enable all application to accept text. If in doubt, try it out. Some legacy applications might require the system locale to be changed. 4 d8 r- t6 `2 |' T$ X
- Y9 T1 g, \# }+ F9 ~In Windows XP, Microsoft introduced Language Collections, which consolidate languages with similar properties into 3 collections that contains 3 or more language groups each. This is done to simplify installation, and improve user experience when working with multiple languages. On English Windows XP support for all European languages (including Baltic languages, Cyrillic languages, Greek, and Turkic languages) known as the Basic Language Collection is installed by default. Additional language collections (such as East Asian for Japanese, Chinese, and Korean, as well as complex scripts for Arabic, Hebrew, the Indic family of languages, and Thai) can also be installed. (After installing a language group or collection, the user will need to restart the computer.) & F e* K5 W' l& y3 r& W0 {2 z
1 \' Y1 Y- E+ ETop of page
* t, P5 ~. C) d8 p# }. N& uLocales; X* a! A5 f+ E$ Y# V: `
A locale is either a language or a language in combination with a country. More than 130 locales are supported in Windows XP and Windows2000.
+ r( a- ]1 I5 t2 o
" w' Y0 G: w& V: b$ WTop of page% K/ b$ D% W9 k; G% N# h
System Locale
& ?# h' k$ b+ [4 ^' e# |The system locale is not really a locale. It determines which codepages (ANSI, DOS, and Macintosh) are used on the system by efault. Changing the system locale also installs the necessary bitmap font files to support legacy applications in the language you selected.
e* V5 r7 K' V; v' W& j) H* K! y$ L& C' @ }4 s
As the name suggest, it's a per system setting. It requires a reboot to change. You can only select a system locale, if the appropriate language group is installed, i.e., you need the script support to select a system locale.
4 C9 b1 M% h! F" O, j* L3 d8 e% L+ e/ g0 d% K6 a; }% j5 A
Some times there is no noticeable difference between two system locales.For example, there is no difference between the German Standard and German - Austria system locale. In general system locales of one language group are very similar and might be only different in the OEM or MAC codepage.
9 j+ `' g! ]$ r7 @$ A) R
8 J) I' a# [. @6 `! t9 hIf it weren't be so long the system locale should be called legacy applications compatibility setting, because that is really what it is. Setting the system locale to a certain language instructs Windows 2000 to emulate a legacy operating system (DOS, Windows 3.1, and Windows 9x) localized to this language. Only applications, which are not fully Unicode, are affected by this setting.
3 A" S0 m% r/ \) e8 H! ~
/ w7 p* V2 n+ g! h6 kAn ANSI application should check the system locale at least during installation. 5 _% t* w/ o+ ]6 ]
. @3 ~1 N) c- D; k* k
Example: 1 - A German user wants to run a Japanese application, which was designed for Japanese Windows 95. The user has to select Japanese as system locale to do this . Note: German legacy applications will not run flawlessly anymore. German umlauts will not be displayed correctly. 6 O3 x: K8 w0 N4 I- u
7 q9 u8 M- @( q
2 - The same German user wants to type Japanese text in a German legacy applications. The user has also to select Japanese as a system locale. Note: This will limit his ability to enter German text in legacy applications. German umlauts will not be displayed correctly. % N; C" N0 H+ W# d; w! _
& S- N6 D; W: H) p3 - An Arabic user wants to type Arabic, French, and English in an Arabic legacy applications. The user has to select Arabic as a system locale. The Arabic ANSI codepage contains most of the characters used for French and all of the English characters.
, }9 q8 \# x5 ?* W* i' m" L& ?6 k8 o; c$ y
Top of page5 n& c, w2 [) w* A$ k' ]5 E4 s+ u
User Locale" I8 m/ k$ \ b9 Q3 n" t
The user locale determines, which default settings a user wants to use for formatting dates, times, currency, and large numbers. Although it's presented as a language (some in a combination with a country), it's not a language setting. That is, user locale Hebrew means that the user wants to use the standards of Israel, not really of the Hebrew language. The only language effect of the user locale is the names of the days and months. For example, if a person was using the long date format to display November 25, 1998,the November string would change based on user locale. ) O% d$ C2 K7 P& R0 d, j( ^" d
; z9 O/ B& w' b$ C/ v7 ^+ _5 _
Changing the user locale, will automatically add an Input Locale with the default settings for the associated language. / [! T, Z& T; b4 _
6 x5 I# g7 C( j$ ^
An application should use these settings to present data to the user (and most applications do this), but in some cases it might make sense for an application to use a fixed locale for display of data. This can be done by setting the Thread Locale to a fixed value during initialization of the application.
: N9 m4 N& H# ^6 y: L9 J
" W7 D+ m/ ]$ P8 A. Y5 l: n9 BExample: An English user using English Windows 2000 works in Rome, Italy. The user selects Italian (Italy) as user locale, because he wants to use the formatting standards for Italy in his day-to-day work. & t# c& \$ `+ Y/ \4 r
* I2 y. g, W1 L0 d- F
Top of page! Q& p( ?! F O9 r$ h% x; A7 _3 g
Thread Locale6 B3 d' `) D& ]9 Y# Q
The thread locale defaults to the user locale and determines the formatting dates, times, currency, and large numbers for the thread. It can be changed programmatically using the API SetThreadLocale. In most cases the thread locale should not be overwritten. 2 Y$ y2 q7 ^. A! V. j, t! h
; k/ d+ _: s$ l/ ?! L. P/ J/ f) [Example: A financial stock trading application for the New York Stock Exchange, which is used in a bank worldwide has to display the time, date, and stock prices in the US formats. This application uses SetThreadLocale to set the thread locale to English (United States) and can use the NLS APIs to format dates, times, and stock prices. ; S' v6 f1 i% }1 F' [6 f5 _3 W) v
5 ]( V8 A7 Y4 O9 B8 \' b, K( T. @Top of page
2 Y+ `; R1 p% O, M5 JInput Locale/ Z3 B5 [5 R" \* Q, B9 _1 l5 I. `
The input locale describes a language a user wants to input (not necessarily type) and the method of input. There can be multiple input locales installed and the user can switch between them.
' i$ V( [- w$ p' D3 T! M/ g
1 h+ S( j$ ~ j+ `+ I; wThe default input locale is the input locale, which is active when a new application is started (or in some applications a new window is opened). Switching to a different input locale is done on a per application basis, i.e., you can have two different input locales in two different applications. - M% f( J8 H$ B& E3 v
/ B' g1 L! e3 J2 Q
Example: The user selected to type German using the International US keyboard layout, input English using voice input (with 3rd party software), and Chinese using an IME (Input Method Editor). " G; Z$ r$ d+ V8 F" |0 Z( K
' B2 C( r7 V1 B, R& \2 ^# o
Top of page1 I( Z* Z& E* J0 p3 N1 z
Languages
1 G7 w( k4 h6 M& D; p' i6 ELanguages are identified by a LANGID, which has a primary language (e.g., Chinese) and a sub-language (e.g., PRC). : M7 t. e# Z8 y/ V3 o2 t2 l; S0 z
9 x# u( a- [ f! D, dTop of page* L8 z0 F7 f% [. E' Z' \0 Z& F
System UI Language (Install Language)
5 M, a5 P+ r# G' z; V+ T0 sThe system language is the language of the localized version that was used to setup Windows 2000. All menus, dialog, error messages, and help files are in this language, except on Windows 2000 Multilanguage Version, where the user can select a different language.
* C- r) K' A# ]5 ^+ p* c' q# c! s% ~( o1 w2 D
Top of page/ b; n( w- J# P: h- @8 p
UI Language
5 u& X. o3 `! b+ PNon-Multilingual-User Interface Windows 2000: The User UI language will be the System UI Language. 0 @( s5 F6 m4 e$ j6 O# }7 l
. Y; |/ L" o6 M% U# {% y" u( [
Multilingual-User Interface: Windows XP and Windows 2000 MUI: Multilingual-User Interface (MUI) allows a person to change the language of the user interface.When a person is using MUI Windows 2000, they have the ability to change their User Language within the Regional Options control panel.
9 ]# ~, k( j$ A; s, }, R0 ? v' y0 l1 S0 l' j/ |
If a person changes their user language to see the effect the person will have to log off and then log back on.
. _2 N( g# u }0 w$ c0 w0 ]$ ?: A6 R, L/ @8 [
Example: A multinational corporation wants to deploy Windows 2000 in all its subsidiaries. The IT department creates a global install job, which installs the English language version of Windows 2000 on all clients, regardless of the location of the client. At the same time it installs a "MUI pack" depending on the organizational unit the computer is member of. When the end user logs on the first time to his newly installed system Windows 2000 will appear very much like a localized version. 1 r! Q+ F& l ^+ s! n1 f* ?7 S1 |$ w
; |+ ?! a* S: ]Top of page: R& a F* y/ Q+ I0 @/ S1 V
Geographic ID
4 K2 M3 I9 ]5 {3 S9 u3 O7 bThis variable is available in Windows XP (and was also available in Microsoft Windows Millennium Edition [Windows Me] though not in Windows 2000) to define the country or location where the user lives. Each user can change this variable on the fly by selecting changes from the Regional Options tab of the Regional And Language Options property sheet. Any changes made are also applied on the fly. By selecting a particular location, the user has set a variable that a Web service (such as one that deals with weather) can check, thus allowing the Web service to deliver information and services specific to the region or country the user has selected. 3 J9 w: O2 ~9 Q$ I/ Z o2 B
a F+ \2 B1 S) g& f. _, |Example: A user traveling to Malaysia wants to get the weather forecast for that locale and sets the location to that country. The location is a user variable that cannot be changed programmatically. The only way to change it is for the user to do so manually.
Q( w5 {4 K9 d$ g0 P
1 V% A9 M3 Q$ q$ I$ y3 X, zTop of page
) x3 i( h8 n6 ^- W6 \Glossary
7 [% ~- |, z4 o/ TLegacy Application
o9 o# r* V1 R! R2 D
`) A* D- ]+ bIn this document legacy application is used to describe applications, which are not completely Unicode. If you are not sure if an application is completely Unicode, it most likely isn't. Virtually all applications designed for Windows 3.1, Windows 95, and Windows 98 are not Unicode (the exception here is Office 2000). 1 F J. S7 H; n
G# _9 e& f0 I- `, E+ f3 J7 CCodepage1 o7 c. h6 e3 M9 t; M: G* n
; G U+ i6 n3 e7 N/ I
A codepage is an ordered set of characters in which a numeric index (code point values) is associated with each character. The first 128 characters of each codepage are functionally the same and include all characters needed to type English text. The upper 128 characters of OEM and ANSI codepages contain characters used in a language or group of languages. |