include_once( "RecentChange.php" );
-# For some odd PHP bug, this function can't be part of a class
-function getCategories ()
-{
- global $wgOut , $wgTitle , $wgUseCategoryMagic , $wgUser , $wgParser ;
- if ( !isset ( $wgUseCategoryMagic ) || !$wgUseCategoryMagic ) return "" ;
- if ( count ( $wgOut->mCategoryLinks ) == 0 ) return "" ;
- if ( !$wgOut->isArticle() ) return "" ;
- $sk = $wgUser->getSkin() ;
- $s = "" ;
- $s .= $sk->makeKnownLink ( "Special:Categories" , "Categories" , "article=".$wgTitle->getDBkey() ) ;
- $t = implode ( " | " , $wgOut->mCategoryLinks ) ;
- if ( $t != "" ) $s .= ": " ;
- $s .= $t ;
- return "<p class='catlinks'>$s</p>";
-}
-
class RCCacheEntry extends RecentChange
{
var $secureName, $link;
$s .= $this->pageTitle();
$s .= $this->pageSubtitle() ;
- $s .= getCategories(); // For some odd reason, zhis can't be a function of the object
+ $s .= $this->getCategories();
wfProfileOut( $fname );
return $s;
}
+
+ function getCategories () {
+ global $wgOut, $wgTitle, $wgUser, $wgParser;
+ global $wgUseCategoryMagic;
+ if( !$wgUseCategoryMagic ) return "" ;
+ if( count( $wgOut->mCategoryLinks ) == 0 ) return "";
+ if( !$wgOut->isArticle() ) return "";
+
+ $t = implode ( " | " , $wgOut->mCategoryLinks ) ;
+ $s = $this->makeKnownLink( "Special:Categories",
+ wfMsg( "categories" ), "article=" . urlencode( $wgTitle->getPrefixedDBkey() ) )
+ . ": " . $t;
+ return "<p class='catlinks'>$s</p>";
+ }
function getQuickbarCompensator( $rows = 1 )
{
$tpl->setRef( "thispage", &$this->thispage );
$tpl->set( "subtitle", $out->getSubtitle() );
- $tpl->set( 'catlinks', getCategories());
+ $tpl->set( 'catlinks', $this->getCategories());
if( $wgOut->isSyndicated() ) {
$feeds = array();
foreach( $wgFeedClasses as $format => $class ) {
# Bits of text used by many pages:
#
-"categories" => "Page categories",
+"categories" => "Categories",
"category" => "category",
"category_header" => "Articles in category \"$1\"",
"subcategories" => "Subcategories",
# Teksteroj uzataj fare de diversaj paĝoj:
#
+"categories" => "Kategorioj",
+"category" => "kategorio",
+"category_header" => "Artikoloj en kategorio \"$1\"",
+"subcategories" => "Subkategorioj",
+
# Tiuj literoj, kiuj aperu kiel parto de la ligilo en formo "[[lingvo]]jn" ktp:
"linktrail" => "/^([a-z]+)(.*)\$/sD",
"mainpage" => "Ĉefpaĝo",
"about" => "Enkonduko",
"aboutwikipedia" => "Pri {{SITENAME}}", #FIXME
"aboutpage" => "{{ns:4}}:Enkonduko",
+'article' => "Artikolo",
"help" => "Helpo",
"helppage" => "{{ns:4}}:Helpo",
"wikititlesuffix" => "{{SITENAME}}",
"search" => "Serĉu",
"go" => "Ek",
"history" => "Malnovaj versioj",
+"history_short" => "Historio",
"printableversion" => "Presebla versio",
"editthispage" => "Redaktu la paĝon",
"deletethispage" => "Forigu la paĝon",
"postcomment" => "Afiŝu komenton",
"articlepage" => "Vidu la artikolon",
"subjectpage" => "Vidu la artikolon", #FIXME: ?
+"talk" => "Diskuto",
+"toolbox" => "Iloj",
"userpage" => "Vidu personan paĝon",
"wikipediapage" => "Vidu meta-paĝon",
"imagepage" => "Vidu dosieropaĝon",