Vlad Harchev �g�D�G
> 
> > >>  I believe that user has to set $LC_MESSAGES=en rather than tweak $LANG.
> > >>  Anyway - AW uses a wrapper, so it would be easy to tweak it.
> >
> > Yes, it can be done this way.
> 
>  Though currently AW ignores $LC_MESSAGES completely. Feel free to fix this :)

Hmmm... I don't think so...

As I tested (the latest CVS),
If I launch abiword by this locale setting
LANG=zh_CN.GB2312 LC_MESSAGES=en_US ./AbiWord_d
(yes, I run the binary direct instead of the wrapper)
The menu became to English, while I can still input and
see the Chinese character. That's the desired result.
However, if I tried
LANG=en_US LC_MESSAGES=zh_CN.GB2312 ./AbiWord_d
AW crashed:
** ERROR **: file ap_StatusBar.cpp: line 556 (UT_uint32
ap_sb_Field_InsertMode::getDesiredWidth()): assertion failed:
(m_iDesiredWidth)
aborting...
Aborted

If I use LC_CTYPE instead of LC_MESSAGES
LANG=en_US LC_CTYPE=zh_CN.GB2312 ./AbiWord_d
The menu is English, and I can invoke Chinese input server
to input character, but it messed up. The Chinese character
didn't display.

Setting language to English but character set(LC_CTYPE)
to Chinese is the more correct way to achieve this goal.
The usage of LC_* environments may be wrong in AW.

-- 
   ~     Chih-Wei Huang (cwhuang)
  'v'    E-Mail       : [EMAIL PROTECTED]
 // \\   CLDP Project : http://www.linux.org.tw/CLDP/ (Coordinator)
/(   )\  CLE  Project : http://cle.linux.org.tw/CLE/  (Developer)
 ^`~'^   HomePage     : http://www.cwhuang.idv.tw/



Reply via email to