Index: trunk/extensions/Gadgets/Gadgets.php |
— | — | @@ -243,16 +243,21 @@ |
244 | 244 | if ( !$gadgets ) return true; |
245 | 245 | |
246 | 246 | $messages = array(); |
| 247 | + $msgOpt = array( 'parseinline' ); |
247 | 248 | |
248 | 249 | foreach ( $gadgets as $section => $entries ) { |
249 | 250 | if ( $section !== false && $section !== '' ) { |
250 | 251 | $tname = "gadget-section-$section"; |
251 | | - $messages[$tname] = $section; |
| 252 | + $ttext = wfMsgExt( $tname, $msgOpt ); |
| 253 | + if ( wfEmptyMsg( $tname, $ttext ) ) $ttext = $section; |
| 254 | + $messages[$tname] = $ttext; |
252 | 255 | } |
253 | 256 | |
254 | 257 | foreach ( $entries as $gname => $code ) { |
255 | 258 | $tname = "gadget-$gname"; |
256 | | - $messages[$tname] = $gname; |
| 259 | + $ttext = wfMsgExt( $tname, $msgOpt ); |
| 260 | + if ( wfEmptyMsg( $tname, $ttext ) ) $ttext = $gname; |
| 261 | + $messages[$tname] = $ttext; |
257 | 262 | } |
258 | 263 | } |
259 | 264 | |