'sitetitle' => '{{SITENAME}}', # do not translate or duplicate this message to other languages
'sitesubtitle' => '', # do not translate or duplicate this message to other languages
+'vector-action-addsection' => 'Add Topic',
+'vector-action-delete' => 'Delete',
+'vector-action-move' => 'Move',
+'vector-action-protect' => 'Protect',
+'vector-action-undelete' => 'Undelete',
+'vector-action-unprotect' => 'Unprotect',
+'vector-namespace-category' => 'Category',
+'vector-namespace-help' => 'Help page',
+'vector-namespace-image' => 'File',
+'vector-namespace-main' => 'Page',
+'vector-namespace-media' => 'Media page',
+'vector-namespace-mediawiki' => 'Message',
+'vector-namespace-project' => 'Project page',
+'vector-namespace-special' => 'Special page',
+'vector-namespace-talk' => 'Discussion',
+'vector-namespace-template' => 'Template',
+'vector-namespace-user' => 'User page',
+'vector-view-create' => 'Create',
+'vector-view-edit' => 'Edit',
+'vector-view-history' => 'View History',
+'vector-view-view' => 'Read',
+'vector-view-viewsource' => 'View Source',
+
# Metadata in edit box
'metadata_help' => 'Metadata:',
'permalink' => 'Permanent link',
'print' => 'Print',
'edit' => 'Edit',
-'view' => 'Read',
'create' => 'Create',
'editthispage' => 'Edit this page',
'create-this-page' => 'Create this page',
'sitetitle',
'sitesubtitle',
),
+ 'vector' => array(
+ 'vector-action-addsection',
+ 'vector-action-delete',
+ 'vector-action-move',
+ 'vector-action-protect',
+ 'vector-action-undelete',
+ 'vector-action-unprotect',
+ 'vector-namespace-category',
+ 'vector-namespace-help',
+ 'vector-namespace-image',
+ 'vector-namespace-main',
+ 'vector-namespace-media',
+ 'vector-namespace-mediawiki',
+ 'vector-namespace-project',
+ 'vector-namespace-special',
+ 'vector-namespace-talk',
+ 'vector-namespace-template',
+ 'vector-namespace-user',
+ 'vector-view-create',
+ 'vector-view-edit',
+ 'vector-view-history',
+ 'vector-view-view',
+ 'vector-view-viewsource',
+ ),
'metadata_help' => array(
'metadata_help',
),
// Adds namespace links
$links['namespaces'][$subjectId] = $this->tabAction(
- $subjectPage, 'nstab-' . $subjectId, !$isTalk, '', true
+ $subjectPage, 'vector-namespace-' . $subjectId, !$isTalk, '', true
);
$links['namespaces'][$talkId] = $this->tabAction(
- $talkPage, 'talk', $isTalk, '', true
+ $talkPage, 'vector-namespace-talk', $isTalk, '', true
);
// Adds view view link
if ( $this->mTitle->exists() ) {
$links['views']['view'] = $this->tabAction(
$isTalk ? $talkPage : $subjectPage,
- 'view', ( $action == 'view' ), '', true
+ 'vector-view-view', ( $action == 'view' ), '', true
);
}
-
+
wfProfileIn( __METHOD__ . '-edit' );
// Checks if user can...
$links['views']['edit'] = array(
'class' => ( $selected ? 'selected' : '' ) . $isTalkClass,
'text' => $this->mTitle->exists()
- ? wfMsg( 'edit' )
- : wfMsg( 'create' ),
+ ? wfMsg( 'vector-view-edit' )
+ : wfMsg( 'vector-view-create' ),
'href' =>
$this->mTitle->getLocalUrl( $this->editUrlOptions() )
);
// Adds new section link
$links['actions']['addsection'] = array(
'class' => $section == 'new' ? 'selected' : false,
- 'text' => wfMsg( 'addsection' ),
+ 'text' => wfMsg( 'vector-action-addsection' ),
'href' => $this->mTitle->getLocalUrl(
'action=edit§ion=new'
)
// Adds view source view link
$links['views']['viewsource'] = array(
'class' => ( $action == 'edit' ) ? 'selected' : false,
- 'text' => wfMsg( 'viewsource' ),
+ 'text' => wfMsg( 'vector-view-viewsource' ),
'href' =>
$this->mTitle->getLocalUrl( $this->editUrlOptions() )
);
// Adds history view link
$links['views']['history'] = array(
'class' => ($action == 'history') ? 'selected' : false,
- 'text' => wfMsg( 'history_short' ),
+ 'text' => wfMsg( 'vector-view-history' ),
'href' => $this->mTitle->getLocalUrl( 'action=history' ),
'rel' => 'archives',
);
if( $wgUser->isAllowed( 'delete' ) ) {
$links['actions']['delete'] = array(
'class' => ($action == 'delete') ? 'selected' : false,
- 'text' => wfMsg( 'delete' ),
+ 'text' => wfMsg( 'vector-action-delete' ),
'href' => $this->mTitle->getLocalUrl( 'action=delete' )
);
}
$links['actions']['move'] = array(
'class' => $this->mTitle->isSpecial( 'Movepage' ) ?
'selected' : false,
- 'text' => wfMsg( 'move' ),
+ 'text' => wfMsg( 'vector-action-move' ),
'href' => $moveTitle->getLocalUrl()
);
}
$links['actions']['protect'] = array(
'class' => ($action == 'protect') ?
'selected' : false,
- 'text' => wfMsg( 'protect' ),
+ 'text' => wfMsg( 'vector-action-protect' ),
'href' =>
$this->mTitle->getLocalUrl( 'action=protect' )
);
$links['actions']['unprotect'] = array(
'class' => ($action == 'unprotect') ?
'selected' : false,
- 'text' => wfMsg( 'unprotect' ),
+ 'text' => wfMsg( 'vector-action-unprotect' ),
'href' =>
$this->mTitle->getLocalUrl( 'action=unprotect' )
);
$links['actions']['undelete'] = array(
'class' => false,
'text' => wfMsgExt(
- 'undelete_short',
+ 'vector-action-undelete',
array( 'parsemag' ),
$wgLang->formatNum( $n )
),
$links['actions']['protect'] = array(
'class' => ($action == 'protect') ?
'selected' : false,
- 'text' => wfMsg( 'protect' ),
+ 'text' => wfMsg( 'vector-action-protect' ),
'href' =>
$this->mTitle->getLocalUrl( 'action=protect' )
);
$links['actions']['unprotect'] = array(
'class' => ($action == 'unprotect') ?
'selected' : false,
- 'text' => wfMsg( 'unprotect' ),
+ 'text' => wfMsg( 'vector-action-unprotect' ),
'href' =>
$this->mTitle->getLocalUrl( 'action=unprotect' )
);
}
}
wfProfileOut( __METHOD__ . '-live' );
-
+
+ /**
+ * The following actions use messages which, if made particular to
+ * the Vector skin, would break the Ajax code which makes this
+ * action happen entirely inline. Skin::makeGlobalVariablesScript
+ * defines a set of messages in a javascript object - and these
+ * messages are assumed to be global for all skins. Without making
+ * a change to that procedure these messages will have to remain as
+ * the global versions.
+ */
// Checks if the user is logged in
if( $this->loggedin ) {
// Checks if the user is watching this page
} else {
$links['namespaces']['special'] = array(
'class' => 'selected',
- 'text' => wfMsg( 'nstab-special' ),
+ 'text' => wfMsg( 'vector-namespace-special' ),
'href' => $wgRequest->getRequestURL()
);
}