Mollywhite has submitted this change and it was merged. Change subject: Give grep a chance to find the usages ......................................................................
Give grep a chance to find the usages Change-Id: Id07abac133e9216bea2b259ef5b76f96fd28b9d7 --- M BookManagerv2.hooks.php 1 file changed, 9 insertions(+), 1 deletion(-) Approvals: Mollywhite: Verified; Looks good to me, approved jenkins-bot: Checked diff --git a/BookManagerv2.hooks.php b/BookManagerv2.hooks.php index 12e3379..e3c3f43 100644 --- a/BookManagerv2.hooks.php +++ b/BookManagerv2.hooks.php @@ -24,6 +24,7 @@ */ class BookManagerv2Hooks { + /** * Validates that the revised contents of an NS_BOOK page are valid JSON. * If not valid, rejects edit with error message. @@ -59,7 +60,6 @@ return true; } - /** * Adds a navigation bar to the page @@ -192,6 +192,9 @@ */ public static function addArray( $i18n, $array ) { global $wgContLang; + // Give grep a chance to find the usages: + // bookmanagerv2-alternate-titles, bookmanagerv2-authors, bookmanagerv2-translators, + // bookmanagerv2-editors, bookmanagerv2-illustrators $output = Html::element( 'li', array(), wfMessage( $i18n ) ->numParams( count( $array ) ) @@ -208,6 +211,11 @@ * @return string HTML list item element */ public static function addString( $i18n, $string ) { + // Give grep a chance to find the usages: + // bookmanagerv2subtitle, bookmanagerv2-series-title, bookmanagerv2-volume, + // bookmanagerv2-edition, bookmanagerv2-publisher, bookmanagerv2-publication-city, + // bookmanagerv2-printer, bookmanagerv2-language, bookmanagerv2-description, + // bookmanagerv2-isbn, bookmanagerv2-lccn, bookmanagerv2-oclc $output = Html::element( 'li', array(), wfMessage( $i18n, $string )->text() ); return $output; -- To view, visit https://gerrit.wikimedia.org/r/79566 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Id07abac133e9216bea2b259ef5b76f96fd28b9d7 Gerrit-PatchSet: 4 Gerrit-Project: mediawiki/extensions/BookManagerv2 Gerrit-Branch: master Gerrit-Owner: Shirayuki <shirayuk...@gmail.com> Gerrit-Reviewer: Mollywhite <molly.whi...@gmail.com> Gerrit-Reviewer: Siebrand <siebr...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits