if( $this->iscontent ) {
$content_actions['article'] = array('class' => (!Namespace::isTalk( $wgTitle->getNamespace())) ? 'selected' : false,
- 'text' => wfMsg('article'),
+ 'text' => $this->getNameSpaceWord(),
'href' => $this->makeArticleUrl($this->thispage),
'ttip' => wfMsg('tooltip-article'),
'akey' => wfMsg('accesskey-article'));
return $nav_urls;
}
+ function getNameSpaceWord () {
+ global $wgTitle;
+ switch ($wgTitle->getNamespace()) {
+ case NS_MAIN:
+ case NS_TALK:
+ return wfMsg('nstab-main');
+ case NS_USER:
+ case NS_USER_TALK:
+ return wfMsg('nstab-user');
+ case NS_MEDIA:
+ return wfMsg('nstab-media');
+ case NS_SPECIAL:
+ return wfMsg('nstab-special');
+ case NS_WP:
+ case NS_WP_TALK:
+ return wfMsg('nstab-wp');
+ case NS_IMAGE:
+ case NS_IMAGE_TALK:
+ return wfMsg('nstab-image');
+ case NS_MEDIAWIKI:
+ case NS_MEDIAWIKI_TALK:
+ return wfMsg('nstab-mediawiki');
+ case NS_TEMPLATE:
+ case NS_TEMPLATE_TALK:
+ return wfMsg('nstab-template');
+ case NS_HELP:
+ case NS_HELP_TALK:
+ return wfMsg('nstab-help');
+ case NS_CATEGORY:
+ case NS_CATEGORY_TALK:
+ return wfMsg('nstab-category');
+ default:
+ return wfMsg('nstab-main');
+ }
+ }
+
+
/*static*/ function makeSpecialUrl( $name, $urlaction='' ) {
$title = Title::makeTitle( NS_SPECIAL, $name );
$this->checkTitle(&$title, &$name);
"restorelink" => "$1 deleted edits",
'feedlinks' => 'Feed:',
+# Short words for each namespace, by default used in the 'article' tab in monobook
+'nstab-main' => 'Article',
+'nstab-user' => 'User page',
+'nstab-media' => 'Media',
+'nstab-special' => 'Special',
+'nstab-wp' => 'About',
+'nstab-image' => 'Image',
+'nstab-mediawiki' => 'Message',
+'nstab-template' => 'Template',
+'nstab-help' => 'Help',
+'nstab-category' => 'Category',
+
# Main script and global functions
#
"nosuchaction" => "No such action",
</div>
<!--<esi:include src="staticLogoNaviSearch"/> same for all pages, contains quite a few messages that are worth caching -->
<div class="portlet" id="p-logo">
- <a style="background: url(${logopath}) no-repeat;" href="${nav_urls/mainpage/href}" i18n:attributes="title string:mainpage"></a>
+ <a style="background-image: url(${logopath});" href="${nav_urls/mainpage/href}" i18n:attributes="title string:mainpage"></a>
</div>
<div class="portlet" id="p-nav">
<h5 i18n:translate="string:navigation">Navigation</h5>