Index: trunk/extensions/CreateAPage/CreateAPage.i18n.php |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | 'createpage-must-specify-title' => 'Please specify a title first!', |
62 | 62 | 'createpage-unsaved-changes' => 'Unsaved changes', |
63 | 63 | 'createpage-unsaved-changes-details' => 'You have unsaved changes. Clicking OK will result in abandoning them.', |
64 | | - 'tog-createpage-redlinks' => 'Use <a href="http://www.shoutwiki.com/wiki/Help:CreatePage">CreatePage</a> when following broken links', |
| 64 | + 'tog-createpage-redlinks' => 'Use [http://www.shoutwiki.com/wiki/Help:CreatePage CreatePage] when following broken links', |
65 | 65 | 'createpage-template-infobox-format' => '/\{\{[^\{\}]*Infobox.*\}\}/is', # regex used to find out whether our template is an infobox or not |
66 | 66 | ); |
67 | 67 | |
— | — | @@ -254,7 +254,7 @@ |
255 | 255 | 'createpage-about-info' => 'Este es un editor simplificado. Para saber más ve a la [[s:Help:CreatePage|Hub de ShoutWiki]].', |
256 | 256 | 'createpage-advanced-text' => 'Puedes usar también el $1.', |
257 | 257 | 'createpage-advanced-edit' => 'editor avanzado', |
258 | | - 'tog-createpage-redlinks' => 'Usa <a href="http://www.shoutwiki.com/wiki/Help:CreatePage">CreatePage</a> cuando sigas enlaces rotos', |
| 258 | + 'tog-createpage-redlinks' => 'Usa [http://www.shoutwiki.com/wiki/Help:CreatePage CreatePage] cuando sigas enlaces rotos', |
259 | 259 | ); |
260 | 260 | |
261 | 261 | /** Persian (فارسی) */ |
— | — | @@ -314,7 +314,7 @@ |
315 | 315 | 'createpage-must-specify-title' => 'Anna otsikko ensiksi!', |
316 | 316 | 'createpage-unsaved-changes' => 'Tallentamattomat muutokset', |
317 | 317 | 'createpage-unsaved-changes-details' => 'Sinulla on tallentamattomia muutoksia. Painamalla OK-painiketta hylkäät ne.', |
318 | | - 'tog-createpage-redlinks' => 'Käytä <a href="http://fi.shoutwiki.com/wiki/Ohje:CreatePage">CreatePagea</a> rikkinäisiä linkkejä seuratessa', |
| 318 | + 'tog-createpage-redlinks' => 'Käytä [http://fi.shoutwiki.com/wiki/Ohje:CreatePage CreatePagea] rikkinäisiä linkkejä seuratessa', |
319 | 319 | 'createpage-template-infobox-format' => '/\{\{[^\{\}]*tietolaatikko.*\}\}/is', |
320 | 320 | ); |
321 | 321 | |
— | — | @@ -366,7 +366,7 @@ |
367 | 367 | 'createpage-advanced-edit' => 'éditeur avancé', |
368 | 368 | 'createpage-optionals-text' => 'Ajouter des sections optionnelles :', |
369 | 369 | 'createpage-save' => 'Sauvegarde', |
370 | | - 'tog-createpage-redlinks' => 'Utiliser <a href="http://www.shoutwiki.com/wiki/Help:CreatePage">CreatePage</a> après avoir suivi des liens cassés', |
| 370 | + 'tog-createpage-redlinks' => 'Utiliser [http://www.shoutwiki.com/wiki/Help:CreatePage CreatePage] après avoir suivi des liens cassés', |
371 | 371 | ); |
372 | 372 | |
373 | 373 | /** Galician (Galego) |
— | — | @@ -501,7 +501,7 @@ |
502 | 502 | 'createpage-advanced-text' => 'Можете да користите и $1.', |
503 | 503 | 'createpage-advanced-edit' => 'напреден уредник', |
504 | 504 | 'createpage-optionals-text' => 'Додај дополнителни делови:', |
505 | | - 'tog-createpage-redlinks' => 'Користи <a href="http://www.shoutwiki.com/wiki/Help:CreatePage">СоздајСтраница</a> кога следам прекинати врски', |
| 505 | + 'tog-createpage-redlinks' => 'Користи [http://www.shoutwiki.com/wiki/Help:CreatePage СоздајСтраница] кога следам прекинати врски', |
506 | 506 | 'createpage-template-infobox-format' => '/\{\{[^\{\}]*Инфокутија.*\}\}/is', |
507 | 507 | ); |
508 | 508 | |
— | — | @@ -552,7 +552,7 @@ |
553 | 553 | 'createpage-advanced-edit' => 'uitgebreide tekstverwerker', |
554 | 554 | 'createpage-optionals-text' => 'Optionele secties toevoegen:', |
555 | 555 | 'createpage-save' => 'Opslaan', |
556 | | - 'tog-createpage-redlinks' => 'Gebruik <a href="http://www.shoutwiki.com/wiki/Help:CreatePage">pagina aanmaken</a> als u verbroken verwijzigen volgt', |
| 556 | + 'tog-createpage-redlinks' => 'Gebruik [http://www.shoutwiki.com/wiki/Help:CreatePage pagina aanmaken] als u verbroken verwijzigen volgt', |
557 | 557 | 'createpage-template-infobox-format' => '/\{\{[^\{\}]*Informatievenster.*\}\}/is', |
558 | 558 | ); |
559 | 559 | |
— | — | @@ -601,7 +601,7 @@ |
602 | 602 | 'createpage-advanced-text' => 'Możesz też użyć $1', |
603 | 603 | 'createpage-advanced-edit' => 'zaawansowanego edytora', |
604 | 604 | 'createpage-optionals-text' => 'Dodaj opcjonalne sekcje:', |
605 | | - 'tog-createpage-redlinks' => 'Otwórz <a href="http://www.shoutwiki.com/wiki/Help:CreatePage">CreatePage\'a</a> po przejściu do nieistniejącej strony' |
| 605 | + 'tog-createpage-redlinks' => 'Otwórz [http://www.shoutwiki.com/wiki/Help:CreatePage CreatePage\'a] po przejściu do nieistniejącej strony' |
606 | 606 | ); |
607 | 607 | |
608 | 608 | /** Piedmontese (Piemontèis) |
— | — | @@ -648,7 +648,7 @@ |
649 | 649 | 'createpage-advanced-text' => 'It peule ëdcò dovré ël $1.', |
650 | 650 | 'createpage-advanced-edit' => 'editor avansà', |
651 | 651 | 'createpage-optionals-text' => 'Gionta session opsinaj:', |
652 | | - 'tog-createpage-redlinks' => 'Dòvra <a href="http://www.shoutwiki.com/wiki/Help:CreatePage">CreatePage</a> quand dré a colegament pa bon', |
| 652 | + 'tog-createpage-redlinks' => 'Dòvra [http://www.shoutwiki.com/wiki/Help:CreatePage CreatePage] quand dré a colegament pa bon', |
653 | 653 | ); |
654 | 654 | |
655 | 655 | /** Portuguese (Português) |
Index: trunk/extensions/CreateAPage/CreatePage.php |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | * |
7 | 7 | * @file |
8 | 8 | * @ingroup Extensions |
9 | | - * @version 3.90 (r15554) |
| 9 | + * @version 3.91 (r15554) |
10 | 10 | * @author Bartek Łapiński <bartek@wikia-inc.com> |
11 | 11 | * @author Jack Phoenix <jack@countervandalism.net> |
12 | 12 | * @copyright Copyright © 2007-2008 Wikia Inc. |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | 'Bartek Łapiński', 'Łukasz Garczewski', 'Przemek Piotrowski', |
27 | 27 | 'Jack Phoenix' |
28 | 28 | ), |
29 | | - 'version' => '3.90', |
| 29 | + 'version' => '3.91', |
30 | 30 | 'description' => '[[Special:CreatePage|Easy to use interface]] for creating new articles', |
31 | 31 | 'url' => 'http://www.mediawiki.org/wiki/Extension:CreateAPage', |
32 | 32 | ); |
— | — | @@ -81,9 +81,7 @@ |
82 | 82 | $wgHooks['CustomEditor'][] = 'wfCreatePageRedLinks'; |
83 | 83 | $wgHooks['ConfirmEdit::onConfirmEdit'][] = 'wfCreatePageConfirmEdit'; // ConfirmEdit CAPTCHA |
84 | 84 | |
85 | | -if ( $wgCreatePageCoverRedLinks ) { |
86 | | - $wgHooks['GetPreferences'][] = 'wfCreatePageToggle'; |
87 | | -} |
| 85 | +$wgHooks['GetPreferences'][] = 'wfCreatePageToggle'; |
88 | 86 | |
89 | 87 | // handle ConfirmEdit CAPTCHA, only for CreatePage, which will be treated a bit differently (edits in special page) |
90 | 88 | function wfCreatePageConfirmEdit( &$captcha, &$editPage, $newtext, $section, $merged, &$result ) { |
— | — | @@ -182,11 +180,14 @@ |
183 | 181 | * @return Boolean: true |
184 | 182 | */ |
185 | 183 | function wfCreatePageToggle( $user, &$preferences ) { |
186 | | - $preferences['create-page-redlinks'] = array( |
187 | | - 'type' => 'toggle', |
188 | | - 'section' => 'editing', |
189 | | - 'label-message' => 'tog-createpage-redlinks', |
190 | | - ); |
| 184 | + global $wgCreatePageCoverRedLinks; |
| 185 | + if ( $wgCreatePageCoverRedLinks ) { |
| 186 | + $preferences['create-page-redlinks'] = array( |
| 187 | + 'type' => 'toggle', |
| 188 | + 'section' => 'editing/advancedediting', |
| 189 | + 'label-message' => 'tog-createpage-redlinks', |
| 190 | + ); |
| 191 | + } |
191 | 192 | return true; |
192 | 193 | } |
193 | 194 | |