Index: trunk/extensions/UserDebugInfo/UserDebugInfo.i18n.php |
— | — | @@ -13,6 +13,7 @@ |
14 | 14 | 'userdebuginfo-remoteaddr' => 'HTTP remote address', |
15 | 15 | 'userdebuginfo-key' => 'Key', |
16 | 16 | 'userdebuginfo-value' => 'Value', |
| 17 | + 'userdebuginfo-language' => 'Language', |
17 | 18 | ); |
18 | 19 | |
19 | 20 | /** |
Index: trunk/extensions/UserDebugInfo/SpecialUserDebugInfo.php |
— | — | @@ -34,15 +34,15 @@ |
35 | 35 | } |
36 | 36 | |
37 | 37 | $this->printRow( 'userdebuginfo-remoteaddr', $_SERVER['REMOTE_ADDR'] ); |
| 38 | + $this->printRow( 'userdebuginfo-language', htmlspecialchars( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ); |
38 | 39 | |
39 | 40 | $wgOut->addHTML( '</tbody>' ); |
40 | 41 | $wgOut->addHTML( '</table>' ); |
41 | 42 | } |
42 | 43 | |
43 | 44 | /** |
44 | | - * @param $key |
45 | | - * @param $value |
46 | | - * @return void |
| 45 | + * @param $key string Message key to be converted for output |
| 46 | + * @param $value string Text to output |
47 | 47 | */ |
48 | 48 | private function printRow( $key, $value ) { |
49 | 49 | global $wgOut; |