| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
$namespaceNames = [ |
| 9 |
NS_MEDIA => 'Media', |
| 10 |
NS_SPECIAL => 'Spesiaal', |
| 11 |
NS_TALK => 'Bespreking', |
| 12 |
NS_USER => 'Gebruiker', |
| 13 |
NS_USER_TALK => 'Gebruikerbespreking', |
| 14 |
NS_PROJECT_TALK => '$1bespreking', |
| 15 |
NS_FILE => 'Lêer', |
| 16 |
NS_FILE_TALK => 'Lêerbespreking', |
| 17 |
NS_MEDIAWIKI => 'MediaWiki', |
| 18 |
NS_MEDIAWIKI_TALK => 'MediaWikibespreking', |
| 19 |
NS_TEMPLATE => 'Sjabloon', |
| 20 |
NS_TEMPLATE_TALK => 'Sjabloonbespreking', |
| 21 |
NS_HELP => 'Hulp', |
| 22 |
NS_HELP_TALK => 'Hulpbespreking', |
| 23 |
NS_CATEGORY => 'Kategorie', |
| 24 |
NS_CATEGORY_TALK => 'Kategoriebespreking', |
| 25 |
]; |
| 26 |
|
| 27 |
$namespaceAliases = [ |
| 28 |
'Beeld' => NS_FILE, |
| 29 |
'Beeldbespreking' => NS_FILE_TALK, |
| 30 |
]; |
| 31 |
|
| 32 |
|
| 33 |
$magicWords = [ |
| 34 |
'currentday' => [ '1', 'HUIDIGEDAG', 'CURRENTDAY' ], |
| 35 |
'currentday2' => [ '1', 'HUIDIGEDAG2', 'CURRENTDAY2' ], |
| 36 |
'currentdayname' => [ '1', 'HUIDIGEDAGNAAM', 'CURRENTDAYNAME' ], |
| 37 |
'currenthour' => [ '1', 'HUIDIGEUUR', 'CURRENTHOUR' ], |
| 38 |
'currentmonth' => [ '1', 'HUIDIGEMAAND', 'CURRENTMONTH', 'CURRENTMONTH2' ], |
| 39 |
'currentmonth1' => [ '1', 'HUIDIGEMAAND1', 'CURRENTMONTH1' ], |
| 40 |
'currentmonthabbrev' => [ '1', 'HUIDIGEMAANDAFK', 'CURRENTMONTHABBREV' ], |
| 41 |
'currentmonthname' => [ '1', 'HUIDIGEMAANDNAAM', 'CURRENTMONTHNAME' ], |
| 42 |
'currenttime' => [ '1', 'HUIDIGETYD', 'CURRENTTIME' ], |
| 43 |
'currentversion' => [ '1', 'HUIDIGEWEERGAWE', 'CURRENTVERSION' ], |
| 44 |
'currentyear' => [ '1', 'HUIDIGEJAAR', 'CURRENTYEAR' ], |
| 45 |
'displaytitle' => [ '1', 'VERTOONTITEL', 'DISPLAYTITLE' ], |
| 46 |
'filepath' => [ '0', 'LêERPAD:', 'FILEPATH:' ], |
| 47 |
'forcetoc' => [ '0', '__DWINGIO__', '__FORCETOC__' ], |
| 48 |
'fullpagename' => [ '1', 'VOLBLADSYNAAM', 'FULLPAGENAME' ], |
| 49 |
'fullurl' => [ '0', 'VOLURL', 'FULLURL:' ], |
| 50 |
'gender' => [ '0', 'GESLAG:', 'GENDER:' ], |
| 51 |
'img_border' => [ '1', 'raam', 'border' ], |
| 52 |
'img_bottom' => [ '1', 'onder', 'bottom' ], |
| 53 |
'img_center' => [ '1', 'senter', 'center', 'centre' ], |
| 54 |
'img_framed' => [ '1', 'omraam', 'frame', 'framed', 'enframed' ], |
| 55 |
'img_frameless' => [ '1', 'raamloos', 'frameless' ], |
| 56 |
'img_left' => [ '1', 'links', 'left' ], |
| 57 |
'img_link' => [ '1', 'skakel=$1', 'link=$1' ], |
| 58 |
'img_middle' => [ '1', 'middel', 'middle' ], |
| 59 |
'img_none' => [ '1', 'geen', 'none' ], |
| 60 |
'img_right' => [ '1', 'regs', 'right' ], |
| 61 |
'img_text_bottom' => [ '1', 'teks-onder', 'text-bottom' ], |
| 62 |
'img_text_top' => [ '1', 'teks-bo', 'text-top' ], |
| 63 |
'img_thumbnail' => [ '1', 'duimnael', 'thumb', 'thumbnail' ], |
| 64 |
'img_top' => [ '1', 'bo', 'top' ], |
| 65 |
'index' => [ '1', '__INDEKS__', '__INDEX__' ], |
| 66 |
'language' => [ '0', '#TAAL', '#LANGUAGE' ], |
| 67 |
'localweek' => [ '1', 'HUIDIGEWEEK', 'LOCALWEEK' ], |
| 68 |
'namespace' => [ '1', 'NAAMSPASIE', 'NAMESPACE' ], |
| 69 |
'noeditsection' => [ '0', '__GEENNUWEAFDELING__', '__NOEDITSECTION__' ], |
| 70 |
'nogallery' => [ '0', '__GEENGALERY__', '__NOGALLERY__' ], |
| 71 |
'noindex' => [ '1', '__GEENINDEKS__', '__NOINDEX__' ], |
| 72 |
'notoc' => [ '0', '__GEENIO__', '__NOTOC__' ], |
| 73 |
'numberofactiveusers' => [ '1', 'AANTALAKTIEWEGEBRUIKERS', 'NUMBEROFACTIVEUSERS' ], |
| 74 |
'numberofarticles' => [ '1', 'AANTALARTIKELS', 'NUMBEROFARTICLES' ], |
| 75 |
'numberofedits' => [ '1', 'AANTALWYSIGINGS', 'NUMBEROFEDITS' ], |
| 76 |
'numberoffiles' => [ '1', 'AANTALLêERS', 'NUMBEROFFILES' ], |
| 77 |
'numberofpages' => [ '1', 'AANTALBLADSYE', 'NUMBEROFPAGES' ], |
| 78 |
'numberofusers' => [ '1', 'AANTALGEBRUIKERS', 'NUMBEROFUSERS' ], |
| 79 |
'pagename' => [ '1', 'BLADSYNAAM', 'PAGENAME' ], |
| 80 |
'pagesize' => [ '1', 'BLADSYGROOTTE', 'PAGESIZE' ], |
| 81 |
'plural' => [ '0', 'MEERVOUD', 'PLURAL:' ], |
| 82 |
'redirect' => [ '0', '#AANSTUUR', '#REDIRECT' ], |
| 83 |
'server' => [ '0', 'BEDIENER', 'SERVER' ], |
| 84 |
'servername' => [ '0', 'BEDIENERNAAM', 'SERVERNAME' ], |
| 85 |
'sitename' => [ '1', 'WERFNAAM', 'SITENAME' ], |
| 86 |
'special' => [ '0', 'spesiaal', 'special' ], |
| 87 |
'tag' => [ '0', 'etiket', 'tag' ], |
| 88 |
'talkspace' => [ '1', 'BESPREKINGSBLADSY', 'TALKSPACE' ], |
| 89 |
'toc' => [ '0', '__IO__', '__TOC__' ], |
| 90 |
'url_path' => [ '0', 'PAD', 'PATH' ], |
| 91 |
]; |
| 92 |
|
| 93 |
|
| 94 |
$specialPageAliases = [ |
| 95 |
'Activeusers' => [ 'AktieweGebruikers' ], |
| 96 |
'Allmessages' => [ 'Stelselboodskappe', 'Alle_stelselboodskappe', 'Allestelselboodskappe', 'Boodskappe' ], |
| 97 |
'AllMyUploads' => [ 'AlMyOplaaie', 'AlMyLêers' ], |
| 98 |
'Allpages' => [ 'Alle_bladsye', 'Allebladsye' ], |
| 99 |
'Ancientpages' => [ 'OuBladsye' ], |
| 100 |
'Badtitle' => [ 'Slegtetitel' ], |
| 101 |
'Blankpage' => [ 'SkoonBladsy' ], |
| 102 |
'Block' => [ 'BlokIP' ], |
| 103 |
'BlockList' => [ 'IPBlokLys' ], |
| 104 |
'Booksources' => [ 'Boekbronne' ], |
| 105 |
'BrokenRedirects' => [ 'Stukkende_aansture', 'Stukkendeaansture' ], |
| 106 |
'Categories' => [ 'Kategorieë' ], |
| 107 |
'ChangeEmail' => [ 'VeranderEpos' ], |
| 108 |
'ChangePassword' => [ 'HerstelWagwoord' ], |
| 109 |
'ComparePages' => [ 'VergelykBladsye' ], |
| 110 |
'Confirmemail' => [ 'Bevestig_e-posadres', 'Bevestige-posadres', 'Bevestig_eposadres', 'Bevestigeposadres' ], |
| 111 |
'Contributions' => [ 'Bydraes', 'Gebruikersbydraes' ], |
| 112 |
'CreateAccount' => [ 'SkepRekening', 'MaakGebruiker' ], |
| 113 |
'Deadendpages' => [ 'DoodloopBladsye' ], |
| 114 |
'DeletedContributions' => [ 'GeskrapteBydraes' ], |
| 115 |
'DoubleRedirects' => [ 'Dubbele_aansture', 'Dubbeleaansture' ], |
| 116 |
'Emailuser' => [ 'Stuur_e-pos', 'Stuure-pos', 'Stuur_epos', 'Stuurepos' ], |
| 117 |
'Export' => [ 'Eksporteer' ], |
| 118 |
'Fewestrevisions' => [ 'MinsteWysigings' ], |
| 119 |
'FileDuplicateSearch' => [ 'LerDuplikaatSoek' ], |
| 120 |
'Filepath' => [ 'Lêerpad' ], |
| 121 |
'Import' => [ 'Importeer' ], |
| 122 |
'Invalidateemail' => [ 'OngeldigeEpos' ], |
| 123 |
'JavaScriptTest' => [ 'JavaScriptToets' ], |
| 124 |
'LinkSearch' => [ 'SkakelSoektog' ], |
| 125 |
'Listadmins' => [ 'LysAdministrateurs' ], |
| 126 |
'Listbots' => [ 'LysRobotte' ], |
| 127 |
'Listfiles' => [ 'Beeldelys', 'Prentelys', 'Lêerslys' ], |
| 128 |
'Listgrouprights' => [ 'LysGroepRegte' ], |
| 129 |
'Listredirects' => [ 'LysAansture' ], |
| 130 |
'Listusers' => [ 'Gebruikerslys', 'Lysgebruikers' ], |
| 131 |
'Lockdb' => [ 'SluitDB' ], |
| 132 |
'Log' => [ 'Logboek', 'Logboeke' ], |
| 133 |
'Lonelypages' => [ 'EensaamBladsye' ], |
| 134 |
'Longpages' => [ 'LangBladsye' ], |
| 135 |
'MergeHistory' => [ 'VersmeltGeskiedenis' ], |
| 136 |
'MIMEsearch' => [ 'MIME-soek', 'MIMEsoek', 'MIME_soek' ], |
| 137 |
'Mostcategories' => [ 'MeesteKategorieë' ], |
| 138 |
'Mostimages' => [ 'MeesteBeelde' ], |
| 139 |
'Mostinterwikis' => [ 'MeesteInterwikis' ], |
| 140 |
'Mostlinked' => [ 'MeesteGeskakel' ], |
| 141 |
'Mostlinkedcategories' => [ 'MeesGeskakeldeKategorieë' ], |
| 142 |
'Mostlinkedtemplates' => [ 'MeesGeskakeldeSjablone' ], |
| 143 |
'Mostrevisions' => [ 'MeesteWysigings' ], |
| 144 |
'Movepage' => [ 'Skuif_bladsy', 'Skuifbladsy' ], |
| 145 |
'Mycontributions' => [ 'Mybydrae' ], |
| 146 |
'MyLanguage' => [ 'MyTaal' ], |
| 147 |
'Mypage' => [ 'MyBladsy' ], |
| 148 |
'Mytalk' => [ 'Mybespreking', 'Mybesprekings' ], |
| 149 |
'Myuploads' => [ 'MyOplaaie', 'MyLêers' ], |
| 150 |
'Newimages' => [ 'Nuwe_beelde', 'Nuwebeelde', 'Nuwe_lêers', 'Nuwelêers' ], |
| 151 |
'Newpages' => [ 'Nuwe_bladsye', 'Nuwebladsye' ], |
| 152 |
'PasswordReset' => [ 'WagwoordHerstel' ], |
| 153 |
'Preferences' => [ 'Voorkeure' ], |
| 154 |
'Prefixindex' => [ 'VoorvoegselIndeks' ], |
| 155 |
'Protectedpages' => [ 'BeskermdeBladsye' ], |
| 156 |
'Protectedtitles' => [ 'BeskermdeTitels' ], |
| 157 |
'Randompage' => [ 'Lukraak', 'Lukrakebladsy' ], |
| 158 |
'Randomredirect' => [ 'Lukrake_aanstuur', 'Lukrakeaanstuur' ], |
| 159 |
'Recentchanges' => [ 'Onlangse_wysigings', 'Onlangsewysigings' ], |
| 160 |
'Recentchangeslinked' => [ 'OnlangseVeranderingsMetSkakels', 'VerwanteVeranderings' ], |
| 161 |
'Redirect' => [ 'Aanstuur' ], |
| 162 |
'Revisiondelete' => [ 'WeergaweSkrap' ], |
| 163 |
'Search' => [ 'Soek' ], |
| 164 |
'Shortpages' => [ 'KortBladsye' ], |
| 165 |
'Specialpages' => [ 'Spesiale_bladsye', 'Spesialebladsye' ], |
| 166 |
'Statistics' => [ 'Statistiek' ], |
| 167 |
'Tags' => [ 'Etikette' ], |
| 168 |
'Unblock' => [ 'Deblokkeer' ], |
| 169 |
'Uncategorizedcategories' => [ 'OngekategoriseerdeKategorieë' ], |
| 170 |
'Uncategorizedimages' => [ 'OngekategoriseerdeBeelde' ], |
| 171 |
'Uncategorizedpages' => [ 'OngekategoriseerdeBladsye' ], |
| 172 |
'Uncategorizedtemplates' => [ 'OngekategoriseerdeSjablone' ], |
| 173 |
'Undelete' => [ 'Ontskrap' ], |
| 174 |
'Unlockdb' => [ 'OntsluitDB' ], |
| 175 |
'Unusedcategories' => [ 'OngebruikdeKategorieë' ], |
| 176 |
'Unusedimages' => [ 'OngebruikdeBeelde' ], |
| 177 |
'Unusedtemplates' => [ 'OngebruikteSjablone' ], |
| 178 |
'Unwatchedpages' => [ 'NieDopgehoudeBladsye' ], |
| 179 |
'Upload' => [ 'Laai', 'Oplaai' ], |
| 180 |
'Userlogin' => [ 'Teken_in', 'Tekenin' ], |
| 181 |
'Userlogout' => [ 'Teken_uit', 'Tekenuit' ], |
| 182 |
'Userrights' => [ 'GebruikersRegte' ], |
| 183 |
'Version' => [ 'Weergawe' ], |
| 184 |
'Wantedcategories' => [ 'GesoekteKategorieë' ], |
| 185 |
'Wantedfiles' => [ 'GesoekteLêers' ], |
| 186 |
'Wantedpages' => [ 'GesoekteBladsye', 'GebreekteSkakels' ], |
| 187 |
'Wantedtemplates' => [ 'GesoekteSjablone' ], |
| 188 |
'Watchlist' => [ 'Dophoulys' ], |
| 189 |
'Whatlinkshere' => [ 'Skakels_hierheen', 'Skakelshierheen' ], |
| 190 |
'Withoutinterwiki' => [ 'Sonder_taalskakels', 'Sondertaalskakels' ], |
| 191 |
]; |
| 192 |
|
| 193 |
|
| 194 |
n |
| 195 |
|
| 196 |
$separatorTransformTable = [ ',' => "\u{00A0}", '.' => ',' ]; |
| 197 |
$linkTrail = "/^([a-z]+)(.*)$/sD"; |