jenkins-bot has submitted this change and it was merged. Change subject: Add comments for grep ......................................................................
Add comments for grep Change-Id: I40c7fb549c6ed1af9842fa7a9823684a619930f3 --- M specials/SpecialMagic.php M specials/SpecialTranslate.php M specials/SpecialTranslationStats.php M tag/SpecialPageTranslationMovePage.php 4 files changed, 13 insertions(+), 0 deletions(-) Approvals: Nikerabbit: Looks good to me, approved jenkins-bot: Verified diff --git a/specials/SpecialMagic.php b/specials/SpecialMagic.php index c4dd96d..6380096 100644 --- a/specials/SpecialMagic.php +++ b/specials/SpecialMagic.php @@ -88,6 +88,8 @@ * @return \string HTML5-compatible select-element. */ protected function moduleSelector( $selectedId ) { + // Give grep a chance to find the usages: + // translate-magic-words, translate-magic-special, translate-magic-namespace $selector = new XmlSelect( 'module', 'module', $selectedId ); foreach ( $this->aModules as $code ) { $selector->addOption( $this->msg( 'translate-magic-' . $code )->text(), $code ); diff --git a/specials/SpecialTranslate.php b/specials/SpecialTranslate.php index 5ce5c64..549859f 100644 --- a/specials/SpecialTranslate.php +++ b/specials/SpecialTranslate.php @@ -331,6 +331,8 @@ $options = array(); foreach ( $selectors as $g => $selector ) { + // Give grep a chance to find the usages: + // translate-page-group, translate-page-language, translate-page-limit $options[] = self::optionRow( $this->msg( 'translate-page-' . $g )->escaped(), $selector, diff --git a/specials/SpecialTranslationStats.php b/specials/SpecialTranslationStats.php index df55266..0b2ff4f 100644 --- a/specials/SpecialTranslationStats.php +++ b/specials/SpecialTranslationStats.php @@ -234,6 +234,9 @@ * @return string Html. */ protected function eLabel( $name ) { + // Give grep a chance to find the usages: + // translate-statsf-width, translate-statsf-height, translate-statsf-start, translate-statsf-days, + // translate-statsf-scale, translate-statsf-count, translate-statsf-language, translate-statsf-group $label = 'translate-statsf-' . $name; $label = $this->msg( $label )->escaped(); @@ -248,6 +251,8 @@ * @return string Html. */ protected function eRadio( $name, FormOptions $opts, array $alts ) { + // Give grep a chance to find the usages: + // translate-statsf-scale, translate-statsf-count $label = 'translate-statsf-' . $name; $label = $this->msg( $label )->escaped(); $s = '<tr><td>' . $label . '</td><td>'; diff --git a/tag/SpecialPageTranslationMovePage.php b/tag/SpecialPageTranslationMovePage.php index 835b316..e647022 100644 --- a/tag/SpecialPageTranslationMovePage.php +++ b/tag/SpecialPageTranslationMovePage.php @@ -505,6 +505,8 @@ // Check that all new titles are valid $lb = new LinkBatch(); foreach ( $titles as $type => $list ) { + // Give grep a chance to find the usages: + // pt-movepage-block-tp-invalid, pt-movepage-block-section-invalid, pt-movepage-block-subpage-invalid foreach ( $list as $pair ) { list( $old, $new ) = $pair; if ( $new === null ) { @@ -523,6 +525,8 @@ // Check that there are no move blockers $lb->execute(); foreach ( $titles as $type => $list ) { + // Give grep a chance to find the usages: + // pt-movepage-block-tp-exists, pt-movepage-block-section-exists, pt-movepage-block-subpage-exists foreach ( $list as $pair ) { list( $old, $new ) = $pair; if ( $new->exists() ) { -- To view, visit https://gerrit.wikimedia.org/r/53735 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I40c7fb549c6ed1af9842fa7a9823684a619930f3 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Translate Gerrit-Branch: master Gerrit-Owner: Shirayuki <shirayuk...@gmail.com> Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits