jenkins-bot has submitted this change and it was merged. 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. 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(-) Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified diff --git a/i18n/en.json b/i18n/en.json index 0c3c02c..0246b43 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": "Unknown", "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..41e286d 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\n{{Identical|Unknown}}", "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..d0d5af8 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' )->escaped(); + } 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: merged Gerrit-Change-Id: I116c32530ac2985747fc5d7556f8cbb75fe2feee Gerrit-PatchSet: 4 Gerrit-Project: mediawiki/extensions/CentralAuth Gerrit-Branch: master Gerrit-Owner: Microchip08 <doug...@chippy.ch> Gerrit-Reviewer: Alex Monk <kren...@gmail.com> Gerrit-Reviewer: Hoo man <h...@online.de> Gerrit-Reviewer: Keegan <kpeterz...@wikimedia.org> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: Nemo bis <federicol...@tiscali.it> Gerrit-Reviewer: Siebrand <siebr...@kitano.nl> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits