From: Zheng Zhu Date: Fri, 24 Sep 2004 16:24:43 +0000 (+0000) Subject: Second batch of files modified to replace selected wgLang with wgContLang X-Git-Tag: 1.5.0alpha1~1822 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=14052ee5e5ce0fa7809600f6cc172a39f55b29ad;p=lhc%2Fweb%2Fwiklou.git Second batch of files modified to replace selected wgLang with wgContLang --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index 239469a1cc..a04c3ea6fd 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -83,7 +83,7 @@ class SearchEngine { * that is done by showResults() */ function powersearch() { - global $wgUser, $wgOut, $wgLang, $wgTitle, $wgRequest; + global $wgUser, $wgOut, $wgContLang, $wgTitle, $wgRequest; $sk =& $wgUser->getSkin(); $search = $this->rawText; @@ -98,7 +98,7 @@ class SearchEngine { } # Do namespace checkboxes - $namespaces = $wgLang->getNamespaces(); + $namespaces = $wgContLang->getNamespaces(); foreach ( $namespaces as $i => $namespace ) { # Skip virtual namespaces if ( $i < 0 ) { @@ -260,7 +260,7 @@ class SearchEngine { } function parseQuery3() { - global $wgDBminWordLen, $wgLang; + global $wgDBminWordLen, $wgContLang; # on non mysql4 database: get list of words we don't want to search for require_once( 'FulltextStoplist.php' ); @@ -272,7 +272,7 @@ class SearchEngine { $last = $cond = ''; foreach ( $w as $word ) { - $word = $wgLang->stripForSearch( $word ); + $word = $wgContLang->stripForSearch( $word ); if ( 'and' == $word || 'or' == $word || 'not' == $word || '(' == $word || ')' == $word ) { $cond .= ' ' . strtoupper( $word ); @@ -303,7 +303,7 @@ class SearchEngine { } function parseQuery4() { - global $wgLang; + global $wgContLang; $lc = SearchEngine::legalSearchChars(); $searchon = ''; $this->searchTerms = array(); @@ -316,7 +316,7 @@ class SearchEngine { if( $this->strictMatching && ($terms[1] == '') ) { $terms[1] = '+'; } - $searchon .= $terms[1] . $wgLang->stripForSearch( $terms[2] ); + $searchon .= $terms[1] . $wgContLang->stripForSearch( $terms[2] ); if( !empty( $terms[3] ) ) { $regexp = preg_quote( $terms[3] ); if( $terms[4] ) $regexp .= "[0-9A-Za-z_]+"; @@ -379,7 +379,7 @@ class SearchEngine { } function showHit( $row ) { - global $wgUser, $wgOut, $wgLang; + global $wgUser, $wgOut, $wgContLang; $t = Title::makeName( $row->cur_namespace, $row->cur_title ); if( is_null( $t ) ) { @@ -411,12 +411,12 @@ class SearchEngine { continue; } - $pre = $wgLang->truncate( $m[1], -$contextchars, '...' ); + $pre = $wgContLang->truncate( $m[1], -$contextchars, '...' ); if ( count( $m ) < 3 ) { $post = ''; } else { - $post = $wgLang->truncate( $m[3], $contextchars, '...' ); + $post = $wgContLang->truncate( $m[3], $contextchars, '...' ); } $found = $m[2]; @@ -524,7 +524,7 @@ class SearchEngine { * @static */ function doFuzzyTitleSearch( $search, $namespace ){ - global $wgLang, $wgOut; + global $wgContLang, $wgOut; $this->setupPage(); @@ -536,7 +536,7 @@ class SearchEngine { $wikitext = ''; foreach($fuzzymatches as $res){ $t = str_replace('_', ' ', $res[1]); - $tfull = $wgLang->getNsText( $namespace ) . ":$t|$t"; + $tfull = $wgContLang->getNsText( $namespace ) . ":$t|$t"; if( $namespace == NS_MAIN ) $tfull = $t; $distance = $res[0]; @@ -547,7 +547,7 @@ class SearchEngine { } if( $wikitext ){ if( $namespace != NS_MAIN ) - $wikitext = '=== ' . $wgLang->getNsText( $namespace ) . " ===\n" . $wikitext; + $wikitext = '=== ' . $wgContLang->getNsText( $namespace ) . " ===\n" . $wikitext; $wgOut->addWikiText( $wikitext ); return true; } diff --git a/includes/SearchUpdate.php b/includes/SearchUpdate.php index 3f268b86ab..d1d367a86e 100644 --- a/includes/SearchUpdate.php +++ b/includes/SearchUpdate.php @@ -30,7 +30,7 @@ class SearchUpdate { } function doUpdate() { - global $wgDBminWordLen, $wgLang, $wgDisableSearchUpdate; + global $wgDBminWordLen, $wgContLang, $wgDisableSearchUpdate; if( $wgDisableSearchUpdate || !$this->mId ) { return false; @@ -55,7 +55,7 @@ class SearchUpdate { } # Language-specific strip/conversion - $text = $wgLang->stripForSearch( $this->mText ); + $text = $wgContLang->stripForSearch( $this->mText ); wfProfileIn( $fname.'-regexps' ); $text = preg_replace( "/<\\/?\\s*[A-Za-z][A-Za-z0-9]*\\s*([^>]*?)>/", diff --git a/includes/Skin.php b/includes/Skin.php index 87c23d769f..65677c1501 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -212,10 +212,10 @@ class Skin { } function getHeadScripts() { - global $wgStylePath, $wgUser, $wgLang, $wgAllowUserJs; + global $wgStylePath, $wgUser, $wgContLang, $wgAllowUserJs; $r = "\n"; if( $wgAllowUserJs && $wgUser->getID() != 0 ) { # logged in - $userpage = $wgLang->getNsText( Namespace::getUser() ) . ":" . $wgUser->getName(); + $userpage = $wgContLang->getNsText( Namespace::getUser() ) . ":" . $wgUser->getName(); $userjs = htmlspecialchars($this->makeUrl($userpage.'/'.$this->getSkinName().'.js', 'action=raw&ctype=text/javascript')); $r .= '\n"; } @@ -224,16 +224,16 @@ class Skin { # get the user/site-specific stylesheet, SkinPHPTal called from RawPage.php (settings are cached that way) function getUserStylesheet() { - global $wgOut, $wgStylePath, $wgLang, $wgUser, $wgRequest, $wgTitle, $wgAllowUserCss; + global $wgOut, $wgStylePath, $wgContLang, $wgUser, $wgRequest, $wgTitle, $wgAllowUserCss; $sheet = $this->getStylesheet(); $action = $wgRequest->getText('action'); $s = "@import \"$wgStylePath/$sheet\";\n"; - if($wgLang->isRTL()) $s .= "@import \"$wgStylePath/common/common_rtl.css\";\n"; + if($wgContLang->isRTL()) $s .= "@import \"$wgStylePath/common/common_rtl.css\";\n"; if( $wgAllowUserCss && $wgUser->getID() != 0 ) { # logged in if($wgTitle->isCssSubpage() and $action == 'submit' and $wgTitle->userCanEditCssJsSubpage()) { $s .= $wgRequest->getText('wpTextbox1'); } else { - $userpage = $wgLang->getNsText( Namespace::getUser() ) . ":" . $wgUser->getName(); + $userpage = $wgContLang->getNsText( Namespace::getUser() ) . ":" . $wgUser->getName(); $s.= '@import "'.$this->makeUrl($userpage.'/'.$this->getSkinName().'.css', 'action=raw&ctype=text/css').'";'."\n"; } } @@ -263,9 +263,9 @@ class Skin { * Some styles that are set by user through the user settings interface. */ function doGetUserStyles() { - global $wgUser, $wgLang; + global $wgUser, $wgContLang; - $csspage = $wgLang->getNsText( NS_MEDIAWIKI ) . ':' . $this->getSkinName() . '.css'; + $csspage = $wgContLang->getNsText( NS_MEDIAWIKI ) . ':' . $this->getSkinName() . '.css'; $s = '@import "'.$this->makeUrl($csspage, 'action=raw&ctype=text/css')."\";\n"; if ( 1 == $wgUser->getOption( 'underline' ) ) { @@ -313,11 +313,11 @@ class Skin { } function getExternalLinkAttributes( $link, $text, $class='' ) { - global $wgUser, $wgOut, $wgLang; + global $wgUser, $wgOut, $wgContLang; $same = ($link == $text); $link = urldecode( $link ); - $link = $wgLang->checkTitleEncoding( $link ); + $link = $wgContLang->checkTitleEncoding( $link ); $link = str_replace( '_', ' ', $link ); $link = htmlspecialchars( $link ); @@ -389,7 +389,7 @@ class Skin { } function doBeforeContent() { - global $wgUser, $wgOut, $wgTitle, $wgLang, $wgSiteNotice; + global $wgUser, $wgOut, $wgTitle, $wgContLang, $wgSiteNotice; $fname = 'Skin::doBeforeContent'; wfProfileIn( $fname ); @@ -410,7 +410,7 @@ class Skin { $shove = ($qb != 0); $left = ($qb == 1 || $qb == 3); - if($wgLang->isRTL()) $left = !$left; + if($wgContLang->isRTL()) $left = !$left; if ( !$shove ) { $s .= "\n" . @@ -418,13 +418,13 @@ class Skin { } elseif( $left ) { $s .= $this->getQuickbarCompensator( $rows ); } - $l = $wgLang->isRTL() ? 'right' : 'left'; + $l = $wgContLang->isRTL() ? 'right' : 'left'; $s .= "\n"; $s .= $this->topLinks() ; $s .= "

" . $this->pageTitleLinks() . "

\n"; - $r = $wgLang->isRTL() ? "left" : "right"; + $r = $wgContLang->isRTL() ? "left" : "right"; $s .= "\n"; $s .= $this->nameAndLogin(); $s .= "\n
" . $this->searchForm() . ""; @@ -532,7 +532,7 @@ class Skin { } function doAfterContent() { - global $wgUser, $wgOut, $wgLang; + global $wgUser, $wgOut, $wgContLang; $fname = 'Skin::doAfterContent'; wfProfileIn( $fname ); wfProfileIn( $fname.'-1' ); @@ -547,14 +547,14 @@ class Skin { $qb = $this->qbSetting(); $shove = ($qb != 0); $left = ($qb == 1 || $qb == 3); - if($wgLang->isRTL()) $left = !$left; + if($wgContLang->isRTL()) $left = !$left; if ( $shove && $left ) { # Left $s .= $this->getQuickbarCompensator(); } wfProfileOut( $fname.'-2' ); wfProfileIn( $fname.'-3' ); - $l = $wgLang->isRTL() ? 'right' : 'left'; + $l = $wgContLang->isRTL() ? 'right' : 'left'; $s .= ""; $s .= $this->bottomLinks(); @@ -579,7 +579,7 @@ class Skin { } function pageTitleLinks() { - global $wgOut, $wgTitle, $wgUser, $wgLang, $wgUseApproval, $wgRequest; + global $wgOut, $wgTitle, $wgUser, $wgContLang, $wgUseApproval, $wgRequest; extract( $wgRequest->getValues( 'oldid', 'diff' ) ); $action = $wgRequest->getText( 'action' ); @@ -617,7 +617,7 @@ class Skin { if(!(strcmp($wgTitle->getText(),$wgUser->getName()) == 0 && $wgTitle->getNamespace()==Namespace::getTalk(Namespace::getUser()))) { $n =$wgUser->getName(); - $tl = $this->makeKnownLink( $wgLang->getNsText( + $tl = $this->makeKnownLink( $wgContLang->getNsText( Namespace::getTalk( Namespace::getUser() ) ) . ":{$n}", wfMsg('newmessageslink') ); $s.= ' | '. wfMsg( 'newmessages', $tl ) . ''; @@ -634,13 +634,13 @@ class Skin { } function getUndeleteLink() { - global $wgUser, $wgTitle, $wgLang, $action; + global $wgUser, $wgTitle, $wgContLang, $action; if( $wgUser->isSysop() && (($wgTitle->getArticleId() == 0) || ($action == "history")) && ($n = $wgTitle->isDeleted() ) ) { return wfMsg( 'thisisdeleted', $this->makeKnownLink( - $wgLang->SpecialPage( 'Undelete/' . $wgTitle->getPrefixedDBkey() ), + $wgContLang->SpecialPage( 'Undelete/' . $wgTitle->getPrefixedDBkey() ), wfMsg( 'restorelink', $n ) ) ); } return ''; @@ -720,19 +720,19 @@ class Skin { } function nameAndLogin() { - global $wgUser, $wgTitle, $wgLang, $wgShowIPinHeader, $wgIP; + global $wgUser, $wgTitle, $wgLang, $wgContLang, $wgShowIPinHeader, $wgIP; - $li = $wgLang->specialPage( 'Userlogin' ); - $lo = $wgLang->specialPage( 'Userlogout' ); + $li = $wgContLang->specialPage( 'Userlogin' ); + $lo = $wgContLang->specialPage( 'Userlogout' ); $s = ''; if ( 0 == $wgUser->getID() ) { if( $wgShowIPinHeader && isset( $_COOKIE[ini_get('session.name')] ) ) { $n = $wgIP; - $tl = $this->makeKnownLink( $wgLang->getNsText( + $tl = $this->makeKnownLink( $wgContLang->getNsText( Namespace::getTalk( Namespace::getUser() ) ) . ":{$n}", - $wgLang->getNsText( Namespace::getTalk( 0 ) ) ); + $wgContLang->getNsText( Namespace::getTalk( 0 ) ) ); $s .= $n . ' ('.$tl.')'; } else { @@ -749,13 +749,13 @@ class Skin { } else { $n = $wgUser->getName(); $rt = $wgTitle->getPrefixedURL(); - $tl = $this->makeKnownLink( $wgLang->getNsText( + $tl = $this->makeKnownLink( $wgContLang->getNsText( Namespace::getTalk( Namespace::getUser() ) ) . ":{$n}", - $wgLang->getNsText( Namespace::getTalk( 0 ) ) ); + $wgContLang->getNsText( Namespace::getTalk( 0 ) ) ); $tl = " ({$tl})"; - $s .= $this->makeKnownLink( $wgLang->getNsText( + $s .= $this->makeKnownLink( $wgContLang->getNsText( Namespace::getUser() ) . ":{$n}", $n ) . "{$tl}
" . $this->makeKnownLink( $lo, wfMsg( 'logout' ), "returnto={$rt}" ) . ' | ' . @@ -957,7 +957,7 @@ class Skin { } function quickBar() { - global $wgOut, $wgTitle, $wgUser, $wgRequest, $wgLang; + global $wgOut, $wgTitle, $wgUser, $wgRequest, $wgContLang; global $wgDisableUploads, $wgRemoteUploads; $fname = 'Skin::quickBar'; @@ -976,7 +976,7 @@ class Skin { . $sep . $this->specialLink( 'randompage' ); if ($wgUser->getID()) { $s.= $sep . $this->specialLink( 'watchlist' ) ; - $s .= $sep .$this->makeKnownLink( $wgLang->specialPage( 'Contributions' ), + $s .= $sep .$this->makeKnownLink( $wgContLang->specialPage( 'Contributions' ), wfMsg( 'mycontris' ), 'target=' . wfUrlencode($wgUser->getName() ) ); } @@ -1019,7 +1019,7 @@ class Skin { } $link = $wgTitle->getText(); - if ($nstext = $wgLang->getNsText($tns) ) { # add namespace if necessary + if ($nstext = $wgContLang->getNsText($tns) ) { # add namespace if necessary $link = $nstext . ':' . $link ; } @@ -1102,7 +1102,7 @@ class Skin { } function specialPagesList() { - global $wgUser, $wgOut, $wgLang, $wgServer, $wgRedirectScript; + global $wgUser, $wgOut, $wgContLang, $wgServer, $wgRedirectScript; require_once('SpecialPage.php'); $a = array(); $pages = SpecialPage::getPages(); @@ -1124,7 +1124,7 @@ class Skin { } $go = wfMsg( 'go' ); $sp = wfMsg( 'specialpages' ); - $spp = $wgLang->specialPage( 'Specialpages' ); + $spp = $wgContLang->specialPage( 'Specialpages' ); $s = '
\n"; @@ -1132,7 +1132,7 @@ class Skin { $s .= "\n"; foreach ( $a as $name => $desc ) { - $p = $wgLang->specialPage( $name ); + $p = $wgContLang->specialPage( $name ); $s .= "\n"; } $s .= "\n"; @@ -1251,10 +1251,10 @@ class Skin { } function moveThisPage() { - global $wgTitle, $wgLang; + global $wgTitle, $wgContLang; if ( $wgTitle->userCanEdit() ) { - $s = $this->makeKnownLink( $wgLang->specialPage( 'Movepage' ), + $s = $this->makeKnownLink( $wgContLang->specialPage( 'Movepage' ), wfMsg( 'movethispage' ), 'target=' . $wgTitle->getPrefixedURL() ); } // no message if page is protected - would be redundant return $s; @@ -1269,36 +1269,36 @@ class Skin { } function whatLinksHere() { - global $wgTitle, $wgLang; + global $wgTitle, $wgContLang; - $s = $this->makeKnownLink( $wgLang->specialPage( 'Whatlinkshere' ), + $s = $this->makeKnownLink( $wgContLang->specialPage( 'Whatlinkshere' ), wfMsg( 'whatlinkshere' ), 'target=' . $wgTitle->getPrefixedURL() ); return $s; } function userContribsLink() { - global $wgTitle, $wgLang; + global $wgTitle, $wgContLang; - $s = $this->makeKnownLink( $wgLang->specialPage( 'Contributions' ), + $s = $this->makeKnownLink( $wgContLang->specialPage( 'Contributions' ), wfMsg( 'contributions' ), 'target=' . $wgTitle->getPartialURL() ); return $s; } function emailUserLink() { - global $wgTitle, $wgLang; + global $wgTitle, $wgContLang; - $s = $this->makeKnownLink( $wgLang->specialPage( 'Emailuser' ), + $s = $this->makeKnownLink( $wgContLang->specialPage( 'Emailuser' ), wfMsg( 'emailuser' ), 'target=' . $wgTitle->getPartialURL() ); return $s; } function watchPageLinksLink() { - global $wgOut, $wgTitle, $wgLang; + global $wgOut, $wgTitle, $wgContLang; if ( ! $wgOut->isArticleRelated() ) { $s = '(' . wfMsg( 'notanarticle' ) . ')'; } else { - $s = $this->makeKnownLink( $wgLang->specialPage( + $s = $this->makeKnownLink( $wgContLang->specialPage( 'Recentchangeslinked' ), wfMsg( 'recentchangeslinked' ), 'target=' . $wgTitle->getPrefixedURL() ); } @@ -1306,45 +1306,45 @@ class Skin { } function otherLanguages() { - global $wgOut, $wgLang, $wgTitle, $wgUseNewInterlanguage; + global $wgOut, $wgContLang, $wgTitle, $wgUseNewInterlanguage; $a = $wgOut->getLanguageLinks(); if ( 0 == count( $a ) ) { if ( !$wgUseNewInterlanguage ) return ''; - $ns = $wgLang->getNsIndex ( $wgTitle->getNamespace () ) ; + $ns = $wgContLang->getNsIndex ( $wgTitle->getNamespace () ) ; if ( $ns != 0 AND $ns != 1 ) return '' ; $pn = 'Intl' ; $x = 'mode=addlink&xt='.$wgTitle->getDBkey() ; - return $this->makeKnownLink( $wgLang->specialPage( $pn ), + return $this->makeKnownLink( $wgContLang->specialPage( $pn ), wfMsg( 'intl' ) , $x ); } if ( !$wgUseNewInterlanguage ) { $s = wfMsg( 'otherlanguages' ) . ': '; } else { - global $wgLanguageCode ; + global $wgContLanguageCode ; $x = 'mode=zoom&xt='.$wgTitle->getDBkey() ; - $x .= '&xl='.$wgLanguageCode ; - $s = $this->makeKnownLink( $wgLang->specialPage( 'Intl' ), + $x .= '&xl='.$wgContLanguageCode ; + $s = $this->makeKnownLink( $wgContLang->specialPage( 'Intl' ), wfMsg( 'otherlanguages' ) , $x ) . ': ' ; } $s = wfMsg( 'otherlanguages' ) . ': '; $first = true; - if($wgLang->isRTL()) $s .= ''; + if($wgContLang->isRTL()) $s .= ''; foreach( $a as $l ) { if ( ! $first ) { $s .= ' | '; } $first = false; $nt = Title::newFromText( $l ); $url = $nt->getFullURL(); - $text = $wgLang->getLanguageName( $nt->getInterwiki() ); + $text = $wgContLang->getLanguageName( $nt->getInterwiki() ); if ( '' == $text ) { $text = $l; } $style = $this->getExternalLinkAttributes( $l, $text ); $s .= "{$text}"; } - if($wgLang->isRTL()) $s .= ''; + if($wgContLang->isRTL()) $s .= ''; return $s; } @@ -1383,7 +1383,7 @@ class Skin { } function talkLink() { - global $wgLang, $wgTitle, $wgLinkCache; + global $wgContLang, $wgTitle, $wgLinkCache; $tns = $wgTitle->getNamespace(); if ( -1 == $tns ) { return ''; } @@ -1413,7 +1413,7 @@ class Skin { $lns = Namespace::getTalk( $tns ); $text=$tp; } - $n = $wgLang->getNsText( $lns ); + $n = $wgContLang->getNsText( $lns ); if ( '' == $n ) { $link = $pn; } else { $link = $n.':'.$pn; } @@ -1425,7 +1425,7 @@ class Skin { } function commentLink() { - global $wgLang, $wgTitle, $wgLinkCache; + global $wgContLang, $wgTitle, $wgLinkCache; $tns = $wgTitle->getNamespace(); if ( -1 == $tns ) { return ''; } @@ -1434,7 +1434,7 @@ class Skin { # assert Namespace::isTalk( $lns ) - $n = $wgLang->getNsText( $lns ); + $n = $wgContLang->getNsText( $lns ); $pn = $wgTitle->getText(); $link = $n.':'.$pn; @@ -1832,7 +1832,7 @@ class Skin { } function makeImageLinkObj( $nt, $alt = '' ) { - global $wgLang, $wgUseImageResize; + global $wgContLang, $wgUseImageResize; $img = Image::newFromTitle( $nt ); $url = $img->getURL(); @@ -1914,7 +1914,7 @@ class Skin { # If thumbnail width has not been provided, it is set # here to 180 pixels if ( $align == '' ) { - $align = $wgLang->isRTL() ? 'left' : 'right'; + $align = $wgContLang->isRTL() ? 'left' : 'right'; } if ( ! isset($width) ) { $width = 180; @@ -1961,7 +1961,7 @@ class Skin { * $img is an Image object */ function makeThumbLinkObj( $img, $label = '', $align = 'right', $boxwidth = 180, $boxheight=false, $framed=false , $manual_thumb = "" ) { - global $wgStylePath, $wgLang; + global $wgStylePath, $wgContLang; # $image = Title::makeTitleSafe( NS_IMAGE, $name ); $url = $img->getURL(); @@ -2020,8 +2020,8 @@ class Skin { $u = $img->getEscapeLocalURL(); $more = htmlspecialchars( wfMsg( 'thumbnail-more' ) ); - $magnifyalign = $wgLang->isRTL() ? 'left' : 'right'; - $textalign = $wgLang->isRTL() ? ' style="text-align:right"' : ''; + $magnifyalign = $wgContLang->isRTL() ? 'left' : 'right'; + $textalign = $wgContLang->isRTL() ? ' style="text-align:right"' : ''; $s = "
"; if ( $thumbUrl == '' ) { @@ -2068,11 +2068,11 @@ class Skin { } function specialLink( $name, $key = '' ) { - global $wgLang; + global $wgContLang; if ( '' == $key ) { $key = strtolower( $name ); } - $pn = $wgLang->ucfirst( $name ); - return $this->makeKnownLink( $wgLang->specialPage( $pn ), + $pn = $wgContLang->ucfirst( $name ); + return $this->makeKnownLink( $wgContLang->specialPage( $pn ), wfMsg( $key ) ); } @@ -2120,7 +2120,7 @@ class Skin { * Enhanced RC ungrouped line */ function recentChangesBlockLine ( $rcObj ) { - global $wgStylePath, $wgLang ; + global $wgStylePath, $wgContLang ; # Get rc_xxxx variables extract( $rcObj->mAttribs ) ; @@ -2175,7 +2175,7 @@ class Skin { # Comment if ( $rc_comment != '' && $rc_type != RC_MOVE && $rc_type != RC_MOVE_OVER_REDIRECT ) { $rc_comment=$this->formatComment($rc_comment, $rcObj->getTitle()); - $r .= $wgLang->emphasize( ' ('.$rc_comment.')' ); + $r .= $wgContLang->emphasize( ' ('.$rc_comment.')' ); } $r .= "
\n" ; @@ -2186,7 +2186,7 @@ class Skin { * Enhanced RC group */ function recentChangesBlockGroup ( $block ) { - global $wgStylePath, $wgLang ; + global $wgStylePath, $wgContLang ; $r = '' ; $M = wfMsg( 'minoreditletter' ); @@ -2219,7 +2219,7 @@ class Skin { $rcl = 'RCL'.$this->rcCacheIndex ; $rcm = 'RCM'.$this->rcCacheIndex ; $toggleLink = "javascript:toggleVisibility('$rci','$rcm','$rcl')" ; - $arrowdir = $wgLang->isRTL() ? 'l' : 'r'; + $arrowdir = $wgContLang->isRTL() ? 'l' : 'r'; $tl = '' ; $tl .= '' ; $r .= $tl ; @@ -2291,7 +2291,7 @@ class Skin { $r .= $rcObj->usertalklink ; if ( $rc_comment != '' ) { $rc_comment=$this->formatComment($rc_comment, $rcObj->getTitle()); - $r .= $wgLang->emphasize( ' ('.$rc_comment.')' ) ; + $r .= $wgContLang->emphasize( ' ('.$rc_comment.')' ) ; } $r .= "
\n" ; } @@ -2335,18 +2335,19 @@ class Skin { } function recentChangesLineOld( &$rc, $watched = false ) { - global $wgTitle, $wgLang, $wgUser, $wgRCSeconds, $wgUseRCPatrol, $wgOnlySysopsCanPatrol; + global $wgTitle, $wgLang, $wgContLang, $wgUser, $wgRCSeconds, $wgUseRCPatrol, $wgOnlySysopsCanPatrol; # Extract DB fields into local scope extract( $rc->mAttribs ); $curIdEq = 'curid=' . $rc_cur_id; # Make date header if necessary - $date = $wgLang->date( $rc_timestamp, true); + $date = $wgContLang->date( $rc_timestamp, true); + $uidate = $wgLang->date( $rc_timestamp, true); $s = ''; if ( $date != $this->lastdate ) { if ( '' != $this->lastdate ) { $s .= "\n"; } - $s .= "

{$date}

\n