Help:Translation
This guide will help you translate pages to different languages. We recommend reading the Getting Started guide first.
Edit localized pages
[edit source]If a localized page uses a translation template or module, check the code of the template/module and find the respective text string under Data:Dictionary, then add the entry corresponding to your translation.
If a template does not support automated translation, use Template:Translate, Module:Lang or Module:Dictionary to add translations. Feel free to ask for help on Discord if you don't have experience with template editing.
The wiki format requires localized pages to be subpages of the original English page, meaning that the page title cannot be changed. So for example, the Russian localized page for Abrams is Abrams/ru. However, the title displayed in the page can be changed by adding the variable {{DISPLAYTITLE:[localized page name]}} in the page itself. We use the standard language code for translations.
Adding language support
[edit source]Note: To prevent spam, new accounts must be 4 days old with 10 edits before creating pages. If you'd like to create a page sooner, feel free to request manual confirmation on our Discord server.
To add a new localization, follow these steps (replace [lang code] with the appropriate language code):
- See Deadbot parser for a list of available languages and language codes.
- Create an empty page named
Data:Lang [lang code].json. This enables Deadbot to upload the localization files for that language the next time it pushes an update.
Then, request a moderator or administrator to do the following:
- Add the language code to Data:LangCodes.json.
- Add the language code and language name to MediaWiki:Sidebar.
- Create a page named
MediaWiki:Langlink-[lang code]with the content{{mw-langlink|[lang code]}}.
Supported languages
[edit source]- English
- Czech
- Spanish
- French
- Japanese
- Korean
- Portuguese (Brazil)
- Russian
- Turkish
- Chinese (Simplified)
- Chinese (Traditional)
Creating pages
[edit source]Following these steps, you can start creating localized pages. The easiest way to do this is by copying the source code of the original English page and pasting it to the localized page, since this will include all the necessary formatting and templates. Many templates already support localization and thus do not need to be manually translated. If a template does not support localization, feel free to edit the talk page or ask on Discord for help. Also note that Deadbot will only push the language files once it runs an update from the game.
In case of templates that call for text strings not available in the original localization files from the game, you'll need to add the localization to Data:Dictionary by adding it with the language code under the respective English string. Most localization of in-game text is done by using Module:Lang, and Template:Translate or Module:Dictionary for Data:Dictionary strings.