Shirayuki has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/53467


Change subject: Adding comments for grep
......................................................................

Adding comments for grep

Change-Id: I860180a90cb14b653bf6ddeaf998028e8270512d
---
M Hooks.php
M formatters/BasicFormatter.php
M includes/DbEmailBatch.php
M includes/EmailBatch.php
4 files changed, 17 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/67/53467/1

diff --git a/Hooks.php b/Hooks.php
index ef3ebc9..a693dc1 100644
--- a/Hooks.php
+++ b/Hooks.php
@@ -314,6 +314,7 @@
                $oldPrefs['email']['edit-user-talk'] = 'enotifusertalkpages';
 
                // Build the columns (output formats)
+               // Give grep a chance to find the usages: echo-pref-web, 
echo-pref-email
                $columns = array();
                foreach ( $wgEchoNotifiers as $notifierType => $notifierData ) {
                        $formatMessage = wfMessage( 'echo-pref-' . 
$notifierType )->plain();
@@ -321,6 +322,9 @@
                }
 
                // Build the rows (notification categories)
+               // Give grep a chance to find the usages:
+               // echo-pref-subscription-edit-user-talk, 
echo-pref-subscription-article-linked,
+               // echo-pref-subscription-reverted, 
echo-pref-subscription-mention
                $rows = array();
                foreach ( $validSortedCategories as $category ) {
                        $categoryMessage = wfMessage( 'echo-pref-subscription-' 
. $category )->plain();
diff --git a/formatters/BasicFormatter.php b/formatters/BasicFormatter.php
index 9590ba4..b627610 100644
--- a/formatters/BasicFormatter.php
+++ b/formatters/BasicFormatter.php
@@ -172,6 +172,9 @@
         * @return string
         */
        protected function formatDismissInterface( $event, $user ) {
+               // Give grep a chance to find the usages:
+               // echo-dismiss-title-edit-user-talk, 
echo-dismiss-title-article-linked,
+               // echo-dismiss-title-reverted, echo-dismiss-title-mention
                $dismissTitle = wfMessage( 'echo-dismiss-title-' . $event->type 
)
                        ->inLanguage( $user->getOption( 'language' ) )
                        ->escaped();
diff --git a/includes/DbEmailBatch.php b/includes/DbEmailBatch.php
index 9e7b54c..d893013 100644
--- a/includes/DbEmailBatch.php
+++ b/includes/DbEmailBatch.php
@@ -113,6 +113,9 @@
                } else {
                        $count = $this->count;
                }
+               // Give grep a chance to find the usages:
+               // echo-email-batch-subject-daily, 
echo-email-batch-subject-weekly,
+               // echo-email-batch-body-daily, echo-email-batch-body-weekly
                $subject = wfMessage( 'echo-email-batch-subject-' . $frequency 
)->params( $count, $this->count )->text();
                $body = wfMessage( 'echo-email-batch-body-' . $frequency 
)->params(
                                $this->mUser->getName(),
diff --git a/includes/EmailBatch.php b/includes/EmailBatch.php
index 77d9280..15031d6 100644
--- a/includes/EmailBatch.php
+++ b/includes/EmailBatch.php
@@ -167,6 +167,10 @@
 
                $result = array();
                // build the text section for each category
+               // Give grep a chance to find the usages:
+               // echo-email-batch-category-header-edit-user-talk, 
echo-email-batch-category-header-reverted,
+               // echo-email-batch-category-header-article-linked, 
echo-email-batch-category-header-mention,
+               // echo-email-batch-category-header-other, 
echo-email-batch-category-header-system
                foreach( $this->content as $category => $notifs ) {
                        $output = wfMessage( 
'echo-email-batch-category-header-' . $category )->params( count( $notifs ) 
)->text() . "\n";
                        foreach( $notifs as $notif ) {
@@ -216,6 +220,9 @@
                } else {
                        $count = $this->count;
                }
+               // Give grep a chance to find the usages:
+               // echo-email-batch-subject-daily, 
echo-email-batch-subject-weekly,
+               // echo-email-batch-body-daily, echo-email-batch-body-weekly
                $subject = wfMessage( 'echo-email-batch-subject-' . $frequency 
)->params( $count, $this->count )->text();
                $body = wfMessage( 'echo-email-batch-body-' . $frequency 
)->params(
                                $this->mUser->getName(),

-- 
To view, visit https://gerrit.wikimedia.org/r/53467
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I860180a90cb14b653bf6ddeaf998028e8270512d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Shirayuki <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to