Help:Translation

From Dota 2 Wiki
(Redirected from Help:Language translation)
Jump to: navigation, search
Town Portal Scroll icon.png
Play “Oy! Try to do better this time!”
This article or section may need to be rewritten entirely to comply with Dota 2 Wiki's quality standards.
You can help. The discussion page may contain suggestions.


Dota 2 Wiki is capable of handling multilingual content and providing the reader a user interface in their preferred language. Multilingual editors are encouraged to translate and maintain articles in as many different languages as possible to reach the whole Dota 2 global community. Maintaining up to date translated articles is very important and it should be noted that it is preferential to have an up to date English article, rather than an out of date translated one.

How to translate a page[edit source]

Follow these guidelines to start translating an article.

  1. Check that your language is supported.
  2. Go to the English version of the article's page and click "Edit this page". Select everything in the box and copy it.
  3. Go to the Language version of the article and click "Create". Paste everything from your clipboard.
    The German version of the article "Hats" would be de:Hüte. Hats/de is no longer valid. Each supported language now has its separate wiki.
  4. Add the template {{Translate}} to the top of the page. This keeps all uncompleted articles in your language together.
  5. Change all the categories at the bottom of the page. Most pages will have localized category names.
  6. You can now translate the rest of the article. Note that some text is stored in other pages (called "templates"). To translate these you will have to edit them individually.
Pictogram minus.png
No automated translation tools!
The use of Google Translate or any automated translation tool or service is strictly prohibited. Pages found to have used these tools will be deleted and users who repeatedly use these programs will be blocked from further editing.
Please report any pages that consist of entirely machine-translated text (or any users that appear to repeatedly use these tools) to the project page.

Coordination[edit source]

Please watch the Project:Translation page. Announcements and discussion will take place there. (click the 'watch' tab at the top). This will ensure you stay on top of any changes or announcements.

Rules for the EN wiki:

  • Talk pages
    • It is vital that all discussion based on specific users and articles is in English. This is especially important when discussing the quality or accuracy of any article or translator.
  • Edit summaries
    • All edit summaries should be written in English where practical.

Rules for other languages:

  • Keep the template names in english. Do not move the code away from the page. You can create localized redirects towards the template instead.

Articles[edit source]

Release Illuminate icon.png
Play “Many hands make light work.”
This article or section contains incomplete or outdated information. Please help the community by updating it.
You can help improve this help by updating the content as necessary. See the wiki style guide.

  • Displaying a different title
    • Displaying a title in a different language is possible with the use of the magic word {{DISPLAYTITLE:}}.
    • For example, using {{DISPLAYTITLE:Example}} will display the article name as Example.
  • Infoboxes
    • To display a new name in an infobox, add a new line like this:
      {{Item infobox
      | name = Name goes here
      | image = ...
    • The infobox template for weapons and hats needs a few lines to stay in English for it to work properly. If a line is listed below, please do not translate it:
      Template:Expandlist
      See Template:Item infobox for further help.
  • Links
    • You can link to translated articles and display different text for the links like this:
      • [[Mechanics/ru|Механизмы]] will create Механизмы.
      • You may need {{langlink|Io}} to generate 艾欧 on "Chinese (Simplified)" page for synchronized further page's title changing.
    • If using external links that are in English, you should also use the template {{lang icon}} directly after the link to indicate the language of the external link.
      • [http://www.google.com/ Google] on Chell/fr should look like [http://www.google.com/ Google] {{lang icon|en}}, which will generate:
      Google Template:Lang icon
    • {{Main}} and {{See also}} – When using these templates you can display a different title using the parameter l1 (lowercase L1):
    {{Main|Hats/fr|l1=Chapeaux}} generates
    Main article: Chapeaux
    {{Main|Hats/fr|l1=Chapeaux|Miscellaneous items/fr|l2=Objets divers}} generates
    Main articles: Chapeaux and Objets divers
    Note: To change the "Main article:" text, see the individual template pages for {{main}} and {{see also}} as they use translation switching.
  • Categories
    • Language pages should be kept in separate categories.
    • For example on Repulsion Gel/fr, if you find [[Category:Gels]] at the bottom of the page, change it to [[Category:Gels/fr]].
  • Redirects
    • You can create as many language redirects as are needed, as long as they are tagged properly with {{R lang}}. See example:
      Шапочка поджигателя redirecting to Pyro's Beanie/ru will have the following text on the page 'Шапочка поджигателя':
      #REDIRECT [[Pyro's Beanie/ru]] {{R lang|ru}}
    • Pictogram comment.png Note: always remember to add {{R lang|xx}} (this helps to find these redirects later, as there can be hundreds of them)
  • Disambiguation pages
    • Disambiguation pages (i.e. pages that list articles with similar names for convenience) that are specific to one language should not be created. Root pages should always be in English, and much of the wiki page structure relies on this. Lang-specific disambig pages can become too difficult to keep track of.

Templates[edit source]

Each subwiki has it's own localized version of the EN template. Changes and improvements should be ported upstream to the EN version, where the other downstream languages will notice the changes and can adapt them as well.

Meda files[edit source]

There are two types of databases: Shared (en) and local (de/pt/ru/zh).

Shared en images can be called as if they were available at the respective wiki. If you use parser functions you can use these two functions to distinguish where the image comes from:

  • {{#ifexist:File:EN_image.png|true|false}} returns false on the RU wiki because the file page is not on the RU wiki but the EN wiki.
  • {{#ifexist:Media:EN_image.png|true|false}} returns true on the RU wiki because the file media is available (shared) to the RU wiki from the EN wiki.

Images[edit source]

Images have to be uploaded to the English wiki. If there is text within the image that needs to be translated, the new image can be uploaded to the local databases.

Sound files[edit source]

Should /lang files be available in the shared or local database?


Wiki files[edit source]

Those files need language specific adaptions beside the usual translations:

Supported languages[edit source]

Dota 2 Wiki supports language translation of articles into a number of languages, the majority of which have localization files for Dota 2.

There are no plans to add support for any further languages at this time. Support for the translation of articles into a specific language will now only be considered if there are localization files present in the game. The reasoning for this is that the workload for translators who do not have support from the Steam Translation Server (in the form of word lists, nouns, etc, and proper discussion channels) is significantly higher. The amount of active translators is also less, meaning pages can quickly become out of date.

If you want to maintain a new language in the long term, start a new discussion at Project:Translation and give your reasoning. It's very advantageous to have a good record of edits to show your credibility.

ISO639-1 code Name in English
English
de German
pt Portuguese
pt-br Portuguese (Brazil)
ru Russian
zh Chinese
zh-hans Chinese (Simplified)
zh-hant Chinese (Traditional)