Defined Type: contenttranslation::wiki
- Defined in:
- puppet/modules/contenttranslation/manifests/wiki.pp
Overview
Method to create multiple wikis for ContentTranslation
Wikis should be an array of language wiki configurations See /vagrant/puppet/hieradata/common.yaml for an example To customize the wikis, create a local.yaml file in the same location and add the wikis you want.
Example local.yaml file
The following snippet sets up ContentTranslation on 'en' and 'es' wikis. English page: en.local.wmftest.net:8080/wiki/Special:ContentTranslation Spanish page: es.local.wmftest.net:8080/wiki/Special:ContentTranslation
contenttranslation::wikis:
en:
category_keyword: 'Category'
high_mt_category: 'MT'
es:
category_keyword: 'CategorÃa'
high_mt_category: 'MT'
Note: The language wikis (keys) must also exist in the role::langwikis::langwiki_list hiera configuration.
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'puppet/modules/contenttranslation/manifests/wiki.pp', line 25
define contenttranslation::wiki(
$category_keyword,
$high_mt_category,
) {
mediawiki::settings { "contenttranslation_${title}":
wiki => $title,
values => {
'wgContentTranslationHighMTCategory' => "${category_keyword}:${high_mt_category}"
},
}
}
|