Table of Contents
- Bienvenue dans le Wiki
- Documentation en français
- Par où commencer
- Le panneau d'administration
- Tutoriel Création d'un module
- Trucs et astuces
- Glossaire CMSMS
- Guide du développeur
- Module Tutorial
- Création de modules
- Glossaire Wiki
This page in: English - Deutsch - Español - Français - Italiano - Lietuvių - Nederlands - Norsk - Polski - Русский - Svenska - Tiếng Việt - عربي - 日本語 简体中文
How to add a new language
To add a new language to the documentation wiki, follow these steps:
Add language to Language Header
- Click on this link to go to the template for the Language Header.
- Click the Edit button above the header.
- Add a new language in the same way as the already existing ones (for example
<pagenamepluslang lang="fr" name="Français" />
)
- Click on this link to go to the template for the Language Footer.
- Click the Edit button above the header.
- Add a new language in the same way as the already exsting ones (for example
<pagenamepluslang lang="fr" name="Français" />
)
Create the template for the Table of Contents
- Click in this link to go to the template for the English Table of Contents.
- Click the Edit button above the header.
- Select all the wiki code and copy (Ctrl + C).
- In your browser's address window, type
/xx
, where xx is replaced by the two-letter code for your language (like de for German, fr for French etc.) - As that page is not yet created you will see a message where you can click "edit this page".
- Paste the wiki code (Ctrl + V).
- You now need to add /de to the end of each link. It will then look like
* [[User_Handbook/de|Start Page]]
. - Then you replace the text for each link with the text in your language, for example:
* [[User_Handbook/de|Startseite]]
.
Create the template for the Inline that points to the Table of Contents
The last step is to change in the code for the Inline (the code surrounding the Table of Contents), to point to your language.
- In your browser's address window, type
http://wiki.cmsmadesimple.org/index.php/Template:User_Handbook_TOC_Inline/xx
, where xx is the two digits for your language. - Click the Edit link above the header.
- Change the template tag that looks like
{{User Handbook TOC}}
to look like{{User Handbook TOC/xx}}
(xx being the language code). - In the same way, add the language code to the template link, to look like
[[Template:User_Handbook_TOC/de|[Edit]]]
(you can also change Edit to your language).
Create a version of a page in your language
- Now you are ready to get to work. For any page that you wish to add in your language, click your language in the Language Header or Language Footer (This page in: ...).
- You must start each page by including the templates for the Table of Contents, the Language Header and the Language Footer. It will look like this:
{{User Handbook TOC Inline/xx}}
<code>{{LanguageHeader}}{{LanguageFooter}}
- You should also add the tag for not having edit links for each section of the page:
- Finally, on pages that include sub-headings, you should include at the bottom of the page.
The code to start a new page with should then look like this:{{User Handbook TOC Inline/xx}}
{{LanguageHeader}}
__NOEDITSECTION__
{{LanguageFooter}}
__NOTOC__
This page in:
English -
Deutsch -
Español -
Français -
Italiano -
Lietuvių -
Nederlands -
Norsk -
Polski -
Česky -
Русский -
Svenska -
Tiếng Việt -
عربي -
日本語
简体中文