Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -796,9 +796,15 @@ |
797 | 797 | if ( $info !== null && $gettext ) $info .= Html::element( 'hr' ); |
798 | 798 | $info .= $gettext; |
799 | 799 | |
| 800 | + // The information is most likely in English |
| 801 | + $divAttribs = array( 'dir' => 'ltr', 'lang' => 'en' ); |
| 802 | + |
800 | 803 | if ( strval( $info ) === '' ) { |
| 804 | + global $wgLang; |
801 | 805 | $info = wfMsg( 'translate-edit-no-information' ); |
802 | 806 | $class = 'mw-sp-translate-edit-noinfo'; |
| 807 | + // The message saying that there's no info, should be translated |
| 808 | + $divAttribs = array( 'dir' => $wgLang->getDir(), 'lang' => $wgLang->getCode() ); |
803 | 809 | } |
804 | 810 | $class .= ' mw-sp-translate-message-documentation'; |
805 | 811 | |
— | — | @@ -808,7 +814,7 @@ |
809 | 815 | |
810 | 816 | return TranslateUtils::fieldset( |
811 | 817 | wfMsgHtml( 'translate-edit-information', $edit, $page ), Html::rawElement( 'div', |
812 | | - array( 'dir' => 'ltr', 'lang' => 'en' ), $contents ), array( 'class' => $class ) |
| 818 | + $divAttribs, $contents ), array( 'class' => $class ) |
813 | 819 | ); |
814 | 820 | |
815 | 821 | } |