Localisation of gadget section titles

This commit is contained in:
Andrew Garrett 2009-04-24 09:07:51 +00:00
parent 6b5f13b911
commit 238a208393

View file

@ -127,6 +127,7 @@ function wfGadgetsGetPreferences( $user, &$preferences ) {
$options = array_fill_keys( array_keys($gadgets), array() ); $options = array_fill_keys( array_keys($gadgets), array() );
foreach( $gadgets as $section => $thisSection ) { foreach( $gadgets as $section => $thisSection ) {
$section = wfMsgExt( "gadget-section-$section", 'parseinline' );
foreach( $thisSection as $gname => $code ) { foreach( $thisSection as $gname => $code ) {
$options[$section][wfMsgExt( "gadget-$gname", 'parseinline' )] = $gname; $options[$section][wfMsgExt( "gadget-$gname", 'parseinline' )] = $gname;
} }