A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Special:MyLanguage/Content_translation/Specification below:

Content translation/Specification - MediaWiki

The prototype which acts as design reference too is present at: http://pauginer.github.io/prototype-translate/content-translation.html

See architecture documentation

The CX [1] UI consists of 4 component widgets - The header, source article widget, translation widget, translation tools widget.

Communication between Widgets[edit]

We separate the responsibilities and follow an event driven approach. Imagine it as a global single event dispatcher. Widgets subscribe to events, widgets publish events (fire), widgets can attach and detach from the event registers.

Suppose you click on a word in source article. We wont call any methods of other widgets. We will pretend that the source article widget does not know about other widgets. On click of a word, the widget will raise/publish an event say mw.ex.source.word.select. Now, multiple consumers can subscribe to this event. One would be the translation column. Other will be the tools widget-inside tools we are going to have a lot of translation helpers.

For event subscribe/publish pattern, we use mw.hook, which is a wrapper on top of $.Callbacks.

LESS is used for the extension.

Content Translation mainly works on the special page Special:ContentTranslation. The URL parameters are:

(To be redefined in January 2017.)

Please report bugs to Phabricator using the "MediaWiki-extensions-ContentTranslation" project. Don't worry about specifying version, severity, hardware, or OS if you don't know.

  1. 1.0 1.1 ContentTranslation is abbreviated everywhere as cx

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4