<?php
+#
+# In general you should not make customizations in these language files
+# directly, but should use the MediaWiki: special namespace to customize
+# user interface messages through the wiki.
+# See http://meta.wikipedia.org/wiki/MediaWiki_namespace
+#
+# NOTE TO TRANSLATORS: Do not copy this whole file when making translations!
+# A lot of common constants and a base class with inheritable methods are
+# defined here, which should not be redefined. See the other LanguageXx.php
+# files for examples.
+#
+
#--------------------------------------------------------------------------
# Constants
#--------------------------------------------------------------------------
define("MAG_IMG_NONE", 19);
define("MAG_IMG_WIDTH", 20);
define("MAG_IMG_CENTER", 21);
+define("MAG_INT", 22);
+define("MAG_FORCETOC", 23);
+define("MAG_SITENAME", 24);
+define("MAG_NS", 25);
+define("MAG_LOCALURL", 26);
+define("MAG_LOCALURLE", 27);
+define("MAG_SERVER", 28);
+
+$wgVariableIDs = array(
+ MAG_CURRENTMONTH,
+ MAG_CURRENTMONTHNAME,
+ MAG_CURRENTDAY,
+ MAG_CURRENTDAYNAME,
+ MAG_CURRENTYEAR,
+ MAG_CURRENTTIME,
+ MAG_NUMBEROFARTICLES,
+ MAG_CURRENTMONTHNAMEGEN,
+ MAG_SITENAME,
+ MAG_SERVER
+);
+
#--------------------------------------------------------------------------
$wgMetaNamespace = str_replace( " ", "_", $wgSitename );
/* private */ $wgNamespaceNamesEn = array(
- -2 => "Media",
- -1 => "Special",
- 0 => "",
- 1 => "Talk",
- 2 => "User",
- 3 => "User_talk",
- 4 => $wgMetaNamespace,
- 5 => $wgMetaNamespace . "_talk",
- 6 => "Image",
- 7 => "Image_talk",
- 8 => "MediaWiki",
- 9 => "MediaWiki_talk"
+ NS_MEDIA => "Media",
+ NS_SPECIAL => "Special",
+ NS_MAIN => "",
+ NS_TALK => "Talk",
+ NS_USER => "User",
+ NS_USER_TALK => "User_talk",
+ NS_WIKIPEDIA => $wgMetaNamespace,
+ NS_WIKIPEDIA_TALK => $wgMetaNamespace . "_talk",
+ NS_IMAGE => "Image",
+ NS_IMAGE_TALK => "Image_talk",
+ NS_MEDIAWIKI => "MediaWiki",
+ NS_MEDIAWIKI_TALK => "MediaWiki_talk",
+ NS_TEMPLATE => "Template",
+ NS_TEMPLATE_TALK => "Template_talk",
+ NS_HELP => "Help",
+ NS_HELP_TALK => "Help_talk"
);
/* private */ $wgDefaultUserOptionsEn = array(
"quickbar" => 1, "underline" => 1, "hover" => 1,
"cols" => 80, "rows" => 25, "searchlimit" => 20,
"contextlines" => 5, "contextchars" => 50,
- "skin" => 0, "math" => 1, "rcdays" => 7, "rclimit" => 50,
+ "skin" => 'standard', "math" => 1, "rcdays" => 7, "rclimit" => 50,
"highlightbroken" => 1, "stubthreshold" => 0,
"previewontop" => 1, "editsection"=>1,"editsectiononrightclick"=>0, "showtoc"=>1,
"showtoolbar" =>1,
);
/* private */ $wgSkinNamesEn = array(
- "Standard", "Nostalgia", "Cologne Blue", "Paddington", "Montparnasse"
+ 'standard' => "Standard",
+ 'nostalgia' => "Nostalgia",
+ 'cologneblue' => "Cologne Blue",
+ 'smarty' => "Paddington",
+ 'montparnasse' => "Montparnasse",
+ 'davinci' => "DaVinci",
+ 'mono' => "Mono",
+ 'monobook' => "MonoBook"
);
/* private */ $wgMathNamesEn = array(
"hideminor" => "Hide minor edits in recent changes",
"usenewrc" => "Enhanced recent changes (not for all browsers)",
"numberheadings" => "Auto-number headings",
- "showtoolbar"=>"Show edit box toolbar",
+ "showtoolbar"=>"Show edit toolbar",
"editondblclick" => "Edit pages on double click (JavaScript)",
"editsection"=>"Enable section editing via [edit] links",
- "editsectiononrightclick"=>"Enable section editing by right clicking<br> on section titles (JavaScript)",
- "showtoc"=>"Show table of contents<br>(for articles with more than 3 headings)",
+ "editsectiononrightclick"=>"Enable section editing by right clicking<br /> on section titles (JavaScript)",
+ "showtoc"=>"Show table of contents<br />(for articles with more than 3 headings)",
"rememberpassword" => "Remember password across sessions",
"editwidth" => "Edit box has full width",
"watchdefault" => "Add pages you edit to your watchlist",
"ab" => "Abkhazian", # Abkhazian - FIXME
"af" => "Afrikaans", # Afrikaans
"ak" => "Akana", # Akan
+ "an" => "Aragonés", # Aragonese
"als" => "Elsässische", # Alsatian
"am" => "አማርኛ", # Amharic
"ar" => "العربية", # Arabic
"arc" => "ܕܥܒܪܸܝܛ", # Aramaic
"as" => "অসমীয়া", # Assamese
+ "ast" => "Asturleonés", # Asturian
"av" => "Авар", # Avar
"ay" => "Aymar", # Aymara
"az" => "Azərbaycan", # Azerbaijani
"ba" => "Башҡорт", # Bashkir
- "be" => "Беларуская - (Belaruskaya)", # Belarusian ''or'' Byelarussian
- "bg" => "Български - (Bülgarski)", # Bulgarian
- "bh" => "Bihara",
+ "be" => "Беларуская", # Belarusian ''or'' Byelarussian
+ "bg" => "Български", # Bulgarian
+ "bh" => "भोजपुरी", # Bihara
"bi" => "Bislama", # Bislama
"bn" => "বাংলা - (Bangla)", # Bengali
+ "bm" => "Bambara",
"bo" => "Bod skad", # Tibetan
"br" => "Brezhoneg", # Breton
"bs" => "Bosanski", # Bosnian
"ca" => "Català", # Catalan
- "ce" => "Нохчийн - (Noxçiyn)", # Chechen
+ "ce" => "Нохчийн", # Chechen
"ch" => "Chamoru", # Chamorro
"chy" => "Tsetsêhestâhese", # Cheyenne
"co" => "Corsu", # Corsican
"cr" => "Nehiyaw", # Cree
"cs" => "Česky", # Czech
+ "csb" => "Kaszëbscziej", # Cassubian - FIXME
"cv" => "Чӑваш - (Ĉăvaŝ)", # Chuvash
"cy" => "Cymraeg", # Welsh
"da" => "Dansk", # Danish
"de" => "Deutsch", # German
"dk" => "Dansk", # 'da' is correct for the language.
"dv" => "Dhivehi", # Dhivehi
- "dz" => "(Dzongkha)", # Bhutani
+ "dz" => "Dzongkha", # Bhutani
"ee" => "Eve", # Eve
"el" => "Ελληνικά", # Greek
"en" => "English", # English
"haw" => "Hawai`i", # Hawaiian
"he" => "עברית", # Hebrew
"hi" => "हिन्दी", # Hindi
+ "ho" => "Hiri Motu",
"hr" => "Hrvatski", # Croatian
+ "ht" => "Haitian", # Haitian (FIXME!)
"hu" => "Magyar", # Hungarian
"hy" => "Հայերեն", # Armenian
"hz" => "Otsiherero", # Herero
"id" => "Bahasa Indonesia", # Indonesian
"ie" => "Interlingue", # Interlingue (Occidental)
"ig" => "Igbo", # Igbo
+ "ii" => "Yi", # Sichuan Yi (FIXME!)
"ik" => "Iñupiak", # Inupiak
"io" => "Ido", # Ido
"is" => "Íslensk", # Icelandic
"ja" => "日本語", # Japanese
"jv" => "Bahasa Jawa", # Javanese
"ka" => "ქართული", # Georgian
+ "kg" => "Kongo", # Kongo (FIXME!)
+ "ki" => "Kikuyu", # Kikuyu (FIXME!)
+ "kj" => "Kuanyama", # Kuanyama (FIXME!)
"kk" => "қазақша", # Kazakh
"kl" => "Kalaallisut", # Greenlandic
"km" => "ភាសាខ្មែរ", # Cambodian
"kn" => "ಕನ್ನಡ", # Kannada
"ko" => "한국어", # Korean
+ "kr" => "Kanuri",
"ks" => "कश्मीरी - (كشميري)", # Kashmiri
"ku" => "Kurdî", # Kurdish
+ "kv" => "Komi",
"kw" => "Kernewek", # Cornish
- "ky" => "Kirghiz",
+ "ky" => "Kırgızca", # Kirghiz
"la" => "Latina", # Latin
"lb" => "Lëtzebuergesch", # Luxemburguish
+ "lg" => "Luganda", # Ganda
"li" => "Limburgs", # Limburgian
"ln" => "Lingala", # Lingala
- "lo" => "(Pha xa lao)", # Laotian
+ "lo" => "Pha xa lao", # Laotian
"lt" => "Lietuvių", # Lithuanian
"lv" => "Latviešu", # Latvian
- "mi" => "Malagasy", # Malagasy - FIXME
+ "mg" => "Malagasy", # Malagasy - FIXME
"mh" => "Ebon", # Marshallese
"mi" => "Māori", # Maori
"mk" => "Македонски", # Macedonian
"mr" => "मराठी", # Marathi
"ms" => "Bahasa Melayu", # Malay
"mt" => "bil-Malti", # Maltese
- "my" => "(Myanmasa)", # Burmese
+ "my" => "Myanmasa", # Burmese
"na" => "Nauru", # Nauruan
+ "nb" => "Bokmål", # Norwegian (Bokmal)
"nah" => "Nahuatl",
"nds" => "Platdüütsch", # Low German ''or'' Low Saxon
"ne" => "नेपाली", # Nepali
+ "ng" => "Ndonga",
"nl" => "Nederlands", # Dutch
"nb" => "Norsk", # Norwegian [currently using old '''no''' code]
"ne" => "नेपाली", # Nepali
"nn" => "Nynorsk" , # (Norwegian) Nynorsk
- "no" => "Norsk",
+ "no" => "Norsk", # Norwegian
"nv" => "Diné bizaad", # Navajo
"ny" => "Chi-Chewa", # Chichewa
"oc" => "Occitan", # Occitan
"sd" => "सिनधि", # Sindhi
"se" => "Sámegiella", # (Northern) Sami
"sg" => "Sangro",
-# "sh" => "Српскохрватски (Srbskohrvatski)", ## -- Obsolete
- "si" => "(Simhala)", # Sinhalese
+# "sh" => "Српскохрватски (Srbskohrvatski)", ## Serbocroatian -- Obsolete
+ "si" => "Simhala", # Sinhalese
"simple" => "Simple English",
"sk" => "Slovenčina", # Slovak
"sl" => "Slovenščina", # Slovenian
"ti" => "Tigrinya", # Tigrinya - FIXME
"tk" => "تركمن / Туркмен", # Turkmen
"tl" => "Tagalog", # Tagalog (Filipino)
+ "tlh" => "tlhIngan-Hol", # Klingon
"tn" => "Setswana", # Setswana
"to" => "Tonga", # Tonga - FIXME
+ "tp" => "Toki Pona", # Toki Pona
+ "tpi" => "Tok Pisin", # Tok Pisin
"tr" => "Türkçe", # Turkish
"ts" => "Xitsonga", # Tsonga
"tt" => "Tatar", # Tatar
"Sep", "Oct", "Nov", "Dec"
);
+# Note to translators:
+# Please include the English words as synonyms. This allows people
+# from other wikis to contribute more easily.
+#
/* private */ $wgMagicWordsEn = array(
# ID CASE SYNONYMS
MAG_REDIRECT => array( 0, "#redirect" ),
MAG_NOTOC => array( 0, "__NOTOC__" ),
+ MAG_FORCETOC => array( 0, "__FORCETOC__" ),
MAG_NOEDITSECTION => array( 0, "__NOEDITSECTION__" ),
MAG_START => array( 0, "__START__" ),
- MAG_CURRENTMONTH => array( 1, "{{CURRENTMONTH}}" ),
- MAG_CURRENTMONTHNAME => array( 1, "{{CURRENTMONTHNAME}}" ),
- MAG_CURRENTDAY => array( 1, "{{CURRENTDAY}}" ),
- MAG_CURRENTDAYNAME => array( 1, "{{CURRENTDAYNAME}}" ),
- MAG_CURRENTYEAR => array( 1, "{{CURRENTYEAR}}" ),
- MAG_CURRENTTIME => array( 1, "{{CURRENTTIME}}" ),
- MAG_NUMBEROFARTICLES => array( 1, "{{NUMBEROFARTICLES}}" ),
- MAG_CURRENTMONTHNAMEGEN => array( 1, "{{CURRENTMONTHNAMEGEN}}"),
- MAG_MSG => array( 0, "{{MSG:$1}}" ),
- MAG_SUBST => array( 0, "{{SUBST:$1}}" ),
- MAG_MSGNW => array( 0, "{{MSGNW:$1}}" ),
+ MAG_CURRENTMONTH => array( 1, "CURRENTMONTH" ),
+ MAG_CURRENTMONTHNAME => array( 1, "CURRENTMONTHNAME" ),
+ MAG_CURRENTDAY => array( 1, "CURRENTDAY" ),
+ MAG_CURRENTDAYNAME => array( 1, "CURRENTDAYNAME" ),
+ MAG_CURRENTYEAR => array( 1, "CURRENTYEAR" ),
+ MAG_CURRENTTIME => array( 1, "CURRENTTIME" ),
+ MAG_NUMBEROFARTICLES => array( 1, "NUMBEROFARTICLES" ),
+ MAG_CURRENTMONTHNAMEGEN => array( 1, "CURRENTMONTHNAMEGEN" ),
+ MAG_MSG => array( 0, "MSG:" ),
+ MAG_SUBST => array( 0, "SUBST:" ),
+ MAG_MSGNW => array( 0, "MSGNW:" ),
MAG_END => array( 0, "__END__" ),
MAG_IMG_THUMBNAIL => array( 1, "thumbnail", "thumb" ),
MAG_IMG_RIGHT => array( 1, "right" ),
MAG_IMG_LEFT => array( 1, "left" ),
MAG_IMG_NONE => array( 1, "none" ),
MAG_IMG_WIDTH => array( 1, "$1px" ),
- MAG_IMG_CENTER => array( 1, "center", "centre" )
-
+ MAG_IMG_CENTER => array( 1, "center", "centre" ),
+ MAG_INT => array( 0, "INT:" ),
+ MAG_SITENAME => array( 1, "SITENAME" ),
+ MAG_NS => array( 0, "NS:" ),
+ MAG_LOCALURL => array( 0, "LOCALURL:" ),
+ MAG_LOCALURLE => array( 0, "LOCALURLE:" ),
+ MAG_SERVER => array( 0, "SERVER" )
);
# All special pages have to be listed here: a description of ""
"Longpages" => "Long articles",
"Newpages" => "Newly created articles",
"Ancientpages" => "Oldest articles",
- "Deadendpages" => "Dead-end pages",
+ "Deadendpages" => "Dead-end pages",
# "Intl" => "Interlanguage Links",
"Allpages" => "All pages by title",
"Whatlinkshere" => "",
"Recentchangeslinked" => "",
"Movepage" => "",
+ "Blockme" => "",
"Booksources" => "External book sources",
-# "Categories" => "Page categories",
+ "Categories" => "Page categories",
"Export" => "XML page export",
"Version" => "Show MediaWiki version",
+ "Allmessages" => "All system messages"
);
/* private */ $wgSysopSpecialPagesEn = array(
"Blockip" => "Block a user/IP address",
"Asksql" => "Query the database",
"Undelete" => "Restore deleted pages",
- "Makesysop" => "Turn a user into a sysop"
+ "Makesysop" => "Turn a user into a sysop",
+ "Import" => "Import a page with history",
);
/* private */ $wgDeveloperSpecialPagesEn = array(
"category_header" => "Articles in category \"$1\"",
"subcategories" => "Subcategories",
+
"linktrail" => "/^([a-z]+)(.*)\$/sD",
"mainpage" => "Main Page",
"mainpagetext" => "Wiki software successfully installed.",
"about" => "About",
-"aboutwikipedia" => "About $wgSitename",
-"aboutpage" => "$wgMetaNamespace:About",
+"aboutwikipedia" => "About {{SITENAME}}",
+"aboutpage" => "{{ns:4}}:About",
+'article' => 'Article',
"help" => "Help",
-"helppage" => "$wgMetaNamespace:Help",
-"wikititlesuffix" => "$wgSitename",
+"helppage" => "{{ns:12}}:Contents",
+"wikititlesuffix" => "{{SITENAME}}",
"bugreports" => "Bug reports",
-"bugreportspage" => "$wgMetaNamespace:Bug_reports",
-"sitesupport" => "Donations",
-"sitesupportpage" => "", # If not set, won't appear. Can be wiki page or URL
+"bugreportspage" => "{{ns:4}}:Bug_reports",
+"sitesupport" => "Donations", # Set a URL in $wgSiteSupportPage in LocalSettings.php
"faq" => "FAQ",
-"faqpage" => "$wgMetaNamespace:FAQ",
+"faqpage" => "{{ns:4}}:FAQ",
"edithelp" => "Editing help",
-"edithelppage" => "$wgMetaNamespace:How_does_one_edit_a_page",
+"edithelppage" => "{{ns:12}}:Editing",
"cancel" => "Cancel",
"qbfind" => "Find",
"qbbrowse" => "Browse",
"moredotdotdot" => "More...",
"mypage" => "My page",
"mytalk" => "My talk",
+'navigation' => 'Navigation',
"currentevents" => "Current events",
"disclaimers" => "Disclaimers",
-"disclaimerpage" => "$wgMetaNamespace:General_disclaimer",
+"disclaimerpage" => "{{ns:4}}:General_disclaimer",
"errorpagetitle" => "Error",
"returnto" => "Return to $1.",
-"fromwikipedia" => "From $wgSitename, the free encyclopedia.",
+"fromwikipedia" => "From {{SITENAME}}, the free encyclopedia.",
"whatlinkshere" => "Pages that link here",
"help" => "Help",
"search" => "Search",
"go" => "Go",
"history" => "Page history",
+'history_short' => 'History',
"printableversion" => "Printable version",
+'edit' => 'Edit',
"editthispage" => "Edit this page",
+'delete' => 'Delete',
"deletethispage" => "Delete this page",
+'protect' => 'Protect',
"protectthispage" => "Protect this page",
+'unprotect' => 'Unprotect',
"unprotectthispage" => "Unprotect this page",
"newpage" => "New page",
"talkpage" => "Discuss this page",
+'specialpage' => 'Special Page',
+'personaltools' => 'Personal tools',
"postcomment" => "Post a comment",
"articlepage" => "View article",
"subjectpage" => "View subject", # For compatibility
+'talk' => 'Discussion',
+'toolbox' => 'Toolbox',
"userpage" => "View user page",
"wikipediapage" => "View meta page",
"imagepage" => "View image page",
"redirectedfrom" => "(Redirected from $1)",
"lastmodified" => "This page was last modified $1.",
"viewcount" => "This page has been accessed $1 times.",
-"gnunote" => "All text is available under the terms of the <a class=internal href='/wiki/GNU_FDL'>GNU Free Documentation License</a>.",
-"printsubtitle" => "(From http://www.wikipedia.org)",
+"gnunote" => "All text is available under the terms of the <a class='internal' href='{{localurl:GNU_Free_Documentation_License}}'>GNU Free Documentation License</a>. $wgSitename is powered by <a href='http://www.mediawiki.org/' class='external'>MediaWiki</a>, an open source wiki engine.",
+"printsubtitle" => "(From {{SERVER}})",
"protectedpage" => "Protected page",
-"administrators" => "$wgMetaNamespace:Administrators",
+"administrators" => "{{ns:4}}:Administrators",
"sysoptitle" => "Sysop access required",
"sysoptext" => "The action you have requested can only be
performed by users with \"sysop\" status.
"nbytes" => "$1 bytes",
"go" => "Go",
"ok" => "OK",
-"sitetitle" => "$wgSitename",
+"sitetitle" => "{{SITENAME}}",
"sitesubtitle" => "The Free Encyclopedia",
"retrievedfrom" => "Retrieved from \"$1\"",
"newmessages" => "You have $1.",
because it slows the database down to the point that no one can use
the wiki.",
"perfdisabledsub" => "Here's a saved copy from $1:",
-"wrong_wfQuery_params" => "Incorrect parameters to wfQuery()<br>
-Function: $1<br>
+"wrong_wfQuery_params" => "Incorrect parameters to wfQuery()<br />
+Function: $1<br />
Query: $2
",
"viewsource" => "View source",
"protectedtext" => "This page has been locked to prevent editing; there are
a number of reasons why this may be so, please see
-[[$wgMetaNamespace:Protected page]].
+[[{{ns:4}}:Protected page]].
You can view and copy the source of this page:",
#
"logouttitle" => "User logout",
"logouttext" => "You are now logged out.
-You can continue to use $wgSitename anonymously, or you can log in
+You can continue to use {{SITENAME}} anonymously, or you can log in
again as the same or as a different user. Note that some pages may
continue to be displayed as if you were still logged in, until you clear
your browser cache\n",
"welcomecreation" => "<h2>Welcome, $1!</h2><p>Your account has been created.
-Don't forget to change your wikipedia preferences.",
+Don't forget to change your {{SITENAME}} preferences.",
"loginpagetitle" => "User login",
"yourname" => "Your user name",
"yourpasswordagain" => "Retype password",
"newusersonly" => " (new users only)",
"remembermypassword" => "Remember my password across sessions.",
-"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",
+"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",
"login" => "Log in",
-"loginprompt" => "You must have cookies enabled to log in to $wgSitename.",
+"loginprompt" => "You must have cookies enabled to log in to {{SITENAME}}.",
"userlogin" => "Log in",
"logout" => "Log out",
"userlogout" => "Log out",
"notloggedin" => "Not logged in",
"createaccount" => "Create new account",
-"createaccountmail" => "by eMail",
+"createaccountmail" => "by email",
"badretype" => "The passwords you entered do not match.",
"userexists" => "The user name you entered is already in use. Please choose a different name.",
-"youremail" => "Your e-mail*",
+"youremail" => "Your email*",
"yournick" => "Your nickname (for signatures)",
"emailforlost" => "* Entering an email address is optional. But it enables people to
contact you through the website without you having to reveal your
email address to them, and it also helps you if you forget your
password.",
"loginerror" => "Login error",
-"nocookiesnew" => "The user account was created, but you are not logged in. $wgSitename uses cookies to log in users. You have cookies disabled. Please enable them, then log in with your new username and password.",
-"nocookieslogin" => "$wgSitename uses cookies to log in users. You have cookies disabled. Please enable them and try again.",
+"nocookiesnew" => "The user account was created, but you are not logged in. {{SITENAME}} uses cookies to log in users. You have cookies disabled. Please enable them, then log in with your new username and password.",
+"nocookieslogin" => "{{SITENAME}} uses cookies to log in users. You have cookies disabled. Please enable them and try again.",
"noname" => "You have not specified a valid user name.",
"loginsuccesstitle" => "Login successful",
-"loginsuccess" => "You are now logged in to $wgSitename as \"$1\".",
+"loginsuccess" => "You are now logged in to {{SITENAME}} as \"$1\".",
"nosuchuser" => "There is no user by the name \"$1\".
Check your spelling, or use the form below to create a new user account.",
"wrongpassword" => "The password you entered is incorrect. Please try again.",
"mailmypassword" => "Mail me a new password",
-"passwordremindertitle" => "Password reminder from $wgSitename",
+"passwordremindertitle" => "Password reminder from {{SITENAME}}",
"passwordremindertext" => "Someone (probably you, from IP address $1)
-requested that we send you a new $wgSitename login password.
+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 new password has been sent to the e-mail address
registered for \"$1\".
Please log in again after you receive it.",
-"loginend" => "",
+"loginend" => " ",
+"mailerror" => "Error sending mail: $1",
# Edit page toolbar
"bold_sample"=>"Bold text",
"sig_tip"=>"Your signature with timestamp",
"hr_tip"=>"Horizontal line (use sparingly)",
"infobox"=>"Click a button to get an example text",
+# alert box shown in browsers where text selection does not work, test e.g. with mozilla or konqueror
+"infobox_alert"=>"Please enter the text you want to be formatted.\\n It will be shown in the infobox for copy and pasting.\\nExample:\\n$1\\nwill become:\\n$2",
# Edit pages
#
"showpreview" => "Show preview",
"blockedtitle" => "User is blocked",
"blockedtext" => "Your user name or IP address has been blocked by $1.
-The reason given is this:<br>''$2''<p>You may contact $1 or one of the other
-[[$wgMetaNamespace:Administrators|administrators]] to discuss the block.
+The reason given is this:<br />''$2''<p>You may contact $1 or one of the other
+[[{{ns4}}:Administrators|administrators]] to discuss the block.
Note that you may not use the \"email this user\" feature unless you have a valid email address registered in your [[Special:Preferences|user preferences]].
"whitelistreadtext" => "You have to [[Special:Userlogin|login]] to read articles.",
"whitelistacctitle" => "You are not allowed to create an account",
"whitelistacctext" => "To be allowed to create accounts in this Wiki you have to [[Special:Userlogin|log]] in and have the appropriate permissions.",
+"loginreqtitle" => "Login Required",
+"loginreqtext" => "You must [[special:Userlogin|login]] to view other pages.",
"accmailtitle" => "Password sent.",
"accmailtext" => "The Password for '$1' has been sent to $2.",
"newarticle" => "(New)",
"newarticletext" =>
"You've followed a link to a page that doesn't exist yet.
To create the page, start typing in the box below
-(see the [[$wgMetaNamespace:Help|help page]] for more info).
+(see the [[{{ns:4}}:Help|help page]] for more info).
If you are here by mistake, just click your browser's '''back''' button.",
+"talkpagetext" => "<!-- MediaWiki:talkpagetext -->",
"anontalkpagetext" => "---- ''This is the discussion page for an anonymous user who has not created an account yet or who does not use it. We therefore have to use the numerical [[IP address]] to identify him/her. Such an IP address can be shared by several users. If you are an anonymous user and feel that irrelevant comments have been directed at you, please [[Special:Userlogin|create an account or log in]] to avoid future confusion with other anonymous users.'' ",
"noarticletext" => "(There is currently no text in this page)",
"updated" => "(Updated)",
If you save it, any changes made since this revision will be lost.</strong>\n",
"yourdiff" => "Differences",
# FIXME: This is inappropriate for third-party use!
-"copyrightwarning" => "Please note that all contributions to $wgSitename are
+"copyrightwarning" => "Please note that all contributions to {{SITENAME}} are
considered to be released under the GNU Free Documentation License
(see $1 for details).
If you don't want your writing to be edited mercilessly and redistributed
-at will, then don't submit it here.<br>
+at will, then don't submit it here.<br />
You are also promising us that you wrote this yourself, or copied it from a
public domain or similar free resource.
<strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
the text into a text file and save it for later.",
"protectedpagewarning" => "WARNING: This page has been locked so that only
users with sysop privileges can edit it. Be sure you are following the
-<a href='/wiki/$wgMetaNamespace:Protected_page_guidelines'>protected page
+<a href='$wgScriptPath/{{ns:4}}:Protected_page_guidelines'>protected page
guidelines</a>.",
# History pages
# Search results
#
"searchresults" => "Search results",
-"searchhelppage" => "$wgMetaNamespace:Searching",
-"searchingwikipedia" => "Searching $wgSitename",
-"searchresulttext" => "For more information about searching $wgSitename, see $1.",
+"searchhelppage" => "{{ns:4}}:Searching",
+"searchingwikipedia" => "Searching {{SITENAME}}",
+"searchresulttext" => "For more information about searching {{SITENAME}}, see $1.",
"searchquery" => "For query \"$1\"",
"badquery" => "Badly formed search query",
"badquerytext" => "We could not process your query.
containing all of the search terms will appear in the result).",
"powersearch" => "Search",
"powersearchtext" => "
-Search in namespaces :<br>
-$1<br>
+Search in namespaces :<br />
+$1<br />
$2 List redirects Search for $3 $9",
"searchdisabled" => "<p>Sorry! Full text search has been disabled temporarily, for performance reasons. In the meantime, you can use the Google search below, which may be out of date.</p>",
"googlesearch" => "
<INPUT TYPE=text name=q size=31 maxlength=255 value=\"$1\">
<INPUT type=submit name=btnG VALUE=\"Google Search\">
<font size=-1>
-<input type=hidden name=domains value=\"{$wgServer}\"><br><input type=radio name=sitesearch value=\"\"> WWW <input type=radio name=sitesearch value=\"{$wgServer}\" checked> {$wgServer} <br>
+<input type=hidden name=domains value=\"{{SERVER}}\"><br /><input type=radio name=sitesearch value=\"\"> WWW <input type=radio name=sitesearch value=\"{{SERVER}}\" checked> {{SERVER}} <br />
<input type='hidden' name='ie' value='$2'>
<input type='hidden' name='oe' value='$2'>
</font>
#
"preferences" => "Preferences",
"prefsnologin" => "Not logged in",
-"prefsnologintext" => "You must be <a href=\"" .
- wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
+"prefsnologintext" => "You must be <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
to set user preferences.",
"prefslogintext" => "You are logged in as \"$1\".
Your internal ID number is $2.
-See [[$wgMetaNamespace:User preferences help]] for help deciphering the options.",
+See [[{{ns:4}}:User preferences help]] for help deciphering the options.",
"prefsreset" => "Preferences have been reset from storage.",
"qbsettings" => "Quickbar settings",
"changepassword" => "Change password",
"math_unknown_function" => "unknown function ",
"math_lexing_error" => "lexing error",
"math_syntax_error" => "syntax error",
-"math_image_error" => "PNG conversion failed",
+"math_image_error" => "PNG conversion failed; check for correct installation of latex, dvips, gs, and convert",
+"math_bad_tmpdir" => "Can't write to or create math temp directory",
+"math_bad_output" => "Can't write to or create math output directory",
+"math_notexvc" => "Missing texvc executable; please see math/README to configure.",
"saveprefs" => "Save preferences",
"resetprefs" => "Reset preferences",
"oldpassword" => "Old password",
# "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 ",
-"rclinks" => "Show last $1 changes in last $2 days<br>$3",
+"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",
"diff" => "diff",
"reupload" => "Re-upload",
"reuploaddesc" => "Return to the upload form.",
"uploadnologin" => "Not logged in",
-"uploadnologintext" => "You must be <a href=\"" .
- wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
+"uploadnologintext" => "You must be <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
to upload files.",
"uploadfile" => "Upload images, sounds, documents etc.",
"uploaderror" => "Upload error",
"uploadtext" => "<strong>STOP!</strong> Before you upload here,
-make sure to read and follow the <a href=\"" .
-wfLocalUrlE( "$wgMetaNamespace:Image_use_policy" ) . "\">image use policy</a>.
+make sure to read and follow the <a href=\"{{localurle:Special:Image_use_policy}}\">image use policy</a>.
<p>If a file with the name you are specifying already
exists on the wiki, it'll be replaced without warning.
So unless you mean to update a file, it's a good idea
to first check if such a file exists.
<p>To view or search previously uploaded images,
-go to the <a href=\"" . wfLocalUrlE( "Special:Imagelist" ) .
-"\">list of uploaded images</a>.
-Uploads and deletions are logged on the <a href=\"" .
-wfLocalUrlE( "$wgMetaNamespace:Upload_log" ) . "\">upload log</a>.
+go to the <a href=\"{{localurle:Special:Imagelist}}\">list of uploaded images</a>.
+Uploads and deletions are logged on the " .
+"<a href=\"{{localurle:Wikipedia:Upload_log}}\">upload log</a>.
<p>Use the form below to upload new image files for use in
illustrating your articles.
On most browsers, you will see a \"Browse...\" button, which will
"filesource" => "Source",
"affirmation" => "I affirm that the copyright holder of this file
agrees to license it under the terms of the $1.",
-"copyrightpage" => "$wgMetaNamespace:Copyrights",
-"copyrightpagename" => "$wgSitename copyright",
+"copyrightpage" => "{{ns:4}}:Copyrights",
+"copyrightpagename" => "{{SITENAME}} copyright",
"uploadedfiles" => "Uploaded files",
"noaffirmation" => "You must affirm that your upload does not violate
any copyrights.",
"deleteimg" => "del",
"imghistlegend" => "Legend: (cur) = this is the current image, (del) = delete
this old version, (rev) = revert to this old version.
-<br><i>Click on date to see image uploaded on that date</i>.",
+<br /><i>Click on date to see image uploaded on that date</i>.",
"imagelinks" => "Image links",
"linkstoimage" => "The following pages link to this image:",
"nolinkstoimage" => "There are no pages that link to this image.",
"sitestats" => "Site statistics",
"userstats" => "User statistics",
"sitestatstext" => "There are <b>$1</b> total pages in the database.
-This includes \"talk\" pages, pages about $wgSitename, minimal \"stub\"
+This includes \"talk\" pages, pages about {{SITENAME}}, minimal \"stub\"
pages, redirects, and others that probably don't qualify as articles.
Excluding those, there are <b>$2</b> pages that are probably legitimate
articles.<p>
"maintnancepagetext" => "This page includes several handy tools for everyday maintenance. Some of these functions tend to stress the database, so please do not hit reload after every item you fixed ;-)",
"maintenancebacklink" => "Back to Maintenance Page",
"disambiguations" => "Disambiguation pages",
-"disambiguationspage" => "$wgMetaNamespace:Links_to_disambiguating_pages",
-"disambiguationstext" => "The following articles link to a <i>disambiguation page</i>. They should link to the appropriate topic instead.<br>A page is treated as dismbiguation if it is linked from $1.<br>Links from other namespaces are <i>not</i> listed here.",
+"disambiguationspage" => "{{ns:4}}:Links_to_disambiguating_pages",
+"disambiguationstext" => "The following articles link to a <i>disambiguation page</i>. They should link to the appropriate topic instead.<br />A page is treated as dismbiguation if it is linked from $1.<br />Links from other namespaces are <i>not</i> listed here.",
"doubleredirects" => "Double Redirects",
-"doubleredirectstext" => "<b>Attention:</b> This list may contain false positives. That usually means there is additional text with links below the first #REDIRECT.<br>\nEach row contains links to the first and second redirect, as well as the first line of the second redirect text, usually giving the \"real\" taget article, which the first redirect should point to.",
+"doubleredirectstext" => "<b>Attention:</b> This list may contain false positives. That usually means there is additional text with links below the first #REDIRECT.<br />\nEach row contains links to the first and second redirect, as well as the first line of the second redirect text, usually giving the \"real\" taget article, which the first redirect should point to.",
"brokenredirects" => "Broken Redirects",
"brokenredirectstext" => "The following redirects link to a non-existing article.",
"selflinks" => "Pages with Self Links",
"newpages" => "New pages",
"ancientpages" => "Oldest articles",
"intl" => "Interlanguage links",
+'move' => 'Move',
"movethispage" => "Move this page",
-"unusedimagestext" => "<p>Please note that other web sites
-such as the international Wikipedias may link to an image with
+"unusedimagestext" => "<p>Please note that other web sites may link to an image with
a direct URL, and so may still be listed here despite being
in active use.",
"booksources" => "Book sources",
"booksourcetext" => "Below is a list of links to other sites that
sell new and used books, and may also have further information
about books you are looking for.
-$wgSitename is not affiliated with any of these businesses, and
+{{SITENAME}} is not affiliated with any of these businesses, and
this list should not be construed as an endorsement.",
+"rfcurl" => "http://www.faqs.org/rfcs/rfc$1.html",
"alphaindexline" => "$1 to $2",
"version" => "Version",
# Email this user
#
"mailnologin" => "No send address",
-"mailnologintext" => "You must be <a href=\"" .
- wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
-and have a valid e-mail address in your <a href=\"" .
- wfLocalUrl( "Special:Preferences" ) . "\">preferences</a>
+"mailnologintext" => "You must be <a href=\"{{localurl:Special:Userlogin\">logged in</a>
+and have a valid e-mail address in your <a href=\"{{localurl:Special:Preferences}}\">preferences</a>
to send e-mail to other users.",
"emailuser" => "E-mail this user",
"emailpage" => "E-mail user",
The e-mail address you entered in your user preferences will appear
as the \"From\" address of the mail, so the recipient will be able
to reply.",
-"defemailsubject" => "$wgSitename e-mail",
+"usermailererror" => "Mail object returned error: ",
+"defemailsubject" => "{{SITENAME}} e-mail",
"noemailtitle" => "No e-mail address",
"noemailtext" => "This user has not specified a valid e-mail address,
or has chosen not to receive e-mail from other users.",
"watchlistsub" => "(for user \"$1\")",
"nowatchlist" => "You have no items on your watchlist.",
"watchnologin" => "Not logged in",
-"watchnologintext" => "You must be <a href=\"" .
- wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
+"watchnologintext" => "You must be <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
to modify your watchlist.",
"addedwatch" => "Added to watchlist",
-"addedwatchtext" => "The page \"$1\" has been added to your <a href=\"" .
- wfLocalUrl( "Special:Watchlist" ) . "\">watchlist</a>.
+"addedwatchtext" => "The page \"$1\" has been added to your <a href=\"{{localurl:Special:Watchlist}}\">watchlist</a>.
Future changes to this page and its associated Talk page will be listed there,
-and the page will appear <b>bolded</b> in the <a href=\"" .
- wfLocalUrl( "Special:Recentchanges" ) . "\">list of recent changes</a> to
+and the page will appear <b>bolded</b> in the <a href=\"{{localurl:Special:Recentchanges}}\">list of recent changes</a> to
make it easier to pick out.</p>
<p>If you want to remove the page from your watchlist later, click \"Stop watching\" in the sidebar.",
"removedwatch" => "Removed from watchlist",
"removedwatchtext" => "The page \"$1\" has been removed from your watchlist.",
+'watch' => 'Watch',
"watchthispage" => "Watch this page",
+'unwatch' => 'Unwatch',
"unwatchthispage" => "Stop watching",
"notanarticle" => "Not an article",
"watchnochange" => "None of your watched items were edited in the time period displayed.",
or image along with all of its history from the database.
Please confirm that you intend to do this, that you understand the
consequences, and that you are doing this in accordance with
-[[$wgMetaNamespace:Policy]].",
+[[{{ns:4}}:Policy]].",
"confirmcheck" => "Yes, I really want to delete this.",
"actioncomplete" => "Action complete",
"deletedtext" => "\"$1\" has been deleted.
"deletecomment" => "Reason for deletion",
"imagereverted" => "Revert to earlier version was successful.",
"rollback" => "Roll back edits",
+'rollback_short' => 'Rollback',
"rollbacklink" => "rollback",
"rollbackfailed" => "Rollback failed",
"cantrollback" => "Cannot revert edit; last contributor is only author of this article.",
"revertpage" => "Reverted edit of $2, changed back to last version by $1",
"protectlogpage" => "Protection_log",
"protectlogtext" => "Below is a list of page locks/unlocks.
-See [[$wgMetaNamespace:Protected page]] for more information.",
+See [[{{ns:4}}:Protected page]] for more information.",
"protectedarticle" => "protected [[$1]]",
"unprotectedarticle" => "unprotected [[$1]]",
"undeletebtn" => "Restore!",
"undeletedarticle" => "restored \"$1\"",
"undeletedtext" => "The article [[$1]] has been successfully restored.
-See [[$wgMetaNamespace:Deletion_log]] for a record of recent deletions and restorations.",
+See [[{{ns:4}}:Deletion_log]] for a record of recent deletions and restorations.",
# Contributions
#
"blockiptext" => "Use the form below to block write access
from a specific IP address or username.
This should be done only only to prevent vandalism, and in
-accordance with [[$wgMetaNamespace:Policy|policy]].
+accordance with [[{{ns:4}}:Policy|policy]].
Fill in a specific reason below (for example, citing particular
pages that were vandalized).",
"ipaddress" => "IP Address/username",
"noblockreason" => "You must supply a reason for the block.",
"blockipsuccesssub" => "Block succeeded",
"blockipsuccesstext" => "\"$1\" has been blocked.
-<br>See [[Special:Ipblocklist|IP block list]] to review blocks.",
+<br />See [[Special:Ipblocklist|IP block list]] to review blocks.",
"unblockip" => "Unblock user",
"unblockiptext" => "Use the form below to restore write access
to a previously blocked IP address or username.",
"range_block_disabled" => "The sysop ability to create range blocks is disabled.",
"ipb_expiry_invalid" => "Expiry time invalid.",
"ip_range_invalid" => "Invalid IP range.\n",
+"proxyblocker" => "Proxy blocker",
+"proxyblockreason" => "Your IP address has been blocked because it is an open proxy. Please contact your Internet service provider or tech support and inform them of this serious security problem.",
+"proxyblocksuccess" => "Done.\n",
# Developer tools
#
"lockdbsuccesssub" => "Database lock succeeded",
"unlockdbsuccesssub" => "Database lock removed",
"lockdbsuccesstext" => "The database has been locked.
-<br>Remember to remove the lock after your maintenance is complete.",
+<br />Remember to remove the lock after your maintenance is complete.",
"unlockdbsuccesstext" => "The database has been unlocked.",
# SQL query
Type the name of the user in the box and press the button to make the user an administrator",
"makesysopname" => "Name of the user:",
"makesysopsubmit" => "Make this user into a sysop",
-"makesysopok" => "<b>User '$1' is now a sysop</b>",
-"makesysopfail" => "<b>User '$1' could not be made into a sysop. (Did you enter the name correctly?)</b>",
+"makesysopok" => "<b>User \"$1\" is now a sysop</b>",
+"makesysopfail" => "<b>User \"$1\" could not be made into a sysop. (Did you enter the name correctly?)</b>",
"setbureaucratflag" => "Set bureaucrat flag",
"bureaucratlog" => "Bureaucrat_log",
-"bureaucratlogentry" => " set $1: $2",
+"bureaucratlogentry" => "Rights for user \"$1\" set \"$2\"",
+"rights" => "Rights:",
+"set_user_rights" => "Set user rights",
+"user_rights_set" => "<b>User rights for \"$1\" updated</b>",
+"set_rights_fail" => "<b>User rights for \"$1\" could not be set. (Did you enter the name correctly?)</b>",
+"makesysop" => "Make a user into a sysop",
# Move page
#
In those cases, you will have to move or merge the page manually if desired.",
"movearticle" => "Move page",
"movenologin" => "Not logged in",
-"movenologintext" => "You must be a registered user and <a href=\"" .
- wfLocalUrl( "Special:Userlogin" ) . "\">logged in</a>
+"movenologintext" => "You must be a registered user and <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
to move a page.",
"newtitle" => "To new title",
"movepagebtn" => "Move page",
# Namespace 8 related
-"allmessages" => "All_messages",
-"allmessagestext" => "This is a list of all messages available in the MediaWiki: namespace",
+"allmessages" => "All system messages",
+"allmessagestext" => "This is a list of all system messages available in the MediaWiki: namespace.",
# Thumbnails
-"thumbnail-more" => "Enlarge"
-
+"thumbnail-more" => "Enlarge",
+"missingimage" => "<b>Missing image</b><br /><i>$1</i>\n",
+
+# Special:Import
+"import" => "Import pages",
+"importtext" => "Blah blah blah",
+"importfailed" => "Import failed: $1",
+"importnotext" => "Empty or no text",
+"importsuccess" => "Import succeeded!",
+
+# Keyboard access keys for power users
+'accesskey-article' => 'a',
+'accesskey-talk' => 't',
+'accesskey-edit' => 'e',
+'accesskey-history' => 'h',
+'accesskey-protect' => 'p',
+'accesskey-delete' => 'd',
+'accesskey-move' => 'm',
+'accesskey-watch' => '',
+'accesskey-unwatch' => '',
+'accesskey-watchlist' => 'w',
+'accesskey-userpage' => '',
+'accesskey-mytalk' => '',
+'accesskey-preferences' => '',
+'accesskey-mycontris' => '',
+'accesskey-login' => 'l',
+'accesskey-search' => 's',
+'accesskey-mainpage' => '',
+'accesskey-randompage' => 'x',
+'accesskey-currentevents' => '',
+'accesskey-sitesupport' => '',
+'accesskey-help' => '',
+'accesskey-recentchanges' => 'r',
+'accesskey-recentchangeslinked' => 'c',
+'accesskey-whatlinkshere' => 'b',
+'accesskey-specialpages' => '',
+'accesskey-specialpage' => '',
+'accesskey-upload' => 'u',
+
+# tooltip help for the main actions
+'tooltip-article' => 'View the article [alt-a]',
+'tooltip-talk' => 'Discussion about the article [alt-t]',
+'tooltip-edit' => 'You can edit this page. Please use the preview button before saving. [alt-e]',
+'tooltip-history' => 'Past versions of this page, [alt-h]',
+'tooltip-protect' => 'Protect this page [alt-p]',
+'tooltip-delete' => 'Delete this page [alt-d]',
+'tooltip-move' => 'Move this page [alt-m]',
+'tooltip-nomove' => 'You don\'t have the permissions to move this page',
+'tooltip-watch' => 'Add this page to your watchlist',
+'tooltip-unwatch' => 'Remove this page from your watchlist',
+'tooltip-watchlist' => 'The watchlist is the list of pages you\'re monitoring for changes. [alt-w]',
+'tooltip-userpage' => 'My user page',
+'tooltip-mytalk' => 'My talk page',
+'tooltip-preferences' => 'My preferences',
+'tooltip-mycontris' => 'List of my contributions',
+'tooltip-login' => 'You are encouraged to log in before editing, it\'s not mandatory however.',
+'tooltip-logout' => 'The start button',
+'tooltip-search' => 'Search this wiki',
+'tooltip-mainpage' => 'Visit the Main Page',
+'tooltip-randompage' => 'Load a random page [alt-x]',
+'tooltip-currentevents' => 'Find background information on current events',
+'tooltip-sitesupport' => 'Support {{SITENAME}}',
+'tooltip-help' => 'The place to find out.',
+'tooltip-recentchanges' => 'The list of recent changes in the wiki. [alt-r]',
+'tooltip-recentchangeslinked' => 'Recent changes in pages linking to this page [alt-c]',
+'tooltip-whatlinkshere' => 'List of all wiki pages that link here [alt-b]',
+'tooltip-specialpages' => 'List of all special pages',
+'tooltip-upload' => 'Upload images or media files [alt-u]',
+'tooltip-specialpage' => 'This is a special page, you can\'t edit the page itself.',
+
+# Metadata
+"nodublincore" => "Dublin Core RDF metadata disabled for this server.",
+"nocreativecommons" => "Creative Commons RDF metadata disabled for this server.",
+"notacceptable" => "The wiki server can't provide data in a format your client can read.",
+
+# Attribution
+
+"anonymous" => "Anonymous user(s) of $wgSitename"
);
#--------------------------------------------------------------------------
function getDefaultUserOptions () {
global $wgDefaultUserOptionsEn ;
return $wgDefaultUserOptionsEn ;
- }
-
+ }
+
function getBookstoreList () {
global $wgBookstoreListEn ;
return $wgBookstoreListEn ;
function userAdjust( $ts )
{
global $wgUser, $wgLocalTZoffset;
-
+
$tz = $wgUser->getOption( "timecorrection" );
if ( $tz === "" ) {
$hrDiff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
$datePreference = $wgAmericanDates ? 1 : 2;
}
- if ( $datePreference == 1 ) {
- # MDY
- $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
- " " . (0 + substr( $ts, 6, 2 )) . ", " .
- substr( $ts, 0, 4 );
- } else if ( $datePreference == 2 ) {
- #DMY
- $d = (0 + substr( $ts, 6, 2 )) . " " .
- $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
- substr( $ts, 0, 4 );
- } else {
- #YMD
- $d = substr( $ts, 0, 4 ) . " " . $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
- " " . (0 + substr( $ts, 6, 2 ));
+ $month = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) );
+ $day = $this->formatNum( 0 + substr( $ts, 6, 2 ) );
+ $year = $this->formatNum( substr( $ts, 0, 4 ) );
+
+ switch( $datePreference ) {
+ case 1: return "$month $day, $year";
+ case 2: return "$day $month $year";
+ default: return "$year $month $day";
}
-
- return $d;
}
- function time( $ts, $adj = false )
+ function time( $ts, $adj = false, $seconds = false )
{
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
$t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
- return $t;
+ if ( $seconds ) {
+ $t .= ":" . substr( $ts, 12, 2 );
+ }
+ return $this->formatNum( $t );
}
function timeanddate( $ts, $adj = false )
function linkPrefixExtension() { return false; }
- function getMagicWords()
+ function &getMagicWords()
{
global $wgMagicWordsEn;
return $wgMagicWordsEn;
# Fill a MagicWord object with data from here
function getMagic( &$mw )
{
- $raw = $this->getMagicWords(); # don't worry, it's reference counted not deep copy
- $rawEntry = $raw[$mw->mId];
+ $raw =& $this->getMagicWords();
+ $rawEntry = $raw[$mw->mId];
$mw->mCaseSensitive = $rawEntry[0];
$mw->mSynonyms = array_slice( $rawEntry, 1 );
}
{
return "<em>$text</em>";
}
+
+ # returns additional Regex for the tokenizer. See LanguageFr.php for an example
+ function tokenizerRegex()
+ {
+ return "";
+ }
+
+ # Process the token generated from the tokenizer by the above regex. Return
+ # NULL if the token is unknown, and the text to be added to the output otherwise
+ function processToken( &$token , &$tokenStack)
+ {
+ return NULL;
+ }
+
+ # Normally we use the plain ASCII digits. Some languages such as Arabic will
+ # want to output numbers using script-appropriate characters: override this
+ # function with a translator. See LanguageAr.php for an example.
+ function formatNum( $number ) {
+ return $number;
+ }
+
}
@include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );