Optim's trailing text on Special:Userlogin
[lhc/web/wiklou.git] / languages / Language.php
index e0cee20..9b54441 100644 (file)
@@ -19,6 +19,13 @@ define("MAG_MSG", 11);
 define("MAG_SUBST", 12);
 define("MAG_MSGNW", 13);
 define("MAG_NOEDITSECTION", 14);
+define("MAG_END", 15);
+define("MAG_IMG_THUMBNAIL",  16);
+define("MAG_IMG_RIGHT",      17);
+define("MAG_IMG_LEFT",       18);
+define("MAG_IMG_NONE",       19);
+define("MAG_IMG_WIDTH",      20);
+
 
 #--------------------------------------------------------------------------
 # Language-specific text
@@ -27,6 +34,9 @@ define("MAG_NOEDITSECTION", 14);
 # NOTE: To turn off "Current Events" in the sidebar,
 # set "currentevents" => "-"
 
+# NOTE: To turn off "Disclaimers" in the title links,
+# set "disclaimers" => "-"
+
 # The names of the namespaces can be set here, but the numbers
 # are magical, so don't change or move them!  The Namespace class
 # encapsulates some of the magic-ness.
@@ -57,6 +67,7 @@ if($wgMetaNamespace === FALSE)
        "skin" => 0, "math" => 1, "rcdays" => 7, "rclimit" => 50,
        "highlightbroken" => 1, "stubthreshold" => 0,
        "previewontop" => 1, "editsection"=>1,"editsectiononrightclick"=>0, "showtoc"=>1,
+       "showtoolbar"=>1,
        "date" => 0
 );
 
@@ -93,6 +104,7 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "hideminor" => "Hide minor edits in recent changes",
        "usenewrc" => "Enhanced recent changes (not for all browsers)",
        "numberheadings" => "Auto-number headings",
