Extension:ContentTranslation
- Afrikaans
- Bahasa Indonesia
- Cymraeg
- Deutsch
- English
- Nederlands
- Tiếng Việt
- Türkçe
- català
- dansk
- español
- français
- italiano
- magyar
- polski
- português
- português do Brasil
- sicilianu
- suomi
- čeština
- беларуская (тарашкевіца)
- български
- македонски
- русский
- српски / srpski
- العربية
- سنڌي
- فارسی
- हिन्दी
- বাংলা
- ਪੰਜਾਬੀ
- ಕನ್ನಡ
- ไทย
- 中文
- 日本語
- ꯃꯤꯇꯩ ꯂꯣꯟ
- 한국어
Release status: stable |
|
|---|---|
| Implementation | User interface, Page action |
| Description | Tool that allows editors to translate an article from one language to another with the help of machine translation and other translation aids. |
| Author(s) | Language team |
| Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible. |
| MediaWiki | 1.37+ |
| PHP | 7.2+ |
| Database changes | Yes |
| Composer | mediawiki/content-translation |
| Virtual domain | virtual-cx |
|
|
|
|
| Licence | GNU General Public License 2.0 or later |
| Download | |
| Help | Help:Extension:ContentTranslation |
| Translate the ContentTranslation extension if it is available at translatewiki.net | |
| Issues | Open tasks · Report a bug |
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.
Installation
[edit ]- Download and move the extracted
ContentTranslationfolder to yourextensions/directory.
Developers and code contributors should install the extension from Git instead, using:cdextensions/ gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/ContentTranslation - Only when installing from Git, run Composer to install PHP dependencies, by issuing
composer install --no-devin the extension directory. (See T173141 for potential complications.) - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'ContentTranslation' );
- Run the update script which will automatically create the necessary database tables that this extension needs.
- Yes Done – Navigate to
Special:Versionon your wiki to verify that the extension is successfully installed.
Vagrant installation:
- If using Vagrant , install with
vagrant roles enable contenttranslation --provision
Content Translation server
[edit ]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';
Extension dependencies
[edit ]ContentTranslation depends on the following extensions:
Configuration variables
[edit ]Material may not yet be complete, information may presently be omitted, and certain parts of the content may be subject to radical, rapid alteration. More information pertaining to this may be available on the talk page.
For the full list and defaults, see extension.json in the source repository.
Url parameters
[edit ]Content Translation mainly works on the special page Special:ContentTranslation. The URL parameters are
- page: source title
- targettitle: target title
- from: source language
- to: target language
- campaign: campaign name
- In Wikimedia wikis, if content translation is not enabled in the user settings then only links to pre-defined campaign will work. Campaigns are defined in InitialiseSettings.php
wmgContentTranslationCampaignsvariable.
- In Wikimedia wikis, if content translation is not enabled in the user settings then only links to pre-defined campaign will work. Campaigns are defined in InitialiseSettings.php
Example
See also
[edit ]Get help:
- Stable extensions
- User interface extensions
- Page action extensions
- Extensions supporting Composer
- BeforeCreateEchoEvent extensions
- BeforePageDisplay extensions
- ChangeTagsListActive extensions
- ContributeCards extensions
- EchoGetBundleRules extensions
- EditPage::showEditForm:initial extensions
- GetBetaFeaturePreferences extensions
- GetPreferences extensions
- ListDefinedTags extensions
- LoadExtensionSchemaUpdates extensions
- ResourceLoaderRegisterModules extensions
- SaveUserOptions extensions
- SectionTranslationBeforePublish extensions
- SkinAfterContent extensions
- SpecialContributionsBeforeMainOutput extensions
- GPL licensed extensions
- Extensions in Wikimedia version control
- All extensions
- Extensions requiring Composer with git
- Extensions used on Wikimedia
- WYSIWYG extensions
- Localisation extensions
- Language Engineering
- Content Translation