Open main menu

Extension:TranslateWiki

MediaWiki extensions manual
OOjs UI icon advanced.svg
TranslateWiki
Release status: beta
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
Translate the TranslateWiki extension if it is available at translatewiki.net
Check usage and version matrix.

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

Contents

Installation and ConfigurationEdit

  • 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:
    wfLoadExtension( 'TranslateWiki' );
    $wgTranslateWikiGtProjectId= 'xyz';
    $wgTranslateWikiLanguages = array( 'hi', 'he' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

FeaturesEdit

  • 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

ScreenshotsEdit

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

Development and HelpEdit

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

See alsoEdit