Jump to content

User:Pfctdayelise/Extension:TranslatorHelp

From mediawiki.org

An extension for multilingual wikis that have one "master language" and translate content into one or more other languages. Probably not appropriate for wikis where "translation forks" can occur (more than one language could have the most "up to date" version of a page). The aim is to make it easy for would-be translators to identify pages that need translating most urgently and assist translators in the general process. This is not m:Multilingual MediaWiki.

Important aims:

  • Allow translators to easily mark a t10n as being up to date with a specific revision of the master document
  • Easy to find which pages of a target language need updating, rank them
  • master language = wiki language
  • target language - anything else
  • translations (sub)page - page that lists and links translations of the master page. Links must be of the form [[translated page|languagecode]]

Sample Example/i18n page

[edit]
*[[Example/de|de]]
* [[Example/French|fr]]
* [[this one has a totally different name|sq]]
* [[this is just a regular link]]
* [http://www.wikipedia.org/ And external links too]]

Parameters

[edit]

...

Master page: Englishpage

Language code Status # revisions difference # Bytes difference Time difference Time since translation last updated
es Up to date 0 0 0.000 2 weeks
fr Needs updating 3 1045 6 hours 15 days
zh Not yet created 26 1100034 7 weeks None

  • box for pagename, for above case

This is more difficult. Search for all above cases.

default: Lists all pages. overview/summary - show oldest translation in each lang

sortable table according to some parameter.

Special:TranslationHelp/language=foo - filter for pages with LC=foo translations, somehow

Things to look out for

[edit]

Todo

[edit]
  1. make edit summary work
  2. learn php documentation conventions
  • talk to John Moorhouse, Jim Wilson (Jimbojw), Aphaia, Wikimania people, Commons people, etc - get feedback about interface, ideas
  • modularise - make &langcode=_ , &priority=_, showAll
  • Add toolbox link
    • Make Specialpage toolbox link for Page/fr go to equiv for Page - need to create table for this?
  • Add CSS classes to Special page output to allow coloured highlighting: green=uptodate, yellow=outofdate, red=doesntexist/neverreferenced.

useful things

[edit]