Help:Language translation

From Team Fortress Wiki
Revision as of 15:04, 24 July 2019 by Holi (talk | contribs) (Как переводить страницы)
Jump to: navigation, search

Team Fortress 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 TF2 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.

Как перевести страницу

Следуйте этой инструкции, чтобы начать переводить статьи.

  1. Убедитесь, что ваш язык поддерживается (см. Список поддерживаемых языков ниже). Мы поддерживаем большинство языков, которые имеют официальные внутриигровые переводы.
  2. Перейдите на английскую версию страницы статьи и нажмите «Редактировать страницу». Выделите все в поле и скопируйте его.
  3. Перейдите к новому языку, добавив «/ LANGUAGE» в конец статьи, где LANGUAGE заменяется кодом ISO языка, на который вы хотите перевести Здесь
    Пример: http: //wiki.teamfortress.com/wiki/Scout/fr </ code>
  4. Вставьте код английской страницы в новый.
    Французская версия статьи «Hats» будет Hats / fr, а не Template:! Xt, Template:! Xt или Template:! Xt
  5. Используйте {{DISPLAYTITLE: abcxyz}} </ nowiki> </ code>, чтобы перевести заголовок страницы. #: Например: <code> <nowiki> {{DISPLAYTITLE: Handlung}} </ nowiki> </ code> будет «показывать» заголовок «Handlung», сохраняя при этом «настоящий» заголовок статьи как «Storyline / de» ». #: Заголовок дисплея также может быть установлен с помощью инфобокса [[#Articles | (см. Ниже)]]. Из-за этого статьи о косметических предметах и оружии не должны использовать этот шаблон, чтобы разрешить динамическое изменение имени из [[Template: Dictionary | dictionary]]. # Измените категории внизу страницы. #:Например: <code> <nowiki> [[Category: Lists | Weapons]] </ nowiki> </ code> становится <code> <nowiki> [[Category: Lists </ nowiki> '' '/ fr' '' <nowiki> | Оружие]] </ nowiki> </ код>. Сделайте это для всех категорий внизу страницы. # Теперь вы можете перевести остальную часть статьи. Обратите внимание, что некоторый текст хранится на других страницах (называемых «шаблонами»). Чтобы перевести их, вам придется редактировать их по отдельности. #: По возможности, используйте [[: Category: Localization files|localization files]], чтобы использовать правильные имена и описания. #: Если вам нужно сохранить незаконченный перевод, чтобы завершить его позже, добавьте {{tl | trans}} в верхнюю часть страницы. Все такие неполные переводы будут [[: Category:Pages_in_translation| в этой категории]]. #:: Вам не нужно добавлять {{tlx | trans | French}} (например), требуется только {{tl | trans}} или {{tl | translate}}. == Translation community == Each language has its own main discussion page at '''[[Team Fortress Wiki:Translation progress]]'''. You can also find statistics about your language's translation effort here. Please also join the [http://steamcommunity.com/groups/tfwiki-i18n/ TF Wiki Translators] Steam Group and watch the [[Team Fortress Wiki:Translators' noticeboard|translators' noticeboard]] (click the 'watch' tab at the top). This will ensure you stay on top of any changes or announcements. == Multilingual guidelines == * English is the main reference language, and all root pages should be named and written in English. * Other languages should be placed in an appropriately named sub-page of the English version. * Language subpages should use the appropriate ISO 639 code (as listed [[#List of supported languages|below]]) * With few exceptions, pages in the <code>Help, Team Fortress Wiki, Mediawiki</code> namespaces should not be translated. These pages are primarily aimed to be read by Wiki editors, and all Wiki editors should all be capable of reading English. As such, it is not very useful to translate these pages and can cause out-of-date guidelines when compared to the authoritative (English) version. Exceptions include language-specific translation guidelines and problematic guidelines repeatedly ignored by non-English-reading editors. ** Disambiguation pages do not need to be translated unless they refer to common words, e.g. [[Shoes]]. * If a translated version of a page exists but an English version does not, then please create a stub article for the English version as this aids navigation. * The use of {{tl|Languages}} at the bottom of articles is now discouraged, as language links appear in the sidebar. * While in the process of translating articles, using {{tlx|Trans}} is encouraged to display to other editors that the article is a work in progress. * Pages that are out of date or need updating should be tagged with {{tl|update trans}}. Pages with this tag appear in [[:Category:Translations needing updating]], sorted by language. * Please do ''not'' sign articles using the 4 tildes (<code><nowiki>~~~~). The list of people who contributed to the article is always available in the history tab, and it would otherwise clutter the page.

Automated translation tools

Pictogram comment.png Note: please report any pages that consist of entirely machine-translated text (or any users that appear to repeatedly use these tools) to the translators' noticeboard.

On-wiki communication

  • 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.

These requirements allow staff and fellow editors to keep up to date with every aspect of translation.

Articles

  • 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.
  • Templates
    • Templates use parameters with values to display text. The style is | parameter = text. Translating the text is almost always required, but the parameter should never be translated.
    • {{Item infobox}} needs a few lines to stay in English for it to work properly. If a parameter is listed below, please do not translate the text associated with it:

type, game, slot, trade, gift, craft, paint, rename, quality

  • Links
    • You can link to translated articles and display different text for the links like this:
    • 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.
      • Google on Soldier/fr should look like [http://www.google.com/ Google] {{lang icon|en}}, which will generate:
      Google (English)
    • {{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 Wrench/fr, if you find [[Category:Melee weapons]] at the bottom of the page, change it to [[Category:Melee weapons/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 Shotgun/ru will have the following text on the page 'Дробовик':
      #REDIRECT [[Shotgun/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. Language-specific disambiguation pages are too difficult to keep track of.
  • Quotations
    • The quotation text has to be translated.
    • If your language is one of the few having translated voice lines (German, Spanish, French and Russian), you can check if the sound is localized by adding your language code to the sound (e.g. Demo trade 04.wav becomes Demo trade 04 de.wav) and using "Show preview".
      • If the sound exists, listen to it and add the translated text.
      • If not, translate the quotation on your own, leave the English voice line and add the en-sound=yes parameter to the template.

Templates

The majority of templates should use translation switching, with the exception of some navigational boxes. Previously it was necessary to create a localized version of a template, e.g. Template:Hat infobox/ru. Now localized text is stored in one template, where text for all languages is stored. Please see Help:Translation switching for further information.

List of supported languages

Team Fortress Wiki supports language translation of articles into 22 languages, the majority of which have localization files for TF2.

Pictogram comment.png Note: 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.
Please do not make requests to moderators or on the talk page regarding requests, our stance at this time is not changing.
ISO639-1 code Name in English
English
ar Arabic
cs Czech
da Danish
de German
es Spanish
fi Finnish
fr French
hu Hungarian
it Italian
ja Japanese
ko Korean
nl Dutch
no Norwegian
pl Polish
pt Portuguese
pt-br Portuguese (Brazil)
ro Romanian
ru Russian
sv Swedish
tr Turkish
zh-hans Chinese (Simplified)
zh-hant Chinese (Traditional)