Wiki source code of Languages

Last modified by Eleni Cojocariu on 2026/11/25 14:39

Hide last authors
Eleni Cojocariu 9.16 1 Languages are used in XWiki to support [[multilingual content>>xwiki:Documentation.UserGuide.Features.I18N||anchor="HPreferences"]] that can be granted by your administrator. Languages allow the same Page to exist in multiple languages, while still being treated as one Page. Your administrator can also [[set the "Default Language" for the entire wiki>>documentation.xs.admin.language.set-default-wiki.WebHome]]. When working with languages , there are several key terms to understand:
Eleni Cojocariu 1.1 2
3 * Page Language: this indicates the language of the version of the Page you are currently viewing.
4 ** If you are looking at a [[translation>>xwiki:Documentation.UserGuide.Features.I18N||anchor="HPagetranslations"]], it shows the language of that translation.
Vincent Massol 5.2 5 ** If the Page you're viewing is not a translation, it shows the Page's default language.
Eleni Cojocariu 1.1 6 * Default Language: shows the Page’s default Language.
7 ** This field is only shown if you are viewing a translation.
8 ** When multilingual is disabled, or when you are already viewing the Page in the Default Language, there is no distinction between the Page's "Language" and "Default Language", so this field doesn't appear.
9 * Translation: a Page can then be translated into other languages, each translation is stored separately, but XWiki keeps them linked together under the same Page reference.
10
11 For example, viewing a translation and viewing the Page under "Default Language":
12
13 {{gallery}}
Eleni Cojocariu-testing account 8.1 14 [[image:viewing-translation.png||alt="The information tab when viewing a translation"]]
15 [[image:viewing-default.png||alt="The information tab when viewing the default page content"]]
Eleni Cojocariu 1.1 16 {{/gallery}}
17
Eleni Cojocariu 9.15 18 When you change the "Language", the newly selected language will become the "Default Language", but the actual content stays in the previous language. This means the content is not converted automatically, you need to [[edit the Page>>xwiki:documentation.xs.user.content-edit.page.WebHome]] and update it to match the new Language. The previous language becomes a [[translation that you need to create>>xwiki:Documentation.UserGuide.Features.I18N||anchor="HPagetranslations"]].
Eleni Cojocariu 1.1 19
20 == Limitations ==
21
22 * [[The "Locale" field in the "Information" tab should refresh the UI after a change>>https://jira.xwiki.org/browse/XWIKI-23470]].

Get Connected