Index: trunk/extensions/Babel/Babel.class.php |
— | — | @@ -190,7 +190,8 @@ |
191 | 191 | */ |
192 | 192 | protected static function mGenerateBox( $code, $level ) { |
193 | 193 | $portal = wfMsgForContent( 'babel-portal', $code ); |
194 | | - $header = "[[$portal|" . wfBCP47( $code ) . "]]<span class=\"mw-babel-box-level-$level\">-$level</span>"; |
| 194 | + $lang = wfBCP47( $code ); |
| 195 | + $header = "[[$portal|" . $lang . "]]<span class=\"mw-babel-box-level-$level\">-$level</span>"; |
195 | 196 | |
196 | 197 | $name = BabelLanguageCodes::getName( $code ); |
197 | 198 | $code = BabelLanguageCodes::getCode( $code ); |
— | — | @@ -204,7 +205,7 @@ |
205 | 206 | <div class="mw-babel-box mw-babel-box-$level" dir="$dir_content"> |
206 | 207 | {| cellspacing="$cellspacing" |
207 | 208 | ! dir="$dir_content" | $header |
208 | | -| dir="$dir_current" | $text |
| 209 | +| dir="$dir_current" lang="$lang" xml:lang="$lang" | $text |
209 | 210 | |} |
210 | 211 | </div> |
211 | 212 | EOT; |