On 10/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
"Yongwei Wu" <[EMAIL PROTECTED]> 写于 2006-10-30 10:41:21:
> Alex, if you cannot display Chinese while choosing Courier New, you
> may try setting your default locale (Control Panel > Regional and
> Language Options > Advanced > Language for non-Unicode programs) to
> Chinese (PRC). It should work. And then you will be able to edit
> English, French, Greek, Russian, Chinese, Japanese, and Arabic
> simultaneously.
>
> Best regards,
>
> Yongwei
A little off-topic, but AFAIK this works perfect in Windows but not
identical in Linux, since Windows do not connect the internal processing
locale to the locale of user interfaces. The UI will never change when you
change the locale. (That's a good design IMO)
When you change the locale in Linux, the messages, menu texts are all
changed to the targeting locale after reboot. So it is hard to have a
Chinese UI and retain English locale, and it might be more difficult to
have a Chinese locale while retain English UI.
Alex's case is an example, if what he want is to display chinese correctly,
set locale to chinese is an easy way, but he might be troubled if all the
messages in the UI also changed into chinese.
The Windows UI will not change, but the Vim UI may change. Apart from
hard-coding in _vimrc (as already discussed by Tony), one may use
Control Panel and environment variables to change the Vim UI language,
which are my preferred ways. In Regional and Language Options, the
language under Standards and formats determines the default UI
language of Vim, unless it is overridden by the environment variable
LANG.
I generally set the default encoding for legacy applications to CP936
(Chinese (PRC)), but I set the language under Standards and formats to
English (United Kingdom) to get an English UI in Vim (as well as make
Firefox treat ambiguous-width characters in a UTF-8 web page as single
width by default). To test the Chinese UI of Vim, I type `set
LANG=zh_CN' in the command prompt.
Best regards,
Yongwei
--
Wu Yongwei
URL: http://wyw.dcweb.cn/