UserGuide: Localization

This revision is from 2009/07/23 22:21. You can Restore it.

Interface(Edit)

LionWiki comes with a few interface translations. By default, LionWiki tries to use language which is reported by browser as user's primary (see $USE_AUTOLANG in configuration). If user's primary language is not supported, default language is used ($LANG, English by default).

Currently, only English, French, Italian, Czech and Arabic are up to date, the rest is outdated. Updating existing ones and translating new ones is greatly appreciated!

SelectLanguage plugin(Edit)

SelectLanguage plugin creates select box (drop down menu) in which user can choose preferred language.

Usage: insert {plugin:SELECT_LANGUAGE} into your template.

Multilingual content(Edit)

Let's say you have page named "Biography" in German and you would like to make French variant. Rename page Biography to Biography.de and create page named Biography.fr and insert French translation there. Then visitors whose browser identifies primary language as French will see Biography.fr. It's recommended to create a redirect from page Biography to default language variant. The obvious limitation is that page name has to stay the same in every language variant. That's not such a big problem with "Biography", but it can be worse with other names.

This is recommended way to create multilingual content, there are more ways to do it.

Useful feature to maintain multilingual content is Subpage mechanism, which is described in previous section or PageVersions plugin (insert {VERSIONS} in the content and plugin will automatically detect and display all language variants of current page).