Some modernization & code cleanup

* Move the Preloader class into its own file + add $wgAutoloadClasses entry
* Coding style tweaks, as per MediaWiki's coding conventions
* Converted from PHP-based i18n to JSON i18n
* Version 1.3 with the appropriate changelog entries and whatnot
* Deprecated Preloader.php (but didn't fully remove it yet) in favor of extension.json -- MediaWiki 1.25 or newer is now required for this extension
* Added myself into authors
* Changed the Special:Version URL back to MediaWiki.org as it should be the canonical location for extension (and skin etc.) documentation; since this is an updated version of [[mw:Extension:Preloader]] it should be no problem to update that page to point to the correct repository etc.
* Tweak the README file to account for new MW requirements + extension loading method
* Fix $wgPreloaderSource so that it works again ( HT @legoktm )
This commit is contained in:
tengel 2024-03-20 09:20:41 -05:00
parent 8a1c409feb
commit 9b7b7526ab
58 changed files with 534 additions and 462 deletions

8
i18n/ar.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Meno25"
]
},
"preloader-desc": "يوفر نص بويلربلات مخصص لكل نطاق للصفحات الجديدة"
}

8
i18n/arz.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Meno25"
]
},
"preloader-desc": "يوفر نص بويلربلات مخصص لكل نطاق للصفحات الجديدة"
}

8
i18n/ast.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Xuacu"
]
},
"preloader-desc": "Proporciona un testu patrón personalizable por espaciu de nome pa les páxines nueves"
}

8
i18n/be-tarask.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"EugeneZelenko"
]
},
"preloader-desc": "Дадае тыпавыя тэксты для новых старонак, якія магчыма настройваць па прасторах назваў"
}

8
i18n/br.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Fulup"
]
},
"preloader-desc": "Pourchas a ra prenestroù testenn personeladus evit pep esaouenn anv, evit ar pajennoù nevez"
}

8
i18n/bs.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"CERminator"
]
},
"preloader-desc": "Omogućuje unos po imenskom prostoru prilagodljivih šablona za nove stranice"
}

8
i18n/da.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Byrial"
]
},
"preloader-desc": "Giver en forhåndsbestemt starttekst for nye sider for hvert navnerum"
}

8
i18n/de.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Raimond Spekking"
]
},
"preloader-desc": "Ermöglicht das Hinzufügen pro Namensraum anpassbarer Vorlagen bei der Erstellung neuer Seiten"
}

8
i18n/dsb.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Michawiki"
]
},
"preloader-desc": "Zmóžnja pśiměrjujobne tekstowe elementy za nowe boki na mjenjowy rum"
}

8
i18n/el.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Omnipaedista"
]
},
"preloader-desc": "Παρέχει για τις καινούργιες σελίδες εξατομικευμένο πανομοιότυπο κείμενο κατά περιοχή ονομάτων"
}

8
i18n/en.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Rob Church"
]
},
"preloader-desc": "Provides customisable per-namespace boilerplate text for new pages"
}

8
i18n/eo.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Yekrats"
]
},
"preloader-desc": "Provizas ŝanĝeblan norman tekston laŭ nomspaco por novaj paĝoj"
}

8
i18n/es.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Sanbec"
]
},
"preloader-desc": "Provee texto por defecto para las páginas nuevas configurable para cada espacio de nombres"
}

8
i18n/fi.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Mobe"
]
},
"preloader-desc": "Tarjoaa muokattavan nimiavaruuskohtaisen pohjatekstin uusille sivuille."
}

9
i18n/fr.json Normal file
View file

@ -0,0 +1,9 @@
{
"@metadata": {
"authors": [
"Grondin",
"Zetud"
]
},
"preloader-desc": "Fournit, pour les nouvelles pages, des fenêtres de texte personnalisables par nom d’espace"
}

8
i18n/gl.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Toliño"
]
},
"preloader-desc": "Proporciona, para as páxinas novas, ventás de texto personalizable para os nomes dos espazos"
}

8
i18n/grc.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Omnipaedista"
]
},
"preloader-desc": "Παρέχει συνηθισμένον πανομοιότυπον κείμενον κατὰ ὀνοματεῖον διὰ τὰς καινοὺς δέλτους"
}

8
i18n/gsw.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Als-Holder"
]
},
"preloader-desc": "Macht s megli pro Namensruum aapassbarei Vorlage zuezfiege bim Aalege vu neje Syte"
}

8
i18n/he.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Rotemliss"
]
},
"preloader-desc": "אפשרות לתבנית טקסט עבור דפים חדשים, שניתנת להתאמה לפי מרחב שם"
}

8
i18n/hil.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Tagimata"
]
},
"preloader-desc": "Nagahatag sang gin-obra na daan kada-ngalanespasyo boilerplate teksto para sa mga bag-o nga pahina"
}

8
i18n/hsb.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Michawiki"
]
},
"preloader-desc": "Dodawa tekstowe elementy za nowe strony přiměrjomne na mjenowy rum"
}

8
i18n/hu.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Tgr"
]
},
"preloader-desc": "Névterenként más-más rendszerüzenet az új oldalakhoz"
}

8
i18n/ia.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"McDutchie"
]
},
"preloader-desc": "Permitte predefinir un modello de texto pro nove paginas, un pro cata spatio de nomines"
}

8
i18n/id.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Bennylin"
]
},
"preloader-desc": "Menyediakan teks pembuka yang dapat dikustomisasi per ruang nama untuk halaman-halaman baru"
}

8
i18n/it.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Darth Kule"
]
},
"preloader-desc": "Fornisce un testo standard personalizzabile per ciascun namespace per le nuove pagine"
}