+       "showtoolbar"=>"Show edit box 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)",
@@ -114,14 +126,15 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
 
 /* private */ $wgLanguageNamesEn = array(
        "aa"    => "Afar",
-       "ab"    => "Abkhazian",
+       "ab"    => "&#1040;&#1191;&#1089;&#1085;&#1099; (Apsny)",
        "af"    => "Afrikaans",
+       "als"   => "Els&auml;ssisch", # FIXME: not a real language code; is subsumed under 'gem'
        "am"    => "Amharic",
        "ar" => "&#8238;&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;&#8236; (Araby)",
        "as"    => "Assamese",
        "ay"    => "Aymara",
-       "az"    => "Azerbaijani",
-       "ba"    => "Bashkir",
+       "az"    => "&#1040;&#1079;&#1241;&#1088;&#1073;&#1072;&#1112;&#1209;&#1072;&#1085; (Azerbajan)",
+       "ba"    => "&#1041;&#1072;&#1096;&#1082;&#1086;&#1088;&#1090; (Bashkort)",
        "be" => "&#1041;&#1077;&#1083;&#1072;&#1088;&#1091;&#1089;&#1082;&#1080;",
        "bh"    => "Bihara",
        "bi"    => "Bislama",
@@ -151,15 +164,17 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "fr" => "Fran&#231;ais",
        "fy" => "Frysk",
        "ga" => "Gaelige",
+    "gd" => "G&agrave;idhlig",
        "gl"    => "Galician",
        "gn"    => "Guarani",
        "gu" => "&#2711;&#2753;&#2716;&#2736;&#2750;&#2724;&#2752; (Gujarati)",
+    "gv" => "Gaelg",
        "ha"    => "Hausa",
        "he" => "&#1506;&#1489;&#1512;&#1497;&#1514; (Ivrit)",
        "hi" => "&#2361;&#2367;&#2344;&#2381;&#2342;&#2368; (Hindi)",
        "hr" => "Hrvatski",
        "hu" => "Magyar",
-       "hy"    => "Armenian",
+       "hy"    => "&#1344;&#1377;&#1397;&#1381;&#1408;&#1383;&#1398; (Armjan)",
        "ia"    => "Interlingua",
        "id"    => "Indonesia",
        "ik"    => "Inupiak",
@@ -169,10 +184,10 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "ja" => "&#26085;&#26412;&#35486; (Nihongo)",
        "jv"    => "Javanese",
        "ka" => "&#4325;&#4304;&#4320;&#4311;&#4309;&#4308;&#4314;&#4312; (Kartuli)",
-       "kk"    => "Kazakh",
+       "kk"    => "&#1178;&#1072;&#1079;&#1072;&#1179; (Kazakh)",
        "kl"    => "Greenlandic",
        "km"    => "Cambodian",
-       "kn"    => "Kannada",
+       "kn"    => "&#3221;&#3240;&#3277;&#3240;&#3233; (Kannada)",
        "ko" => "&#54620;&#44397;&#50612; (Hangukeo)",
        "ks"    => "Kashmiri",
        "kw" => "Kernewek",
@@ -181,10 +196,10 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "ln"    => "Lingala",
        "lo"    => "Laotian",
        "lt" => "Lietuvi&#371;",
-       "lv"    => "Latvian",
+       "lv"    => "Latviešu",
        "mg" => "Malagasy",
        "mi"    => "Maori",
-       "mk"    => "Macedonian",
+       "mk"    => "Makedonš&#269;ina",
        "ml"    => "Malayalam",
        "mn"    => "Mongolian",
        "mo"    => "Moldavian",
@@ -192,6 +207,8 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "ms" => "Bahasa Melayu",
        "my"    => "Burmese",
        "na"    => "Nauru",
+       "nah"   => "Nahuatl",
+       "nds"   => "Plattd&uuml;&uuml;tsch",
        "ne" => "&#2344;&#2375;&#2346;&#2366;&#2354;&#2368; (Nepali)",
        "nl" => "Nederlands",
        "no" => "Norsk",
@@ -211,7 +228,7 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "sa" => "&#2360;&#2306;&#2360;&#2381;&#2325;&#2371;&#2340; (Samskrta)",
        "sd"    => "Sindhi",
        "sg"    => "Sangro",
-       "sh"    => "Serbocroatian",
+       "sh"    => "&#1057;&#1088;&#1087;&#1089;&#1082;&#1086;&#1093;&#1088;&#1074;&#1072;&#1090;&#1089;&#1082;&#1080; (Srbskohrvatski)",
        "si"    => "Sinhalese",
        "simple" => "Simple English",
        "sk"    => "Slovak",
@@ -219,15 +236,15 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "sm"    => "Samoan",
        "sn"    => "Shona",
        "so" => "Soomaali",
-       "sq" => "Shqiptare",
-       "sr" => "Srpski",
+       "sq" => "Shqip",
+       "sr" => "&#1057;&#1088;&#1087;&#1089;&#1082;&#1080; (Srpski)",
        "ss"    => "Siswati",
        "st"    => "Sesotho",
        "su"    => "Sundanese",
        "sv" => "Svenska",
        "sw" => "Kiswahili",
-       "ta"    => "Tamil",
-       "te"    => "Telugu",
+       "ta"    => "&#2980;&#2990;&#3007;&#2996;&#3021; (Tamil)",
+       "te"    => "&#3108;&#3142;&#3122;&#3137;&#3095;&#3137; (Telugu)",
        "tg"    => "Tajik",
        "th"    => "Thai",
        "ti"    => "Tigrinya",
@@ -237,13 +254,13 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "to"    => "Tonga",
        "tr" => "T&#252;rk&#231;e",
        "ts"    => "Tsonga",
-       "tt"    => "Tatar",
+       "tt"    => "&#1058;&#1072;&#1090;&#1072;&#1088; (Tatar)",
        "tw"    => "Twi",
        "ug"    => "Uighur",
        "uk" => "&#1059;&#1082;&#1088;&#1072;&#1111;&#1085;&#1089;&#1100;&#1082;&#1072; (Ukrayins`ka)",
        "ur"    => "Urdu",
-       "uz"    => "Uzbek",
-       "vi"    => "Vietnamese",
+       "uz"    => "&#1038;&#1079;&#1073;&#1077;&#1082; (Uzbek)",
+       "vi"    => "Ti&#7871;ng Vi&#7879;t",
        "vo" => "Volap&#252;k",
        "wo"    => "Wolof",
        "xh" => "isiXhosa",
@@ -280,17 +297,24 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
     MAG_START                => array( 0,    "__START__"              ),
     MAG_CURRENTMONTH         => array( 1,    "{{CURRENTMONTH}}"       ),
     MAG_CURRENTMONTHNAME     => array( 1,    "{{CURRENTMONTHNAME}}"   ),
-    MAG_CURRENTDAY           => array( 1,    "{{CURRENTDAY}}"         ),   
+    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( 1,    "{{MSG:$1}}"             ),
-       MAG_SUBST                => array( 1,    "{{SUBST:$1}}"           ),
-    MAG_MSGNW                => array( 1,    "{{MSGNW:$1}}"           )
+       MAG_MSG                  => array( 0,    "{{MSG:$1}}"             ),
+       MAG_SUBST                => array( 0,    "{{SUBST:$1}}"           ),
+    MAG_MSGNW                => array( 0,    "{{MSGNW:$1}}"           ),
+       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"                   )
+
 );
