Bo Peng wrote:
Testing other languages isn't that hard, if you want to try.
Example for debian linux:
1. Ensure that the linux distribution itself has language support.
The reason for this is that LyX will not be allowed to select a
GUI language not also supported by the distribution.
a) "apt-get install locales" or "dpkg-reconfigure locales"
b) add some other language from the presented list,
for example nb_NO.UTF-8
It must be one of the languages supported by LyX, of course.
Note that this action will _not_ mess up your working english
setup - you merely get more options. Some distros install with
all locales - in that case you start at step 2 instead.
2. Open an xterm, and activate the language for that one
command-line session like this:
"export LANG=nb_NO.UTF-8"
3. Run LyX from that xterm.
You should now get LyX in the other language - anything
still left in english is untranslated stuff.
I followed your instructions and setenv LANG zh_CN.UTF-8. lyx seems to
pick up zh_CN.gmo because I see blank characters for translated
strings. It looks like a font problem but gvim displays Chinese just
fine under the same environment...
I am not sure how to make LyX display chinese.
But I know some further tests:
Add a bogus translation to zh_CN.po, using ascii characters.
If you don't see that bogus translation, then something else in LyX
is broken. If you see it - then it really is just a font issue.
Another test:
Try pasting chinese characters (from the web or something)
into the LyX main window. That works for me, although latex
can't handle it as-is. If this works, the font works to some extent.
Is there anything else I need to do to show Chinese characters in lyx
under linux? Note that I nb_NO.UTF-8 works here, but not Chinese.
Clearly, the font used for the user interface (menus etc.) must be one
who actually have the chinese characters.
LyX doesn't seem to have a setting for this - I guess the font is selected
by qt. Run "qtconfig" or "qtconfig-qt4" (whichever you actually have),
then select a font containing chinese characters. Make sure by
pasting chinese into the "sample text" field in qtconfig.
Is other qt4 apps able to show chinese menus on your system?
Helge Hafting