<?php
+if( defined( "MEDIAWIKI" ) ) {
+
#
# In general you should not make customizations in these language files
# directly, but should use the MediaWiki: special namespace to customize
MW_MATH_MATHML => 'mw_math_mathml'
);
+# Whether to use user or default setting in Language::date()
+define( "MW_DATE_DEFAULT", false );
+define( "MW_DATE_USER_FORMAT", true );
+
/* private */ $wgDateFormatsEn = array(
'No preference',
'January 15, 2001',
/* private */ $wgAllMessagesEn = array(
+'special_version_prefix' => '',
+'special_version_postfix' => '',
# User preference toggles
'tog-hover' => 'Show hoverbox over wiki links',
'tog-underline' => 'Underline links',
'login' => 'Log in',
'loginprompt' => "You must have cookies enabled to log in to {{SITENAME}}.",
-'userlogin' => 'Log in',
+'userlogin' => 'Create an account or log in',
'logout' => 'Log out',
'userlogout' => 'Log out',
'notloggedin' => 'Not logged in',
'rcnote' => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
'rcnotefrom' => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
'rclistfrom' => "Show new changes starting from $1",
-# "rclinks" => "Show last $1 changes in last $2 hours / last $3 days",
-# "rclinks" => "Show last $1 changes in last $2 days.",
-'showhideminor' => "$1 minor edits | $2 bots | $3 logged in users ",
+'showhideminor' => "$1 minor edits | $2 bots | $3 logged in users | $4 patrolled edits ",
'rclinks' => "Show last $1 changes in last $2 days<br />$3",
'rchide' => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
'rcliu' => "; $1 edits from logged in users",
'tableform' => 'table',
'listform' => 'list',
'nchanges' => "$1 changes",
-'minoreditletter' => 'M',
+'minoreditletter' => 'm',
'newpageletter' => 'N',
# Upload
'badfilename' => "Image name has been changed to \"$1\".",
'badfiletype' => "\".$1\" is not a recommended image file format.",
'largefile' => 'It is recommended that images not exceed 100k in size.',
+'emptyfile' => 'The file you uploaded seems to be empty. This might be due to a typo in the file name. Please check whether you really want to upload this file.',
'fileexists' => 'A file with this name exists already, please check $1 if you are not sure if you want to change it.',
'successfulupload' => 'Successful upload',
'fileuploaded' => "File uploaded successfully.
'geo' => 'GEO coordinates',
'validate' => 'Validate page',
'lonelypages' => 'Orphaned pages',
+'uncategorizedpages' => 'Uncategorized pages',
'unusedimages' => 'Unused images',
'popularpages' => 'Popular pages',
'nviews' => '$1 views',
# Contributions
#
-'contributions' => 'User contributions',
-'mycontris' => 'My contributions',
-'contribsub' => "For $1",
-'nocontribs' => 'No changes were found matching these criteria.',
-'ucnote' => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
-'uclinks' => "View the last $1 changes; view the last $2 days.",
-'uctop' => ' (top)' ,
+'contributions' => 'User contributions',
+'mycontris' => 'My contributions',
+'contribsub' => "For $1",
+'nocontribs' => 'No changes were found matching these criteria.',
+'ucnote' => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
+'uclinks' => "View the last $1 changes; view the last $2 days.",
+'uctop' => ' (top)' ,
+'newbies' => 'newbies',
# What links here
#
"numtalkauthors" => "Number of distinct authors (discussion page): $1",
# Math options
- 'mw_math_png' => 'Always render PNG',
- 'mw_math_simple' => 'HTML if very simple or else PNG',
- 'mw_math_html' => 'HTML if possible or else PNG',
- 'mw_math_source' => 'Leave it as TeX (for text browsers)',
- 'mw_math_modern' => 'Recommended for modern browsers',
- 'mw_math_mathml' => 'MathML if possible (experimental)',
+'mw_math_png' => 'Always render PNG',
+'mw_math_simple' => 'HTML if very simple or else PNG',
+'mw_math_html' => 'HTML if possible or else PNG',
+'mw_math_source' => 'Leave it as TeX (for text browsers)',
+'mw_math_modern' => 'Recommended for modern browsers',
+'mw_math_mathml' => 'MathML if possible (experimental)',
+
+# Patrolling
+'markaspatrolleddiff' => "Mark as patrolled",
+'markaspatrolledlink' => "<div class='patrollink'>[$1]</div>",
+'markaspatrolledtext' => "Mark this article as patrolled",
+'markedaspatrolled' => "Marked as patrolled",
+'markedaspatrolledtext' => "The selected revision has been marked as patrolled.",
+'rcpatroldisabled' => "Recent Changes Patrol disabled",
+'rcpatroldisabledtext' => "The Recent Changes Patrol feature is currently disabled.",
# Monobook.js: tooltips and access keys for monobook
'Monobook.js' => '/* tooltips and access keys */
return date( 'YmdHis', $t );
}
- function date( $ts, $adj = false )
+ function date( $ts, $adj = false, $format = MW_DATE_USER_FORMAT )
{
global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
-
if ( $wgUseDynamicDates ) {
- $datePreference = $wgUser->getOption( 'date' );
+ if ( $format == MW_DATE_USER_FORMAT ) {
+ $datePreference = $wgUser->getOption( 'date' );
+ } else {
+ $options = $this->getDefaultUserOptions();
+ $datePreference = $options['date'];
+ }
if ( $datePreference == 0 ) {
$datePreference = $wgAmericanDates ? 1 : 2;
}
return $this->formatNum( $t );
}
- function timeanddate( $ts, $adj = false )
+ function timeanddate( $ts, $adj = false, $format = MW_DATE_USER_FORMAT )
{
- return $this->time( $ts, $adj ) . ', ' . $this->date( $ts, $adj );
+ return $this->time( $ts, $adj ) . ', ' . $this->date( $ts, $adj, $format );
}
function rfc1123( $ts )
# Some languages have special punctuation to strip out
# or characters which need to be converted for MySQL's
# indexing to grok it correctly. Make such changes here.
- return $in;
+ return strtolower( $in );
}
function firstChar( $s ) {
}
return $s;
}
-
+
# Crop a string from the beginning or end to a certain number of bytes.
# (Bytes are used because our storage has limited byte lengths for some
# columns in the database.) Multibyte charsets will need to make sure that
# This should fail gracefully if there's not a localization available
@include_once( 'Language' . ucfirst( $wgLanguageCode ) . '.php' );
+
+}
?>