X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSpecialAllmessages.php;h=e20d1749c2d98b1a81d5dcf7ee370bdafa77e0ff;hb=7ba3286102844e6b7eb1dcb3b90343f83c7e2bc4;hp=2001c414c01877cdd399a0e91524bd5bb09dd73c;hpb=9aae1d5065cee553d93882c20a755e58efabe2d8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SpecialAllmessages.php b/includes/SpecialAllmessages.php index 2001c414c0..e20d1749c2 100644 --- a/includes/SpecialAllmessages.php +++ b/includes/SpecialAllmessages.php @@ -13,12 +13,6 @@ function wfSpecialAllmessages() { global $wgLanguageCode, $wgContLanguageCode, $wgContLang; global $wgUseDatabaseMessages; - if($wgLanguageCode != $wgContLanguageCode && - !in_array($wgLanguageCode, $wgContLang->getVariants())) { - $err = wfMsg('allmessagesnotsupportedUI'); - $wgOut->addHTML( $err ); - return; - } if(!$wgUseDatabaseMessages) { $wgOut->addHTML(wfMsg('allmessagesnotsupportedDB')); return; @@ -29,9 +23,8 @@ function wfSpecialAllmessages() { wfProfileIn( "$fname-setup"); $ot = $wgRequest->getText( 'ot' ); - $mwMsg =& MagicWord::get( MAG_MSG ); - $navText = wfMsg( 'allmessagestext', $mwMsg->getSynonym( 0 ) ); + $navText = wfMsg( 'allmessagestext' ); $first = true; @@ -84,7 +77,7 @@ function makePhp($messages) { } else { $comment = ''; } - $txt .= "'".$key."' => \"".str_replace('"','\"',$m['msg'])."\",$comment\n"; + $txt .= "'$key' => '" . preg_replace( "/(?