User

User:Sahadeva/translation notes

Revision as of 13:14, 18 October 2014 by Sahadeva (talk | contribs) (Created page with "*see also: [http://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration Page translation administration] === Tagging === *Anyone can mark the '''tr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Tagging

  • Anyone can mark the translatable parts by wrapping them inside <translate>...</translate> tags;
  • Add <languages /> to produce a list of all translations of the page;
  • The translatable page will be listed on Special:PageTranslation as ready for marking.

Tag placing

  • If possible, try to put the tags on their own lines, with no empty lines between the content and the tags.
  • If not possible, do like this for example:
{{Template|<translate>Some localised parameter</translate>}}

Marking

  • After the tagging, a translation administrator marks the page for translation


Advanced

Variables

  • Syntax is <tvar|name>contents</>. For translators these will show up only as $name, and in translation pages will automatically be replaced by the value defined in the translatable page (so they are global "constants" across all its translation pages). Variables can be used to hide untranslatable content in the middle of a translation unit. It also works for things like numbers that need to be updated often. You can update the number in all translations by changing the number in the translatable page source and re-marking the page. You do not need to invalidate translations, because the number is not part of the translation unit pages. Example:
 <translate>
 Income this month <code><tvar|income>{{FORMATNUM:3567800}}</></code> EUR
 </translate>