Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -971,7 +971,7 @@ |
972 | 972 | protected $exportEnd = '),'; |
973 | 973 | } |
974 | 974 | |
975 | | -class PageByExtensionGroup extends MultipleFileMessageGroup { |
| 975 | +class PageByMessageGroup extends MultipleFileMessageGroup { |
976 | 976 | protected $label = 'Extension: Page By'; |
977 | 977 | protected $id = 'ext-pageby'; |
978 | 978 | |
Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -23,6 +23,7 @@ |
24 | 24 | */ |
25 | 25 | |
26 | 26 | private static function doBox( $msg, $code, $i18nmsg ) { |
| 27 | + global $wgUser; |
27 | 28 | static $names = false; |
28 | 29 | if (!$names ) { $names = Language::getLanguageNames(); } |
29 | 30 | if (!$msg ) { return ''; } |
— | — | @@ -30,6 +31,7 @@ |
31 | 32 | $prettyCode = TranslateUtils::prettyCode( $code ); |
32 | 33 | |
33 | 34 | /* Approximate row count */ |
| 35 | + $cols = $wgUser->getOption( 'cols' ); |
34 | 36 | $rows = count(explode("\n", $msg)) -1; |
35 | 37 | $rows = max(3, min(15, $rows)); |
36 | 38 | |
— | — | @@ -37,7 +39,7 @@ |
38 | 40 | |
39 | 41 | return |
40 | 42 | wfMsg( $i18nmsg, $names[$code], $prettyCode ) . " " . |
41 | | - Xml::Element( 'textarea', array( 'rows' => $rows ), $msg ); |
| 43 | + Xml::Element( 'textarea', array( 'rows' => $rows, 'cols' => $cols ), $msg ); |
42 | 44 | } |
43 | 45 | |
44 | 46 | /** |
Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -90,7 +90,7 @@ |
91 | 91 | 'ext-newusernotif' => 'NewUserNotifMessageGroup', |
92 | 92 | 'ext-ogghandler' => 'OggHandlerMessageGroup', |
93 | 93 | 'ext-oversight' => 'OversightMessageGroup', |
94 | | -'ext-pageby' => 'PageByExtensionGroup', |
| 94 | +'ext-pageby' => 'PageByMessageGroup', |
95 | 95 | 'ext-passwordreset' => 'PasswordResetMessageGroup', |
96 | 96 | 'ext-parserfunctions' => 'ParserfunctionsMessageGroup', |
97 | 97 | 'ext-patroller' => 'PatrollerMessageGroup', |