• Download CMSwithTMS for MediaWiki
  • Extract CMSwithTMS under MediaWiki extensions folder
  • Edit your LocalSettings.php file to enable the CMSwithTMS extension

To use the GlobalSight instance and translation services provided by CMSwithTMS

  • Add the following lines to your LocalSettings.php

require_once( “$IP/extensions/CMSwithTMS/CMSwithTMS.php” );
$wgGroupPermissions[‘sysop’][‘managecwt’] = true;
$cmswithtms[‘options’][‘globalsight-configuration-type’] = ‘auto’;
$cmswithtms[‘options’][‘globalsight-autoconfig-url’]=’http://json.cmswithtms.net/autoconfig.json’;

To use your own GlobalSight instance

  • Add the following lines to your LocalSettings.php
require_once( “$IP/extensions/CMSwithTMS/CMSwithTMS.php” );
$wgGroupPermissions[‘sysop’][‘managecwt’] = true;
$cmswithtms[‘options’][‘globalsight-configuration-type’] = ‘manual’;
$cmswithtms[‘options’][‘globalsight-webservice-endpoint’]=’YourWebserviceURL’;
$cmswithtms[‘options’][‘globalsight-username’]=’YourGlobalSightUserName’;
$cmswithtms[‘options’][‘globalsight-password’]=’YourGlobalSightPassword’;
$cmswithtms[‘options’][‘globalsight-file-profile-id’]=’GlobalSightFileProfileID’;
$cmswithtmsLangs= array( ‘en’=> ‘ENGLISH’,
‘fr’ => ‘FRENCH’,
‘de’ => ‘GERMAN’,
“es_ES”=>”Spanish – Spain”,
);
$cmswithtmsLangs_gs= array( ‘en’ => ‘en_US’,
‘fr’ => ‘fr_FR’,
‘de’ => ‘de_DE’,
“es_ES”=>”es_ES”,
);(modify the language array according to your needs)
  • Run maintenance/update.php
  • Browse to MediaWiki>Special pages>CMS with TMS – Languages and click on Update button to save the configuration and language data in the database

MediaWiki GlobalSight Configuration

That’s it! You can now use CMSwithTMS to translate MediaWiki content.