Update.
authorRotem Liss <rotem@users.mediawiki.org>
Fri, 22 Dec 2006 19:48:46 +0000 (19:48 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Fri, 22 Dec 2006 19:48:46 +0000 (19:48 +0000)
includes/Namespace.php
includes/Parser.php
languages/messages/MessagesHe.php
maintenance/language/messages.inc

index 7849390..c296de9 100644 (file)
@@ -50,7 +50,7 @@ class Namespace {
         * @return bool
         */
        static function isMovable( $index ) {
-               return !( $index < NS_MAIN || $index == NS_IMAGE  || $index == NS_CATEGORY );
+               return !( $index < NS_MAIN || $index == NS_IMAGE );
        }
 
        /**
index 484c7dc..f5425c0 100644 (file)
@@ -1746,6 +1746,17 @@ class Parser
                                        wfProfileIn( "$fname-category" );
                                        $s = rtrim($s . "\n"); # bug 87
 
+                                       # Redirect categories - bug 3311
+                                       $dbw =& wfGetDB( DB_SLAVE );
+                                       $obj = $dbw->selectRow( array( 'redirect' ),
+                                               array( 'rd_namespace', 'rd_title' ),
+                                               array( 'rd_from' => $nt->getArticleID() ),
+                                               __METHOD__ );
+                                       if ( $obj && $obj->rd_namespace == NS_CATEGORY ) {
+                                               # The category redirects to another category; follow it
+                                               $nt = Title::makeTitle( NS_CATEGORY, $obj->rd_title );
+                                       }
+
                                        if ( $wasblank ) {
                                                if ( $this->mTitle->getNamespace() == NS_CATEGORY ) {
                                                        $sortkey = $this->mTitle->getText();
index 282c13f..4b8081a 100644 (file)
@@ -1663,14 +1663,15 @@ $NEWPAGE
 'mw_math_mathml' => 'MathML אם אפשר (ניסיוני)',
 
 # Patrolling
-'markaspatrolleddiff'        => 'סמן שינוי כבדוק',
-'markaspatrolledtext'        => 'סמן דף זה כבדוק',
-'markedaspatrolled'          => 'השינוי נבדק',
-'markedaspatrolledtext'      => 'השינוי שנבחר נבדק.',
-'rcpatroldisabled'           => 'בדיקת השינויים האחרונים מבוטלת',
-'rcpatroldisabledtext'       => 'תכונת סימון שינוי כבדוק בשינויים האחרונים היא כרגע מנוטרלת.',
-'markedaspatrollederror'     => 'לא יכול לסמן כבדוק',
-'markedaspatrollederrortext' => 'עליכם לציין גרסה שתציינו כבדוקה.',
+'markaspatrolleddiff'                 => 'סמן שינוי כבדוק',
+'markaspatrolledtext'                 => 'סמן דף זה כבדוק',
+'markedaspatrolled'                   => 'השינוי נבדק',
+'markedaspatrolledtext'               => 'השינוי שנבחר נבדק.',
+'rcpatroldisabled'                    => 'בדיקת השינויים האחרונים מבוטלת',
+'rcpatroldisabledtext'                => 'תכונת סימון שינוי כבדוק בשינויים האחרונים היא כרגע מנוטרלת.',
+'markedaspatrollederror'              => 'לא יכול לסמן כבדוק',
+'markedaspatrollederrortext'          => 'עליכם לציין גרסה שתציינו כבדוקה.',
+'markedaspatrollederror-noautopatrol' => 'אינכם מורשים לסמן את השינויים של עצמכם כבדוקים.',
 
 # Monobook.js: tooltips and access keys for monobook
 'Monobook.js' => '/* ערכו קובץ זה כדי להריץ סקריפטים ב־JavaScript ברקע Monobook באתר כולו */
index 0b35be6..1427250 100644 (file)
@@ -1384,6 +1384,7 @@ $wgMessageStrucutre = array(
                'rcpatroldisabledtext',
                'markedaspatrollederror',
                'markedaspatrollederrortext',
+               'markedaspatrollederror-noautopatrol',
        ),
        'monobook.js' => array(
                'Monobook.js',