From 6f0fd7c1b111eecb49b8e164cb3789e65f5bbd4e Mon Sep 17 00:00:00 2001 From: Reedy Date: Thu, 11 Jan 2024 20:50:16 +0000 Subject: [PATCH] Add grepable usages of i18n messages Bug: T354549 Change-Id: Ice32d6b32d4d57e49f38f6e173c52af97ed7884a --- src/HTMLForm/TOTPEnableForm.php | 1 + src/Notifications/Manager.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/HTMLForm/TOTPEnableForm.php b/src/HTMLForm/TOTPEnableForm.php index 8f765249..d79137c7 100644 --- a/src/HTMLForm/TOTPEnableForm.php +++ b/src/HTMLForm/TOTPEnableForm.php @@ -68,6 +68,7 @@ class TOTPEnableForm extends OATHAuthOOUIHTMLForm { ->margin( 0 ) ->build(); + // messages used: oathauth-step1, oathauth-step2, oathauth-step3, oathauth-step4 return [ 'app' => [ 'type' => 'info', diff --git a/src/Notifications/Manager.php b/src/Notifications/Manager.php index 3aea5303..67df3699 100644 --- a/src/Notifications/Manager.php +++ b/src/Notifications/Manager.php @@ -50,6 +50,7 @@ class Manager { return; } Event::create( [ + // message used: notification-header-oathauth-disable 'type' => 'oathauth-disable', 'title' => SpecialPage::getTitleFor( 'Preferences' ), 'agent' => $oUser->getUser(), @@ -70,6 +71,7 @@ class Manager { return; } Event::create( [ + // message used: notification-header-oathauthenable 'type' => 'oathauth-enable', 'title' => SpecialPage::getTitleFor( 'Preferences' ), 'agent' => $oUser->getUser(),