Index: trunk/phase3/includes/upload/UploadBase.php |
— | — | @@ -765,7 +765,7 @@ |
766 | 766 | |
767 | 767 | if ( !$wgAntivirusSetup[$wgAntivirus] ) { |
768 | 768 | wfDebug( __METHOD__ . ": unknown virus scanner: $wgAntivirus\n" ); |
769 | | - $wgOut->wrapWikiMsg( '<div class="error">$1</div>', array( 'virus-badscanner', $wgAntivirus ) ); |
| 769 | + $wgOut->wrapWikiMsg( "<div class=\"error\">\n$1</div>", array( 'virus-badscanner', $wgAntivirus ) ); |
770 | 770 | return wfMsg( 'virus-unknownscanner' ) . " $wgAntivirus"; |
771 | 771 | } |
772 | 772 | |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -1215,7 +1215,7 @@ |
1216 | 1216 | $id = User::idFromName( $rootPart ); |
1217 | 1217 | $ip = User::isIP( $rootPart ); |
1218 | 1218 | if ( $id == 0 && !$ip ) { # User does not exist |
1219 | | - $wgOut->wrapWikiMsg( '<div class="mw-userpage-userdoesnotexist error">$1</div>', |
| 1219 | + $wgOut->wrapWikiMsg( '<div class="mw-userpage-userdoesnotexist error">\n$1</div>', |
1220 | 1220 | array( 'userpage-userdoesnotexist-view', $rootPart ) ); |
1221 | 1221 | } |
1222 | 1222 | } |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -772,16 +772,16 @@ |
773 | 773 | $id = User::idFromName( $username ); |
774 | 774 | $ip = User::isIP( $username ); |
775 | 775 | if ( $id == 0 && !$ip ) { |
776 | | - $wgOut->wrapWikiMsg( '<div class="mw-userpage-userdoesnotexist error">$1</div>', |
| 776 | + $wgOut->wrapWikiMsg( "<div class=\"mw-userpage-userdoesnotexist error\">\n$1</div>", |
777 | 777 | array( 'userpage-userdoesnotexist', $username ) ); |
778 | 778 | } |
779 | 779 | } |
780 | 780 | # Try to add a custom edit intro, or use the standard one if this is not possible. |
781 | 781 | if ( !$this->showCustomIntro() && !$this->mTitle->exists() ) { |
782 | 782 | if ( $wgUser->isLoggedIn() ) { |
783 | | - $wgOut->wrapWikiMsg( '<div class="mw-newarticletext">$1</div>', 'newarticletext' ); |
| 783 | + $wgOut->wrapWikiMsg( "<div class=\"mw-newarticletext\">\n$1</div>", 'newarticletext' ); |
784 | 784 | } else { |
785 | | - $wgOut->wrapWikiMsg( '<div class="mw-newarticletextanon">$1</div>', 'newarticletextanon' ); |
| 785 | + $wgOut->wrapWikiMsg( "<div class=\"mw-newarticletextanon\">\n$1</div>", 'newarticletextanon' ); |
786 | 786 | } |
787 | 787 | } |
788 | 788 | # Give a notice if the user is editing a deleted/moved page... |
— | — | @@ -1426,15 +1426,15 @@ |
1427 | 1427 | } |
1428 | 1428 | |
1429 | 1429 | if ( $this->missingComment ) { |
1430 | | - $wgOut->wrapWikiMsg( '<div id="mw-missingcommenttext">$1</div>', 'missingcommenttext' ); |
| 1430 | + $wgOut->wrapWikiMsg( "<div id='mw-missingcommenttext'>\n$1</div>", 'missingcommenttext' ); |
1431 | 1431 | } |
1432 | 1432 | |
1433 | 1433 | if ( $this->missingSummary && $this->section != 'new' ) { |
1434 | | - $wgOut->wrapWikiMsg( '<div id="mw-missingsummary">$1</div>', 'missingsummary' ); |
| 1434 | + $wgOut->wrapWikiMsg( "<div id='mw-missingsummary'>\n$1</div>", 'missingsummary' ); |
1435 | 1435 | } |
1436 | 1436 | |
1437 | 1437 | if ( $this->missingSummary && $this->section == 'new' ) { |
1438 | | - $wgOut->wrapWikiMsg( '<div id="mw-missingcommentheader">$1</div>', 'missingcommentheader' ); |
| 1438 | + $wgOut->wrapWikiMsg( "<div id='mw-missingcommentheader'>\n$1</div>", 'missingcommentheader' ); |
1439 | 1439 | } |
1440 | 1440 | |
1441 | 1441 | if ( $this->hookError !== '' ) { |
— | — | @@ -1464,7 +1464,7 @@ |
1465 | 1465 | if ( wfReadOnly() ) { |
1466 | 1466 | $wgOut->wrapWikiMsg( "<div id=\"mw-read-only-warning\">\n$1\n</div>", array( 'readonlywarning', wfReadOnlyReason() ) ); |
1467 | 1467 | } elseif ( $wgUser->isAnon() && $this->formtype != 'preview' ) { |
1468 | | - $wgOut->wrapWikiMsg( '<div id="mw-anon-edit-warning">$1</div>', 'anoneditwarning' ); |
| 1468 | + $wgOut->wrapWikiMsg( "<div id=\"mw-anon-edit-warning\">\n$1</div>", 'anoneditwarning' ); |
1469 | 1469 | } else { |
1470 | 1470 | if ( $this->isCssJsSubpage ) { |
1471 | 1471 | # Check the skin exists |
— | — | @@ -1494,7 +1494,7 @@ |
1495 | 1495 | if ( $this->mTitle->isCascadeProtected() ) { |
1496 | 1496 | # Is this page under cascading protection from some source pages? |
1497 | 1497 | list($cascadeSources, /* $restrictions */) = $this->mTitle->getCascadeProtectionSources(); |
1498 | | - $notice = "<div class='mw-cascadeprotectedwarning'>$1\n"; |
| 1498 | + $notice = "<div class='mw-cascadeprotectedwarning'>\n$1\n"; |
1499 | 1499 | $cascadeSourcesCount = count( $cascadeSources ); |
1500 | 1500 | if ( $cascadeSourcesCount > 0 ) { |
1501 | 1501 | # Explain, and list the titles responsible |
— | — | @@ -1506,7 +1506,7 @@ |
1507 | 1507 | $wgOut->wrapWikiMsg( $notice, array( 'cascadeprotectedwarning', $cascadeSourcesCount ) ); |
1508 | 1508 | } |
1509 | 1509 | if ( !$this->mTitle->exists() && $this->mTitle->getRestrictions( 'create' ) ) { |
1510 | | - $wgOut->wrapWikiMsg( '<div class="mw-titleprotectedwarning">$1</div>', 'titleprotectedwarning' ); |
| 1510 | + $wgOut->wrapWikiMsg( "<div class=\"mw-titleprotectedwarning\">\n$1</div>", 'titleprotectedwarning' ); |
1511 | 1511 | } |
1512 | 1512 | |
1513 | 1513 | if ( $this->kblength === false ) { |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -1451,7 +1451,7 @@ |
1452 | 1452 | // Wiki is read only |
1453 | 1453 | $this->setPageTitle( wfMsg( 'readonly' ) ); |
1454 | 1454 | $reason = wfReadOnlyReason(); |
1455 | | - $this->wrapWikiMsg( '<div class="mw-readonly-error">$1</div>', array( 'readonlytext', $reason ) ); |
| 1455 | + $this->wrapWikiMsg( '<div class="mw-readonly-error">\n$1</div>', array( 'readonlytext', $reason ) ); |
1456 | 1456 | } |
1457 | 1457 | |
1458 | 1458 | // Show source, if supplied |
— | — | @@ -2045,11 +2045,13 @@ |
2046 | 2046 | * |
2047 | 2047 | * For example: |
2048 | 2048 | * |
2049 | | - * $wgOut->wrapWikiMsg( '<div class="error">$1</div>', 'some-error' ); |
| 2049 | + * $wgOut->wrapWikiMsg( "<div class='error'>\n$1</div>", 'some-error' ); |
2050 | 2050 | * |
2051 | 2051 | * Is equivalent to: |
2052 | 2052 | * |
2053 | | - * $wgOut->addWikiText( '<div class="error">' . wfMsgNoTrans( 'some-error' ) . '</div>' ); |
| 2053 | + * $wgOut->addWikiText( "<div class='error'>\n" . wfMsgNoTrans( 'some-error' ) . '</div>' ); |
| 2054 | + * |
| 2055 | + * The newline after opening div is needed in some wikitext. See bug 19226. |
2054 | 2056 | */ |
2055 | 2057 | public function wrapWikiMsg( $wrap /*, ...*/ ) { |
2056 | 2058 | $msgSpecs = func_get_args(); |
Index: trunk/phase3/includes/specials/SpecialRecentchangeslinked.php |
— | — | @@ -52,7 +52,7 @@ |
53 | 53 | } |
54 | 54 | $title = Title::newFromURL( $target ); |
55 | 55 | if( !$title || $title->getInterwiki() != '' ){ |
56 | | - $wgOut->wrapWikiMsg( '<div class="errorbox">$1</div><br clear="both" />', 'allpagesbadtitle' ); |
| 56 | + $wgOut->wrapWikiMsg( "<div class=\"errorbox\">\n$1</div><br style=\"clear: both\" />", 'allpagesbadtitle' ); |
57 | 57 | return false; |
58 | 58 | } |
59 | 59 | $this->mTargetTitle = $title; |
Index: trunk/phase3/includes/specials/SpecialPreferences.php |
— | — | @@ -36,7 +36,7 @@ |
37 | 37 | } |
38 | 38 | |
39 | 39 | if ( $wgRequest->getCheck( 'eauth' ) ) { |
40 | | - $wgOut->wrapWikiMsg( "<div class='error' style='clear: both;'>$1</div>", |
| 40 | + $wgOut->wrapWikiMsg( "<div class='error' style='clear: both;'>\n$1</div>", |
41 | 41 | 'eauthentsent', $wgUser->getName() ); |
42 | 42 | } |
43 | 43 | |
Index: trunk/phase3/includes/specials/SpecialBooksources.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | $wgOut->addHTML( $this->makeForm() ); |
37 | 37 | if( strlen( $this->isbn ) > 0 ) { |
38 | 38 | if( !self::isValidISBN( $this->isbn ) ) { |
39 | | - $wgOut->wrapWikiMsg( '<div class="error">$1</div>', 'booksources-invalid-isbn' ); |
| 39 | + $wgOut->wrapWikiMsg( "<div class=\"error\">\n$1</div>", 'booksources-invalid-isbn' ); |
40 | 40 | } |
41 | 41 | $this->showList(); |
42 | 42 | } |
Index: trunk/phase3/includes/specials/SpecialConfirmemail.php |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | $wgOut->addWikiMsg( 'emailauthenticated', $time, $d, $t ); |
73 | 73 | } |
74 | 74 | if( $wgUser->isEmailConfirmationPending() ) { |
75 | | - $wgOut->wrapWikiMsg( "<div class=\"error mw-confirmemail-pending\">$1</div>", 'confirmemail_pending' ); |
| 75 | + $wgOut->wrapWikiMsg( "<div class=\"error mw-confirmemail-pending\">\n$1</div>", 'confirmemail_pending' ); |
76 | 76 | } |
77 | 77 | $wgOut->addWikiMsg( 'confirmemail_text' ); |
78 | 78 | $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->getTitle()->getLocalUrl() ) ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -708,6 +708,7 @@ |
709 | 709 | Improved representation of six quotes (may break existing markup). |
710 | 710 | * (bug 22034) Use wfClientAcceptsGzip() in wfGzipHandler instead of |
711 | 711 | reimplementing it. |
| 712 | +* (bug 19226) First line renders differently on many UI messages. |
712 | 713 | |
713 | 714 | == API changes in 1.16 == |
714 | 715 | |
— | — | @@ -813,13 +814,13 @@ |
814 | 815 | * Add Estonian letters äöõšüž to linktrail (et) |
815 | 816 | * (bug 18776) Native name of Burmese language (my) |
816 | 817 | * (bug 18806) Use correct unicode characters in spelling of native Chuvash |
817 | | - (???????) |
| 818 | + (Чӑвашла) |
818 | 819 | * (bug 18864) Updated autonym for Zhuang language |
819 | 820 | * (bug 18308) Updated date formatting in Occitan (oc) |
820 | | -* (bug 19080) Added aâîst??AÂÎST?? to Romanion (ro) linktrail |
| 821 | +* (bug 19080) Added ăâîşţșțĂÂÎŞŢȘȚ to Romanion (ro) linktrail |
821 | 822 | * (bug 19286) Correct commafying function in Polish (pl) |
822 | 823 | * (bug 19441) Updated date formatting for Lithuanian |
823 | | -* (bug 19630) Added ÄäÇçGgNnÖöSsÜüÝýŽž to Turkmen (tk) linktrail |
| 824 | +* (bug 19630) Added ÄäÇçĞğŇňÖöŞşÜüÝýŽž to Turkmen (tk) linktrail |
824 | 825 | * (bug 19949) New linktrail for Greek (el) |
825 | 826 | * (bug 19809) Korean (North Korea) (ko-kp) (new) |
826 | 827 | * (bug 19968) Fixed "Project talk" namespace name for Maltese (mt) |
— | — | @@ -895,4 +896,4 @@ |
896 | 897 | |
897 | 898 | === IRC help === |
898 | 899 | |
899 | | -There's usually someone online |
\ No newline at end of file |
| 900 | +There's usually someone online in #mediawiki on irc.freenode.net |