Internationalization
XWiki can be set-up to support one or various languages.
XWiki has translations in 40 languages:
- Bulgarian (bg)
- Catalan (ca)
- Czech (cs)
- Danish (da)
- German (de)
- Greek (el)
- English (en)
- Spanish (es)
- Persian (fa)
- French (fr)
- Galician (gl)
- Hindi (hi)
- Croatian (hr)
- Hungarian (hu)
- Indonesian (id)
- Italian (it)
- Japanese (ja)
- Cambodian (km)
- Korean (ko)
- Lithuanian (lt)
- Latvian (lv)
- Marathi (mr)
- Dutch (nl)
- Norwegian (no)
- Polish (pl)
- Portuguese (Brazil) (pt_BR)
- Portuguese (pt)
- Romanian (ro)
- Russian (ru)
- Sinhalese (si)
- Slovak (sk)
- Slovenian (sl)
- Swedish (sv)
- Turkish (tr)
- Uyghur (ug)
- Ukrainian (uk)
- Vietnamese (vi)
- Traditional Chinese (zh_TW)
- Simplified Chinese (zh)
- Kannada (kn)
If you wish to help out improve translations, check our translation platform.
Preferences
Setting up languages is done in the Administration (link on the top left of every page).
Switch to another language
By default the language displayed will be the one coming from the browser. However, on every page you can choose to switch between the different language translations that exist for that page. To do so click on the language name in the top right corner of the screen as shown in the following screenshots. Note that you can also force a language by suffixing a URL with language=<2-letter language code>. In addition you can configure your wiki to always use a specific language or force a single language to be used.
<-English Deutsch->
Page translations
The title and content of a wiki page can be translated in multiple locales. For this you need to configure your wiki to be multilingual and set the list of supported locales. Once you do this XWiki will try to show you the title and content of the page translation that matches the current user interface locale. If the page has not been translated yet then XWiki will show you the title and content from the original version of the page. You can check the Information tab at the bottom of the page to see the locale of the current page, its original locale, as well as the list of existing and missing page translations. You can use the links to access the available page translations or to create the missing ones.
XWiki 13.2+, 12.10.5+
You can also use the Translate page button to start creating the missing translation. It opens either the in-place editor or it takes you to the stand-alone editor (Wiki or WYSIWYG) depending on your preferences.
Edit a translation
When editing a plain wiki page the editor will load:
- the page translation that corresponds to the current laguage, if it exists and multilingual is on
- otherwise, the original page
When editing a structured page the editor will load the original page because the structured data (objects) are shared by all page translations.
From Wiki and WYSIWYG edit modes, as well as when editing in-place, you can switch to a different page translation or create a missing translation.
When editing in-place you get a "Translate" button if the edited page doesn't have a translation for the current locale. Click on the "Translate" button if you wish to create the missing translation, otherwise all the changes you do will be saved to the original version of the page.
From the Wiki and WYSIWYG edit modes you are able to edit the default (original) page language. The default language is indicated on the right "Document Information" panel as shown below:
In the "Document Translations" panel you can see the current language you are performing translations in and the alternative languages you may translate your page to. These are the languages you have previously set up in "Administration".
In order to translate your document in a different language, click on one of the languages (e.g. Fr). As a result you will see the edition mode translated in that language.
Once you save a document in one of the languages, that document becomes the original document and the language it is written in becomes the default language.