-       
+
 # All special pages have to be listed here: a description of ""
 # will make them not show up on the "Special Pages" page, which
 # is the right thing for some of them (such as the "targeted" ones).
@@ -315,6 +339,7 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "Longpages"             => "Long articles",
        "Newpages"              => "Newly created articles",
        "Ancientpages"  => "Oldest articles",
+        "Deadendpages"  => "Dead-end pages",
 #      "Intl"                => "Interlanguage Links",
        "Allpages"              => "All pages by title",
 
@@ -346,7 +371,7 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
 #-------------------------------------------------------------------
 # Default messages
 #-------------------------------------------------------------------
-# Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and 
+# Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and
 # hyphen (-). If you need more characters, you may be able to change
 # the regex in MagicWord::initRegex
 
@@ -388,6 +413,8 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
 "mypage"               => "My page",
 "mytalk"               => "My talk",
 "currentevents" => "Current events",
+"disclaimers" => "Disclaimers",
+"disclaimerpage"               => "$wgMetaNamespace:General_disclaimer",
 "errorpagetitle" => "Error",
 "returnto"             => "Return to $1.",
 "fromwikipedia"        => "From $wgSitename, the free encyclopedia.",
@@ -533,12 +560,8 @@ Don't forget to personalize your wikipedia preferences.",
 "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",
 
-"areyounew"            => "If you are new to $wgSitename and want to get a user account,
-enter a user name, then type and re-type a password.
-Your e-mail address is optional; if you lose your password you can request
-that it be to the address you give.<br>\n",
-
 "login"                        => "Log in",
+"loginprompt"           => "You must have cookies enabled to log in to $wgSitename.",
 "userlogin"            => "Log in",
 "logout"               => "Log out",
 "userlogout"   => "Log out",
@@ -554,8 +577,8 @@ 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",
-"nocookies"    => "Cookies disabled",
-"nocookiestext"        => "The wiki 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. $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.",
 "noname"               => "You have not specified a valid user name.",
 "loginsuccesstitle" => "Login successful",
 "loginsuccess" => "You are now logged in to $wgSitename as \"$1\".",
@@ -572,6 +595,30 @@ You should log in and change your password now.",
 "passwordsent" => "A new password has been sent to the e-mail address
 registered for \"$1\".
 Please log in again after you receive it.",
