Index: trunk/extensions/Gadgets/Gadgets.php |
— | — | @@ -29,7 +29,6 @@ |
30 | 30 | $wgHooks['GetPreferences'][] = 'wfGadgetsGetPreferences'; |
31 | 31 | $wgHooks['BeforePageDisplay'][] = 'wfGadgetsBeforePageDisplay'; |
32 | 32 | $wgHooks['ArticleSaveComplete'][] = 'wfGadgetsArticleSaveComplete'; |
33 | | -$wgHooks['LoadAllMessages'][] = 'wfGadgetsInjectMessages'; |
34 | 33 | |
35 | 34 | $dir = dirname(__FILE__) . '/'; |
36 | 35 | $wgExtensionMessagesFiles['Gadgets'] = $dir . 'Gadgets.i18n.php'; |
— | — | @@ -208,33 +207,3 @@ |
209 | 208 | } |
210 | 209 | } |
211 | 210 | |
212 | | -/** |
213 | | -* inject descriptions into system messages, so they show on Special:Allmessages |
214 | | -*/ |
215 | | -function wfGadgetsInjectMessages( $msgCache ) { |
216 | | - $gadgets = wfLoadGadgetsStructured(); |
217 | | - if ( !$gadgets ) return true; |
218 | | - |
219 | | - $args = array(); |
220 | | - $messages = array(); |
221 | | - |
222 | | - foreach ( $gadgets as $section => $entries ) { |
223 | | - if ( $section !== false && $section !== '' ) { |
224 | | - $tname = "gadget-section-$section"; |
225 | | - $ttext = wfMsgReal( $tname, $args, true, false, false ); |
226 | | - if ( wfEmptyMsg( $tname, $ttext ) ) $ttext = $section; |
227 | | - $messages[$tname] = $ttext; |
228 | | - } |
229 | | - |
230 | | - foreach ( $entries as $gname => $code ) { |
231 | | - $tname = "gadget-$gname"; |
232 | | - $ttext = wfMsgReal( $tname, $args, true, false, false ); |
233 | | - if ( wfEmptyMsg( $tname, $ttext ) ) $ttext = $gname; |
234 | | - $messages[$tname] = $ttext; |
235 | | - } |
236 | | - } |
237 | | - |
238 | | - $msgCache->addMessages( $messages ); |
239 | | - return true; |
240 | | -} |
241 | | - |