| 1 |
<?php |
| 2 |
) |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
$fallback = 'oc'; |
| 9 |
|
| 10 |
$namespaceNames = [ |
| 11 |
NS_MEDIA => 'Media', |
| 12 |
NS_SPECIAL => 'Especial', |
| 13 |
NS_TALK => 'Discussió', |
| 14 |
NS_USER => 'Usuari', |
| 15 |
NS_USER_TALK => 'Usuari_Discussió', |
| 16 |
NS_PROJECT_TALK => '$1_Discussió', |
| 17 |
NS_FILE => 'Fitxer', |
| 18 |
NS_FILE_TALK => 'Fitxer_Discussió', |
| 19 |
NS_MEDIAWIKI => 'MediaWiki', |
| 20 |
NS_MEDIAWIKI_TALK => 'MediaWiki_Discussió', |
| 21 |
NS_TEMPLATE => 'Plantilla', |
| 22 |
NS_TEMPLATE_TALK => 'Plantilla_Discussió', |
| 23 |
NS_HELP => 'Ajuda', |
| 24 |
NS_HELP_TALK => 'Ajuda_Discussió', |
| 25 |
NS_CATEGORY => 'Categoria', |
| 26 |
NS_CATEGORY_TALK => 'Categoria_Discussió', |
| 27 |
]; |
| 28 |
|
| 29 |
$namespaceAliases = [ |
| 30 |
'Imatge' => NS_FILE, |
| 31 |
'Imatge_Discussió' => NS_FILE_TALK, |
| 32 |
]; |
| 33 |
|
| 34 |
$namespaceGenderAliases = [ |
| 35 |
NS_USER => [ 'male' => 'Usuari', 'female' => 'Usuària' ], |
| 36 |
NS_USER_TALK => [ 'male' => 'Usuari_Discussió', 'female' => 'Usuària_Discussió' ], |
| 37 |
]; |
| 38 |
|
| 39 |
|
| 40 |
$specialPageAliases = [ |
| 41 |
'Activeusers' => [ 'Usuaris_actius' ], |
| 42 |
'Allmessages' => [ 'Missatges', 'MediaWiki' ], |
| 43 |
'Allpages' => [ 'Llista_de_pàgines' ], |
| 44 |
'Ancientpages' => [ 'Pàgines_velles' ], |
| 45 |
'Badtitle' => [ 'Títol_incorrecte' ], |
| 46 |
'Blankpage' => [ 'Pàgina_en_blanc', 'Blanc' ], |
| 47 |
'Block' => [ 'Bloca' ], |
| 48 |
'BlockList' => [ 'Usuaris_blocats' ], |
| 49 |
'Booksources' => [ 'Fonts_bibliogràfiques' ], |
| 50 |
'BrokenRedirects' => [ 'Redireccions_rompudes' ], |
| 51 |
'ChangeEmail' => [ 'Canvia_adreça_electrònica' ], |
| 52 |
'ChangePassword' => [ 'Reinicia_contrasenya' ], |
| 53 |
'Confirmemail' => [ 'Confirma_adreça' ], |
| 54 |
'Contributions' => [ 'Contribucions' ], |
| 55 |
'CreateAccount' => [ 'Crea_compte' ], |
| 56 |
'Deadendpages' => [ 'Atzucacs' ], |
| 57 |
'DeletedContributions' => [ 'Contribucions_esborrades' ], |
| 58 |
'DoubleRedirects' => [ 'Redireccions_dobles' ], |
| 59 |
'Emailuser' => [ 'Envia_missatge' ], |
| 60 |
'ExpandTemplates' => [ 'Expansió_de_plantilles' ], |
| 61 |
'Export' => [ 'Exporta' ], |
| 62 |
'Fewestrevisions' => [ 'Pàgines_menys_editades' ], |
| 63 |
'FileDuplicateSearch' => [ 'Cerca_fitxers_duplicats' ], |
| 64 |
'Import' => [ 'Importa' ], |
| 65 |
'LinkSearch' => [ 'Enllaços_web', 'Busca_enllaços', 'Recerca_d\'enllaços_web' ], |
| 66 |
'Listadmins' => [ 'Administradors' ], |
| 67 |
'Listbots' => [ 'Bots' ], |
| 68 |
'Listfiles' => [ 'Imatges', 'Fitxers' ], |
| 69 |
'Listgrouprights' => [ 'Drets_dels_grups_d\'usuaris' ], |
| 70 |
'Listredirects' => [ 'Redireccions' ], |
| 71 |
'Listusers' => [ 'Usuaris' ], |
| 72 |
'Lockdb' => [ 'Bloca_bd' ], |
| 73 |
'Log' => [ 'Registre' ], |
| 74 |
'Lonelypages' => [ 'Pàgines_òrfenes' ], |
| 75 |
'Longpages' => [ 'Pàgines_llargues' ], |
| 76 |
'MergeHistory' => [ 'Fusiona_historial' ], |
| 77 |
'MIMEsearch' => [ 'Cerca_MIME' ], |
| 78 |
'Mostcategories' => [ 'Pàgines_amb_més_categories' ], |
| 79 |
'Mostimages' => [ 'Imatges_més_útils' ], |
| 80 |
'Mostlinked' => [ 'Pàgines_més_enllaçades' ], |
| 81 |
'Mostlinkedcategories' => [ 'Categories_més_útils' ], |
| 82 |
'Mostlinkedtemplates' => [ 'Plantilles_més_útils' ], |
| 83 |
'Mostrevisions' => [ 'Pàgines_més_editades' ], |
| 84 |
'Movepage' => [ 'Reanomena' ], |
| 85 |
'Mycontributions' => [ 'Contribucions_pròpies' ], |
| 86 |
'Mypage' => [ 'Pàgina_personal' ], |
| 87 |
'Mytalk' => [ 'Discussió_personal' ], |
| 88 |
'Newimages' => [ 'Imatges_noves', 'Fitxers_nous' ], |
| 89 |
'Newpages' => [ 'Pàgines_noves' ], |
| 90 |
'Preferences' => [ 'Preferències' ], |
| 91 |
'Prefixindex' => [ 'Cerca_per_prefix' ], |
| 92 |
'Protectedpages' => [ 'Pàgines_protegides' ], |
| 93 |
'Protectedtitles' => [ 'Títols_protegits' ], |
| 94 |
'Randompage' => [ 'Article_aleatori', 'Atzar', 'Aleatori' ], |
| 95 |
'Randomredirect' => [ 'Redirecció_aleatòria' ], |
| 96 |
'Recentchanges' => [ 'Canvis_recents' ], |
| 97 |
'Recentchangeslinked' => [ 'Seguiment' ], |
| 98 |
'Renameuser' => [ 'Reanomena_usuari' ], |
| 99 |
'Revisiondelete' => [ 'Esborra_versió' ], |
| 100 |
'Search' => [ 'Cerca' ], |
| 101 |
'Shortpages' => [ 'Pàgines_curtes' ], |
| 102 |
'Specialpages' => [ 'Pàgines_especials' ], |
| 103 |
'Statistics' => [ 'Estadístiques' ], |
| 104 |
'Unblock' => [ 'Desbloca', 'Desbloqueja' ], |
| 105 |
'Uncategorizedcategories' => [ 'Categories_sense_categoria' ], |
| 106 |
'Uncategorizedimages' => [ 'Imatges_sense_categoria' ], |
| 107 |
'Uncategorizedpages' => [ 'Pàgines_sense_categoria' ], |
| 108 |
'Uncategorizedtemplates' => [ 'Plantilles_sense_categoria' ], |
| 109 |
'Undelete' => [ 'Restaura' ], |
| 110 |
'Unlockdb' => [ 'Desbloca_bd' ], |
| 111 |
'Unusedcategories' => [ 'Categories_no_usades' ], |
| 112 |
'Unusedimages' => [ 'Imatges_no_usades' ], |
| 113 |
'Unusedtemplates' => [ 'Plantilles_no_usades' ], |
| 114 |
'Unwatchedpages' => [ 'Pàgines_desateses' ], |
| 115 |
'Upload' => [ 'Carrega' ], |
| 116 |
'Userlogin' => [ 'Registre_i_entrada' ], |
| 117 |
'Userlogout' => [ 'Finalitza_sessió' ], |
| 118 |
'Userrights' => [ 'Drets' ], |
| 119 |
'Version' => [ 'Versió' ], |
| 120 |
'Wantedcategories' => [ 'Categories_demanades' ], |
| 121 |
'Wantedfiles' => [ 'Arxius_demanats' ], |
| 122 |
'Wantedpages' => [ 'Pàgines_demanades' ], |
| 123 |
'Wantedtemplates' => [ 'Plantilles_demanades' ], |
| 124 |
'Watchlist' => [ 'Llista_de_seguiment' ], |
| 125 |
'Whatlinkshere' => [ 'Enllaços' ], |
| 126 |
'Withoutinterwiki' => [ 'Sense_interwiki' ], |
| 127 |
]; |
| 128 |
|
| 129 |
|
| 130 |
$magicWords = [ |
| 131 |
'contentlanguage' => [ '1', 'IDIOMACONTINGUT', 'LLENGUACONTINGUT', 'CONTENTLANGUAGE', 'CONTENTLANG' ], |
| 132 |
'currentday' => [ '1', 'DIAACTUAL', 'CURRENTDAY' ], |
| 133 |
'currentday2' => [ '1', 'DIAACTUAL2', 'CURRENTDAY2' ], |
| 134 |
'currentdayname' => [ '1', 'NOMDIAACTUAL', 'CURRENTDAYNAME' ], |
| 135 |
'currenthour' => [ '1', 'HORAACTUAL', 'CURRENTHOUR' ], |
| 136 |
'currentmonth' => [ '1', 'MESACTUAL', 'CURRENTMONTH', 'CURRENTMONTH2' ], |
| 137 |
'currentmonthabbrev' => [ '1', 'ABREVMESACTUAL', 'CURRENTMONTHABBREV' ], |
| 138 |
'currentmonthname' => [ '1', 'NOMMESACTUAL', 'CURRENTMONTHNAME' ], |
| 139 |
'currentmonthnamegen' => [ '1', 'NOMGENMESACTUAL', 'CURRENTMONTHNAMEGEN' ], |
| 140 |
'currenttime' => [ '1', 'HORARICTUAL', 'CURRENTTIME' ], |
| 141 |
'currentversion' => [ '1', 'VERSIÓACTUAL', 'VERSIOACTUAL', 'CURRENTVERSION' ], |
| 142 |
'currentyear' => [ '1', 'ANYACTUAL', 'CURRENTYEAR' ], |
| 143 |
'defaultsort' => [ '1', 'ORDENA:', 'DEFAULTSORT:', 'DEFAULTSORTKEY:', 'DEFAULTCATEGORYSORT:' ], |
| 144 |
'displaytitle' => [ '1', 'TÍTOL', 'TITOL', 'DISPLAYTITLE' ], |
| 145 |
'filepath' => [ '0', 'CAMÍ:', 'CAMI:', 'FILEPATH:' ], |
| 146 |
'forcetoc' => [ '0', '__FORÇATAULA__', '__FORCETOC__' ], |
| 147 |
'formatnum' => [ '0', 'FORMATNOMBRE', 'FORMATNUM' ], |
| 148 |
'hiddencat' => [ '1', '__CATAMAGADA__', '__HIDDENCAT__' ], |
| 149 |
'img_alt' => [ '1', 'alt=$1' ], |
| 150 |
'img_baseline' => [ '1', 'línia de base', 'baseline' ], |
| 151 |
'img_border' => [ '1', 'vora', 'border' ], |
| 152 |
'img_bottom' => [ '1', 'baix', 'bottom' ], |
| 153 |
'img_center' => [ '1', 'center', 'centre' ], |
| 154 |
'img_class' => [ '1', 'class=$1' ], |
| 155 |
'img_framed' => [ '1', 'marc', 'frame', 'framed', 'enframed' ], |
| 156 |
'img_frameless' => [ '1', 'sense marc', 'frameless' ], |
| 157 |
'img_lang' => [ '1', 'lang=$1', 'llengua=$1', 'idioma=$1' ], |
| 158 |
'img_left' => [ '1', 'esquerra', 'left' ], |
| 159 |
'img_link' => [ '1', 'enllaç=$1', 'link=$1' ], |
| 160 |
'img_manualthumb' => [ '1', 'miniatura=$1', 'thumbnail=$1', 'thumb=$1' ], |
| 161 |
'img_middle' => [ '1', 'mitjà', 'middle' ], |
| 162 |
'img_none' => [ '1', 'cap', 'none' ], |
| 163 |
'img_page' => [ '1', 'pàgina=$1', 'pàgina $1', 'page=$1', 'page $1' ], |
| 164 |
'img_right' => [ '1', 'dreta', 'right' ], |
| 165 |
'img_sub' => [ '1', 'sub' ], |
| 166 |
'img_super' => [ '1', 'super', 'sup' ], |
| 167 |
'img_text_bottom' => [ '1', 'baix-text', 'text-bottom' ], |
| 168 |
'img_text_top' => [ '1', 'dalt-text', 'text-top' ], |
| 169 |
'img_thumbnail' => [ '1', 'miniatura', 'thumb', 'thumbnail' ], |
| 170 |
'img_top' => [ '1', 'dalt', 'top' ], |
| 171 |
'img_upright' => [ '1', 'redreçat', 'upright', 'redreçat=$1', 'upright=$1', 'redreçat $1', 'upright $1' ], |
| 172 |
'img_width' => [ '1', '$1px' ], |
| 173 |
'language' => [ '0', '#IDIOMA', '#LLENGUA', '#LANGUAGE' ], |
| 174 |
'localday' => [ '1', 'DIALOCAL', 'LOCALDAY' ], |
| 175 |
'localday2' => [ '1', 'DIALOCAL2', 'LOCALDAY2' ], |
| 176 |
'localdayname' => [ '1', 'NOMDIALOCAL', 'LOCALDAYNAME' ], |
| 177 |
'localhour' => [ '1', 'HORALOCAL', 'LOCALHOUR' ], |
| 178 |
'localmonth' => [ '1', 'MESLOCAL', 'LOCALMONTH', 'LOCALMONTH2' ], |
| 179 |
'localmonthabbrev' => [ '1', 'ABREVMESLOCAL', 'LOCALMONTHABBREV' ], |
| 180 |
'localmonthname' => [ '1', 'NOMMESLOCAL', 'LOCALMONTHNAME' ], |
| 181 |
'localmonthnamegen' => [ '1', 'NOMGENMESLOCAL', 'LOCALMONTHNAMEGEN' ], |
| 182 |
'localtime' => [ '1', 'HORARILOCAL', 'LOCALTIME' ], |
| 183 |
'localyear' => [ '1', 'ANYLOCAL', 'LOCALYEAR' ], |
| 184 |
'noeditsection' => [ '0', '__SECCIÓNOEDITABLE__', '__SECCIONOEDITABLE__', '__NOEDITSECTION__' ], |
| 185 |
'nogallery' => [ '0', '__CAPGALERIA__', '__NOGALERIA__', '__NOGALLERY__' ], |
| 186 |
'noindex' => [ '1', '__CAPINDEX__', '__NOINDEX__' ], |
| 187 |
'notoc' => [ '0', '__CAPTAULA__', '__NOTAULA__', '__NOTOC__' ], |
| 188 |
'numberofadmins' => [ '1', 'NOMBREADMINS', 'NUMBEROFADMINS' ], |
| 189 |
'numberofarticles' => [ '1', 'NOMBREARTICLES', 'NOMBRED\'ARTICLES', 'NUMBEROFARTICLES' ], |
| 190 |
'numberofedits' => [ '1', 'NOMBREEDICIONS', 'NOMBRED\'EDICIONS', 'NUMBEROFEDITS' ], |
| 191 |
'numberoffiles' => [ '1', 'NOMBREFITXERS', 'NOMBRED\'ARXIUS', 'NUMBEROFFILES' ], |
| 192 |
'numberofusers' => [ '1', 'NOMBREUSUARIS', 'NOMBRED\'USUARIS', 'NUMBEROFUSERS' ], |
| 193 |
'padleft' => [ '0', 'SEPARACIÓESQUERRA', 'SEPARACIOESQUERRA', 'PADLEFT' ], |
| 194 |
'padright' => [ '0', 'SEPARACIÓDRETA', 'SEPARACIODRETA', 'PADRIGHT' ], |
| 195 |
'pagename' => [ '1', 'NOMPÀGINA', 'NOMPAGINA', 'NOMDELAPLANA', 'PAGENAME' ], |
| 196 |
'pagesincategory' => [ '1', 'PÀGINESENCATEGORIA', 'PAGINESENCATEGORIA', 'PAGINESENCAT', 'PAGESINCATEGORY', 'PAGESINCAT' ], |
| 197 |
'pagesinnamespace' => [ '1', 'PÀGINESENESPAINOMS:', 'PAGESINNAMESPACE:', 'PAGESINNS:' ], |
| 198 |
'pagesize' => [ '1', 'MIDAPÀGINA', 'MIDAPAGINA', 'MIDADELAPLANA', 'PAGESIZE' ], |
| 199 |
'protectionlevel' => [ '1', 'NIVELLPROTECCIÓ', 'NIVELLPROTECCIO', 'PROTECTIONLEVEL' ], |
| 200 |
'redirect' => [ '0', '#REDIRECCIÓ', '#REDIRECCIO', '#REDIRECT' ], |
| 201 |
'special' => [ '0', 'especial', 'special' ], |
| 202 |
'staticredirect' => [ '1', '__REDIRECCIÓESTATICA__', '__REDIRECCIOESTATICA__', '__STATICREDIRECT__' ], |
| 203 |
'tag' => [ '0', 'etiqueta', 'marcador', 'tag' ], |
| 204 |
'toc' => [ '0', '__TAULA__', '__RESUM__', '__TDM__', '__TOC__' ], |
| 205 |
]; |
| 206 |
|
| 207 |
$separatorTransformTable = [ ',' => '.', '.' => ',' ]; |
| 208 |
|
| 209 |
$dateFormats = [ |
| 210 |
'mdy time' => 'H:i', |
| 211 |
'mdy date' => 'M j, Y', |
| 212 |
'mdy both' => 'H:i, M j, Y', |
| 213 |
|
| 214 |
'dmy time' => 'H:i', |
| 215 |
'dmy date' => 'j M Y', |
| 216 |
'dmy both' => 'H:i, j M Y', |
| 217 |
|
| 218 |
'ymd time' => 'H:i', |
| 219 |
'ymd date' => 'Y M j', |
| 220 |
'ymd both' => 'H:i, Y M j', |
| 221 |
]; |
| 222 |
|
| 223 |
$datePreferences = [ |
| 224 |
'default', |
| 225 |
'dmy', |
| 226 |
'ymd', |
| 227 |
'ISO 8601', |
| 228 |
]; |
| 229 |
$defaultDateFormat = 'dmy'; |
| 230 |
|
| 231 |
$bookstoreList = [ |
| 232 |
'Catàleg Col·lectiu de les Universitats de Catalunya' => 'http://ccuc.cbuc.cat/search*cat/X?SEARCH=$1', |
| 233 |
'inherit' => true, |
| 234 |
]; |
| 235 |
|
| 236 |
$linkTrail = "/^((?:[a-zàèéíòóúç·ïü]|'(?!'))+)(.*)$/sDu"; |