[mythtv] 回复: how to add one language option in Mythfrontend=>Apperance=>Localization
Clark Lee
clarkchen900 at yahoo.com.cn
Thu Dec 18 15:25:13 UTC 2008
Hi, Daniel,
Thanks a lot. I have added "Chinese (Simplified)" in source code and it is shown as one option now.
However, I didn't get the menu shown in Simplified Chinese after select this setting. here is what I do:
cd i18n
lupdate translate.pro;
added *_zh_cn.ts to translate.pro;
copy myththfrontend_zh_tw.ts to mythfrontend_zh_cn.ts;
use linguist to update mythfrontend_zh_cn.ts, added translation;
use lrelease to compile *.ts to *.pm
edit i18n.pro, added *_zh_cn.pm
cd ..
make clean; make; make install
I noticed that the translate_zh_tw.ts is empty translation file (i.e. no Traditional Chinese is in the text). however, if I set the lauguage as "Hanzi (Traditional)", the menu is shown correctly with Traditional Chinese! I am really puzzled.
The information on wiki doesn't tell how to add one translation: http://www.mythtv.org/wiki/index.php/Translation
Clark
----- 原始邮件 ----
发件人: Daniel Kristjansson <danielk at cuymedia.net>
收件人: Development of mythtv <mythtv-dev at mythtv.org>
已发送: 2008/12/17(周三), 下午9:43:26
主题: Re: [mythtv] how to add one language option in Mythfrontend=>Apperance=>Localization
On Wed, 2008-12-17 at 21:01 +0800, Clark Lee wrote:
> I found the lauguage setting is specified in
> Mythfrontend=>Apperance=>Localization=>Language. Here I saw all possible
> choices, like English (British), Hanzi (Traditional), etc. I would need
> to add one option here as Chinese (Simplified), and link it to the
> translation file I generated.
In libs/libmyth/langsettings.cpp see:
QStringList LanguageSettings::getLanguages(void)
-- Daniel
_______________________________________________
mythtv-dev mailing list
mythtv-dev at mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
___________________________________________________________
好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/
More information about the mythtv-dev
mailing list