Microchip08 has uploaded a new change for review. https://gerrit.wikimedia.org/r/196785
Change subject: Display meaningful message for very old users ...................................................................... Display meaningful message for very old users Added a new interface message "centralauth-uwbr-registration-nodate" that is displayed on Special:UsersWhoWillBeRenamed in place of the registration date of an account when the date is not known (because the account dates back to time immemorial). Bug: T91839 Change-Id: I116c32530ac2985747fc5d7556f8cbb75fe2feee --- M i18n/en.json M i18n/qqq.json M includes/specials/SpecialUsersWhoWillBeRenamed.php 3 files changed, 9 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth refs/changes/85/196785/1 diff --git a/i18n/en.json b/i18n/en.json index 0c3c02c..2afa545 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -24,6 +24,7 @@ "Aaron Schulz", "Peter Gehres", "Raimond Spekking", + "Douglas Gardner", "Brion Vibber" ] }, @@ -535,6 +536,7 @@ "userswhowillberenamed": "Users who will be renamed", "centralauth-uwbr-name": "User name", "centralauth-uwbr-registration": "Registration date", + "centralauth-uwbr-registration-nodate": "< 2004", "centralauth-uwbr-editcount": "Edit count", "centralauth-uwbr-intro": "This page lists users registered with this wiki who will be renamed." } diff --git a/i18n/qqq.json b/i18n/qqq.json index 44f6945..14e9c74 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -549,6 +549,7 @@ "userswhowillberenamed": "{{doc-special|UsersWhoWillBeRenamed}}", "centralauth-uwbr-name": "Heading for column in table\n{{Identical|Username}}", "centralauth-uwbr-registration": "Heading for column in table", + "centralauth-uwbr-registration-nodate": "Message displayed in place of a registration date when one has not been recorded (generally, because the account is very old)", "centralauth-uwbr-editcount": "Heading for column in table", "centralauth-uwbr-intro": "Text above table which lists users who will be renamed." } diff --git a/includes/specials/SpecialUsersWhoWillBeRenamed.php b/includes/specials/SpecialUsersWhoWillBeRenamed.php index 25642c0..8dc23ac 100644 --- a/includes/specials/SpecialUsersWhoWillBeRenamed.php +++ b/includes/specials/SpecialUsersWhoWillBeRenamed.php @@ -125,7 +125,12 @@ Linker::userToolLinksRedContribs( $user->getId(), $user->getName(), $user->getEditCount() ); break; case 'user_registration': - $formatted = $this->formatDateTime( $user->getRegistration() ); + $regdate = $user->getRegistration(); + if ( $regdate === null ) { + $formatted = $this->msg('centralauth-uwbr-registration-nodate'); + } else { + $formatted = $this->formatDateTime( $regdate ); + } break; case 'user_editcount': $formatted = $this->getLanguage()->formatNum( $user->getEditCount() ); -- To view, visit https://gerrit.wikimedia.org/r/196785 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I116c32530ac2985747fc5d7556f8cbb75fe2feee Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CentralAuth Gerrit-Branch: master Gerrit-Owner: Microchip08 <doug...@chippy.ch> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits