translated namespaces, with help of pt:User:Jorge, BUG #962862
[lhc/web/wiklou.git] / languages / Language.php
index e2e7db8..4edde61 100644 (file)
@@ -105,7 +105,7 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "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)",
+       "showtoc"=>"Show table of contents<br />(for pages with more than 3 headings)",
        "rememberpassword" => "Remember password across sessions",
        "editwidth" => "Edit box has full width",
        "watchdefault" => "Add pages you edit to your watchlist",
@@ -122,6 +122,7 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
 );
 
 /* The following list is in native languages, not in English */
+global $wgLanguageNames;
 /* private */ $wgLanguageNames = array(
        "aa" => "Afar",                 # Afar
        "ab" => "Abkhazian",    # Abkhazian - FIXME
@@ -150,6 +151,7 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "ca" => "Catal&agrave;",        # Catalan
        "ce" => "&#1053;&#1086;&#1093;&#1095;&#1080;&#1081;&#1085;",    # Chechen
        "ch" => "Chamoru",              # Chamorro
+       "chr" => "&#5091;&#5043;&#5033;", # Cherokee
        "chy" => "Tsets&ecirc;hest&acirc;hese", # Cheyenne
        "co" => "Corsu",                # Corsican
        "cr" => "Nehiyaw",              # Cree
@@ -263,6 +265,7 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "rm" => "Rumantsch",    # Raeto-Romance
        "rn" => "Kirundi",              # Kirundi
        "ro" => "Rom&acirc;n&#259;",    # Romanian
+       "roa-rup" => "Arm&#226;neashti", # Aromanian
        "ru" => "&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;",    # Russian
        "rw" => "Kinyarwanda",
        "sa" => "&#2360;&#2306;&#2360;&#2381;&#2325;&#2371;&#2340;",    # Sanskrit
@@ -317,6 +320,7 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
        "yo" => "Yor&ugrave;b&aacute;", # Yoruba
        "za" => "(Cuengh)",             # Zhuang
        "zh" => "&#20013;&#25991;",     # (Zh&#333;ng Wén) - Chinese
+       "zh-cfr" => "&#38313;&#21335;&#35486;", # Min-nan
        "zh-cn" => "&#20013;&#25991;(&#31616;&#20307;)",        # Simplified
        "zh-tw" => "&#20013;&#25991;(&#32321;&#20307;)",        # Traditional
        "zu" => "isiZulu",              # Zulu
@@ -418,7 +422,7 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 "about"                        => "About",
 "aboutwikipedia" => "About {{SITENAME}}",
 "aboutpage"            => "{{ns:4}}:About",
-'article' => 'Article',
+'article' => 'Content page',
 "help"                 => "Help",
 "helppage"             => "{{ns:12}}:Contents",
 "wikititlesuffix" => "{{SITENAME}}",
@@ -447,7 +451,7 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 "disclaimerpage"               => "{{ns:4}}:General_disclaimer",
 "errorpagetitle" => "Error",
 "returnto"             => "Return to $1.",
-"fromwikipedia"        => "From {{SITENAME}}, the free encyclopedia.",
+"fromwikipedia"        => "From {{SITENAME}}",
 "whatlinkshere"        => "Pages that link here",
 "help"                 => "Help",
 "search"               => "Search",
@@ -470,12 +474,12 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 'personaltools' => 'Personal tools',
 "postcomment"   => "Post a comment",
 "addsection"   => "+",
-"articlepage"  => "View article",
+"articlepage"  => "View content page",
 "subjectpage"  => "View subject", # For compatibility
 'talk' => 'Discussion',
 'toolbox' => 'Toolbox',
 "userpage" => "View user page",
-"wikipediapage" => "View meta page",
+"wikipediapage" => "View project page",
 "imagepage" =>         "View image page",
 "viewtalkpage" => "View discussion",
 "otherlanguages" => "Other languages",
@@ -636,6 +640,9 @@ Don't forget to change your {{SITENAME}} preferences.",
 "yournick"             => "Your nickname (for signatures)",
 "emailforlost" => "Fields marked with a star (*) are optional.  Storing an email address enables people to contact you through the website without you having to reveal your 
 email address to them, and it can be used to send you a new password if you forget it.<br /><br />Your real name, if you choose to provide it, will be used for giving you attribution for your work.",
+'prefs-help-userdata' => '* <strong>Real name</strong> (optional): if you choose to provide it this will be used for giving you attribution for your work.<br/>
+* <strong>Email</strong> (optional): Enables people to contact you through the website without you having to reveal your 
+email address to them, and it can be used to send you a new password if you forget it.',
 "loginerror"   => "Login error",
 "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.",
@@ -688,7 +695,7 @@ Please log in again after you receive it.",
 "summary"              => "Summary",
 "subject"              => "Subject/headline",
 "minoredit"            => "This is a minor edit",
-"watchthis"            => "Watch this article",
+"watchthis"            => "Watch this page",
 "savearticle"  => "Save page",
 "preview"              => "Preview",
 "showpreview"  => "Show preview",
@@ -702,9 +709,9 @@ Note that you may not use the \"email this user\" feature unless you have a vali
 Your IP address is $3. Please include this address in any queries you make.
 ",
 "whitelistedittitle" => "Login required to edit",
-"whitelistedittext" => "You have to [[Special:Userlogin|login]] to edit articles.",
+"whitelistedittext" => "You have to [[Special:Userlogin|login]] to edit pages.",
 "whitelistreadtitle" => "Login required to read",
-"whitelistreadtext" => "You have to [[Special:Userlogin|login]] to read articles.",
+"whitelistreadtext" => "You have to [[Special:Userlogin|login]] to read pages.",
 "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",
@@ -808,13 +815,13 @@ word fewer than three letters long, which is not yet supported.
 It could also be that you have mistyped the expression, for
 example \"fish and and scales\".
 Please try another query.",
-"matchtotals"  => "The query \"$1\" matched $2 article titles
-and the text of $3 articles.",
+"matchtotals"  => "The query \"$1\" matched $2 page titles
+and the text of $3 pages.",
 "nogomatch" => "No page with this exact title exists, trying full text search.",
 "titlematches" => "Article title matches",
-"notitlematches" => "No article title matches",
-"textmatches"  => "Article text matches",
-"notextmatches"        => "No article text matches",
+"notitlematches" => "No page title matches",
+"textmatches"  => "Page text matches",
+"notextmatches"        => "No page text matches",
 "prevn"                        => "previous $1",
 "nextn"                        => "next $1",
 "viewprevnext" => "View ($1) ($2) ($3).",
@@ -876,6 +883,9 @@ See [[{{ns:4}}:User preferences help]] for help deciphering the options.",
 "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.",
+'prefs-personal' => 'User data',
+'prefs-rc' => 'Recent changes and stub display',
+'prefs-misc' => 'Misc settings',
 "saveprefs"            => "Save preferences",
 "resetprefs"   => "Reset preferences",
 "oldpassword"  => "Old password",
@@ -948,7 +958,7 @@ go to the <a href=\"{{localurle:Special:Imagelist}}\">list of uploaded images</a
 Uploads and deletions are logged on the " .
 "<a href=\"{{localurle:Project:Upload_log}}\">upload log</a>.
 </p><p>Use the form below to upload new image files for use in
-illustrating your articles.
+illustrating your pages.
 On most browsers, you will see a \"Browse...\" button, which will
 bring up your operating system's standard file open dialog.
 Choosing a file will fill the name of that file into the text
@@ -960,11 +970,11 @@ This may take some time if you have a slow internet connection.
 <p>The preferred formats are JPEG for photographic images, PNG
 for drawings and other iconic images, and OGG for sounds.
 Please name your files descriptively to avoid confusion.
-To include the image in an article, use a link in the form
+To include the image in a page, use a link in the form
 <b>[[{{ns:6}}:file.jpg]]</b> or <b>[[{{ns:6}}:file.png|alt text]]</b>
 or <b>[[{{ns:-2}}:file.ogg]]</b> for sounds.
 <p>Please note that as with wiki pages, others may edit or
-delete your uploads if they think it serves the encyclopedia, and
+delete your uploads if they think it serves the project, and
 you may be blocked from uploading if you abuse the system.",
 
 "uploadlog"            => "upload log",
@@ -1032,9 +1042,9 @@ this old version, (rev) = revert to this old version.
 "userstats"            => "User statistics",
 "sitestatstext" => "There are '''$1''' total pages in the database.
 This includes \"talk\" pages, pages about {{SITENAME}}, minimal \"stub\"
-pages, redirects, and others that probably don't qualify as articles.
+pages, redirects, and others that probably don't qualify as content pages.
 Excluding those, there are '''$2''' pages that are probably legitimate
-articles.
+content pages.
 
 There have been a total of '''$3''' page views, and '''$4''' page edits
 since the wiki was setup.
@@ -1049,11 +1059,11 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 "maintenancebacklink"  => "Back to Maintenance Page",
 "disambiguations"      => "Disambiguation pages",
 "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.",
+"disambiguationstext"  => "The following pages 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\" target page, which the first redirect should point to.",
 "brokenredirects"      => "Broken Redirects",
-"brokenredirectstext"  => "The following redirects link to a non-existing article.",
+"brokenredirectstext"  => "The following redirects link to a non-existing pages.",
 "selflinks"            => "Pages with Self Links",
 "selflinkstext"                => "The following pages contain a link to themselves, which they should not.",
 "mispeelings"           => "Pages with misspellings",
@@ -1061,7 +1071,7 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 "mispeelingspage"       => "List of common misspellings",
 "missinglanguagelinks"  => "Missing Language Links",
 "missinglanguagelinksbutton"    => "Find missing language links for",
-"missinglanguagelinkstext"      => "These articles do <i>not</i> link to their counterpart in $1. Redirects and subpages are <i>not</i> shown.",
+"missinglanguagelinkstext"      => "These pages do <i>not</i> link to their counterpart in $1. Redirects and subpages are <i>not</i> shown.",
 
 
 # Miscellaneous special pages
@@ -1088,7 +1098,7 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 "rclsub"               => "(to pages linked from \"$1\")",
 "debug"                        => "Debug",
 "newpages"             => "New pages",
-"ancientpages"         => "Oldest articles",
+"ancientpages"         => "Oldest pages",
 "intl"         => "Interlanguage links",
 'move' => 'Move',
 "movethispage" => "Move this page",
@@ -1154,7 +1164,7 @@ make it easier to pick out.
 "watchthispage"                => "Watch this page",
 'unwatch' => 'Unwatch',
 "unwatchthispage"      => "Stop watching",
-"notanarticle"         => "Not an article",
+"notanarticle"         => "Not a content page",
 "watchnochange"        => "None of your watched items were edited in the time period displayed.",
 "watchdetails"         => "($1 pages watched not counting talk pages;
 $2 total pages edited since cutoff;
@@ -1210,9 +1220,9 @@ All times shown are server time (UTC).
 'rollback_short' => 'Rollback',
 "rollbacklink" => "rollback",
 "rollbackfailed" => "Rollback failed",
-"cantrollback" => "Cannot revert edit; last contributor is only author of this article.",
+"cantrollback" => "Cannot revert edit; last contributor is only author of this page.",
 "alreadyrolled"        => "Cannot rollback last edit of [[$1]]
-by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the article already. 
+by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the page already. 
 
 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
 #   only shown if there is an edit comment
@@ -1238,7 +1248,7 @@ See [[{{ns:4}}:Protected page]] for more information.",
 "undeletepage" => "View and restore deleted pages",
 "undeletepagetext" => "The following pages have been deleted but are still in the archive and
 can be restored. The archive may be periodically cleaned out.",
-"undeletearticle" => "Restore deleted article",
+"undeletearticle" => "Restore deleted page",
 "undeleterevisions" => "$1 revisions archived",
 "undeletehistory" => "If you restore the page, all revisions will be restored to the history.
 If a new page with the same name has been created since the deletion, the restored
@@ -1247,7 +1257,7 @@ will not be automatically replaced.",
 "undeleterevision" => "Deleted revision as of $1",
 "undeletebtn" => "Restore!",
 "undeletedarticle" => "restored \"$1\"",
-"undeletedtext"   => "The article [[$1]] has been successfully restored.
+"undeletedtext"   => "[[$1]] has been successfully restored.
 See [[{{ns:4}}:Deletion_log]] for a record of recent deletions and restorations.",
 
 # Contributions
@@ -1482,11 +1492,12 @@ amusement.",
 'accesskey-preview' => 'p',
 'accesskey-contributions' => '',
 'accesskey-emailuser' => '',
+'accesskey-compareselectedversions' => 'v',
 
 # tooltip help for the main actions
 'tooltip-atom' => 'Atom feed for this page',
-'tooltip-article' => 'View the article [alt-a]',
-'tooltip-talk' => 'Discussion about the article [alt-t]',
+'tooltip-article' => 'View the content page [alt-a]',
+'tooltip-talk' => 'Discussion about the content page [alt-t]',
 'tooltip-edit' => 'You can edit this page. Please use the preview button before saving. [alt-e]',
 'tooltip-addsection' => 'Add a comment to this page. [alt-+]',
 'tooltip-viewsource' => 'This page is protected. You can view it\'s source. [alt-e]',
@@ -1506,7 +1517,7 @@ amusement.",
 'tooltip-preferences' => 'My preferences',
 'tooltip-mycontris' => 'List of my contributions [alt-y]',
 'tooltip-login' => 'You are encouraged to log in, it is not mandatory however. [alt-o]',
-'tooltip-logout' => 'The start button [alt-o]',
+'tooltip-logout' => 'Log out [alt-o]',
 'tooltip-search' => 'Search this wiki [alt-f]',
 'tooltip-mainpage' => 'Visit the Main Page [alt-z]',
 'tooltip-portal' => 'About the project, what you can do, where to find things',
@@ -1526,6 +1537,7 @@ amusement.",
 'tooltip-contributions' => 'View the list of contributions of this user',
 'tooltip-emailuser' => 'Send a mail to this user',
 'tooltip-rss' => 'RSS feed for this page',
+'tooltip-compareselectedversions' => 'See the differences between the two selected versions of this page. [alt-v]',
 
 # Metadata
 "nodublincore" => "Dublin Core RDF metadata disabled for this server.",
@@ -1539,7 +1551,12 @@ amusement.",
 "lastmodifiedby" => "This page was last modified $1 by $2.",
 "and" => "and",
 "othercontribs" => "Based on work by $1.",
-"siteusers" => "$wgSitename user(s) $1"
+"siteusers" => "$wgSitename user(s) $1",
+"spamprotectiontitle" => "Spam protection filter",
+"spamprotectiontext" => "The page you wanted to save was blocked by the spam filter. This is probably caused by a link to an external site. 
+
+You might want to check the following regular expression for patterns that are currently blocked:"
+
 
 );
 
@@ -1658,7 +1675,7 @@ class Language {
        function getMonthAbbreviation( $key )
        {
                global $wgMonthAbbreviationsEn;
-               return $wgMonthAbbreviationsEn[$key-1];
+               return @$wgMonthAbbreviationsEn[$key-1];
        }
 
        function getWeekdayName( $key )
@@ -1762,7 +1779,7 @@ class Language {
        function getMessage( $key )
        {
                global $wgAllMessagesEn;
-               return $wgAllMessagesEn[$key];
+               return @$wgAllMessagesEn[$key];
        }
        
        function getAllMessages()
@@ -1869,6 +1886,10 @@ class Language {
        function getMagic( &$mw )
        {
                $raw =& $this->getMagicWords(); 
+               if( !isset( $raw[$mw->mId] ) ) {
+                       # Fall back to English if local list is incomplete
+                       $raw =& Language::getMagicWords();
+               }
         $rawEntry = $raw[$mw->mId];
                $mw->mCaseSensitive = $rawEntry[0];
                $mw->mSynonyms = array_slice( $rawEntry, 1 );