Extension:TranslateWiki

From mediawiki.org
Not to be confused with translatewiki.net or Extension:Translate.
MediaWiki extensions manual
TranslateWiki
Release status: unmaintained
Description Helps you translate your wiki to other languages
Author(s) Nischay Nahata, wikiworks.com (Nischayn22talk)
Latest version 1.0 (August 2018)
MediaWiki 1.25+
PHP 5.3+
Database changes No
License GNU General Public License 2.0 or later
Download
  • $wgTranslateWikiGtProjectId
  • $wgTranslateWikiLanguages

The TranslateWiki extension lets you translate your wiki to multiple other languages with the help of Google Translate. You can translate the entire wiki using Google Translate, then manually correct the translations and finally create/update a wiki in another language using extension Extension:Sync

Installation and Configuration[edit]

  • Add the following to your wiki's composer.local.json's "require" section:
"google/cloud-translate": "^1.2",
  • Now run:
composer update
  • Download and place the file(s) in a directory called TranslateWiki in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'TranslateWiki' );
    $wgTranslateWikiGtProjectId= 'xyz';
    $wgTranslateWikiLanguages = array( 'hi', 'he' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Features[edit]

  • Maintenance Script to translate entire pages in specified namespaces using Google Translate.
  • Edit and approve automated translations manually using a special page Special:ApproveTranslations.
  • Creating a multilingual wiki using Extension:Sync

Screenshots[edit]

See a list of pages
Select a page for Approvals
Compare wikitext in both languages, edit and approve translations.

Development and Help[edit]

Please contact the author for consulting on further developments, feature requests or bug fixes on this extension.

See also[edit]