From 2550de9552230585e33b45f37cada0f13e396953 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Mon, 15 Jun 2015 00:43:53 +0200 Subject: [PATCH] SpecialResetTokens: Switch to OOUI form Pretty! Change-Id: I30d401cc7c827b21eb2fb116558d0d9e764ec1f3 --- includes/specials/SpecialResetTokens.php | 4 ++++ languages/i18n/en.json | 1 - languages/i18n/qqq.json | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialResetTokens.php b/includes/specials/SpecialResetTokens.php index ba2b9a5bac..27a3a699ef 100644 --- a/includes/specials/SpecialResetTokens.php +++ b/includes/specials/SpecialResetTokens.php @@ -123,6 +123,10 @@ class SpecialResetTokens extends FormSpecialPage { } } + protected function getDisplayFormat() { + return 'ooui'; + } + public function onSubmit( array $formData ) { if ( $formData['tokens'] ) { $user = $this->getUser(); diff --git a/languages/i18n/en.json b/languages/i18n/en.json index b63ddf4095..eaf5d9906a 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -567,7 +567,6 @@ "resettokens-summary": "", "resettokens-text": "You can reset tokens which allow access to certain private data associated with your account here.\n\nYou should do it if you accidentally shared them with someone or if your account has been compromised.", "resettokens-no-tokens": "There are no tokens to reset.", - "resettokens-legend": "Reset tokens", "resettokens-tokens": "Tokens:", "resettokens-token-label": "$1 (current value: $2)", "resettokens-watchlist-token": "Token for the web feed (Atom/RSS) of [[Special:Watchlist|changes to pages on your watchlist]]", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 11ea692569..a779d5abcd 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -737,7 +737,6 @@ "resettokens-summary": "{{ignored}}", "resettokens-text": "Text on [[Special:ResetTokens]].", "resettokens-no-tokens": "Additional text on [[Special:ResetTokens]] if the user has no tokens.", - "resettokens-legend": "Form legend on [[Special:ResetTokens]].\n{{Identical|Reset token}}", "resettokens-tokens": "Form label on [[Special:ResetTokens]].\n{{Identical|Token}}", "resettokens-token-label": "Label for each checkbox on [[Special:ResetTokens]]. Parameters:\n* $1 - short information about the token (for example {{msg-mw|resettokens-watchlist-token}})\n* $2 - its current value", "resettokens-watchlist-token": "Label for watchlist token checkbox on [[Special:ResetTokens]] (see {{msg-mw|prefs-watchlist-token}} at [[Special:Preferences#mw-prefsection-watchlist]]).", -- 2.20.1