]> git.openstreetmap.org Git - chef.git/blob - cookbooks/wiki/templates/default/mw-ext-Translate.inc.php.erb
planet: switch to zstd for apache logrotate
[chef.git] / cookbooks / wiki / templates / default / mw-ext-Translate.inc.php.erb
1 <?php
2 # DO NOT EDIT - This file is being maintained by Chef
3 wfLoadExtension( 'Translate' );
4
5 /**
6  * Allow all confirmed users to edit translations.
7  */
8 $wgGroupPermissions['autoconfirmed']['translate'] = true;
9
10 /**
11  * Allow all confirmed users to review translations.
12  */
13 $wgGroupPermissions['autoconfirmed']['translate-messagereview'] = true;
14
15 /**
16  * Allow all translations administrators to manage translations.
17  */
18 $wgGroupPermissions['translationadmin']['pagetranslation'] = true;
19 $wgGroupPermissions['translationadmin']['translate-manage'] = true;
20
21 /**
22  * Language code for message documentation. Suggested values are qqq or info.
23  * If set to false (default), message documentation feature is disabled.
24  */
25 $wgTranslateDocumentationLanguageCode = 'qqq';
26
27 /**
28  * Let Translate extension use ElasticSearch to store commonly-used translation messages to suggest to translators
29  */
30 $wgTranslateTranslationServices['TTMServer'] = [
31         'type' => 'ttmserver',
32         'class' => 'ElasticSearchTTMServer',
33         'cutoff' => 0.75,
34         /*
35          * See http://elastica.io/getting-started/installation.html
36          * See https://github.com/ruflin/Elastica/blob/8.x/src/Client.php
37          */
38         'config' => [ 'servers' => [ [ 'host' => '127.0.0.1', 'port' => 9114 ] ] ]
39 ];