+"loginend"             => "",
+
+# Edit page toolbar
+"bold_sample"=>"Bold text",
+"bold_tip"=>"Bold text",
+"italic_sample"=>"Italic text",
+"italic_tip"=>"Italic text",
+"link_sample"=>"Link title",
+"link_tip"=>"Internal link",
+"extlink_sample"=>"http://www.example.com link title",
+"extlink_tip"=>"External link (remember http:// prefix)",
+"headline_sample"=>"Headline text",
+"headline_tip"=>"Level 2 headline",
+"math_sample"=>"Insert formula here",
+"math_tip"=>"Mathematical formula (LaTeX)",
+"nowiki_sample"=>"Insert non-formatted text here",
+"nowiki_tip"=>"Ignore wiki formatting",
+"image_sample"=>"Example.jpg",
+"image_tip"=>"Embedded image",
+"media_sample"=>"Example.mp3",
+"media_tip"=>"Media file link",
+"sig_tip"=>"Your signature with timestamp",
+"hr_tip"=>"Horizontal line (use sparingly)",
+"infobox"=>"Click a button to get an example text",
 
 # Edit pages
 #
@@ -585,14 +632,14 @@ Please log in again after you receive it.",
 "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. 
+[[$wgMetaNamespace: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]]. 
+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]].
 
 Your IP address is $3. Please include this address in any queries you make.
 
 ==Note to AOL users==
-Due to continuing acts of vandalism by one particular AOL user, Wikipedia often blocks AOL proxies. Unfortunately, a single proxy server may be used by a large number of AOL users, and hence innocent AOL users are often inadvertently blocked. We apologise for any inconvenience caused. 
+Due to continuing acts of vandalism by one particular AOL user, Wikipedia often blocks AOL proxies. Unfortunately, a single proxy server may be used by a large number of AOL users, and hence innocent AOL users are often inadvertently blocked. We apologise for any inconvenience caused.
 
 If this happens to you, please email an administrator, using an AOL email address. Be sure to include the IP address given above.
 ",
@@ -757,6 +804,7 @@ See [[$wgMetaNamespace:User preferences help]] for help deciphering the options.
 "math_unknown_function"        => "unknown function ",
 "math_lexing_error"    => "lexing error",
 "math_syntax_error"    => "syntax error",
+"math_image_error"     => "PNG conversion failed",
 "saveprefs"            => "Save preferences",
 "resetprefs"   => "Reset preferences",
 "oldpassword"  => "Old password",
@@ -792,7 +840,8 @@ from server time (UTC).",
 "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.",
-"rclinks"              => "Show last $1 changes in last $2 days; $3 minor edits",
+"showhideminor"         => "$1 minor edits",
+"rclinks"              => "Show last $1 changes in last $2 days; $3",
 "rchide"               => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
 "rcliu"                        => "; $1 edits from logged in users",
 "diff"                 => "diff",
@@ -881,7 +930,8 @@ created and by whom, and anything else you may know about it.",
 "uploadwarning" => "Upload warning",
 "savefile"             => "Save file",
 "uploadedimage" => "uploaded \"$1\"",
-
+"uploaddisabled" => "Sorry, uploading is disabled.",
+                                      
 # Image list
 #
 "imagelist"            => "Image list",
@@ -958,6 +1008,7 @@ That comes to <b>$5</b> average edits per page, and <b>$6</b> views per edit.",
 "randompage"   => "Random page",
 "shortpages"   => "Short pages",
 "longpages"            => "Long pages",
+"deadendpages"  => "Dead-end pages",                                  
 "listusers"            => "User list",
 "specialpages" => "Special pages",
 "spheading"            => "Special pages for all users",
@@ -1012,15 +1063,15 @@ or has chosen not to receive e-mail from other users.",
 
 # Watchlist
 #
-"watchlist"            => "My watchlist",
-"watchlistsub" => "(for user \"$1\")",
-"nowatchlist"  => "You have no items on your watchlist.",
-"watchnologin" => "Not logged in",
+"watchlist"                    => "My watchlist",
+"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>
 to modify your watchlist.",
