Monday, December 5, 2011

My answer to "does lampcms support chinese well?is there some example website in china based on lampcms?"

This is my answer to a Question on Support site for LampCMS project


If you write your language translations string file, the ".xlf" file in the utf-8 charset that it can be in chinese or in any other language as long as it uses utf-8 encoding.

You just need to write your own translation file and same in 'translations' folder, name it "messages.cn.xml" ( I think "cn" is correct abbreviation for chinese locale, but I'm not sure)

You can see how it's done in translations/messages.ru.xlf for the Russian translation.

You then have to add a line in the !config.ini in the [LOCALES] section. For example, add this:
cn = "Chinese"

That will add the extra option to the drop-down language selection menu at the bottom of your site.

No comments:

Post a Comment