User:Multichill/Template i18n at Translatewiki

This page describes how to get templates translated at Translatewiki.

The first step is to understand, verify and maybe improve the template.

  • Is the wording correct?
  • Is the wording consistent with other templates?

Make a /sandbox template (for example Template:PD-Art/sandbox). If the original template is already using {{Autotranslate}} you have to merge the main template and the /layout template over there. For all the parts containing text you replace it with a mediawiki message. A message is in the form MediaWiki:wm-license-<text> (for example MediaWiki:wm-license-pd-art-invalid-parameter). Please keep the naming consitent. These messages can be accessed with {{int:wm-license-pd-art-invalid-parameter}}. You can create the messages here on Commons while testing, but you should only do it for English during testing.

Get feedback on you shiny new template! Improve it and when you think it's ready, you can go to the next step.

You got a nice new template with messages that can be translated, but it's not on Translatewiki yet. You need someone with commit access to edit this file. For each message you see a line. Sometimes messages are optional. If that's the case this file should be updated. Once everything is commited it can be translated on Translatewiki.

If you have developer access or when G2G does not work and no one transfers your patch from GitHub, clone the following repositories onto your local machine:

git clone ssh://<username>@gerrit.wikimedia.org:29418/mediawiki/extensions/WikimediaMessages.git
git clone ssh://<username>@gerrit.wikimedia.org:29418/translatewiki.git

following these instructions, for example.

<a bit about translatewiki>

It's nice to have the Translations at Translatewiki, but that's no use of us here. After adding one or more new messages Commons needs to be updated to include these messages. If you want to know which messages are available right now: Take a look at Special:Version, you'll see WikimediaLicenseTexts. Click the (r<number>) link, click WikimediaLicenseTexts.i18n.php, click the latest version and you can see the messages in the $messages['en'] = array( section. You need to ask someone with the right access to update this. Once messages are added, translation will be available in about 24 hours on Commons thanks to LocalisationUpdate magic.