Extension:TranslateWiki

From Linux Web Expert

<translate> Not to be confused with</translate> translatewiki.net<translate>  or</translate> 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
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').

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

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

Features

  • 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

File:TranslateWiki - Select a Page.png
Select a page for Approvals
File:TranslateWiki Compare and Approve.png
Compare wikitext in both languages, edit and approve translations.

Development and Help

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

See also