How to add a new language

To add a new language to the documentation wiki, follow these steps:

Add language to Language Header

  1. Click on this link to go to the template for the Language Header.
  2. Click the Edit button above the header.
  3. Add a new language in the same way as the already existing ones (for example <pagenamepluslang lang="fr" name="Français" />)

Add language to Language Footer

  1. Click on this link to go to the template for the Language Footer.
  2. Click the Edit button above the header.
  3. 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

  1. Click in this link to go to the template for the English Table of Contents.
  2. Click the Edit button above the header.
  3. Select all the wiki code and copy (Ctrl + C).
  4. 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.)
  5. As that page is not yet created you will see a message where you can click "edit this page".
  6. Paste the wiki code (Ctrl + V).
  7. You now need to add /de to the end of each link. It will then look like * [[User_Handbook/de|Start Page]].
  8. 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.
  1. 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.
  2. Click the Edit link above the header.
  3. Change the template tag that looks like {{User Handbook TOC}} to look like {{User Handbook TOC/xx}} (xx being the language code).
  4. 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

  1. 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: ...).
  2. 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}}
  3. You should also add the tag for not having edit links for each section of the page:
  4. 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 - عربي - 日本語 简体中文

Add Language

From CMSMS

A2 Hosting