MediaWiki
REL1_24
|
00001 <?php 00011 $namespaceNames = array( 00012 NS_MEDIA => 'Media', 00013 NS_SPECIAL => 'Spesiaal', 00014 NS_TALK => 'Bespreking', 00015 NS_USER => 'Gebruiker', 00016 NS_USER_TALK => 'Gebruikerbespreking', 00017 NS_PROJECT_TALK => '$1bespreking', 00018 NS_FILE => 'Lêer', 00019 NS_FILE_TALK => 'Lêerbespreking', 00020 NS_MEDIAWIKI => 'MediaWiki', 00021 NS_MEDIAWIKI_TALK => 'MediaWikibespreking', 00022 NS_TEMPLATE => 'Sjabloon', 00023 NS_TEMPLATE_TALK => 'Sjabloonbespreking', 00024 NS_HELP => 'Hulp', 00025 NS_HELP_TALK => 'Hulpbespreking', 00026 NS_CATEGORY => 'Kategorie', 00027 NS_CATEGORY_TALK => 'Kategoriebespreking', 00028 ); 00029 00030 $namespaceAliases = array( 00031 'Beeld' => NS_FILE, 00032 'Beeldbespreking' => NS_FILE_TALK, 00033 ); 00034 00035 $magicWords = array( 00036 'redirect' => array( '0', '#AANSTUUR', '#REDIRECT' ), 00037 'notoc' => array( '0', '__GEENIO__', '__NOTOC__' ), 00038 'nogallery' => array( '0', '__GEENGALERY__', '__NOGALLERY__' ), 00039 'forcetoc' => array( '0', '__DWINGIO__', '__FORCETOC__' ), 00040 'toc' => array( '0', '__IO__', '__TOC__' ), 00041 'noeditsection' => array( '0', '__GEENNUWEAFDELING__', '__NOEDITSECTION__' ), 00042 'currentmonth' => array( '1', 'HUIDIGEMAAND', 'CURRENTMONTH', 'CURRENTMONTH2' ), 00043 'currentmonth1' => array( '1', 'HUIDIGEMAAND1', 'CURRENTMONTH1' ), 00044 'currentmonthname' => array( '1', 'HUIDIGEMAANDNAAM', 'CURRENTMONTHNAME' ), 00045 'currentmonthabbrev' => array( '1', 'HUIDIGEMAANDAFK', 'CURRENTMONTHABBREV' ), 00046 'currentday' => array( '1', 'HUIDIGEDAG', 'CURRENTDAY' ), 00047 'currentday2' => array( '1', 'HUIDIGEDAG2', 'CURRENTDAY2' ), 00048 'currentdayname' => array( '1', 'HUIDIGEDAGNAAM', 'CURRENTDAYNAME' ), 00049 'currentyear' => array( '1', 'HUIDIGEJAAR', 'CURRENTYEAR' ), 00050 'currenttime' => array( '1', 'HUIDIGETYD', 'CURRENTTIME' ), 00051 'currenthour' => array( '1', 'HUIDIGEUUR', 'CURRENTHOUR' ), 00052 'numberofpages' => array( '1', 'AANTALBLADSYE', 'NUMBEROFPAGES' ), 00053 'numberofarticles' => array( '1', 'AANTALARTIKELS', 'NUMBEROFARTICLES' ), 00054 'numberoffiles' => array( '1', 'AANTALLêERS', 'NUMBEROFFILES' ), 00055 'numberofusers' => array( '1', 'AANTALGEBRUIKERS', 'NUMBEROFUSERS' ), 00056 'numberofactiveusers' => array( '1', 'AANTALAKTIEWEGEBRUIKERS', 'NUMBEROFACTIVEUSERS' ), 00057 'numberofedits' => array( '1', 'AANTALWYSIGINGS', 'NUMBEROFEDITS' ), 00058 'numberofviews' => array( '1', 'AANTALKEERGESIEN', 'NUMBEROFVIEWS' ), 00059 'pagename' => array( '1', 'BLADSYNAAM', 'PAGENAME' ), 00060 'namespace' => array( '1', 'NAAMSPASIE', 'NAMESPACE' ), 00061 'talkspace' => array( '1', 'BESPREKINGSBLADSY', 'TALKSPACE' ), 00062 'fullpagename' => array( '1', 'VOLBLADSYNAAM', 'FULLPAGENAME' ), 00063 'img_thumbnail' => array( '1', 'duimnael', 'thumbnail', 'thumb' ), 00064 'img_right' => array( '1', 'regs', 'right' ), 00065 'img_left' => array( '1', 'links', 'left' ), 00066 'img_none' => array( '1', 'geen', 'none' ), 00067 'img_center' => array( '1', 'senter', 'center', 'centre' ), 00068 'img_framed' => array( '1', 'omraam', 'framed', 'enframed', 'frame' ), 00069 'img_frameless' => array( '1', 'raamloos', 'frameless' ), 00070 'img_border' => array( '1', 'raam', 'border' ), 00071 'img_top' => array( '1', 'bo', 'top' ), 00072 'img_text_top' => array( '1', 'teks-bo', 'text-top' ), 00073 'img_middle' => array( '1', 'middel', 'middle' ), 00074 'img_bottom' => array( '1', 'onder', 'bottom' ), 00075 'img_text_bottom' => array( '1', 'teks-onder', 'text-bottom' ), 00076 'img_link' => array( '1', 'skakel=$1', 'link=$1' ), 00077 'sitename' => array( '1', 'WERFNAAM', 'SITENAME' ), 00078 'server' => array( '0', 'BEDIENER', 'SERVER' ), 00079 'servername' => array( '0', 'BEDIENERNAAM', 'SERVERNAME' ), 00080 'gender' => array( '0', 'GESLAG:', 'GENDER:' ), 00081 'localweek' => array( '1', 'HUIDIGEWEEK', 'LOCALWEEK' ), 00082 'plural' => array( '0', 'MEERVOUD', 'PLURAL:' ), 00083 'fullurl' => array( '0', 'VOLURL', 'FULLURL:' ), 00084 'displaytitle' => array( '1', 'VERTOONTITEL', 'DISPLAYTITLE' ), 00085 'currentversion' => array( '1', 'HUIDIGEWEERGAWE', 'CURRENTVERSION' ), 00086 'language' => array( '0', '#TAAL:', '#LANGUAGE:' ), 00087 'special' => array( '0', 'spesiaal', 'special' ), 00088 'filepath' => array( '0', 'LêERPAD:', 'FILEPATH:' ), 00089 'tag' => array( '0', 'etiket', 'tag' ), 00090 'pagesize' => array( '1', 'BLADSYGROOTTE', 'PAGESIZE' ), 00091 'index' => array( '1', '__INDEKS__', '__INDEX__' ), 00092 'noindex' => array( '1', '__GEENINDEKS__', '__NOINDEX__' ), 00093 'url_path' => array( '0', 'PAD', 'PATH' ), 00094 ); 00095 00096 $specialPageAliases = array( 00097 'Activeusers' => array( 'AktieweGebruikers' ), 00098 'Allmessages' => array( 'Stelselboodskappe', 'Alle_stelselboodskappe', 'Allestelselboodskappe', 'Boodskappe' ), 00099 'Allpages' => array( 'Alle_bladsye', 'Allebladsye' ), 00100 'Ancientpages' => array( 'OuBladsye' ), 00101 'Blankpage' => array( 'SkoonBladsy' ), 00102 'Block' => array( 'BlokIP' ), 00103 'Booksources' => array( 'Boekbronne' ), 00104 'BrokenRedirects' => array( 'Stukkende_aansture', 'Stukkendeaansture' ), 00105 'Categories' => array( 'Kategorieë' ), 00106 'ChangePassword' => array( 'HerstelWagwoord' ), 00107 'Confirmemail' => array( 'Bevestig_e-posadres', 'Bevestige-posadres', 'Bevestig_eposadres', 'Bevestigeposadres' ), 00108 'Contributions' => array( 'Bydraes', 'Gebruikersbydraes' ), 00109 'CreateAccount' => array( 'SkepRekening', 'MaakGebruiker' ), 00110 'Deadendpages' => array( 'DoodloopBladsye' ), 00111 'DeletedContributions' => array( 'GeskrapteBydraes' ), 00112 'DoubleRedirects' => array( 'Dubbele_aansture', 'Dubbeleaansture' ), 00113 'Emailuser' => array( 'Stuur_e-pos', 'Stuure-pos', 'Stuur_epos', 'Stuurepos' ), 00114 'Export' => array( 'Eksporteer' ), 00115 'Fewestrevisions' => array( 'MinsteWysigings' ), 00116 'FileDuplicateSearch' => array( 'LerDuplikaatSoek' ), 00117 'Filepath' => array( 'Lêerpad' ), 00118 'Import' => array( 'Importeer' ), 00119 'Invalidateemail' => array( 'OngeldigeEpos' ), 00120 'BlockList' => array( 'IPBlokLys' ), 00121 'LinkSearch' => array( 'SkakelSoektog' ), 00122 'Listadmins' => array( 'LysAdministrateurs' ), 00123 'Listbots' => array( 'LysRobotte' ), 00124 'Listfiles' => array( 'Beeldelys', 'Prentelys', 'Lêerslys' ), 00125 'Listgrouprights' => array( 'LysGroepRegte' ), 00126 'Listredirects' => array( 'LysAansture' ), 00127 'Listusers' => array( 'Gebruikerslys', 'Lysgebruikers' ), 00128 'Lockdb' => array( 'SluitDB' ), 00129 'Log' => array( 'Logboek', 'Logboeke' ), 00130 'Lonelypages' => array( 'EensaamBladsye' ), 00131 'Longpages' => array( 'LangBladsye' ), 00132 'MergeHistory' => array( 'VersmeltGeskiedenis' ), 00133 'MIMEsearch' => array( 'MIME-soek', 'MIMEsoek', 'MIME_soek' ), 00134 'Mostcategories' => array( 'MeesteKategorieë' ), 00135 'Mostimages' => array( 'MeesteBeelde' ), 00136 'Mostlinked' => array( 'MeeteGeskakel' ), 00137 'Mostlinkedcategories' => array( 'MeesGeskakeldeKategorieë' ), 00138 'Mostlinkedtemplates' => array( 'MeesGeskakeldeSjablone' ), 00139 'Mostrevisions' => array( 'MeesteWysigings' ), 00140 'Movepage' => array( 'Skuif_bladsy', 'Skuifbladsy' ), 00141 'Mycontributions' => array( 'Mybydrae' ), 00142 'MyLanguage' => array( 'MyTaal' ), 00143 'Mypage' => array( 'MyBladsy' ), 00144 'Mytalk' => array( 'Mybespreking', 'Mybesprekings' ), 00145 'Newimages' => array( 'Nuwe_beelde', 'Nuwebeelde', 'Nuwe_lêers', 'Nuwelêers' ), 00146 'Newpages' => array( 'Nuwe_bladsye', 'Nuwebladsye' ), 00147 'Popularpages' => array( 'PopulêreBladsye' ), 00148 'Preferences' => array( 'Voorkeure' ), 00149 'Prefixindex' => array( 'VoorvoegselIndeks' ), 00150 'Protectedpages' => array( 'BeskermdeBladsye' ), 00151 'Protectedtitles' => array( 'BeskermdeTitels' ), 00152 'Randompage' => array( 'Lukraak', 'Lukrakebladsy' ), 00153 'Randomredirect' => array( 'Lukrake_aanstuur', 'Lukrakeaanstuur' ), 00154 'Recentchanges' => array( 'Onlangse_wysigings', 'Onlangsewysigings' ), 00155 'Recentchangeslinked' => array( 'OnlangseVeranderingsMetSkakels', 'VerwanteVeranderings' ), 00156 'Revisiondelete' => array( 'WeergaweSkrap' ), 00157 'Search' => array( 'Soek' ), 00158 'Shortpages' => array( 'KortBladsye' ), 00159 'Specialpages' => array( 'Spesiale_bladsye', 'Spesialebladsye' ), 00160 'Statistics' => array( 'Statistiek' ), 00161 'Tags' => array( 'Etikette' ), 00162 'Unblock' => array( 'Deblokkeer' ), 00163 'Uncategorizedcategories' => array( 'OngekategoriseerdeKategorieë' ), 00164 'Uncategorizedimages' => array( 'OngekategoriseerdeBeelde' ), 00165 'Uncategorizedpages' => array( 'OngekategoriseerdeBladsye' ), 00166 'Uncategorizedtemplates' => array( 'OngekategoriseerdeSjablone' ), 00167 'Undelete' => array( 'Ontskrap' ), 00168 'Unlockdb' => array( 'OntsluitDB' ), 00169 'Unusedcategories' => array( 'OngebruikdeKategorieë' ), 00170 'Unusedimages' => array( 'OngebruikdeBeelde' ), 00171 'Unusedtemplates' => array( 'OngebruikteSjablone' ), 00172 'Unwatchedpages' => array( 'NieDopgehoudeBladsye' ), 00173 'Upload' => array( 'Laai', 'Oplaai' ), 00174 'Userlogin' => array( 'Teken_in', 'Tekenin' ), 00175 'Userlogout' => array( 'Teken_uit', 'Tekenuit' ), 00176 'Userrights' => array( 'GebruikersRegte' ), 00177 'Version' => array( 'Weergawe' ), 00178 'Wantedcategories' => array( 'GesoekteKategorieë' ), 00179 'Wantedfiles' => array( 'GesoekteLêers' ), 00180 'Wantedpages' => array( 'GesoekdeBladsye', 'GebreekteSkakels' ), 00181 'Wantedtemplates' => array( 'GesoekteSjablone' ), 00182 'Watchlist' => array( 'Dophoulys' ), 00183 'Whatlinkshere' => array( 'Skakels_hierheen', 'Skakelshierheen' ), 00184 'Withoutinterwiki' => array( 'Sonder_taalskakels', 'Sondertaalskakels' ), 00185 ); 00186 00187 # South Africa uses space for thousands and comma for decimal 00188 # Reference: AWS Reël 7.4 p. 52, 2002 edition 00189 # glibc is wrong in this respect in some versions 00190 $separatorTransformTable = array( ',' => "\xc2\xa0", '.' => ',' ); 00191 $linkTrail = "/^([a-z]+)(.*)$/sD"; 00192