From e56e37cf3a629944641115675ac07de5f59cbc01 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 4 Jul 2026 11:20:00 +0100 Subject: [PATCH] Enable the {{USERLANGUAGE}} magic word for mediawiki --- cookbooks/mediawiki/templates/default/LocalSettings.php.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb index 44e21be3e..55af6697d 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -150,6 +150,9 @@ $wgLanguageCode = "en"; $wgPageLanguageUseDB = true; $wgGroupPermissions['user']['pagelang'] = true; +## Enable the {{USERLANGUAGE}} magic word +$wgParserEnableUserLanguage = true; + $wgSecretKey = '<%= @secret_key %>'; # Site upgrade key. Must be set to a string (default provided) to turn on the -- 2.47.3