Index: trunk/extensions/UploadWizard/resources/uploadWizard.css |
— | — | @@ -658,6 +658,9 @@ |
659 | 659 | /* @embed */ |
660 | 660 | background: #ffffff url('images/calendar.gif') no-repeat right center; |
661 | 661 | } |
| 662 | +input.mwe-date { |
| 663 | + direction: ltr; |
| 664 | +} |
662 | 665 | |
663 | 666 | .ui-datepicker-current-day a.ui-state-active { |
664 | 667 | background: #ffff99; |
Index: trunk/extensions/AbuseFilter/abusefilter.css |
— | — | @@ -109,4 +109,15 @@ |
110 | 110 | .mw-abusefilter-diff-multiline td.diff-addedline, |
111 | 111 | .mw-abusefilter-diff-multiline td.diff-deletedline { |
112 | 112 | width: 50%; |
| 113 | +} |
| 114 | + |
| 115 | +/* Rules are in English */ |
| 116 | +/* @noflip */textarea#wpFilterRules { direction: ltr; } |
| 117 | + |
| 118 | +/* Name is in site content language */ |
| 119 | +/* @noflip */.sitedir-ltr .TablePager_col_af_public_comments { |
| 120 | + direction: ltr; |
| 121 | +} |
| 122 | +/* @noflip */.sitedir-rtl .TablePager_col_af_public_comments { |
| 123 | + direction: rtl; |
113 | 124 | } |
\ No newline at end of file |
Index: trunk/extensions/CodeReview/modules/ext.codereview.styles.css |
— | — | @@ -15,6 +15,12 @@ |
16 | 16 | max-width: 20em; |
17 | 17 | overflow: hidden; |
18 | 18 | } |
| 19 | +/* @noflip */.sitedir-ltr .TablePager_col_cr_message, .sitedir-ltr .mw-codereview-message { |
| 20 | + direction: ltr; |
| 21 | +} |
| 22 | +/* @noflip */.sitedir-rtl .TablePager_col_cr_message, .sitedir-rtl .mw-codereview-message { |
| 23 | + direction: rtl; |
| 24 | +} |
19 | 25 | |
20 | 26 | .TablePager_col_cr_timestamp { |
21 | 27 | white-space: nowrap; |
Index: trunk/extensions/CodeReview/ui/CodeView.php |
— | — | @@ -57,7 +57,8 @@ |
58 | 58 | |
59 | 59 | function formatMessage( $text ) { |
60 | 60 | $text = nl2br( htmlspecialchars( $text ) ); |
61 | | - return $this->codeCommentLinkerHtml->link( $text ); |
| 61 | + return Html::rawElement( 'div', array( 'class' => 'mw-codereview-message' ), |
| 62 | + $this->codeCommentLinkerHtml->link( $text ) ); |
62 | 63 | } |
63 | 64 | |
64 | 65 | function messageFragment( $value ) { |
Index: trunk/extensions/CodeReview/ui/SpecialRepoAdmin.php |
— | — | @@ -148,11 +148,11 @@ |
149 | 149 | Xml::buildForm( |
150 | 150 | array( |
151 | 151 | 'repoadmin-edit-path' => |
152 | | - Xml::input( 'wpRepoPath', 60, $repoPath ), |
| 152 | + Xml::input( 'wpRepoPath', 60, $repoPath, array( 'dir' => 'ltr') ), |
153 | 153 | 'repoadmin-edit-bug' => |
154 | | - Xml::input( 'wpBugPath', 60, $bugPath ), |
| 154 | + Xml::input( 'wpBugPath', 60, $bugPath, array( 'dir' => 'ltr') ), |
155 | 155 | 'repoadmin-edit-view' => |
156 | | - Xml::input( 'wpViewPath', 60, $viewPath ) ) ) . |
| 156 | + Xml::input( 'wpViewPath', 60, $viewPath, array( 'dir' => 'ltr') ) ) ) . |
157 | 157 | Html::hidden( 'wpEditToken', $wgUser->editToken( $this->repoName ) ) . |
158 | 158 | Xml::submitButton( wfMsg( 'repoadmin-edit-button' ) ) . |
159 | 159 | '</form></fieldset>' |
Index: trunk/extensions/CodeReview/ui/CodeRevisionView.php |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | $paths .= $this->formatPathLine( $row->cp_path, $row->cp_action ); |
111 | 111 | } |
112 | 112 | if ( $paths ) { |
113 | | - $paths = "<div class='mw-codereview-paths' dir='ltr'><ul>\n$paths</ul></div>\n"; |
| 113 | + $paths = "<div class='mw-codereview-paths mw-content-ltr'><ul>\n$paths</ul></div>\n"; |
114 | 114 | } |
115 | 115 | $comments = $this->formatComments(); |
116 | 116 | $commentsLink = ""; |
— | — | @@ -741,7 +741,7 @@ |
742 | 742 | * @return string |
743 | 743 | */ |
744 | 744 | protected function formatComment( $comment, $replyForm = '' ) { |
745 | | - global $wgOut, $wgLang; |
| 745 | + global $wgOut, $wgLang, $wgContLang; |
746 | 746 | |
747 | 747 | if ( $comment->id === 0 ) { |
748 | 748 | $linkId = 'cpreview'; |
— | — | @@ -770,7 +770,7 @@ |
771 | 771 | ' ' . |
772 | 772 | $this->commentReplyLink( $comment->id ) . |
773 | 773 | '</div>' . |
774 | | - '<div class="mw-codereview-comment-text">' . |
| 774 | + '<div class="mw-codereview-comment-text mw-content-' . $wgContLang->getDir() . '">' . |
775 | 775 | $wgOut->parse( $this->codeCommentLinkerWiki->link( $comment->text ) ) . |
776 | 776 | '</div>' . |
777 | 777 | $replyForm . |
— | — | @@ -782,9 +782,11 @@ |
783 | 783 | * @return string |
784 | 784 | */ |
785 | 785 | protected function commentStyle( $comment ) { |
| 786 | + global $wgLang; |
| 787 | + $align = $wgLang->AlignStart(); |
786 | 788 | $depth = $comment->threadDepth(); |
787 | 789 | $margin = ( $depth - 1 ) * 48; |
788 | | - return "margin-left: ${margin}px"; |
| 790 | + return "margin-$align: ${margin}px"; |
789 | 791 | } |
790 | 792 | |
791 | 793 | /** |
Index: trunk/extensions/LiquidThreads/lqt.css |
— | — | @@ -1,10 +1,3 @@ |
2 | | -/* @noflip */.lqt_post_ltr { |
3 | | - direction: ltr; |
4 | | -} |
5 | | -/* @noflip */.lqt_post_rtl { |
6 | | - direction: rtl; |
7 | | -} |
8 | | - |
9 | 2 | .lqt_watchlist_messages_notice { |
10 | 3 | background-color: #eee; |
11 | 4 | border: 1px solid #ddd; |
— | — | @@ -188,12 +181,12 @@ |
189 | 182 | |
190 | 183 | .lqt_toc th { |
191 | 184 | border-bottom: 1px solid #000000; |
| 185 | + text-align: left; |
192 | 186 | } |
193 | 187 | |
194 | 188 | .lqt_toc td,.lqt_toc th { |
195 | 189 | margin: 0; |
196 | 190 | padding: 0.2em; |
197 | | - text-align: left; |
198 | 191 | } |
199 | 192 | |
200 | 193 | .lqt_toc td { |
Index: trunk/extensions/LiquidThreads/classes/Hooks.php |
— | — | @@ -47,6 +47,8 @@ |
48 | 48 | $link = LqtView::linkInContext( $thread ); |
49 | 49 | $s .= ' ' . wfMsgExt( $msg, array( 'parseinline', 'replaceafter' ), $link ); |
50 | 50 | |
| 51 | + $s .= $wgLang->getDirMark(); |
| 52 | + |
51 | 53 | // add the truncated post content |
52 | 54 | $quote = $thread->root()->getContent(); |
53 | 55 | $quote = $wgLang->truncate( $quote, 200 ); |
Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -1493,6 +1493,7 @@ |
1494 | 1494 | /** Shows the headING for a thread (as opposed to the headeER for a post within |
1495 | 1495 | a thread). */ |
1496 | 1496 | function showThreadHeading( $thread ) { |
| 1497 | + global $wgContLang; |
1497 | 1498 | if ( $thread->hasDistinctSubject() ) { |
1498 | 1499 | if ( $thread->hasSuperthread() ) { |
1499 | 1500 | $commands_html = ""; |
— | — | @@ -1517,7 +1518,7 @@ |
1518 | 1519 | $html = Xml::tags( 'span', array( 'class' => 'mw-headline' ), $html ); |
1519 | 1520 | $html .= Html::hidden( 'raw-header', $thread->subject() ); |
1520 | 1521 | $html = Xml::tags( 'h' . $this->headerLevel, |
1521 | | - array( 'class' => 'lqt_header', 'id' => $id ), |
| 1522 | + array( 'class' => 'lqt_header', 'id' => $id, 'dir' => $wgContLang->getDir() ), |
1522 | 1523 | $html ) . $commands_html; |
1523 | 1524 | } |
1524 | 1525 | |
— | — | @@ -1538,7 +1539,7 @@ |
1539 | 1540 | $alternatingClass = "lqt-thread-$alternatingType"; |
1540 | 1541 | $dir = $wgContLang->getDir(); |
1541 | 1542 | |
1542 | | - return "lqt_post $levelClass $alternatingClass lqt_post_$dir"; |
| 1543 | + return "lqt_post $levelClass $alternatingClass mw-content-$dir"; |
1543 | 1544 | } |
1544 | 1545 | |
1545 | 1546 | static function anchorName( $thread ) { |
Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php |
— | — | @@ -117,7 +117,7 @@ |
118 | 118 | } |
119 | 119 | |
120 | 120 | function getTOC( $threads ) { |
121 | | - global $wgLang; |
| 121 | + global $wgLang, $wgContLang; |
122 | 122 | |
123 | 123 | $html = ''; |
124 | 124 | |
— | — | @@ -145,7 +145,7 @@ |
146 | 146 | $anchor = '#' . $this->anchorName( $thread ); |
147 | 147 | $subject = Xml::tags( 'a', array( 'href' => $anchor ), |
148 | 148 | Threads::stripHTML( $thread->formattedSubject() ) ); |
149 | | - $row .= Xml::tags( 'td', null, $subject ); |
| 149 | + $row .= Xml::tags( 'td', array( 'dir' => $wgContLang->getDir() ), $subject ); |
150 | 150 | |
151 | 151 | $row .= Xml::element( 'td', null, $wgLang->formatNum( $thread->replyCount() ) ); |
152 | 152 | |
Index: trunk/extensions/LiquidThreads/pages/TalkpageHistoryView.php |
— | — | @@ -76,7 +76,7 @@ |
77 | 77 | } |
78 | 78 | |
79 | 79 | function formatValue( $name, $value ) { |
80 | | - global $wgLang; |
| 80 | + global $wgLang, $wgContLang; |
81 | 81 | |
82 | 82 | static $sk = null; |
83 | 83 | |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | array( 'known' ) |
112 | 112 | ); |
113 | 113 | |
114 | | - return $link; |
| 114 | + return Html::rawElement( 'div', array( 'dir' => $wgContLang->getDir() ), $link ); |
115 | 115 | case 'th_timestamp': |
116 | 116 | $formatted = $wgLang->timeanddate( $value ); |
117 | 117 | $title = Title::makeTitleSafe( |
Index: trunk/extensions/FlaggedRevs/presentation/modules/flaggedrevs.css |
— | — | @@ -121,7 +121,7 @@ |
122 | 122 | } |
123 | 123 | |
124 | 124 | /* @noflip */ |
125 | | -.rtl div.flaggedrevs_short { |
| 125 | +.sitedir-rtl div.flaggedrevs_short { |
126 | 126 | float: left; |
127 | 127 | margin: 0 1em 0 0; |
128 | 128 | } |
Index: trunk/extensions/FlaggedRevs/presentation/specialpages/reports/ReviewedPages_body.php |
— | — | @@ -86,6 +86,8 @@ |
87 | 87 | $title = Title::newFromRow( $row ); |
88 | 88 | # Link to page |
89 | 89 | $link = $this->skin->link( $title ); |
| 90 | + # Direction mark |
| 91 | + $dirmark = wfUILang()->getDirMark(); |
90 | 92 | # Size (bytes) |
91 | 93 | $stxt = ''; |
92 | 94 | if ( !is_null( $size = $row->page_len ) ) { |
— | — | @@ -116,7 +118,7 @@ |
117 | 119 | $best = " [$best]"; |
118 | 120 | } |
119 | 121 | |
120 | | - return "<li>$link $stxt ($list)$best</li>"; |
| 122 | + return "<li>$link $dirmark $stxt ($list)$best</li>"; |
121 | 123 | } |
122 | 124 | } |
123 | 125 | |
Index: trunk/extensions/FlaggedRevs/presentation/specialpages/reports/UnreviewedPages_body.php |
— | — | @@ -109,6 +109,7 @@ |
110 | 110 | |
111 | 111 | $stxt = $underReview = $watching = ''; |
112 | 112 | $link = $this->skin->link( $title, null, array(), 'redirect=no&reviewing=1' ); |
| 113 | + $dirmark = wfUILang()->getDirMark(); |
113 | 114 | $hist = $this->skin->linkKnown( $title, wfMsgHtml( 'hist' ), |
114 | 115 | array(), 'action=history&reviewing=1' ); |
115 | 116 | if ( !is_null( $size = $row->page_len ) ) { |
— | — | @@ -154,7 +155,7 @@ |
155 | 156 | wfMsgHtml( 'unreviewedpages-viewing' ) . '</span>'; |
156 | 157 | } |
157 | 158 | |
158 | | - return( "<li{$css}>{$link} {$stxt} ({$hist})" . |
| 159 | + return( "<li{$css}>{$link} $dirmark {$stxt} ({$hist})" . |
159 | 160 | "{$age}{$watching}{$underReview}</li>" ); |
160 | 161 | } |
161 | 162 | |