Index: trunk/extensions/MWReleases/MWReleases.alias.php |
— | — | @@ -1,17 +0,0 @@ |
2 | | -<?php |
3 | | -/** |
4 | | - * Special page aliases for MWReleases extension. |
5 | | - * |
6 | | - * @file |
7 | | - * @ingroup Extensions |
8 | | - */ |
9 | | - |
10 | | -$aliases = array(); |
11 | | - |
12 | | -/** English |
13 | | - * @author Chad Horohoe |
14 | | - */ |
15 | | -$aliases['en'] = array( |
16 | | - 'ReleaseManager' => array( 'ReleaseManager' ), |
17 | | - 'DownloadMediaWiki' => array( 'DownloadMediaWiki' ), |
18 | | -); |
Index: trunk/extensions/MWReleases/MWReleases.sql |
— | — | @@ -1,13 +0,0 @@ |
2 | | - |
3 | | -CREATE TABLE /*_*/mwreleases ( |
4 | | - mwr_id int(10) unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, |
5 | | - mwr_name varchar(255) NOT NULL, |
6 | | - mwr_number varchar(32) NOT NULL, |
7 | | - mwr_reldate varbinary(32) DEFAULT NULL, |
8 | | - mwr_eoldate varbinary(32) DEFAULT NULL, |
9 | | - mwr_branch varchar(32) NOT NULL, |
10 | | - mwr_tag varchar(32) NOT NULL, |
11 | | - mwr_announcement varchar(255) DEFAULT NULL, |
12 | | - mwr_supported int(1) NOT NULL |
13 | | -) /*$wgDBTableOptions*/; |
Index: trunk/extensions/MWReleases/ApiMWReleases.php |
— | — | @@ -0,0 +1,51 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * Class definition for MWReleases API Module |
| 6 | + */ |
| 7 | + |
| 8 | +class ApiMWReleases extends ApiBase { |
| 9 | + |
| 10 | + // Possible releases. Current is the latest stable, |
| 11 | + // Alpha is trunk, Beta is release candidates |
| 12 | + private $tags = array( 'current', 'alpha', 'beta' ); |
| 13 | + |
| 14 | + public function __construct($main, $action) { |
| 15 | + parent :: __construct($main, $action); |
| 16 | + } |
| 17 | + |
| 18 | + public function execute() { |
| 19 | + $results = array(); |
| 20 | + $releases = explode( "\n", wfMsgForContent( 'mwreleases-list' ) ); |
| 21 | + foreach( $releases as $release ) { |
| 22 | + $release = trim( $release ); |
| 23 | + if( substr( $release, 0, 1 ) == '#' ) { |
| 24 | + continue; |
| 25 | + } |
| 26 | + if( strpos( $release, ':' ) !== false ) { |
| 27 | + list( $status, $version ) = explode( ':', $release, 2 ); |
| 28 | + $r = array( 'version' => $version ); |
| 29 | + if( in_array( $status, $this->tags ) ) |
| 30 | + $r[$status] = ''; |
| 31 | + $results[] = $r; |
| 32 | + } |
| 33 | + } |
| 34 | + $this->getResult()->setIndexedTagName($results, 'release'); |
| 35 | + $this->getResult()->addValue(null, $this->getModuleName(), $results); |
| 36 | + } |
| 37 | + |
| 38 | + public function getDescription() { |
| 39 | + return array ( |
| 40 | + 'Get the list of current Mediawiki releases' |
| 41 | + ); |
| 42 | + } |
| 43 | + |
| 44 | + protected function getExamples() { |
| 45 | + return array( |
| 46 | + 'api.php?action=mwreleases' |
| 47 | + ); |
| 48 | + } |
| 49 | + public function getVersion() { |
| 50 | + return __CLASS__ . ': ' . MWRELEASES_VERSION; |
| 51 | + } |
| 52 | +} |
Property changes on: trunk/extensions/MWReleases/ApiMWReleases.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 53 | + native |
Index: trunk/extensions/MWReleases/MWReleases.i18n.php |
— | — | @@ -1,39 +1,419 @@ |
2 | 2 | <?php |
| 3 | + |
3 | 4 | /** |
4 | | - * Internationalization file for MWReleases extension. |
5 | | - * |
6 | | - * @file |
7 | | - * @ingroup Extensions |
| 5 | + * Internationalization file for MWReleases |
8 | 6 | */ |
9 | | - |
10 | 7 | $messages = array(); |
11 | 8 | |
12 | | -/** English |
13 | | - * @author Chad Horohoe |
| 9 | +/** |
| 10 | + * English |
14 | 11 | */ |
15 | 12 | $messages['en'] = array( |
16 | | - 'mwr-desc' => 'Manages releases of the MediaWiki software', |
17 | | - 'releasemanager' => 'MediaWiki release manager', |
18 | | - 'releasemanager-header' => 'Welcome to the MediaWiki release manager. Use the options below to manage the releases', |
19 | | - 'releasemanager-add' => 'Add new release', |
20 | | - 'releasemanager-supported-til-eol' => 'Supported until EOL date, currently: $1', // $1 is yes/no |
21 | | - 'releasemanager-supported-overriden' => 'Support overridden, currently: $1', // $1 is yes/no |
22 | | - 'releasemanager-doesnotexist' => 'The specified release does not exist', |
23 | | - 'releasemanager-delete-confirm' => 'Are you sure you want to delete this release?', |
24 | | - 'downloadmediawiki' => 'Download MediaWiki', |
25 | | - 'mwr-field-name' => 'Name', |
26 | | - 'mwr-field-number' => 'Number', |
27 | | - 'mwr-field-eoldate' => 'End of life date', |
28 | | - 'mwr-field-reldate' => 'Release date', |
29 | | - 'mwr-field-announcement' => 'Announcement URL', |
30 | | - 'mwr-field-supported' => 'Supported flag', |
31 | | - 'mwr-field-tag' => 'Tag name', |
32 | | - 'mwr-field-branch' => 'Branch name', |
| 13 | + 'mwreleases-desc' => 'Adds a [[Mediawiki:Mwreleases-list|list]] of supported releases, accessible via the API', |
| 14 | + 'mwreleases-list' => '# List the current and other active supported MediaWiki releases like this: |
| 15 | +# current:1.15.1 |
| 16 | +# supported:1.14.1' |
33 | 17 | ); |
34 | 18 | |
35 | 19 | /** Message documentation (Message documentation) |
36 | 20 | * @author Fryed-peach |
37 | 21 | */ |
38 | 22 | $messages['qqq'] = array( |
39 | | - 'mwr-desc' => '{{desc}}', |
| 23 | + 'mwreleases-desc' => '{{desc}}', |
40 | 24 | ); |
| 25 | + |
| 26 | +/** Afrikaans (Afrikaans) |
| 27 | + * @author Naudefj |
| 28 | + */ |
| 29 | +$messages['af'] = array( |
| 30 | + 'mwreleases-desc' => "Voeg 'n [[Mediawiki:Mwreleases-list|lys]] van ondersteunde MediaWiki-weergawes by, toeganklik via die API", |
| 31 | +); |
| 32 | + |
| 33 | +/** Arabic (العربية) |
| 34 | + * @author Meno25 |
| 35 | + */ |
| 36 | +$messages['ar'] = array( |
| 37 | + 'mwreleases-desc' => 'يضيف [[Mediawiki:Mwreleases-list|قائمة]] بالإصدارات المدعومة, يمن الوصول إليها من ال API', |
| 38 | +); |
| 39 | + |
| 40 | +/** Belarusian (Taraškievica orthography) (Беларуская (тарашкевіца)) |
| 41 | + * @author EugeneZelenko |
| 42 | + */ |
| 43 | +$messages['be-tarask'] = array( |
| 44 | + 'mwreleases-desc' => 'Дадае [[Mediawiki:Mwreleases-list|сьпіс]] вэрсіяў, якія падтрымліваюцца, даступны праз API', |
| 45 | +); |
| 46 | + |
| 47 | +/** Bulgarian (Български) |
| 48 | + * @author Turin |
| 49 | + */ |
| 50 | +$messages['bg'] = array( |
| 51 | + 'mwreleases-desc' => 'Добавя [[Mediawiki:Mwreleases-list|списък]] на поддържаните версии, достъпни през API', |
| 52 | +); |
| 53 | + |
| 54 | +/** Breton (Brezhoneg) |
| 55 | + * @author Fulup |
| 56 | + */ |
| 57 | +$messages['br'] = array( |
| 58 | + 'mwreleases-desc' => 'Ouzhpennañ a ra ur [[Mediawiki:Mwreleases-list|roll]] eus ar stummoù skoret, hegerz dre an API', |
| 59 | +); |
| 60 | + |
| 61 | +/** Bosnian (Bosanski) |
| 62 | + * @author CERminator |
| 63 | + */ |
| 64 | +$messages['bs'] = array( |
| 65 | + 'mwreleases-desc' => 'Dodaje [[Mediawiki:Mwreleases-list|spisak]] podržanih izdanja, dostupnih preko API', |
| 66 | +); |
| 67 | + |
| 68 | +/** Czech (Česky) |
| 69 | + * @author Mormegil |
| 70 | + */ |
| 71 | +$messages['cs'] = array( |
| 72 | + 'mwreleases-desc' => 'Poskytuje [[Mediawiki:Mwreleases-list|seznam]] podporovaných vydání, dostupný pomocí API', |
| 73 | +); |
| 74 | + |
| 75 | +/** German (Deutsch) |
| 76 | + * @author Metalhead64 |
| 77 | + */ |
| 78 | +$messages['de'] = array( |
| 79 | + 'mwreleases-desc' => 'Fügt eine [[Mediawiki:Mwreleases-list|Liste]] unterstützter Veröffentlichungen hinzu, die über die API erreichbar ist', |
| 80 | +); |
| 81 | + |
| 82 | +/** Zazaki (Zazaki) |
| 83 | + * @author Xoser |
| 84 | + */ |
| 85 | +$messages['diq'] = array( |
| 86 | + 'mwreleases-desc' => 'Yew [[Mediawiki:Mwreleases-list|list]]eyê releaseyan de keno, pê API a beno', |
| 87 | +); |
| 88 | + |
| 89 | +/** Lower Sorbian (Dolnoserbski) |
| 90 | + * @author Michawiki |
| 91 | + */ |
| 92 | +$messages['dsb'] = array( |
| 93 | + 'mwreleases-desc' => 'Pśidawa [[Mediawiki:Mwreleases-list|lisćinu]] pódpěranych wersijow, kótarež stoje pśez API k dispoziciji', |
| 94 | +); |
| 95 | + |
| 96 | +/** Greek (Ελληνικά) |
| 97 | + * @author Omnipaedista |
| 98 | + */ |
| 99 | +$messages['el'] = array( |
| 100 | + 'mwreleases-desc' => 'Προσθέτει μία [[Mediawiki:Mwreleases-list|λίστα]] υποστηριζόμενων εκδόσεων, προσβάσιμων μέσω API', |
| 101 | +); |
| 102 | + |
| 103 | +/** Esperanto (Esperanto) |
| 104 | + * @author Yekrats |
| 105 | + */ |
| 106 | +$messages['eo'] = array( |
| 107 | + 'mwreleases-desc' => 'Aldonas [[Mediawiki:Mwreleases-list|liston]] de subtenitaj eldonoj, atingeblaj per la API', |
| 108 | +); |
| 109 | + |
| 110 | +/** Spanish (Español) |
| 111 | + * @author Crazymadlover |
| 112 | + */ |
| 113 | +$messages['es'] = array( |
| 114 | + 'mwreleases-desc' => 'Agregar una [[Mediawiki:Mwreleases-list|lista]] de versiones soportadas, accesibles a través de API', |
| 115 | +); |
| 116 | + |
| 117 | +/** Finnish (Suomi) |
| 118 | + * @author Crt |
| 119 | + */ |
| 120 | +$messages['fi'] = array( |
| 121 | + 'mwreleases-desc' => 'Lisää tuetuista julkaisuista [[Mediawiki:Mwreleases-list|listan]], jota voi käyttää rajapinnan kautta.', |
| 122 | +); |
| 123 | + |
| 124 | +/** French (Français) |
| 125 | + * @author Crochet.david |
| 126 | + */ |
| 127 | +$messages['fr'] = array( |
| 128 | + 'mwreleases-desc' => 'Ajoute une [[Mediawiki:Mwreleases-list|liste]] des versions supportées, accessible via l’API', |
| 129 | +); |
| 130 | + |
| 131 | +/** Franco-Provençal (Arpetan) |
| 132 | + * @author ChrisPtDe |
| 133 | + */ |
| 134 | +$messages['frp'] = array( |
| 135 | + 'mwreleases-desc' => 'Apond una [[Mediawiki:Mwreleases-list|lista]] de les vèrsions recognues, accèssibla avouéc l’API.', |
| 136 | +); |
| 137 | + |
| 138 | +/** Galician (Galego) |
| 139 | + * @author Toliño |
| 140 | + */ |
| 141 | +$messages['gl'] = array( |
| 142 | + 'mwreleases-desc' => 'Engade unha [[Mediawiki:Mwreleases-list|lista]] das versións soportadas, accesible a través da API', |
| 143 | +); |
| 144 | + |
| 145 | +/** Swiss German (Alemannisch) |
| 146 | + * @author Als-Holder |
| 147 | + */ |
| 148 | +$messages['gsw'] = array( |
| 149 | + 'mwreleases-desc' => 'Fiegt e [[Mediawiki:Mwreleases-list|Lischt vu dr unterstitzte Usgabe]] yy, wu mer au mit API cha abruefe', |
| 150 | +); |
| 151 | + |
| 152 | +/** Hebrew (עברית) |
| 153 | + * @author Rotemliss |
| 154 | + * @author YaronSh |
| 155 | + */ |
| 156 | +$messages['he'] = array( |
| 157 | + 'mwreleases-desc' => 'הוספת [[Mediawiki:Mwreleases-list|רשימה]] של גרסאות נתמכות, הזמינה באמצעות ה־API', |
| 158 | +); |
| 159 | + |
| 160 | +/** Hiligaynon (Ilonggo) |
| 161 | + * @author Tagimata |
| 162 | + */ |
| 163 | +$messages['hil'] = array( |
| 164 | + 'mwreleases-desc' => 'Gadugang sang [[Mediawiki:Mwreleases-list|list]] sa mga gin paguha na, nga makita paagi sa API', |
| 165 | +); |
| 166 | + |
| 167 | +/** Upper Sorbian (Hornjoserbsce) |
| 168 | + * @author Michawiki |
| 169 | + */ |
| 170 | +$messages['hsb'] = array( |
| 171 | + 'mwreleases-desc' => 'Přidawa [[Mediawiki:Mwreleases-list|lisćinu]] podpěranych wersijow, kotrež steja přez API k dispoziciji', |
| 172 | +); |
| 173 | + |
| 174 | +/** Hungarian (Magyar) |
| 175 | + * @author Glanthor Reviol |
| 176 | + */ |
| 177 | +$messages['hu'] = array( |
| 178 | + 'mwreleases-desc' => 'Megjelenít egy [[Mediawiki:Mwreleases-list|listát]] a támogatott kiadásokról, elérhető az API-n keresztül', |
| 179 | +); |
| 180 | + |
| 181 | +/** Interlingua (Interlingua) |
| 182 | + * @author McDutchie |
| 183 | + */ |
| 184 | +$messages['ia'] = array( |
| 185 | + 'mwreleases-desc' => 'Adde un [[Mediawiki:Mwreleases-list|lista]] de versiones supportate, accessibile via le API', |
| 186 | +); |
| 187 | + |
| 188 | +/** Indonesian (Bahasa Indonesia) |
| 189 | + * @author Bennylin |
| 190 | + */ |
| 191 | +$messages['id'] = array( |
| 192 | + 'mwreleases-desc' => 'Menambahkan sebuah [[Mediawiki:Mwreleases-list|daftar]] keluaran yang didukung, dapat diakses melalui API', |
| 193 | +); |
| 194 | + |
| 195 | +/** Italian (Italiano) |
| 196 | + * @author Darth Kule |
| 197 | + */ |
| 198 | +$messages['it'] = array( |
| 199 | + 'mwreleases-desc' => 'Aggiunge un [[Mediawiki:Mwreleases-list|elenco]] di versioni supportate, accessibile tramite API', |
| 200 | +); |
| 201 | + |
| 202 | +/** Japanese (日本語) |
| 203 | + * @author Fryed-peach |
| 204 | + */ |
| 205 | +$messages['ja'] = array( |
| 206 | + 'mwreleases-desc' => 'サポートされているリリースの[[Mediawiki:Mwreleases-list|リスト]]を追加し、API からアクセス可能にする', |
| 207 | +); |
| 208 | + |
| 209 | +/** Korean (한국어) |
| 210 | + * @author Devunt |
| 211 | + * @author Kwj2772 |
| 212 | + */ |
| 213 | +$messages['ko'] = array( |
| 214 | + 'mwreleases-desc' => '지원하는 [[Mediawiki:Mwreleases-list|릴리즈 목록]]을 추가함, API로 접근 가능', |
| 215 | +); |
| 216 | + |
| 217 | +/** Colognian (Ripoarisch) |
| 218 | + * @author Purodha |
| 219 | + */ |
| 220 | +$messages['ksh'] = array( |
| 221 | + 'mwreleases-desc' => 'Deiht en [[Mediawiki:Mwreleases-list|Leß met ongerschtöz Ußjabe]] en et Wiki dobei, di mer och mem <code lang="en">API</code> afroofe kann.', |
| 222 | +); |
| 223 | + |
| 224 | +/** Luxembourgish (Lëtzebuergesch) |
| 225 | + * @author Robby |
| 226 | + */ |
| 227 | +$messages['lb'] = array( |
| 228 | + 'mwreleases-desc' => 'Setzt eng [[Mediawiki:Mwreleases-list|Lëscht]] vun ënnerstetzte Versiounen derbäi, déi iwwer den API zougänglech sinn', |
| 229 | +); |
| 230 | + |
| 231 | +/** Macedonian (Македонски) |
| 232 | + * @author Bjankuloski06 |
| 233 | + */ |
| 234 | +$messages['mk'] = array( |
| 235 | + 'mwreleases-desc' => 'Додава [[Mediawiki:Mwreleases-list|список]] на поддржани верзии, достапни преку API', |
| 236 | +); |
| 237 | + |
| 238 | +/** Malayalam (മലയാളം) |
| 239 | + * @author Praveenp |
| 240 | + */ |
| 241 | +$messages['ml'] = array( |
| 242 | + 'mwreleases-desc' => 'എ.പി.ഐ. വഴി ലഭ്യമായ, പിന്തുണയുള്ള പുറത്തിറക്കലുകളുടെ [[Mediawiki:Mwreleases-list|പട്ടിക]] കൂട്ടിച്ചേർക്കുന്നു', |
| 243 | +); |
| 244 | + |
| 245 | +/** Dutch (Nederlands) |
| 246 | + * @author Siebrand |
| 247 | + */ |
| 248 | +$messages['nl'] = array( |
| 249 | + 'mwreleases-desc' => 'Voegt een [[Mediawiki:Mwreleases-list|lijst]] van ondersteunde MediaWiki-versies toe, toegankelijk via de API', |
| 250 | +); |
| 251 | + |
| 252 | +/** Norwegian (bokmål) (Norsk (bokmål)) |
| 253 | + * @author Laaknor |
| 254 | + */ |
| 255 | +$messages['no'] = array( |
| 256 | + 'mwreleases-desc' => 'Legger til en [[Mediawiki:Mwreleases-list|liste]] over støttede versjoner, tilgjengelig via APIet', |
| 257 | +); |
| 258 | + |
| 259 | +/** Occitan (Occitan) |
| 260 | + * @author Cedric31 |
| 261 | + */ |
| 262 | +$messages['oc'] = array( |
| 263 | + 'mwreleases-desc' => 'Apond una [[Mediawiki:Mwreleases-list|lista]] de las versions suportadas, accessibla via l’API', |
| 264 | +); |
| 265 | + |
| 266 | +/** Polish (Polski) |
| 267 | + * @author Sp5uhe |
| 268 | + */ |
| 269 | +$messages['pl'] = array( |
| 270 | + 'mwreleases-desc' => 'Dodaje [[Mediawiki:Mwreleases-list|spis]] obsługiwanych wydań, dostępnych poprzez API', |
| 271 | +); |
| 272 | + |
| 273 | +/** Piedmontese (Piemontèis) |
| 274 | + * @author Dragonòt |
| 275 | + */ |
| 276 | +$messages['pms'] = array( |
| 277 | + 'mwreleases-desc' => 'A gionta na [[Mediawiki:Mwreleases-list|lista]] dle vërsion apogià, visibila via API', |
| 278 | +); |
| 279 | + |
| 280 | +/** Portuguese (Português) |
| 281 | + * @author Waldir |
| 282 | + */ |
| 283 | +$messages['pt'] = array( |
| 284 | + 'mwreleases-desc' => 'Adiciona uma [[Mediawiki:Mwreleases-list|lista]] de versões suportadas, acessível através da API', |
| 285 | +); |
| 286 | + |
| 287 | +/** Brazilian Portuguese (Português do Brasil) |
| 288 | + * @author Eduardo.mps |
| 289 | + */ |
| 290 | +$messages['pt-br'] = array( |
| 291 | + 'mwreleases-desc' => "Adiciona uma [[Mediawiki:Mwreleases-list|lista]] de 'releases' suportados, acessível via API", |
| 292 | +); |
| 293 | + |
| 294 | +/** Romanian (Română) |
| 295 | + * @author Stelistcristi |
| 296 | + */ |
| 297 | +$messages['ro'] = array( |
| 298 | + 'mwreleases-desc' => 'Adăugați o [[Mediawiki:Mwreleases-list|listă]] cu lansările susținute, accesibile prin API', |
| 299 | +); |
| 300 | + |
| 301 | +/** Tarandíne (Tarandíne) |
| 302 | + * @author Joetaras |
| 303 | + */ |
| 304 | +$messages['roa-tara'] = array( |
| 305 | + 'mwreleases-desc' => "Aggiunge 'na [[Mediawiki:Mwreleases-list|liste]] de versiune supportate, accessibbele ausanne le API", |
| 306 | +); |
| 307 | + |
| 308 | +/** Russian (Русский) |
| 309 | + * @author Александр Сигачёв |
| 310 | + */ |
| 311 | +$messages['ru'] = array( |
| 312 | + 'mwreleases-desc' => 'Добавляет [[Mediawiki:Mwreleases-list|список]] поддерживаемых выпусков, доступных через API', |
| 313 | +); |
| 314 | + |
| 315 | +/** Yakut (Саха тыла) |
| 316 | + * @author HalanTul |
| 317 | + */ |
| 318 | +$messages['sah'] = array( |
| 319 | + 'mwreleases-desc' => 'API көмөтүнэн аһыллар таһаарыылар [[Mediawiki:Mwreleases-list|тиһиктэрин]] эбэр', |
| 320 | +); |
| 321 | + |
| 322 | +/** Slovak (Slovenčina) |
| 323 | + * @author Helix84 |
| 324 | + */ |
| 325 | +$messages['sk'] = array( |
| 326 | + 'mwreleases-desc' => 'Pridáva [[Mediawiki:Mwreleases-list|zoznam]] podporovaných vydaní prístupných prostredníctvom API', |
| 327 | +); |
| 328 | + |
| 329 | +/** Slovenian (Slovenščina) |
| 330 | + * @author Dbc334 |
| 331 | + */ |
| 332 | +$messages['sl'] = array( |
| 333 | + 'mwreleases-desc' => 'Doda [[Mediawiki:Mwreleases-list|seznam]] podprtih izdaj, dostopnih preko programskega vmesnika', |
| 334 | +); |
| 335 | + |
| 336 | +/** Serbian Cyrillic ekavian (Српски (ћирилица)) |
| 337 | + * @author Михајло Анђелковић |
| 338 | + */ |
| 339 | +$messages['sr-ec'] = array( |
| 340 | + 'mwreleases-desc' => 'Додаје [[Mediawiki:Mwreleases-list|списак]] подржаних издања, доступних кроз API', |
| 341 | +); |
| 342 | + |
| 343 | +/** Serbian Latin ekavian (Srpski (latinica)) */ |
| 344 | +$messages['sr-el'] = array( |
| 345 | + 'mwreleases-desc' => 'Dodaje [[Mediawiki:Mwreleases-list|spisak]] podržanih izdanja, dostupnih kroz API', |
| 346 | +); |
| 347 | + |
| 348 | +/** Sundanese (Basa Sunda) |
| 349 | + * @author Kandar |
| 350 | + */ |
| 351 | +$messages['su'] = array( |
| 352 | + 'mwreleases-desc' => 'Nambahkeun [[Mediawiki:Mwreleases-list|béréndélan]] rilis nu dirojong, bisa dibuka ngaliwatan API-na', |
| 353 | +); |
| 354 | + |
| 355 | +/** Swedish (Svenska) |
| 356 | + * @author Per |
| 357 | + */ |
| 358 | +$messages['sv'] = array( |
| 359 | + 'mwreleases-desc' => 'Lägger till en [[Mediawiki:Mwreleases-list|lista]] över verisioner, tilgängliga via APIet, som stöds', |
| 360 | +); |
| 361 | + |
| 362 | +/** Turkmen (Türkmençe) |
| 363 | + * @author Hanberke |
| 364 | + */ |
| 365 | +$messages['tk'] = array( |
| 366 | + 'mwreleases-desc' => 'Goldanylýan wersiýalaryň [[Mediawiki:Mwreleases-list|sanawyny]] goşýar, API bilen baryp bolýar', |
| 367 | +); |
| 368 | + |
| 369 | +/** Tagalog (Tagalog) |
| 370 | + * @author AnakngAraw |
| 371 | + */ |
| 372 | +$messages['tl'] = array( |
| 373 | + 'mwreleases-desc' => 'Nagdaragdag ng isang [[Mediawiki:Mwreleases-list|talaan]] ng tinatangkilik na mga labas, na mapupuntahan sa pamamagitan ng API', |
| 374 | +); |
| 375 | + |
| 376 | +/** Turkish (Türkçe) |
| 377 | + * @author Joseph |
| 378 | + */ |
| 379 | +$messages['tr'] = array( |
| 380 | + 'mwreleases-desc' => 'Desteklenen sürümlerin bir [[Mediawiki:Mwreleases-list|listesini]] ekler, API ile erişilebilir', |
| 381 | +); |
| 382 | + |
| 383 | +/** Ukrainian (Українська) |
| 384 | + * @author Prima klasy4na |
| 385 | + */ |
| 386 | +$messages['uk'] = array( |
| 387 | + 'mwreleases-desc' => 'Додає [[Mediawiki:Mwreleases-list|список]] підтримуваних релізів, доступних через API', |
| 388 | +); |
| 389 | + |
| 390 | +/** Vèneto (Vèneto) |
| 391 | + * @author Candalua |
| 392 | + */ |
| 393 | +$messages['vec'] = array( |
| 394 | + 'mwreleases-desc' => 'Zonta un [[Mediawiki:Mwreleases-list|elenco]] de version suportà, acessibile tramite API', |
| 395 | +); |
| 396 | + |
| 397 | +/** Vietnamese (Tiếng Việt) |
| 398 | + * @author Minh Nguyen |
| 399 | + */ |
| 400 | +$messages['vi'] = array( |
| 401 | + 'mwreleases-desc' => 'Thêm [[Mediawiki:Mwreleases-list|danh sách]] phiên bản được hỗ trợ, có thể truy cập qua API.', |
| 402 | +); |
| 403 | + |
| 404 | +/** Cantonese (粵語) */ |
| 405 | +$messages['yue'] = array( |
| 406 | + 'mwreleases-desc' => '加入一個支援發佈嘅[[Mediawiki:Mwreleases-list|一覽]],可經API訪問', |
| 407 | +); |
| 408 | + |
| 409 | +/** Simplified Chinese (中文(简体)) |
| 410 | + * @author PhiLiP |
| 411 | + */ |
| 412 | +$messages['zh-hans'] = array( |
| 413 | + 'mwreleases-desc' => '加入支持发布功能的[[Mediawiki:Mwreleases-list|列表]],可经API访问', |
| 414 | +); |
| 415 | + |
| 416 | +/** Traditional Chinese (中文(繁體)) */ |
| 417 | +$messages['zh-hant'] = array( |
| 418 | + 'mwreleases-desc' => '加入一個支援發佈的[[Mediawiki:Mwreleases-list|列表]],可經API訪問', |
| 419 | +); |
| 420 | + |
Index: trunk/extensions/MWReleases/OBSOLETE |
— | — | @@ -0,0 +1,2 @@ |
| 2 | +This extension is OBSOLETE. Its functionality has been merged into |
| 3 | +the Distribution extension. |
Index: trunk/extensions/MWReleases/MWReleases.php |
— | — | @@ -1,9 +1,16 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | 4 | * MWReleases - lets us maintain a list of releases that we support |
5 | | - * on MediaWiki.org, to be queried by the API. Goal is to have the |
| 5 | + * on Mediawiki.org, to be queried by the API. Goal is to have the |
6 | 6 | * installer and updater check MW.org for latest versions :) |
7 | 7 | * |
| 8 | + * EXAMPLE MWRELEASES-LIST: |
| 9 | + * <code> |
| 10 | + * current:1.15.1 |
| 11 | + * supported:1.14.1 |
| 12 | + * supported:1.6.12 |
| 13 | + * </code> |
| 14 | + * |
8 | 15 | * This program is free software; you can redistribute it and/or modify |
9 | 16 | * it under the terms of the GNU General Public License as published by |
10 | 17 | * the Free Software Foundation; either version 2 of the License, or |
— | — | @@ -23,57 +30,18 @@ |
24 | 31 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
25 | 32 | */ |
26 | 33 | |
27 | | -if ( !defined( 'MEDIAWIKI' ) ) { |
28 | | - die( 'This is not a valid entry point.' ); |
29 | | -} |
| 34 | +define( 'MWRELEASES_VERSION', '1.1' ); |
30 | 35 | |
31 | | -define( 'MWRELEASES_VERSION', '2.0' ); |
32 | | - |
33 | 36 | $wgExtensionCredits['other'][] = array( |
34 | 37 | 'path' => __FILE__, |
35 | 38 | 'name' => 'MWReleases', |
36 | 39 | 'url' => 'http://www.mediawiki.org/wiki/Extension:MWReleases', |
37 | 40 | 'author' => 'Chad Horohoe', |
38 | | - 'descriptionmsg' => 'mwr-desc', |
| 41 | + 'descriptionmsg' => 'mwreleases-desc', |
39 | 42 | 'version' => MWRELEASES_VERSION, |
40 | 43 | ); |
41 | 44 | |
42 | 45 | $dir = dirname( __FILE__ ) . '/'; |
43 | | - |
44 | | -// Classes |
45 | | -$wgAutoloadClasses['ApiMWReleases'] = $dir . 'api/ApiMWReleases.php'; |
46 | | -$wgAutoloadClasses['ReleaseRepo'] = $dir . 'backend/ReleaseRepo.php'; |
47 | | -$wgAutoloadClasses['Release'] = $dir . 'backend/Release.php'; |
48 | | -$wgAutoloadClasses['MediaWikiRelease'] = $dir . 'backend/Release.php'; |
49 | | -$wgAutoloadClasses['SpecialDownloadMediaWiki'] = $dir . 'ui/SpecialDownloadMediawiki.php'; |
50 | | -$wgAutoloadClasses['SpecialReleaseManager'] = $dir . 'ui/SpecialReleaseManager.php'; |
51 | | - |
52 | | -// i18n |
| 46 | +$wgAutoloadClasses['ApiMWReleases'] = $dir . 'ApiMWReleases.php'; |
53 | 47 | $wgExtensionMessagesFiles['MWReleases'] = $dir . 'MWReleases.i18n.php'; |
54 | | -$wgExtensionAliasesFiles['MWReleases'] = $dir . 'MWReleases.alias.php'; |
55 | | - |
56 | | -// API |
57 | 48 | $wgAPIModules['mwreleases'] = 'ApiMWReleases'; |
58 | | - |
59 | | -// Special pages |
60 | | -$wgSpecialPages['DownloadMediaWiki'] = 'SpecialDownloadMediaWiki'; |
61 | | -$wgSpecialPages['ReleaseManager'] = 'SpecialReleaseManager'; |
62 | | - |
63 | | -// Hooks |
64 | | -$wgHooks['LoadExtensionSchemaUpdates'][] = 'wfMWReleaseSchemaUpdates'; |
65 | | - |
66 | | -/** |
67 | | - * Base SVN url |
68 | | - */ |
69 | | -$wgMWRSvnUrl = 'http://svn.wikimedia.org/svnroot/mediawiki/'; |
70 | | -$wgMWRDownloadUrl = 'http://download.wikimedia.org/mediawiki/'; |
71 | | - |
72 | | -/** |
73 | | - * Schema hook |
74 | | - */ |
75 | | -function wfMWReleaseSchemaUpdates() { |
76 | | - global $wgExtNewTables; |
77 | | - $wgExtNewTables[] = array( 'mwreleases', dirname(__FILE__) . '/MWReleases.sql' );; |
78 | | - |
79 | | - return true; |
80 | | -} |
\ No newline at end of file |