Index: trunk/extensions/Translate/utils/TranslationEditPage.php |
— | — | @@ -80,13 +80,15 @@ |
81 | 81 | } |
82 | 82 | |
83 | 83 | $translation = $helpers->getTranslation(); |
| 84 | + $targetLang = Language::factory( $helpers->getTargetLanguage() ); |
84 | 85 | $textareaParams = array( |
85 | 86 | 'name' => 'text', |
86 | 87 | 'class' => 'mw-translate-edit-area', |
87 | 88 | 'id' => $id, |
88 | 89 | /* Target language might differ from interface language. Set |
89 | 90 | * a suitable default direction */ |
90 | | - 'dir' => Language::factory( $helpers->getTargetLanguage() )->getDir(), |
| 91 | + 'lang' => $targetLang->getCode(), |
| 92 | + 'dir' => $targetLang->getDir(), |
91 | 93 | ); |
92 | 94 | $textarea = Html::element( 'textarea', $textareaParams, $translation ); |
93 | 95 | |