jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/385953 )
Change subject: Extension:Translate default permissions for Wikimedia wikis
......................................................................
Extension:Translate default permissions for Wikimedia wikis
The translate extension is not used on all WMF wikis (governed by
'wmgUseTranslate' at InitialiseSettings.php). However on wikis where it
is used we have to manually add permissions to every wiki for it to
work.
After some time it seems that most wikis using this extension have
applied the following configuration: bureaucrats to add and remove this
permission from everyone, and sysops to add and remove this permission
to their accounts.
As such, this patch adds a conditional on CommonSettings: in every wiki
the translate extension is used then allow bureaucrats to manage the
permission and sysops to add and remove the group from themselves.
A second patch should follow some time later to clean redundant config
from InitialiseSettings after checking that this is working as expected.
Bug: T178793
Change-Id: I4794736fe824babe9eeec88c65a01f9a5ff7e092
---
M wmf-config/CommonSettings.php
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
Thcipriani: Looks good to me, approved
jenkins-bot: Verified
Nikerabbit: Looks good to me, but someone else must approve
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 23a679b..7c6c058 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -2501,6 +2501,10 @@
$wgGroupPermissions['user']['translate-messagereview'] = true;
$wgGroupPermissions['user']['translate-groupreview'] = true;
$wgGroupPermissions['sysop']['pagelang'] = true; // T153209
+ $wgAddGroups['bureaucrat'][] = 'translationadmin'; // T178793
+ $wgRemoveGroups['bureaucrat'][] = 'translationadmin'; // T178793
+ $wgGroupsAddToSelf['sysop'][] = 'translationadmin'; // T178793
+ $wgGroupsRemoveToSelf['sysop'][] = 'translationadmin'; // T178793
$wgTranslateDocumentationLanguageCode = 'qqq';
$wgExtraLanguageNames['qqq'] = 'Message documentation'; # No linguistic
content. Used for documenting messages
--
To view, visit https://gerrit.wikimedia.org/r/385953
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4794736fe824babe9eeec88c65a01f9a5ff7e092
Gerrit-PatchSet: 15
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: MarcoAurelio <[email protected]>
Gerrit-Reviewer: Base <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Thcipriani <[email protected]>
Gerrit-Reviewer: Urbanecm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits