Index: branches/REL1_16/phase3/languages/LanguageConverter.php |
— | — | @@ -551,13 +551,14 @@ |
552 | 552 | public function convertTitle( $title ) { |
553 | 553 | $variant = $this->getPreferredVariant(); |
554 | 554 | $index = $title->getNamespace(); |
555 | | - if ( $index === NS_MAIN ) { |
| 555 | + if ( $index === NS_MAIN || $index === NS_SPECIAL ) { |
556 | 556 | $text = ''; |
557 | 557 | } else { |
558 | 558 | // first let's check if a message has given us a converted name |
559 | 559 | $nsConvKey = 'conversion-ns' . $index; |
560 | | - if ( !wfEmptyMsg( $nsConvKey ) ) { |
561 | | - $text = wfMsgForContentNoTrans( $nsConvKey ); |
| 560 | + $nsLocalText = wfMsgForContentNoTrans( $nsConvKey ); |
| 561 | + if ( !wfEmptyMsg( $nsConvKey, $nsLocalText ) ) { |
| 562 | + $text = $nsLocalText; |
562 | 563 | } else { |
563 | 564 | // the message does not exist, try retrieve it from the current |
564 | 565 | // variant's namespace names. |