Shirayuki has uploaded a new change for review.
https://gerrit.wikimedia.org/r/80960
Change subject: Give grep a chance to find the usages
......................................................................
Give grep a chance to find the usages
Change-Id: I6fd9c9a0bf5ffbe3882d18cb90a305ecda8b3896
---
M InfoPage.php
M SpecialSearchWiki.php
2 files changed, 14 insertions(+), 0 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikimediaIncubator
refs/changes/60/80960/1
diff --git a/InfoPage.php b/InfoPage.php
index e0c23de..8b6108b 100644
--- a/InfoPage.php
+++ b/InfoPage.php
@@ -42,6 +42,9 @@
$this->mLangName = $name ? $name :
Language::fetchLanguageName( $this->mLangCode, 'en',
'all' );
$titleParam = $this->mLangName ? $this->mLangName : '"' .
$this->mLangCode . '"'; # Name, else code
+ # Give grep a chance to find the usages:
+ # wminc-infopage-title-p, wminc-infopage-title-b,
wminc-infopage-title-t, wminc-infopage-title-q,
+ # wminc-infopage-title-n, wminc-infopage-title-s,
wminc-infopage-title-v, wminc-infopage-title-y
$this->mFormatTitle = wfMessage( 'wminc-infopage-title-' .
$this->mProjectCode, $titleParam )->escaped();
if ( !$this->mLangName ) {
# Unknown language, add short note to title
@@ -196,6 +199,9 @@
}
$subdomain = WikimediaIncubator::getSubdomain(
$this->mLangCode, $this->mProjectCode );
$subdomainLink = WikimediaIncubator::makeExternalLinkText(
$subdomain, true );
+ # Give grep a chance to find the usages:
+ # wminc-infopage-status-open, wminc-infopage-status-imported,
wminc-infopage-status-closedsister,
+ # wminc-infopage-status-approved,
wminc-infopage-status-created, wminc-infopage-status-beforeincubator
$content = Html::rawElement( 'div', array( 'class' =>
'wminc-infopage-status' ),
wfMessage( 'wminc-infopage-status-' . $substatus
)->rawParams( $subdomainLink, $portalLink )->parseAsBlock() );
if ( $this->mSubStatus != 'approved' &&
$this->mThisLangData['type'] != 'invalid' ) {
@@ -231,6 +237,9 @@
array( 'class' => 'wminc-infopage-entertest' ),
$wgLang->getArrow() . ' ' . $subdomainLink );
}
+ # Give grep a chance to find the usages:
+ # wminc-infopage-status-open, wminc-infopage-status-imported,
wminc-infopage-status-closedsister,
+ # wminc-infopage-status-approved,
wminc-infopage-status-created, wminc-infopage-status-beforeincubator
$msgname = 'wminc-infopage-status-' . $this->mSubStatus; //
wminc-infopage-status-beforeincubator
if ( $this->mSubStatus === 'beforeincubator' && isset(
$wmincSisterProjects[$this->mProjectCode] ) ) {
$msgname =
'wminc-infopage-status-beforeincubator-sister';
diff --git a/SpecialSearchWiki.php b/SpecialSearchWiki.php
index 09dbe71..355a47f 100644
--- a/SpecialSearchWiki.php
+++ b/SpecialSearchWiki.php
@@ -168,10 +168,15 @@
$linkInfoPage = Linker::linkKnown( $infopage,
wfMessage( 'wminc-searchwiki-gotoinfopage'
)->text()
);
+ # Give grep a chance to find the usages:
+ # wminc-infopage-title-p, wminc-infopage-title-b,
wminc-infopage-title-t,
+ # wminc-infopage-title-q, wminc-infopage-title-n,
wminc-infopage-title-s,
+ # wminc-infopage-title-v, wminc-infopage-title-y
$linkMainPage = Linker::linkKnown( $infopage,
wfMessage( 'wminc-infopage-title-' . $project,
$langName )->text(),
array(), array( 'goto' => 'mainpage' )
);
+ # Give grep a chance to find the usages:
# wminc-searchwiki-match-langcode,
wminc-searchwiki-match-englishname,
# wminc-searchwiki-match-userlangname,
wminc-searchwiki-match-nativename
$this->getOutput()->addHTML( '<li>' .
--
To view, visit https://gerrit.wikimedia.org/r/80960
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6fd9c9a0bf5ffbe3882d18cb90a305ecda8b3896
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaIncubator
Gerrit-Branch: master
Gerrit-Owner: Shirayuki <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits