Index: trunk/extensions/Translate/utils/UserToggles.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | |
30 | 30 | public static function translationAssistLanguages( $user, &$preferences ) { |
31 | 31 | $select = self::languageSelector(); |
32 | | - $select->setTargetId( 'mw-input-translate-edit-lang' ); |
| 32 | + $select->setTargetId( 'mw-input-translate-editlangs' ); |
33 | 33 | |
34 | 34 | |
35 | 35 | $languages = Language::getLanguageNames( false ); |
Index: trunk/extensions/Translate/utils/JsSelectToInput.js |
— | — | @@ -4,6 +4,8 @@ |
5 | 5 | if(!target || !select) return |
6 | 6 | var atxt = select.options[select.selectedIndex].value; |
7 | 7 | if(!atxt) return |
| 8 | + /* Ugly hack */ |
| 9 | + target.value = target.value.replace(/default/, '' ); |
8 | 10 | if(target.value.replace(/[\s\t\n]/ig,'') != '') atxt = ', ' + atxt; |
9 | 11 | target.value += atxt; |
10 | 12 | } |
\ No newline at end of file |