Index: trunk/extensions/Translate/js/ext.translate.quickedit.css |
— | — | @@ -23,7 +23,6 @@ |
24 | 24 | line-height: normal; |
25 | 25 | margin: 0px; |
26 | 26 | border: 1px solid #DBDBDB; |
27 | | - text-align: left; |
28 | 27 | } |
29 | 28 | |
30 | 29 | .mw-sp-translate-edit-fields legend { |
Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -748,8 +748,15 @@ |
749 | 749 | |
750 | 750 | $params = array( 'class' => 'mw-translate-edit-item' ); |
751 | 751 | |
| 752 | + $display = TranslateUtils::convertWhiteSpaceToHTML( $text ); |
| 753 | + $display = Html::rawElement( 'span', array( |
| 754 | + 'lang' => $fbcode, |
| 755 | + 'dir' => Language::factory( $fbcode )->getDir() ), |
| 756 | + $display |
| 757 | + ); |
| 758 | + |
752 | 759 | $contents = self::legend( $label ) . "\n" . $this->adder( $id ) . |
753 | | - TranslateUtils::convertWhiteSpaceToHTML( $text ) . self::clear(); |
| 760 | + $display . self::clear(); |
754 | 761 | |
755 | 762 | $boxes[] = Html::rawElement( 'div', $params, $contents ) . |
756 | 763 | $this->wrapInsert( $id, $text ); |