Translation Policy en en
Important note - Before you add or edit a translation of this page or any other page in this wiki, please read the following instructions carefully. Please, DO NOT edit this page if you are not REALLY sure about what you are doing.
This documents defines the translation policy for the LibrePlanet wiki.
Terminology used in this document:
A translation page should be named using the following format:
<MasterPage>.<LangCode>
where:
So, the rule is: the translation page keeps the same (untranslated) name of the original page, plus a dot character followed by the 2-digits lowercase code (ISO 639-1) of the language used by the translation.
This will result in better searches findings, less confusion and more consistency of the wiki.
Example: The Italian translation of the Main_Page of this wiki should be named as Main_Page.it.
When some translation of a master page exist in the wiki, then either the master page or each of its translation pages should display (at their top) a language bar linking to all the available translations.
To do this, the master page and all its translation pages should call (at their top) the Template:Languages.
The Template:Languages should be called in the following format:
{{Languages|master page=<MasterPage>|language=<LangCode>}}
where:
Example:
The Main_Page of this wiki has been written in English, so it should include at top:
{{Languages|master page=Main_Page|language=en}}
and its Italian translation page should include at top:
{{Languages|master page=Main_Page|language=it}}
Please note that in both cases the template is called referring to the same master page (this keeps them all related to each other!), but the page in English will use the language code 'en', while the page in Italian will use the language code 'it'.
When using the Template:Languages, both the Semantic MediaWiki properties 'Language code' and 'Content language' for the calling page are set to the <LangCode> parameter value. These properties could then be used in semantic queries and searches.
In other words, following the example above, when including in a page:
{{Languages|master page=Main_Page|language=it}}
it not only will display the language bar, but it also will assign the 'it' value to both the semantic properties 'Language code' and 'Content language' for that page. This means that this page will be matched when searching/querying the Semantic MediaWiki for those pages having the 'Language code' or the 'Content language' properties set to 'it'.
In order to keep the
'Template:Languages'
working as expected when renaming/moving a master page, then the "old" master page should NOT be deleted and a redirection to the "new" master page should be set. This is needed because the translation pages including the Template:Languages still refer to the "old" master page name after it has been renamed/moved.
Only if all the references to the "old" master page in its translation pages were updated with the "new" master page name, then the redirection of the "old" master page is not required.
Example: To rename the Group:LibrePlanetTest\FooPage master page in Group:LibrePlanetTest\FooPageNew keeping at the same time the language bar correctly displaying its translation pages, the 'FooPage' should NOT deleted and its content should be replaced with:
#REDIRECT [[Group:LibrePlanetTest\FooPageNew]]
If a master page has one or more translations, then they should be checked in order to be aligned to this policy.
To do this: