User:APatro (WMF)/MLEB Testing Instance
The page contains information on the MLEB Testing Instance that has been setup to ease in testing of the Translate (and a few other related) extensions. [Phab task]
Access
[edit]The page is currently locked behind a basic authentication to avoid account spamming since the wiki has the createaccount
enabled for all users. This is due to a bug being tracked on Phab - T227637
The website is available at https://language-translate.wmflabs.org/
You can SSH to the server via,
ssh <username>@language-translate.eqiad.wmflabs
Currently the members of the Language team will have SSH access to the server.
Please contact User:APatro (WMF) for access to user accounts on the Wiki. Access to these accounts is also available with Niklas Laxström.
Configuration
[edit]Hardware configuration
[edit]- CPU: 2 VCPUs
- RAM: 4 GB
Mediawiki configuration
[edit]For a full list of extensions, themes and libraries installed, please visit the version page.
Skins
[edit]- Timeless
- Vector
Extensions
[edit]- ULS
- Translate
- TwnMainPage
- Elastica
Other configuration
[edit]- Redis has been setup for caching
- Redis is also used for the Job queue
- ElasticSearch has been setup as the TTM server for the Translate extension.
Logging
[edit]- Errors logs are stored at
/var/www/core/error_log
- Debug logs are stored at
/var/log/mediawiki/mediawiki.log
Translate configuration
[edit]User Groups
[edit]
Two user groups have been added - translator
and translate-admin
<?php
// Groups
$wgGroupPermissions['translator']['translate'] = true;
$wgGroupPermissions['translator']['skipcaptcha'] = true; // Bug 34182: needed with ConfirmEdit
$wgGroupPermissions['translate-admin']['translate'] = true;
$wgGroupPermissions['translate-admin']['pagetranslation'] = true;
$wgGroupPermissions['translate-admin']['translate-manage'] = true;
$wgGroupPermissions['translate-admin']['translate-messagereview'] = true;
$wgGroupPermissions['translate-admin']['skipcaptcha'] = true;
$wgGroupPermissions['translate-admin']['translate-sandboxmanage'] = true; // For Translator Sandbox
Workflow States
[edit]The following message group workflow states have been set,
<?php
// Workflow states
$wgTranslateWorkflowStates = [
'unset' => [ 'color' => 'FF0000' ], // red
'proofreading' => [ 'color' => 'd7f7f3' ], // light blue
'ready' => [ 'color' => '00FF00' ], // green
'inprogress' => [
'color' => 'FFFF00', // yellow
],
'state conditions' => [
[ 'ready', [ 'PROOFREAD' => 'MAX' ] ],
[ 'proofreading', [ 'TRANSLATED' => 'MAX' ] ],
[ 'unset', [ 'UNTRANSLATED' => 'MAX', 'OUTDATED' => 'ZERO', 'TRANSLATED' => 'ZERO' ] ],
[ 'inprogress', [ 'UNTRANSLATED' => 'NONZERO' ] ],
]
];
TTMServer
[edit]A Elasticsearch TTMServer has been setup,
<?php
$wgTranslateTranslationServices['TTMServer'] = array(
'type' => 'ttmserver',
'class' => 'ElasticSearchTTMServer',
'cutoff' => 0.75,
);
Translator Sandbox
[edit]The translator sandbox functionality has been enabled,
<?php
$wgTranslateUseSandbox = true;
$wgTranslateSandboxPromotedGroup = 'translator';