mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-15 03:23:51 +00:00
Localisation of gadget section titles
This commit is contained in:
parent
6b5f13b911
commit
238a208393
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue