设为首页收藏本站官方微博

【汉化资料】windows 语言设置项目及相关API

[复制链接]
查看: 1567|回复: 2
打印 上一主题 下一主题

【汉化资料】windows 语言设置项目及相关API

跳转到指定楼层
楼主
发表于 2009-1-27 12:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

【汉化资料】windows 语言设置项目及相关API

一些非英语的AVG可能在游戏开始前调用了相关API进行判断,如果和设定语言不同,便进不了游戏。& L7 M" G) z/ t" P# k+ B: |: r
& a0 o; b! q& o* I! R  Q+ e
http://www.microsoft.com/globaldev/reference/localetable.mspx
* z' o+ d9 C" A% M' B  j7 N9 s0 b4 d& ^
Language Group
6 P, o! m/ |! m% b$ SThe language group controls which system locale, user locales, input locales, and User Interface (UI) languages a person can select.6 Q0 b3 R4 t5 y: r) |* M, m. z
, I$ M- ^( X8 G$ F
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.
1 |5 V% `2 f; n3 x: Z0 \2 m4 Q% G) i
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.
" {9 u) x( ?1 T8 P
8 z( d9 Y5 v# ^When 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).
( \( S. T9 |; P' L" M
8 X$ M% Z7 Q( w# ?0 _: t' yIn 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.
# v  e' B3 ?  |' T+ {" y; s- Q0 i" Z& C7 G. z+ E
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. ) v9 k& Y9 \# k( u1 }
7 D& p& D# s' b+ w. q$ e
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.)
9 }; x) A: [0 r; M" c
2 m2 j' M! |" M1 u" s5 fTop of page
  P0 W2 A2 r4 g# x: e+ P( YLocales
% X+ Z' K3 u/ vA 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: ^- ~: W0 M! _% j8 ?; c) y

: C1 I* c9 f- C- f# @$ FTop of page
# U0 ~2 ]3 e9 o; @7 P4 t# Y6 nSystem Locale
$ ^. e* Z" Z, N+ L  W; BThe 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.
) v' C. e* N: U
" \5 A3 Q. v7 G6 SAs 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.
# R8 h0 W% d, x4 A0 P+ U/ k1 [. o! C0 h2 Q3 u
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.
! t1 E7 ~" p/ p& x. F6 \; c' j
: D+ {; K/ O9 B+ e6 N" n5 n$ J4 r/ dIf 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.
' e! ^) ~+ h9 y- c" l5 @/ f% K! U8 ]4 H& [
An ANSI application should check the system locale at least during installation.
) A1 L! R8 F% a: j* b* S) {6 F' S8 @" ]1 w9 n1 f. W
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.
/ X8 i% f! x# h  y, ^) a" M# v; ~$ m; X3 u
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. , R$ B! V: L- }" `5 B) Z

" \+ @- t% s; _, g; \: i# a3 - 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.
. G0 d2 z  X* r/ L" a
8 j+ y; k/ K+ e$ e/ U1 eTop of page! A& L) u" c  F# G; V: k6 P
User Locale; L  [8 `) k3 a
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.
" u4 O* t3 h: y' ~* q* A
2 s  M5 v$ o- L/ NChanging the user locale, will automatically add an Input Locale with the default settings for the associated language.
, K7 z0 b3 _  t% K6 S) u: V; Z) }4 T7 ?. e) W
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. 6 O- f' j% M% I3 g# a

% s$ x5 P/ r' s0 G- KExample: 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. & U! k  o) [( }' D( D

5 D  ~5 Y; g% v3 R  ^* a/ JTop of page0 F# G2 B8 u. s8 l% [
Thread Locale* c* h1 U& X2 ]; U
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. / y! Z, w( ]( i+ ?2 p

- h3 _/ N7 p7 h; sExample: 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.
3 `( a2 R4 p7 f( F
% l! n! G) G% w' yTop of page+ N/ n" v6 g5 g, h$ g; r: e2 O
Input Locale
$ K3 ^9 M0 E- b8 h2 E' _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.
' n0 m0 }' Z/ r4 p  D& ?/ ]. B4 k5 S  `7 f; _
The 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.
- E, B# C6 i/ A6 Z9 K% a
. w  T0 n* V$ x; N( bExample: 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).
% H0 Q' \, I, a; r7 e& q
; W& U( r4 W6 r' ~# h: jTop of page5 q; i7 K& F6 w3 s
Languages! G; l) q: `# k& d
Languages are identified by a LANGID, which has a primary language (e.g., Chinese) and a sub-language (e.g., PRC).
# E' A, d1 I  L" I& l5 ~
! Q9 ^' E" @, k# |1 ~4 l' `Top of page% W2 s/ y# T! F/ G5 c5 U
System UI Language (Install Language)$ V# r  A, c1 v
The 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. 0 |' c8 p; v2 Z& T( w) P: V: K5 T- D% H
& ~/ S% f  w9 @4 x+ j3 t
Top of page
" ~# |% y; W, E! U& P' Q! UUI Language
/ g; X; I  E% _8 s" r) h7 Q7 CNon-Multilingual-User Interface Windows 2000: The User UI language will be the System UI Language. ( Z7 d% {) U9 }
3 N, m3 u& R* H& f5 `  t
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. ) m  N7 @4 y' S4 U) m
& r3 M; U6 d7 p" T7 s0 P* X
If a person changes their user language to see the effect the person will have to log off and then log back on. 1 o5 F% }6 h3 ^, ]/ J  F

2 ]- j0 Z2 ]! S# J9 OExample: 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. ! j; p, Q9 ?! h( z! V. x+ e$ d, C
; V" m: x1 }6 w- `
Top of page3 {9 F4 \1 @. B
Geographic ID
# ^7 a2 p1 [- D- yThis 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. 5 _5 m7 i$ i, w1 Y
+ q5 Q, ]0 [0 {4 a2 ^
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.
0 P# E- ~: o, k, C
* W2 d: o; C! kTop of page
6 T2 v/ ~4 W; B; ~5 TGlossary5 S* V& @; J0 s: f; F0 C# ^7 \
Legacy Application+ ?7 g/ t6 K: Z- Z4 C7 _
" K) _) Y! E6 Z3 i1 E6 B5 a
In 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). : x3 g2 l% Q6 K7 ^
: K/ p- q3 Y  i: d, E
Codepage
9 s& |8 Q2 B$ \9 c/ A; |9 n- o, V
2 J7 y$ ~; x" U  Q) @" e; SA 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.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 很美好很美好 很差劲很差劲
回复

使用道具 举报

沙发
发表于 2009-4-22 16:06 | 只看该作者
转载了。
, O7 Z0 ~! ]8 `7 ^5 t: K3 g给你个补偿

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2009-4-22 17:04 | 只看该作者
谢谢!另外看见你在饭否上夸我像土拨鼠了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

冒险解谜游戏中文网 ChinaAVG

官方微博官方微信号小黑屋 微信玩家群  

(C) ChinaAVG 2004 - 2019 All Right Reserved. Powered by Discuz! X3.2
辽ICP备11008827号 | 桂公网安备 45010702000051号

冒险,与你同在。 冒险解谜游戏中文网ChinaAVG诞生于2004年9月9日,是全球华人共同的冒险解谜类游戏家园。我们致力于提供各类冒险游戏资讯供大家学习交流。本站所有资源均不用于商业用途。

快速回复 返回顶部 返回列表