-$wgEnableEditToolbar, broken in non-English langs, unnecessary
[lhc/web/wiklou.git] / languages / Language.php
index 43aa017..f53826e 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\".",
@@ -573,6 +596,26 @@ You should log in and change your password now.",
 registered for \"$1\".
 Please log in again after you receive it.",
 
+# 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)",
+"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)",
+
 # Edit pages
 #
 "summary"              => "Summary",
@@ -585,14 +628,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.
 ",
@@ -723,7 +766,7 @@ $2 List redirects &nbsp; Search for $3 $9",
 border=\"0\" ALT=\"Google\"></A>
 </td>
 <td>
-<INPUT TYPE=text name=q size=31 maxlength=255 value=\"\">
+<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>
@@ -757,6 +800,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 +836,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 +926,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 +1004,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",
@@ -1092,7 +1139,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.",
@@ -1267,7 +1314,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 +1408,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 )
@@ -1567,6 +1618,6 @@ class Language {
        }
 }
 
-include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );
+@include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );
 
 ?>