'enotifminoredits' => 0,
'enotifrevealaddr' => 0,
'shownumberswatching' => 1,
- 'rcusemodstyle' => 1,
- 'showupdated' => 1,
'fancysig' => 0,
'externaleditor' => 0,
'externaldiff' => 0,
'enotifminoredits',
'enotifrevealaddr',
'shownumberswatching',
- 'rcusemodstyle',
- 'showupdated',
'fancysig',
'externaleditor',
'externaldiff',
MAG_PAGENAME => array( 1, 'PAGENAME' ),
MAG_PAGENAMEE => array( 1, 'PAGENAMEE' ),
MAG_NAMESPACE => array( 1, 'NAMESPACE' ),
+ MAG_MSG => array( 0, 'MSG:' ),
MAG_SUBST => array( 0, 'SUBST:' ),
MAG_MSGNW => array( 0, 'MSGNW:' ),
MAG_END => array( 0, '__END__' ),
MAG_LOCALURL => array( 0, 'LOCALURL:' ),
MAG_LOCALURLE => array( 0, 'LOCALURLE:' ),
MAG_SERVER => array( 0, 'SERVER' ),
+ MAG_SERVERNAME => array( 0, 'SERVERNAME' ),
+ MAG_SCRIPTPATH => array( 0, 'SCRIPTPATH' ),
MAG_GRAMMAR => array( 0, 'GRAMMAR:' ),
MAG_NOTITLECONVERT => array( 0, '__NOTITLECONVERT__', '__NOTC__'),
MAG_NOCONTENTCONVERT => array( 0, '__NOCONTENTCONVERT__', '__NOCC__'),
# The navigation toolbar, int: is used here to make sure that the appropriate
# messages are automatically pulled from the user-selected language file.
-'navbar' =>
-'* [[{{int:mainpage}}]]
-* [[{{int:portal-url}}|{{int:portal}}]]
-* [[{{int:currentevents-url}}|{{int:currentevents}}]]
-* [[{{int:recentchanges-url}}|{{int:recentchanges}}]]
-* [[{{int:randompage-url}}|{{int:randompage}}]]
-* [[{{int:helppage}}|{{int:help}}]]
-* [[{{int:sitesupport-url}}|{{int:sitesupport}}]]',
+
+/*
+The sidebar for MonoBook is generated from this message, lines that do not
+begin with * or ** are discarded, furthermore lines that do begin with ** and
+do not contain | are also discarded, but don't depend on this behaviour for
+future releases. Also note that since each list value is wrapped in a unique
+XHTML id it should only appear once and include characters that are legal
+XHTML id names.
+
+Note to translators: Do not include this message in the language files you
+submit for inclusion in MediaWiki, it should always be inherited from the
+parent class in order maintain consistency across languages.
+*/
+'sidebar' => '
+* navigation
+** mainpage|mainpage
+** portal-url|portal
+** currentevents-url|currentevents
+** recentchanges-url|recentchanges
+** randompage-url|randompage
+** helppage|help
+** sitesupport-url|sitesupport
+',
# User preference toggles
'tog-underline' => 'Underline links',
'tog-enotifminoredits' => 'Send me an email also for minor edits of pages',
'tog-enotifrevealaddr' => 'Reveal my email address in notification mails',
'tog-shownumberswatching' => 'Show the number of watching users',
-'tog-rcusemodstyle' => 'Show recent changes in UseMod style: only the most recent change of any page is listed.',
-'tog-showupdated' => 'Show update marker ',
'tog-fancysig' => 'Raw signatures (without automatic link)',
'tog-externaleditor' => 'Use external editor by default',
'tog-externaldiff' => 'Use external diff by default',
"mainpagedocfooter" => "Please see [http://meta.wikipedia.org/wiki/MediaWiki_i18n documentation on customizing the interface]
and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] for usage and configuration help.",
-# NOTE: To turn off "Community portal" in the title links,
-# set "portal" => "-"
-
'portal' => 'Community portal',
'portal-url' => 'Project:Community Portal',
'about' => 'About',
'metadata' => '<b>Metadata</b> (for an explanation see <a href="$1">here</a>)',
'metadata_page' => 'Wikipedia:Metadata',
-# NOTE: To turn off "Current Events" in the sidebar,
-# set "currentevents" => "-"
-
'currentevents' => 'Current events',
'currentevents-url' => 'Current events',
-# NOTE: To turn off "Disclaimers" in the title links,
-# set "disclaimers" => "-"
-
'disclaimers' => 'Disclaimers',
'disclaimerpage' => "Project:General_disclaimer",
'errorpagetitle' => "Error",
'printsubtitle' => "(From {{SERVER}})",
'protectedpage' => 'Protected page',
'administrators' => "Project:Administrators",
+
'sysoptitle' => 'Sysop access required',
'sysoptext' => "The action you have requested can only be
performed by users with \"sysop\" status.
'bureaucrattitle' => 'Bureaucrat access required',
"bureaucrattext" => "The action you have requested can only be
performed by sysops with \"bureaucrat\" status.",
+
+'badaccess' => 'Permission error',
+'badaccesstext' => 'The action you have requested is limited
+to users with the "$2" permission assigned.
+See $1.',
+
'nbytes' => '$1 bytes',
'ok' => 'OK',
'sitetitle' => "{{SITENAME}}",
<p>If this is not the case, you may have found a bug in the software.
Please report this to an administrator, making note of the URL.",
+'readonly_lag' => "The database has been automatically locked while the slave database servers catch up to the master",
'internalerror' => 'Internal error',
'filecopyerror' => "Could not copy file \"$1\" to \"$2\".",
'filerenameerror' => "Could not rename file \"$1\" to \"$2\".",
'yourpasswordagain' => 'Retype password',
'newusersonly' => ' (new users only)',
'remembermypassword' => 'Remember my password across sessions.',
+'yourdomainname' => 'Your domain',
+'externaldberror' => 'There was either an external authentication database error or you are not allowed to update your external account.',
'loginproblem' => '<b>There has been a problem with your login.</b><br />Try again!',
'alreadyloggedin' => "<font color=red><b>User $1, you are already logged in!</b></font><br />\n",
Check your spelling, or use the form below to create a new user account.",
'nosuchusershort' => "There is no user by the name \"$1\". Check your spelling.",
'wrongpassword' => 'The password you entered is incorrect (or missing). Please try again.',
-'mailmypassword' => 'Mail me a temporary password',
-'mailmypasswordauthent' => 'Mail me a temporary password',
-'passwordremindermailsubject' => "Email address authentication and temporary login password from {{SITENAME}}",
-'passwordremindermailbody' => "Someone, probably you from IP address $1,
-requested that we send you a temporary one-time login password for {{SITENAME}}.
-
-This mail is also be sent for the purpose of authentication of your email address.
-The password for user \"$2\" is now \"$4\".
-
-You can now log in with this temporary password, which is valid for only one login.
-You may wish to keep using your old password if you remember it or to set a new one.
-
-{{SERVER}}{{localurl:Special:Userlogin|wpName=$3&wpPassword=$4&returnto=Special:Preferences}}",
+'mailmypassword' => 'Mail me a new password',
+'passwordremindertitle' => "Password reminder from {{SITENAME}}",
+'passwordremindertext' => "Someone (probably you, from IP address $1)
+requested that we send you a new {{SITENAME}} login password.
+The password for user \"$2\" is now \"$3\".
+You should log in and change your password now.",
'noemail' => "There is no e-mail address recorded for user \"$1\".",
-'passwordsent' => "A temporary password has been sent to the e-mail address registered for \"$1\".
+'passwordsent' => "A new password has been sent to the e-mail address
+registered for \"$1\".
Please log in again after you receive it.",
'eauthentsent' => "A confirmation email has been sent to the nominated email address.
Before any other mail is sent to the account, you will have to follow the instructions in the email,
'savefile' => 'Save file',
'uploadedimage' => "uploaded \"[[$1]]\"",
'uploaddisabled' => 'Sorry, uploading is disabled.',
-'uploadscripted' => 'This file contains HTML or script code that my be erronously be interpretet by a web browser.',
+'uploadscripted' => 'This file contains HTML or script code that my be erroneously be interpreted by a web browser.',
'uploadcorrupt' => 'The file is corrupt or has an incorrect extension. Please check the file and upload again.',
'uploadvirus' => 'The file contains a virus! Details: $1',
'sourcefilename' => 'Source filename',
There have been a total of '''$3''' page views, and '''$4''' page edits
since the wiki was setup.
That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
-'userstatstext' => "There are '''$1''' registered users.
-'''$2''' of these are administrators (see $3).",
+'userstatstext' => "There are '''$1''' registered users, of which
+'''$2''' (or '''$4%''') are administrators (see $3).",
# Maintenance Page
#
'specialpages' => 'Special pages',
'spheading' => 'Special pages for all users',
'restrictedpheading' => 'Restricted special pages',
-'asksqlpheading' => 'asksql level',
'blockpheading' => 'block level',
'createaccountpheading' => 'createaccount level',
'deletepheading' => 'delete level',
'unwatchthispage' => 'Stop watching',
'notanarticle' => 'Not a content page',
'watchnochange' => 'None of your watched items were edited in the time period displayed.',
-'watchdetails' => "($1 pages watched not counting talk pages;
-$2 total pages edited since cutoff;
-$3...
-<a href='$4'>show and edit complete list</a>.)",
+'watchdetails' => "* $1 pages watched not counting talk pages, $2 total pages edited in the specified period
+* Query method: $3
+* [[Special:Watchlist/edit|Show and edit complete watchlist]]
+",
+'wlheader-enotif' => "* Email notification is enabled.",
+'wlheader-showupdated' => "* Pages which have been changed since you last visited them are shown in '''bold'''",
'watchmethod-recent'=> 'checking recent edits for watched pages',
'watchmethod-list' => 'checking watched pages for recent edits',
'removechecked' => 'Remove checked items from watchlist',
'wlhide' => 'Hide',
'enotif_mailer' => '{{SITENAME}} Notification Mailer',
-'enotif_infotext' => "* Email notification is enabled
-* Pages which have been changed since you last visited them are shown in '''bold'''",
'enotif_reset' => 'Mark all pages visited',
'enotif_newpagetext'=> 'This is a new page.',
-'enotif_to' => '$WATCHINGUSERNAME_QP <$WATCHINGUSEREMAILADDR>',
'changed' => 'changed',
'created' => 'created',
'enotif_subject' => '{{SITENAME}} page $PAGETITLE has been $CHANGEDORCREATED by $PAGEEDITOR',
<br />Remember to remove the lock after your maintenance is complete.',
'unlockdbsuccesstext' => 'The database has been unlocked.',
-# SQL query
-#
-'asksql' => 'SQL query',
-'asksqltext' => "Use the form below to make a direct query of the
-database.
-Use single quotes ('like this') to delimit string literals.
-This can often add considerable load to the server, so please use
-this function sparingly.",
-'sqlislogged' => 'Please note that all queries are logged.',
-'sqlquery' => 'Enter query',
-'querybtn' => 'Submit query',
-'selectonly' => 'Only read-only queries are allowed.',
-'querysuccessful' => 'Query successful',
-
# Make sysop
'makesysoptitle' => 'Make a user into a sysop',
'makesysoptext' => 'This form is used by bureaucrats to turn ordinary users into administrators.
'val_of' => '$1 of $2',
'val_revision' => 'Revision',
'val_time' => 'Time',
-'val_user_stats_title' => 'Validation overview of user #$1',
+'val_user_stats_title' => 'Validation overview of user $1',
'val_my_stats_title' => 'My validation overview',
'val_list_header' => '<th>#</th><th>Topic</th><th>Range</th><th>Action</th>',
'val_add' => 'Add',
'val_show_my_ratings' => 'Show my validations',
'val_revision_number' => 'Revision #$1',
'val_warning' => '<b>Never, <i>ever</i>, change something here without <i>explicit</i> community consensus!</b>',
-'val_rev_for' => 'Revisions for ',
-'val_details_th_user' => 'User #$1',
+'val_rev_for' => 'Revisions for $1',
+'val_details_th_user' => 'User $1',
'val_validation_of' => 'Validation of "$1"',
'val_revision_of' => 'Revision of $1',
'val_revision_changes_ok' => 'Your ratings have been stored!',
'val_rev_stats_link' => 'See the validation statistics for "$1" <a href="$2">here</a>',
-'val_revision_stats_link' => '(<a href="$1">details</a>)',
+'val_revision_stats_link' => 'details',
'val_iamsure' => 'Check this box if you really mean it!',
+'val_details_th' => '<sub>User</sub> \\ <sup>Topic</sup>',
'val_clear_old' => 'Clear my older validation data',
'val_merge_old' => 'Use my previous assessment where selected \'No opinion\'',
-'val_form_note' => '<b>Hint:</b> Merging your data means that for the article
-revision you select, all options where you have specified <i>no opinion</i>
-will be set to the value and comment of the most recent revision for which you
-have expressed an opinion. For example, if you want to change a single option
-for a newer revision, but also keep your other settings for this article in
-this revision, just select which option you intend to <i>change</i>, and
-merging will fill in the other options with your previous settings.',
+'val_form_note' => "'''Hint:''' Merging your data means that for the article revision you select, all options where you have specified ''no opinion'' will be set to the value and comment of the most recent revision for which you have expressed an opinion. For example, if you want to change a single option for a newer revision, but also keep your other settings for this article in this revision, just select which option you intend to ''change'', and merging will fill in the other options with your previous settings.",
'val_noop' => 'No opinion',
+'val_topic_desc_page' => 'Project:Validation topics',
+'val_votepage_intro' => 'Change this text <a href="{{SERVER}}{{localurl:MediaWiki:Val_votepage_intro}}">here</a>!',
'val_percent' => '<b>$1%</b><br />($2 of $3 points<br />by $4 users)',
'val_percent_single' => '<b>$1%</b><br />($2 of $3 points<br />by one user)',
'val_total' => 'Total',
# Special:Import
'import' => 'Import pages',
+'importinterwiki' => 'Transwiki import',
'importtext' => 'Please export the file from the source wiki using the Special:Export utility, save it to your disk and upload it here.',
'importfailed' => "Import failed: $1",
'importnotext' => 'Empty or no text',
'importsuccess' => 'Import succeeded!',
'importhistoryconflict' => 'Conflicting history revision exists (may have imported this page before)',
+'importnosources' => 'No transwiki import sources have been defined and direct history uploads are disabled.',
# Keyboard access keys for power users
'accesskey-search' => 'f',
'newimages' => 'New images gallery',
'noimages' => 'Nothing to see.',
-'sitesettings' => 'Site Settings',
-
# short names for language variants used for language conversion links.
# to disable showing a particular link, set it to 'disable', e.g.
# 'variantname-zh-sg' => 'disable',
'exif-contrast' =>'Contrast',
'exif-saturation' =>'Saturation',
'exif-sharpness' =>'Sharpness',
-'exif-devicesettingdescription' =>'Desice settings description',
+'exif-devicesettingdescription' =>'Device settings description',
'exif-subjectdistancerange' =>'Subject distance range',
'exif-imageuniqueid' =>'Unique image ID',
'exif-gpsversionid' =>'GPS tag version',
'exif-subjectdistancerange-2' => 'Close view',
'exif-subjectdistancerange-3' => 'Distant view',
-'exif-gpslatituderef-n' => 'North latitude',
-'exif-gpslatituderef-s' => 'South latitude',
+// Pseudotags used for GPSLatitudeRef and GPSDestLatitudeRef
+'exif-gpslatitude-n' => 'North latitude',
+'exif-gpslatitude-s' => 'South latitude',
-'exif-gpslongituderef-e' => 'East longitude',
-'exif-gpslongituderef-w' => 'West longitude',
+// Pseudotags used for GPSLongitudeRef and GPSDestLongitudeRef
+'exif-gpslongitude-e' => 'East longitude',
+'exif-gpslongitude-w' => 'West longitude',
'exif-gpsstatus-a' => 'Measurement in progress',
'exif-gpsstatus-v' => 'Measurement interoperability',
'exif-gpsmeasuremode-2' => '2-dimensional measurement',
'exif-gpsmeasuremode-3' => '3-dimensional measurement',
-'exif-gpsspeedref-k' => 'Kilometres per hour',
-'exif-gpsspeedref-m' => 'Miles per hour',
-'exif-gpsspeedref-n' => 'Knots',
-
-'exif-gpstrackref-t' => 'True direction',
-'exif-gpstrackref-m' => 'Magnetic direction',
-
-'exif-gpsimgdirectionref-t' => 'True direction',
-'exif-gpsimgdirectionref-m' => 'Magnetic direction',
-
-'exif-gpsdestlatituderef-n' => 'North latitude',
-'exif-gpsdestlatituderef-s' => 'South latitude',
+// Pseudotags used for GPSSpeedRef and GPSDestDistanceRef
+'exif-gpsspeed-k' => 'Kilometres per hour',
+'exif-gpsspeed-m' => 'Miles per hour',
+'exif-gpsspeed-n' => 'Knots',
-'exif-gpsdestlongituderef-e' => 'East longitude',
-'exif-gpsdestlongituderef-w' => 'West longitude',
-
-'exif-gpsdestbearingref-t' => 'True direction',
-'exif-gpsdestbearingref-m' => 'Magnetic direction',
-
-'exif-gpsdestdistanceref-k' => 'Kilometres per hour',
-'exif-gpsdestdistanceref-m' => 'Miles per hour',
-'exif-gpsdestdistanceref-n' => 'Knots',
+// Pseudotags used for GPSTrackRef, GPSImgDirectionRef and GPSDestBearingRef
+'exif-gpsdirection-t' => 'True direction',
+'exif-gpsdirection-m' => 'Magnetic direction',
# external editor support
'edit-externally' => 'Edit this file using an external application',
* </code>
*
* @param int $index the array key of the namespace to return
- * @return string
+ * @return mixed, string if the namespace value exists, otherwise false
*/
function getNsText( $index ) {
- global $wgNamespaceNamesEn;
- return $wgNamespaceNamesEn[$index];
+ $ns = $this->getNamespaces();
+ return isset( $ns[$index] ) ? $ns[$index] : false;
}
+
/**
* A convenience function that returns the same thing as
* getNsText() except with '_' changed to ' ', useful for
}
/**
- * Get a namespace key by value
+ * Get a namespace key by value, case insensetive.
*
* @param string $text
* @return mixed An integer if $text is a valid value otherwise false
*/
function getNsIndex( $text ) {
- global $wgNamespaceNamesEn;
-
- foreach ( $wgNamespaceNamesEn as $i => $n ) {
- if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
+ $ns = $this->getNamespaces();
+
+ foreach ( $ns as $i => $n ) {
+ if ( strcasecmp( $n, $text ) == 0)
+ return $i;
}
return false;
}
* @access public
*/
function linkTrail() {
- $trail = $this->getMessage( 'linktrail' );
- if( empty( $trail ) ) $trail = Language::linkTrail();
- return $trail;
+ return $this->getMessage( 'linktrail' );
}
function getLangObj() {