| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
$namespaceNames = [ |
| 9 |
NS_MEDIA => 'Media', |
| 10 |
NS_SPECIAL => 'Speciale', |
| 11 |
NS_TALK => 'Discussione', |
| 12 |
NS_USER => 'Utente', |
| 13 |
NS_USER_TALK => 'Discussioni_utente', |
| 14 |
NS_PROJECT_TALK => 'Discussioni_$1', |
| 15 |
NS_FILE => 'File', |
| 16 |
NS_FILE_TALK => 'Discussioni_file', |
| 17 |
NS_MEDIAWIKI => 'MediaWiki', |
| 18 |
NS_MEDIAWIKI_TALK => 'Discussioni_MediaWiki', |
| 19 |
NS_TEMPLATE => 'Template', |
| 20 |
NS_TEMPLATE_TALK => 'Discussioni_template', |
| 21 |
NS_HELP => 'Aiuto', |
| 22 |
NS_HELP_TALK => 'Discussioni_aiuto', |
| 23 |
NS_CATEGORY => 'Categoria', |
| 24 |
NS_CATEGORY_TALK => 'Discussioni_categoria', |
| 25 |
]; |
| 26 |
|
| 27 |
$namespaceAliases = [ |
| 28 |
'Immagine' => NS_FILE, |
| 29 |
'Discussioni_immagine' => NS_FILE_TALK, |
| 30 |
]; |
| 31 |
|
| 32 |
$separatorTransformTable = [ ',' => "\u{00A0}", '.' => ',' ]; |
| 33 |
|
| 34 |
$dateFormats = [ |
| 35 |
'mdy time' => 'H:i', |
| 36 |
'mdy date' => 'M j, Y', |
| 37 |
'mdy both' => 'H:i, M j, Y', |
| 38 |
|
| 39 |
'dmy time' => 'H:i', |
| 40 |
'dmy date' => 'j M Y', |
| 41 |
'dmy both' => 'H:i, j M Y', |
| 42 |
|
| 43 |
'ymd time' => 'H:i', |
| 44 |
'ymd date' => 'Y M j', |
| 45 |
'ymd both' => 'H:i, Y M j', |
| 46 |
]; |
| 47 |
|
| 48 |
|
| 49 |
$specialPageAliases = [ |
| 50 |
'Activeusers' => [ 'UtentiAttivi' ], |
| 51 |
'Allmessages' => [ 'Messaggi' ], |
| 52 |
'Allpages' => [ 'TutteLePagine' ], |
| 53 |
'Ancientpages' => [ 'PagineMenoRecenti' ], |
| 54 |
'Badtitle' => [ 'TitoloErrato' ], |
| 55 |
'Blankpage' => [ 'PaginaVuota' ], |
| 56 |
'Block' => [ 'Blocca' ], |
| 57 |
'BlockList' => [ 'IPBloccati', 'ElencoBlocchi', 'Blocchi' ], |
| 58 |
'Booksources' => [ 'RicercaISBN' ], |
| 59 |
'BrokenRedirects' => [ 'RedirectErrati' ], |
| 60 |
'Categories' => [ 'Categorie' ], |
| 61 |
'ChangeEmail' => [ 'CambiaEmail' ], |
| 62 |
'ChangePassword' => [ 'CambiaPassword' ], |
| 63 |
'ComparePages' => [ 'ComparaPagine' ], |
| 64 |
'Confirmemail' => [ 'ConfermaEmail' ], |
| 65 |
'Contributions' => [ 'Contributi', 'ContributiUtente', 'Edit' ], |
| 66 |
'CreateAccount' => [ 'CreaUtenza', 'CreaAccount' ], |
| 67 |
'Deadendpages' => [ 'PagineSenzaUscita' ], |
| 68 |
'DeletedContributions' => [ 'ContributiCancellati' ], |
| 69 |
'DoubleRedirects' => [ 'RedirectDoppi' ], |
| 70 |
'EditWatchlist' => [ 'ModificaOsservati', 'ModificaOsservatiSpeciali', 'ModificaListaSeguiti' ], |
| 71 |
'Emailuser' => [ 'InviaEmail' ], |
| 72 |
'ExpandTemplates' => [ 'EspandiTemplate' ], |
| 73 |
'Export' => [ 'Esporta' ], |
| 74 |
'Fewestrevisions' => [ 'PagineConMenoRevisioni' ], |
| 75 |
'FileDuplicateSearch' => [ 'CercaFileDuplicati' ], |
| 76 |
'Filepath' => [ 'Percorso' ], |
| 77 |
'Import' => [ 'Importa' ], |
| 78 |
'Invalidateemail' => [ 'InvalidaEmail' ], |
| 79 |
'JavaScriptTest' => [ 'TestJavaScript' ], |
| 80 |
'LinkSearch' => [ 'CercaCollegamenti', 'CercaLink' ], |
| 81 |
'Listadmins' => [ 'Amministratori', 'ElencoAmministratori', 'Admin', 'Sysop', 'Cricca' ], |
| 82 |
'Listbots' => [ 'Bot', 'ElencoBot' ], |
| 83 |
'ListDuplicatedFiles' => [ 'ElencoFileDuplicati' ], |
| 84 |
'Listfiles' => [ 'File', 'Immagini' ], |
| 85 |
'Listgrouprights' => [ 'ElencoPermessiGruppi', 'Privilegi' ], |
| 86 |
'Listredirects' => [ 'ElencoRedirect' ], |
| 87 |
'Listusers' => [ 'Utenti', 'ElencoUtenti' ], |
| 88 |
'Lockdb' => [ 'BloccaDB' ], |
| 89 |
'Log' => [ 'Registri', 'Registro' ], |
| 90 |
'Lonelypages' => [ 'PagineOrfane' ], |
| 91 |
'Longpages' => [ 'PaginePiùLunghe' ], |
| 92 |
'MergeHistory' => [ 'UnisciCronologia' ], |
| 93 |
'MIMEsearch' => [ 'RicercaMIME' ], |
| 94 |
'Mostcategories' => [ 'PagineConPiùCategorie' ], |
| 95 |
'Mostimages' => [ 'ImmaginiPiùRichiamate' ], |
| 96 |
'Mostinterwikis' => [ 'InterwikiPiùRichiamati' ], |
| 97 |
'Mostlinked' => [ 'PaginePiùRichiamate' ], |
| 98 |
'Mostlinkedcategories' => [ 'CategoriePiùRichiamate' ], |
| 99 |
'Mostlinkedtemplates' => [ 'TemplatePiùRichiamati' ], |
| 100 |
'Mostrevisions' => [ 'PagineConPiùRevisioni' ], |
| 101 |
'Movepage' => [ 'Sposta', 'Rinomina' ], |
| 102 |
'Mycontributions' => [ 'MieiContributi' ], |
| 103 |
'MyLanguage' => [ 'MiaLingua' ], |
| 104 |
'Mypage' => [ 'MiaPaginaUtente', 'MiaPagina' ], |
| 105 |
'Mytalk' => [ 'MieDiscussioni' ], |
| 106 |
'Myuploads' => [ 'MieiUpload', 'MieiEdit' ], |
| 107 |
'Newimages' => [ 'ImmaginiRecenti' ], |
| 108 |
'Newpages' => [ 'PaginePiùRecenti' ], |
| 109 |
'PagesWithProp' => [ 'PagineConProprietà' ], |
| 110 |
'PasswordReset' => [ 'ReimpostaPassword' ], |
| 111 |
'PermanentLink' => [ 'LinkPermanente' ], |
| 112 |
'Preferences' => [ 'Preferenze' ], |
| 113 |
'Prefixindex' => [ 'Prefissi' ], |
| 114 |
'Protectedpages' => [ 'PagineProtette' ], |
| 115 |
'Protectedtitles' => [ 'TitoliProtetti' ], |
| 116 |
'RandomInCategory' => [ 'CasualeInCategoria' ], |
| 117 |
'Randompage' => [ 'PaginaCasuale' ], |
| 118 |
'Randomredirect' => [ 'RedirectCasuale' ], |
| 119 |
'Recentchanges' => [ 'UltimeModifiche' ], |
| 120 |
'Recentchangeslinked' => [ 'ModificheCorrelate' ], |
| 121 |
'Renameuser' => [ 'RinominaUtente' ], |
| 122 |
'ResetTokens' => [ 'ReimpostaToken' ], |
| 123 |
'Revisiondelete' => [ 'CancellaRevisione' ], |
| 124 |
'Search' => [ 'Ricerca', 'Cerca', 'Trova' ], |
| 125 |
'Shortpages' => [ 'PaginePiùCorte' ], |
| 126 |
'Specialpages' => [ 'PagineSpeciali' ], |
| 127 |
'Statistics' => [ 'Statistiche' ], |
| 128 |
'Tags' => [ 'Etichette', 'Tag' ], |
| 129 |
'TrackingCategories' => [ 'CategorieMonitoraggio' ], |
| 130 |
'Unblock' => [ 'ElencoSblocchi', 'Sblocchi' ], |
| 131 |
'Uncategorizedcategories' => [ 'CategorieSenzaCategorie' ], |
| 132 |
'Uncategorizedimages' => [ 'ImmaginiSenzaCategorie' ], |
| 133 |
'Uncategorizedpages' => [ 'PagineSenzaCategorie' ], |
| 134 |
'Uncategorizedtemplates' => [ 'TemplateSenzaCategorie' ], |
| 135 |
'Undelete' => [ 'Ripristina' ], |
| 136 |
'Unlockdb' => [ 'SbloccaDB' ], |
| 137 |
'Unusedcategories' => [ 'CategorieNonUsate', 'CategorieVuote' ], |
| 138 |
'Unusedimages' => [ 'ImmaginiNonUsate' ], |
| 139 |
'Unusedtemplates' => [ 'TemplateNonUsati' ], |
| 140 |
'Unwatchedpages' => [ 'PagineNonOsservate' ], |
| 141 |
'Upload' => [ 'Carica' ], |
| 142 |
'UploadStash' => [ 'CodaCaricamenti' ], |
| 143 |
'Userlogin' => [ 'Entra' ], |
| 144 |
'Userlogout' => [ 'Esci' ], |
| 145 |
'Userrights' => [ 'PermessiUtente' ], |
| 146 |
'Version' => [ 'Versione' ], |
| 147 |
'Wantedcategories' => [ 'CategorieRichieste' ], |
| 148 |
'Wantedfiles' => [ 'FileRichiesti' ], |
| 149 |
'Wantedpages' => [ 'PagineRichieste' ], |
| 150 |
'Wantedtemplates' => [ 'TemplateRichiesti' ], |
| 151 |
'Watchlist' => [ 'OsservatiSpeciali' ], |
| 152 |
'Whatlinkshere' => [ 'PuntanoQui' ], |
| 153 |
'Withoutinterwiki' => [ 'PagineSenzaInterwiki' ], |
| 154 |
]; |
| 155 |
|
| 156 |
|
| 157 |
$magicWords = [ |
| 158 |
'currentday' => [ '1', 'GIORNOATTUALE', 'GIORNOCORRENTE', 'CURRENTDAY' ], |
| 159 |
'currentday2' => [ '1', 'GIORNOATTUALE2', 'GIORNOCORRENTE2', 'CURRENTDAY2' ], |
| 160 |
'currentdayname' => [ '1', 'NOMEGIORNOATTUALE', 'NOMEGIORNOCORRENTE', 'CURRENTDAYNAME' ], |
| 161 |
'currenthour' => [ '1', 'ORAATTUALE', 'ORACORRENTE', 'CURRENTHOUR' ], |
| 162 |
'currentmonth' => [ '1', 'MESEATTUALE', 'MESECORRENTE', 'CURRENTMONTH', 'CURRENTMONTH2' ], |
| 163 |
'currentmonthabbrev' => [ '1', 'MESEATTUALEABBREV', 'MESECORRENTEABBREV', 'CURRENTMONTHABBREV' ], |
| 164 |
'currentmonthname' => [ '1', 'NOMEMESEATTUALE', 'NOMEMESECORRENTE', 'CURRENTMONTHNAME' ], |
| 165 |
'currentmonthnamegen' => [ '1', 'NOMEMESEATTUALEGEN', 'NOMEMESECORRENTEGEN', 'CURRENTMONTHNAMEGEN' ], |
| 166 |
'currenttime' => [ '1', 'ORARIOATTUALE', 'CURRENTTIME' ], |
| 167 |
'currentweek' => [ '1', 'SETTIMANACORRENTE', 'CURRENTWEEK' ], |
| 168 |
'currentyear' => [ '1', 'ANNOATTUALE', 'ANNOCORRENTE', 'CURRENTYEAR' ], |
| 169 |
'displaytitle' => [ '1', 'MOSTRATITOLO', 'DISPLAYTITLE' ], |
| 170 |
'formatdate' => [ '0', 'formatodata', 'formatdate', 'dateformat' ], |
| 171 |
'gender' => [ '0', 'GENERE:', 'GENDER:' ], |
| 172 |
'img_border' => [ '1', 'bordo', 'border' ], |
| 173 |
'img_bottom' => [ '1', 'sotto', 'bottom' ], |
| 174 |
'img_center' => [ '1', 'centro', 'center', 'centre' ], |
| 175 |
'img_framed' => [ '1', 'riquadrato', 'originale', 'incorniciato', 'frame', 'framed', 'enframed' ], |
| 176 |
'img_frameless' => [ '1', 'senza_cornice', 'frameless' ], |
| 177 |
'img_left' => [ '1', 'sinistra', 'left' ], |
| 178 |
'img_manualthumb' => [ '1', 'miniatura=$1', 'min=$1', 'thumbnail=$1', 'thumb=$1' ], |
| 179 |
'img_middle' => [ '1', 'metà', 'middle' ], |
| 180 |
'img_none' => [ '1', 'nessuno', 'none' ], |
| 181 |
'img_page' => [ '1', 'pagina=$1', 'pagina_$1', 'page=$1', 'page $1' ], |
| 182 |
'img_right' => [ '1', 'destra', 'right' ], |
| 183 |
'img_sub' => [ '1', 'pedice', 'sub' ], |
| 184 |
'img_text_bottom' => [ '1', 'testo-sotto', 'text-bottom' ], |
| 185 |
'img_text_top' => [ '1', 'testo-sopra', 'text-top' ], |
| 186 |
'img_thumbnail' => [ '1', 'miniatura', 'min', 'thumb', 'thumbnail' ], |
| 187 |
'img_top' => [ '1', 'sopra', 'top' ], |
| 188 |
'img_upright' => [ '1', 'verticale', 'verticale=$1', 'verticale_$1', 'upright', 'upright=$1', 'upright $1' ], |
| 189 |
'index' => [ '1', '__INDICIZZARE__', '__INDICE__', '__INDEX__' ], |
| 190 |
'language' => [ '0', '#LINGUA', '#LANGUAGE' ], |
| 191 |
'localday' => [ '1', 'GIORNOLOCALE', 'LOCALDAY' ], |
| 192 |
'localday2' => [ '1', 'GIORNOLOCALE2', 'LOCALDAY2' ], |
| 193 |
'localdayname' => [ '1', 'NOMEGIORNOLOCALE', 'LOCALDAYNAME' ], |
| 194 |
'localhour' => [ '1', 'ORALOCALE', 'LOCALHOUR' ], |
| 195 |
'localmonth' => [ '1', 'MESELOCALE', 'MESELOCALE2', 'LOCALMONTH', 'LOCALMONTH2' ], |
| 196 |
'localmonth1' => [ '1', 'MESELOCALE1', 'LOCALMONTH1' ], |
| 197 |
'localmonthabbrev' => [ '1', 'MESELOCALEABBREV', 'LOCALMONTHABBREV' ], |
| 198 |
'localmonthname' => [ '1', 'NOMEMESELOCALE', 'LOCALMONTHNAME' ], |
| 199 |
'localmonthnamegen' => [ '1', 'NOMEMESELOCALEGEN', 'LOCALMONTHNAMEGEN' ], |
| 200 |
'localtime' => [ '1', 'ORARIOLOCALE', 'LOCALTIME' ], |
| 201 |
'localweek' => [ '1', 'SETTIMANALOCALE', 'LOCALWEEK' ], |
| 202 |
'localyear' => [ '1', 'ANNOLOCALE', 'LOCALYEAR' ], |
| 203 |
'noindex' => [ '1', '__NONINDICIZZARE__', '__NOINDICE__', '__NOINDEX__' ], |
| 204 |
'numberofactiveusers' => [ '1', 'NUMEROUTENTIATTIVI', 'NUMBEROFACTIVEUSERS' ], |
| 205 |
'numberofadmins' => [ '1', 'NUMEROADMIN', 'NUMBEROFADMINS' ], |
| 206 |
'numberofarticles' => [ '1', 'NUMEROVOCI', 'NUMEROARTICOLI', 'NUMBEROFARTICLES' ], |
| 207 |
'numberofedits' => [ '1', 'NUMEROMODIFICHE', 'NUMEROEDIT', 'NUMBEROFEDITS' ], |
| 208 |
'numberoffiles' => [ '1', 'NUMEROFILE', 'NUMBEROFFILES' ], |
| 209 |
'numberofpages' => [ '1', 'NUMEROPAGINE', 'NUMBEROFPAGES' ], |
| 210 |
'numberofusers' => [ '1', 'NUMEROUTENTI', 'NUMBEROFUSERS' ], |
| 211 |
'pagename' => [ '1', 'TITOLOPAGINA', 'PAGENAME' ], |
| 212 |
'pagenamee' => [ '1', 'TITOLOPAGINAE', 'PAGENAMEE' ], |
| 213 |
'pagesincategory' => [ '1', 'PAGINEINCAT', 'PAGESINCATEGORY', 'PAGESINCAT' ], |
| 214 |
'pagesincategory_files' => [ '0', 'file', 'files' ], |
| 215 |
'pagesincategory_pages' => [ '0', 'pagine', 'pages' ], |
| 216 |
'pagesize' => [ '1', 'DIMENSIONEPAGINA', 'PESOPAGINA', 'PAGESIZE' ], |
| 217 |
'plural' => [ '0', 'PLURALE:', 'PLURAL:' ], |
| 218 |
'protectionlevel' => [ '1', 'LIVELLOPROTEZIONE', 'PROTECTIONLEVEL' ], |
| 219 |
'redirect' => [ '0', '#RINVIA', '#RINVIO', '#RIMANDO', '#REDIRECT' ], |
| 220 |
'servername' => [ '0', 'NOMESERVER', 'SERVERNAME' ], |
| 221 |
'sitename' => [ '1', 'NOMESITO', 'SITENAME' ], |
| 222 |
'subpagename' => [ '1', 'NOMESOTTOPAGINA', 'SUBPAGENAME' ], |
| 223 |
'subpagenamee' => [ '1', 'NOMESOTTOPAGINAE', 'SUBPAGENAMEE' ], |
| 224 |
'subst' => [ '0', 'SOST:', 'SUBST:' ], |
| 225 |
'tag' => [ '0', 'etichetta', 'tag' ], |
| 226 |
]; |
| 227 |
|
| 228 |
$linkTrail = '/^([a-zàéèíîìóòúù]+)(.*)$/sDu'; |