Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -2068,6 +2068,8 @@ |
2069 | 2069 | 'allmessages-filter-all', |
2070 | 2070 | 'allmessages-filter-modified', |
2071 | 2071 | 'allmessages-prefix', |
| 2072 | + 'allmessages-language', |
| 2073 | + 'allmessages-filter-submit', |
2072 | 2074 | ), |
2073 | 2075 | 'thumbnails' => array( |
2074 | 2076 | 'thumbnail-more', |
Index: trunk/phase3/includes/specials/SpecialAllmessages.php |
— | — | @@ -49,51 +49,70 @@ |
50 | 50 | function buildForm() { |
51 | 51 | global $wgScript; |
52 | 52 | |
53 | | - $action = htmlspecialchars( $wgScript ); |
54 | 53 | $languages = Language::getLanguageNames( false ); |
55 | 54 | ksort( $languages ); |
56 | 55 | |
57 | | - $out = "<form method=\"get\" action=\"$action\"><fieldset>\n" . |
| 56 | + $out = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'id' => 'mw-allmessages-form' ) ) . |
| 57 | + Xml::fieldset( wfMsg( 'allmessages-filter-legend' ) ) . |
58 | 58 | Xml::hidden( 'title', $this->getTitle() ) . |
59 | | - Xml::element( 'legend', null, wfMsg( 'allmessages' ) ) . "<table><tr>\n" . |
60 | | - "<td class=\"mw-label\">" . |
61 | | - Xml::label( wfMsg('allmessages-prefix'), 'am-form-prefix' ) . |
62 | | - "</td>\n<td class=\"mw-input\">" . |
63 | | - Xml::input( 'prefix', 20, str_replace('_',' ',$this->prefix), array( 'id' => 'am-form-prefix' ) ) . |
64 | | - "</select>" . |
65 | | - "</td>\n</tr><tr>\n<td class='mw-label'>" . |
66 | | - Xml::label( wfMsg('allmessages-filter'), 'am-form-filter' ) . |
67 | | - "</td>\n<td class='mw-input'>" . |
68 | | - Xml::radioLabel( wfMsg('allmessages-filter-unmodified'), |
| 59 | + Xml::openElement( 'table', array( 'class' => 'mw-allmessages-table' ) ) . "\n" . |
| 60 | + '<tr> |
| 61 | + <td class="mw-label">' . |
| 62 | + Xml::label( wfMsg( 'allmessages-prefix' ), 'mw-allmessages-form-prefix' ) . |
| 63 | + "</td>\n |
| 64 | + <td class=\"mw-input\">" . |
| 65 | + Xml::input( 'prefix', 20, str_replace( '_', ' ', $this->prefix ), array( 'id' => 'mw-allmessages-form-prefix' ) ) . |
| 66 | + "</td>\n |
| 67 | + </tr> |
| 68 | + <tr>\n |
| 69 | + <td class='mw-label'>" . |
| 70 | + Xml::label( wfMsg( 'allmessages-filter' ), 'mw-allmessages-form-filter' ) . |
| 71 | + "</td>\n |
| 72 | + <td class='mw-input'>" . |
| 73 | + Xml::radioLabel( wfMsg( 'allmessages-filter-unmodified' ), |
69 | 74 | 'filter', |
70 | 75 | 'unmodified', |
71 | | - 'am-form-filter-unmodified', |
| 76 | + 'mw-allmessages-form-filter-unmodified', |
72 | 77 | ( $this->filter == 'unmodified' ? true : false ) |
73 | 78 | ) . |
74 | | - Xml::radioLabel( wfMsg('allmessages-filter-all'), |
| 79 | + Xml::radioLabel( wfMsg( 'allmessages-filter-all' ), |
75 | 80 | 'filter', |
76 | 81 | 'all', |
77 | | - 'am-form-filter-all', |
| 82 | + 'mw-allmessages-form-filter-all', |
78 | 83 | ( $this->filter == 'all' ? true : false ) |
79 | 84 | ) . |
80 | | - Xml::radioLabel( wfMsg('allmessages-filter-modified'), |
| 85 | + Xml::radioLabel( wfMsg( 'allmessages-filter-modified' ), |
81 | 86 | 'filter', |
82 | 87 | 'modified', |
83 | | - 'am-form-filter-modified', |
| 88 | + 'mw-allmessages-form-filter-modified', |
84 | 89 | ( $this->filter == 'modified' ? true : false ) |
85 | 90 | ) . |
86 | | - "</td>\n</tr><tr>\n<td class=\"mw-label\">" . |
87 | | - Xml::label( wfMsg('yourlanguage'), 'am-form-lang' ) . |
88 | | - "</td>\n<td class=\"mw-input\">" . |
89 | | - Xml::openElement( 'select', array( 'id' => 'am-form-lang', 'name' => 'lang' ) ); |
| 91 | + "</td>\n |
| 92 | + </tr> |
| 93 | + <tr>\n |
| 94 | + <td class=\"mw-label\">" . |
| 95 | + Xml::label( wfMsg( 'allmessages-language' ), 'mw-allmessages-form-lang' ) . |
| 96 | + "</td>\n |
| 97 | + <td class=\"mw-input\">" . |
| 98 | + Xml::openElement( 'select', array( 'id' => 'mw-allmessages-form-lang', 'name' => 'lang' ) ); |
| 99 | + |
90 | 100 | foreach( $languages as $lang => $name ) { |
91 | | - $selected = $lang == $this->langCode ? 'selected="selected"' : ''; |
92 | | - $out .= "<option value=\"$lang\" $selected>$name</option>\n"; |
| 101 | + $selected = $lang == $this->langCode ? true : false; |
| 102 | + $out .= Xml::option( $lang . ' - ' . $name, $lang, $selected ) . "\n"; |
93 | 103 | } |
94 | | - $out .= "</td>\n</tr><tr>\n<td></td><td>" . Xml::submitButton( wfMsg('allpagessubmit') ) . |
95 | | - "</table>" . |
96 | | - $this->table->getHiddenFields( array( 'title', 'prefix', 'filter', 'lang' ) ) . |
97 | | - "</fieldset></form>"; |
| 104 | + $out .= Xml::closeElement( 'select' ) . |
| 105 | + "</td>\n |
| 106 | + </tr> |
| 107 | + <tr>\n |
| 108 | + <td></td> |
| 109 | + <td>" . |
| 110 | + Xml::submitButton( wfMsg( 'allmessages-filter-submit' ) ) . |
| 111 | + "</td>\n |
| 112 | + </tr>" . |
| 113 | + Xml::closeElement( 'table' ) . |
| 114 | + $this->table->getHiddenFields( array( 'title', 'prefix', 'filter', 'lang' ) ) . |
| 115 | + Xml::closeElement( 'fieldset' ) . |
| 116 | + Xml::closeElement( 'form' ); |
98 | 117 | return $out; |
99 | 118 | } |
100 | 119 | } |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -3045,11 +3045,14 @@ |
3046 | 3046 | 'allmessagestext' => 'This is a list of system messages available in the MediaWiki namespace. |
3047 | 3047 | Please visit [http://www.mediawiki.org/wiki/Localisation MediaWiki Localisation] and [http://translatewiki.net translatewiki.net] if you wish to contribute to the generic MediaWiki localisation.', |
3048 | 3048 | 'allmessagesnotsupportedDB' => "This page cannot be used because '''\$wgUseDatabaseMessages''' has been disabled.", |
| 3049 | +'allmessages-filter-legend' => 'Filter', |
3049 | 3050 | 'allmessages-filter' => 'Filter by customisation state:', |
3050 | 3051 | 'allmessages-filter-unmodified' => 'Unmodified', |
3051 | 3052 | 'allmessages-filter-all' => 'All', |
3052 | 3053 | 'allmessages-filter-modified' => 'Modified', |
3053 | 3054 | 'allmessages-prefix' => 'Filter by prefix:', |
| 3055 | +'allmessages-language' => 'Language:', |
| 3056 | +'allmessages-filter-submit' => 'Go', |
3054 | 3057 | |
3055 | 3058 | # Thumbnails |
3056 | 3059 | 'thumbnail-more' => 'Enlarge', |