Help:Translation Guidelines

From Support Wiki
Jump to navigation Jump to search

There are two main ways you can provide translated content for your wiki, the translate extension or setting up a separate wiki for each language. We strongly recommend the separate wiki method, although some wikis have found success with the Translate extension.

Regardless of which method you are using, the very first step is to ensure that you are using the correct language code for the language. This is not the same as country code; for example, Japan's country code is jp and Japanese's language code is ja. The MediaWiki source code provides a full list of language codes.

Please note, mediawiki.org uses the Translate extension, and that creates several wiki features not present in "vanilla" MediaWiki, including a page called Special:LanguageStats. Pages on that wiki aren't representative of the typical wiki.gg translation experience.

Creating a separate wiki

Sadly, most efforts to start translating a wiki end in their early stages, because real life intervenes with editors' plans or for some other reason. In order to make sure we're not creating many wikis that never progress beyond 1-2 pages, we ask that translators begin translation efforts on the English wiki. Once you have approximately 20 pages fully translated, we can create a new wiki for you. That wiki can use identical CSS to the English wiki, so no additional skinning is required. Files will also be shared, so there is no need to upload multiple versions of a file.

Beginning translation

In this example let's say you have an English (en) wiki that you are translating to Spanish (es). Here are some guidelines:

  • Just like if you were using the translate extension, create translated pages with suffixes of /es. For example, you would translate the page Kittens at Kittens/es. There is no need to link these pages together at this stage.
  • For templates, you have two choices:
    1. Continue to use English names in the source code. In this case you can use the same set of templates and plan to edit what they display later.
    2. Use Spanish names in the source code. In this case, you should create copies of each template you need, but with their names translated into Spanish. For example, if you have Template:Level you might create Template:Nivel. Don't make Template:Level/es as that will make your translated content use a template with the wrong name that will have to be fixed later.
  • You can categorize pages with the Spanish category names and wait until you are on your new wiki to create the category pages themselves.
  • You *must* categorize the pages with [[Category:ES translation]]
  • You can create file redirects from the Spanish-language name of a file to its English-language name.
    • If you have a group of files that are consistently named (e.g. every Item is named like File:Item itempagename.png then I would recommend making the Spanish redirects File:es-Item itempagename.png. Then in every template where you display an item image, you can add the string es- in the templates on the Spanish wiki. This way, if you have a case where the Spanish name of one item is the same as the English name of a different item, you won't get a conflict in file names.

Requesting a new wiki

Once your English wiki has approximately 20 content pages translated into your new language, you can ask wiki.gg staff to make you a new wiki.

Moving into your new wiki

You will want to start out by setting up your Special:Interwiki data. (Note, you must be an admin on your wiki to edit Interwiki data.)

  • On the English wiki, write [[es:Gatitos]] at the end of the page Kittens. On the Spanish wiki, at the page Gatitos, you will write [[en:Kittens]].
  • If you are comfortable using PyWikiBot, you can try using the interwiki script to fill out these links after creating them in only one direction, but this script is a bit unreliable.

Please do not upload a different set of files to the new wiki, except for cases where your game has different assets for different languages, and then only upload a separate files for the specific assets that differ.

Once your new wiki is fully set up, you can delete all translated content from the English wiki (other than file redirects).

Extension:Translate

  • You will need to request that this extension be enabled by wiki.gg staff.
  • You can then begin creating translated content at subpages; for example, a page called Kitten would have a Spanish version at Kitten/es and a Chinese version at Kitten/zh.
  • You can use the special link [[Special:MyLanguage/Kittens]] to link to the page Kittens in the user's language preference. This works like Special:MyPage to customize behavior to each user and is only available with the Translate extension installed.

See also