From: Tigerfell Date: Sun, 26 May 2019 07:40:36 +0000 (+0200) Subject: Allow changing of the content language for individual wiki pages X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/2505af56f777f142c1a9d076a7603041e9816217?ds=sidebyside Allow changing of the content language for individual wiki pages Closes #239 --- diff --git a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb index f5a3ea460..78671aec3 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -137,6 +137,10 @@ $wgShellLocale = "en_US.utf8"; # Site language code, should be one of the list in ./languages/Names.php $wgLanguageCode = "en"; +## Enable setting the page content language by users +$wgPageLanguageUseDB = true; +$wgGroupPermissions['user']['pagelang'] = true; + $wgSecretKey = '<%= @node[:mediawiki][:sites][@name][:wgSecretKey] %>'; # Site upgrade key. Must be set to a string (default provided) to turn on the