9
i18n/ja.json Normal file
View file

@ -0,0 +1,9 @@
{
"@metadata": {
"authors": [
"Fryed-peach",
"Shirayuki"
]
},
"preloader-desc": "新しいページ用に名前空間ごとのカスタマイズ可能な雛形文章を提供する"
}

8
i18n/ko.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"아라"
]
},
"preloader-desc": "새 문서에 대해 사용자 정의 이름공간마다 상용구를 제공"
}

8
i18n/ksh.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Purodha"
]
},
"preloader-desc": "Määt et müjjelesch, för jedes Appachtemang ene Täx förzejävve, dä eets ens ne de neu Sigge erin küt."
}

8
i18n/lb.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Robby"
]
},
"preloader-desc": "Erméiglecht et personabiliséierten Text fir nei Säiten pro Nummraum derbäizesetzen"
}

8
i18n/mk.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Bjankuloski06"
]
},
"preloader-desc": "Овозможува кориснички-прилагодлив фиксен текст за нови страници"
}

8
i18n/mr.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Kaustubh"
]
},
"preloader-desc": "नवीन पानांसाठी बदलता येण्याजोगी नामविश्व बॉइलरप्लेट देते"
}

8
i18n/ms.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Anakmalaysia"
]
},
"preloader-desc": "Menyediakan teks plat dandang seruang nama yang boleh disuaikan untuk laman baru"
}

6
i18n/nb.json Normal file
View file

@ -0,0 +1,6 @@
{
"@metadata": {
"authors": []
},
"preloader-desc": "Gir egendefinerbar forhåndslastet tekst for nye sider i de enkelte navnerommene"
}

8
i18n/nds.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Slomox"
]
},
"preloader-desc": "Verlöövt dat Tofögen vun ännerbore Vörlagen, de för elk Naamruum bi’t Opstellen vun ne’e Sieden wiest warrt"
}

8
i18n/nl.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Siebrand"
]
},
"preloader-desc": "Geeft de mogelijkheid aan te passen per naamruimte tekstblokken te maken voor nieuwe pagina's"
}

9
i18n/nn.json Normal file
View file

@ -0,0 +1,9 @@
{
"@metadata": {
"authors": [
"Harald Khan",
"Njardarlogar"
]
},
"preloader-desc": "Gjev ein eigendefinerbar førehandslasta tekst for nye sider i dei enkelte namneromma"
}

8
i18n/oc.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Cedric31"
]
},
"preloader-desc": "Provesís, per las paginas novèlas, de fenèstras de tèxte personalizablas per nom d’espaci"
}

8
i18n/pl.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Sp5uhe"
]
},
"preloader-desc": "Zapewnia odrębny dla każdej przestrzeni nazw domyślny tekst nowej strony"
}

8
i18n/pms.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Dragonòt"
]
},
"preloader-desc": "A dà test përsonalisà për-namespace për neuve pàgine"
}

8
i18n/pt-br.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Eduardo.mps"
]
},
"preloader-desc": "Fornece textos-modelo para novas páginas, personalizáveis por domínio"
}

9
i18n/pt.json Normal file
View file

@ -0,0 +1,9 @@
{
"@metadata": {
"authors": [
"Hamilton Abreu",
"Waldir"
]
},
"preloader-desc": "Fornece textos-modelo para novas páginas, personalizáveis por espaço nominal"
}

9
i18n/qqq.json Normal file
View file

@ -0,0 +1,9 @@
{
"@metadata": {
"authors": [
"Purodha",
"The Evil IP address"
]
},
"preloader-desc": "{{desc}}"
}

8
i18n/roa-tara.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Joetaras"
]
},
"preloader-desc": "Avène ausete pe de le pre-namespace ca sonde personalizzabbele pe le pàggene nueve"
}

8
i18n/ru.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Александр Сигачёв"
]
},
"preloader-desc": "Предоставляет настраиваемые по пространствам имён типовые тексты для новых страниц"
}

8
i18n/sk.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Helix84"
]
},
"preloader-desc": "Poskytuje prispôsobiteľný šablónový text pre nové stránky na báze menných priestorov"
}

8
i18n/stq.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Pyt"
]
},
"preloader-desc": "Moaket dät Bietouföigjen muugelk fon pro Noomensruum anpaasboare Foarloagen bie dät Moakjen fon näie Sieden"
}

8
i18n/sv.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"M.M.S."
]
},
"preloader-desc": "Ger en egendefinierad förhandsladdad text för nya sidor"
}

8
i18n/te.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Veeven"
]
},
"preloader-desc": "కొత్త పేజీలకి పేరుబరివారీగా మార్చుకొనగలిగే మూస పాఠ్యాన్ని అందిస్తుంది"
}

8
i18n/tl.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"AnakngAraw"
]
},
"preloader-desc": "Nagbibigay na maipapasadyang pang-bawat espasyo ng pangalang teksto ng pakuluang-bakal para sa bagong mga pahina"
}

8
i18n/tr.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Vito Genovese"
]
},
"preloader-desc": "Yeni sayfalar için isim alanına özel kişiselleştirilebilir hazır metinler sunar"
}

8
i18n/uk.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Alex Khimich"
]
},
"preloader-desc": "Забезпечення настроюваних за імен по стандартним типовим текстам для нової сторінки"
}

8
i18n/vi.json Normal file
View file

@ -0,0 +1,8 @@
{
"@metadata": {
"authors": [
"Vinhtantran"
]
},
"preloader-desc": "Cung cấp những mẫu văn bản viết sẵn theo từng không gian tên khi tạo trang mới"
}