The ContentTranslation extension is a tool that allows editors to translate an article from one language to another with the help of machine translation and other translation aids. See Content translation for background and additional information. The extension is being developed by the Wikimedia Language Engineering team.
ContentTranslation
folder to your extensions/
directory.cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ContentTranslation
composer install --no-dev
in the extension directory. (See T173141 for potential complications.)wfLoadExtension( 'ContentTranslation' );
Vagrant installation:
vagrant roles enable contenttranslation --provision
The extension needs the Content Translation server (a.k.a. cxserver) up and running. See Content translation/cxserver/Setup for setting up the Content Translation server. When running Content Translation locally, following can be added to LocalSettings.php
to use production cxserver:
$wgContentTranslationSiteTemplates['cx'] = 'https://cxserver.wikimedia.org/v1';Translations database[edit]
This extension has an optional dashboard feature, which allows translators to see all the translations across all languages. In a multilingual installation of this extension, for example in Wikimedia wikis, a central database is required to serve the dashboard feature. Table definitions for that database are in sql
directory in the extension source code; Content translation/Product Definition/Database has more details. Once database is created, set the $wgContentTranslationDatabase
global configuration variable as the name of database:
$wgContentTranslationDatabase = 'db_name';Extension dependencies[edit]
ContentTranslation depends on the following extensions:
UniversalLanguageSelector Required VisualEditor Required Required for editor component. Cite Required Required if you want to support references while translating. GuidedTour Optional If installed, it will be used to show an explanation about moving a page out of user space. Echo Optional If installed, it will be used for showing "congratulations" notifications after completing translation milestones. Wikibase Optional If installed and configured similarly to Wikipedia, it will be used for automatic addition of interlanguage links (as sitelinks). EventLogging Optional If installed, can be used to log publishing, errors, and other events. BetaFeatures Optional If installed, ContentTranslation will appear as a beta feature in the preferences. Configuration variables[edit] This section is currently a draft.For the full list and defaults, see extension.json in the source repository.
Content Translation mainly works on the special page Special:ContentTranslation. The URL parameters are
wmgContentTranslationCampaigns
variable.Example
This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page.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