jenkins-bot has submitted this change and it was merged.

Change subject: Update documentation
......................................................................


Update documentation

Change-Id: I28143a77d31408a228ffeb931b7a3b1d57719787
---
M tag/SpecialPageTranslation.php
1 file changed, 4 insertions(+), 7 deletions(-)

Approvals:
  Nikerabbit: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tag/SpecialPageTranslation.php b/tag/SpecialPageTranslation.php
index 96cbad5..3a2279b 100644
--- a/tag/SpecialPageTranslation.php
+++ b/tag/SpecialPageTranslation.php
@@ -569,7 +569,7 @@
        /**
         * @param TranslatablePage $page
         * @param bool $error
-        * @return array
+        * @return TPSection[] The array has string keys.
         */
        public function checkInput( TranslatablePage $page, &$error ) {
                $usedNames = array();
@@ -595,7 +595,7 @@
        /**
         * Displays the sections and changes for the user to review
         * @param TranslatablePage $page
-        * @param array $sections
+        * @param TPSection[] $sections
         */
        public function showPage( TranslatablePage $page, array $sections ) {
                global $wgContLang;
@@ -631,9 +631,6 @@
                // If the page is marked for translation the first time, 
default to checked.
                $defaultChecked = $page->hasPageDisplayTitle();
 
-               /**
-                * @var TPSection $s
-                */
                foreach ( $sections as $s ) {
                        if ( $s->name === 'Page display title' ) {
                                // Set section type as new if title previously 
unchecked
@@ -821,7 +818,7 @@
         * - Setups renderjobs to update the translation pages
         * - Invalidates caches
         * @param TranslatablePage $page
-        * @param array $sections
+        * @param TPSection[] $sections
         * @return array|bool
         */
        public function markForTranslation( TranslatablePage $page, array 
$sections ) {
@@ -993,7 +990,7 @@
        /**
         * Creates jobs needed to create or update all translation page 
definitions.
         * @param TranslatablePage $page
-        * @param array $sections
+        * @param TPSection[] $sections
         * @return Job[]
         * @since 2013-01-28
         */

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I28143a77d31408a228ffeb931b7a3b1d57719787
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to