-"addedwatch"   => "Added to watchlist",
-"addedwatchtext" => "The page \"$1\" has been added to your <a href=\"" .
+"addedwatch"           => "Added to watchlist",
+"addedwatchtext"       => "The page \"$1\" has been added to your <a href=\"" .
   wfLocalUrl( "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=\"" .
@@ -1028,29 +1079,31 @@ and the page will appear <b>bolded</b> in the <a href=\"" .
 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.",
-"watchthispage"        => "Watch this page",
-"unwatchthispage" => "Stop watching",
-"notanarticle" => "Not an article",
-"watchnochange" => "None of your watched items were edited in the time period displayed.",
-"watchdetails" => "($1 pages watched not counting talk pages;
+"removedwatch"         => "Removed from watchlist",
+"removedwatchtext"     => "The page \"$1\" has been removed from your watchlist.",
+"watchthispage"                => "Watch this page",
+"unwatchthispage"      => "Stop watching",
+"notanarticle"         => "Not an article",
+"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>.)",
-"watchmethod-recent" => "checking recent edits for watched pages",
-"watchmethod-list" => "checking watched pages for recent edits",
-"removechecked" => "Remove checked items from watchlist",
+"watchmethod-recent"=> "checking recent edits for watched pages",
+"watchmethod-list"     => "checking watched pages for recent edits",
+"removechecked"        => "Remove checked items from watchlist",
 "watchlistcontains" => "Your watchlist contains $1 pages.",
-"watcheditlist" => "Here's an alphabetical list of your
+"watcheditlist"                => "Here's an alphabetical list of your
 watched pages. Check the boxes of pages you want to remove
 from your watchlist and click the 'remove checked' button
 at the bottom of the screen.",
-"removingchecked" => "Removing requested items from watchlist...",
-"couldntremove" => "Couldn't remove item '$1'...",
-"iteminvalidname" => "Problem with item '$1', invalid name...",
-"wlnote" => "Below are the last $1 changes in the last <b>$2</b> hours.",
-"wlshowlast" => "Show last $1 hours $2 days $3",
+"removingchecked"      => "Removing requested items from watchlist...",
+"couldntremove"        => "Couldn't remove item '$1'...",
+"iteminvalidname"      => "Problem with item '$1', invalid name...",
+"wlnote"                       => "Below are the last $1 changes in the last <b>$2</b> hours.",
+"wlshowlast"           => "Show last $1 hours $2 days $3",
+"wlsaved"                      => "This is a saved version of your watchlist.",
+
 
 # Delete/protect/revert
 #
@@ -1092,7 +1145,7 @@ by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled bac
 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
 #   only shown if there is an edit comment
 "editcomment" => "The edit comment was: \"<i>$1</i>\".", 
-"revertpage"   => "Reverted to last edit by $1",
+"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.",
@@ -1256,6 +1309,9 @@ title. Please merge them manually.",
 "movetalk"             => "Move \"talk\" page as well, if applicable.",
 "talkpagemoved" => "The corresponding talk page was also moved.",
 "talkpagenotmoved" => "The corresponding talk page was <strong>not</strong> moved.",
+"1movedto2"            => "$1 moved to $2",
+
+# Export
 
 "export"               => "Export pages",
 "exporttext"   => "You can export the text and editing history of a particular
@@ -1267,7 +1323,12 @@ amusement.",
 # Namespace 8 related
 
 "allmessages"  => "All_messages",
-"allmessagestext"      => "This is a list of all messages available in the MediaWiki: namespace"
+"allmessagestext"      => "This is a list of all messages available in the MediaWiki: namespace",
+
+# Thumbnails
+
+"thumbnail-more"      => "Enlarge"
+
 );
 
 #--------------------------------------------------------------------------
@@ -1356,8 +1417,7 @@ class Language {
        /* by default we just return base form */
        function getMonthNameGen( $key )
        {
-               global $wgMonthNamesEn;
-               return $wgMonthNamesEn[$key-1];
+               return $this->getMonthName( $key );
        }
 
        function getMonthAbbreviation( $key )
@@ -1481,6 +1541,10 @@ class Language {
                return ucfirst( $string );
        }
        
+       function lcfirst( $s ) {
+               return strtolower( $s{0}  ). substr( $s, 1 );
+       }
+
        function checkTitleEncoding( $s ) {
         global $wgInputEncoding;