Help:How to translate the wiki
From AssaultWiki
This page contains some information on how to translate the wiki to your own language.
Translating pages
1) Make sure your language is listed on the language template. To do this, visit Template:Language and edit the page. Add a line to the language list with this format:
[[{{{pagename}}} (111)|222]]
- Replace 111 with the language code, for example en would be for English.
- Replace 222 with the name of language, in the native language. For example, French should be Français in this instance.
- This should now make a red-link on all pages with the language template on it. Simply click on that link to create the page you need to translate.
- NOTE: If the language template does not exist on the page you are editing, simply add it on that page by adding the following code to the top of the page:'
{{Language|pagename=333}}
- Replace 333 with the entire name of the page, for example: Help:How to translate the wiki
Creating new content
1) Make sure your language is listed on the language template.
- To do this, visit Template:Language and edit the page. Add a line to the language list with this format:
[[{{{pagename}}} (111)|222]] •
- Replace 111 with the language code, for example en would be for English.
- Replace 222 with the name of language, in the native language. For example, French should be Français in this instance.
2) Create the page.
- This can be done, by manually entering the link in this format:
http://wiki.cubers.net/action/view/PAGENAME (LANGUAGECODE)
- Replace PAGENAME with the entire name of the page, for example: Help:How to translate the wiki
- Replace LANGUAGECODE with the language code, for example en would be for English.
- NOTE: English pages are always without languagecode
3) Add the language template to the page.
- As soon as you start editing the page, make sure you add the language template to the top of the page by adding the following code to it:
{{Language|pagename=333}}
- Replace 333 with the entire name of the page, for example: Help:How to translate the wiki
4) Add the language category.
- This can be done by adding
[[Category:444]]
- Replace 444 with the name of language, in the native language. For example, French should be Français in this instance.