<-- start deel 12 -- > ); class Language { function getNamespaces() { global $wgNamespaceNamesEn; return $wgNamespaceNamesEn; } function getNsText( $index ) { global $wgNamespaceNamesEn; return $wgNamespaceNamesEn[$index]; } function getNsIndex( $text ) { global $wgNamespaceNamesEn; foreach ( $wgNamespaceNamesEn as $i => $n ) { if ( 0 == strcmp( $n, $text ) ) { return $i; } } return false; } function specialPage( $name ) { return $this->getNsText( Namespace::getSpecial() ) . ":" . $name; } function getQuickbarSettings() { global $wgQuickbarSettingsEn; return $wgQuickbarSettingsEn; } function getSkinNames() { global $wgSkinNamesEn; return $wgSkinNamesEn; } function getUserToggles() { global $wgUserTogglesEn; return $wgUserTogglesEn; } function getLanguageName( $code ) { global $wgLanguageNamesEn; if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) { return ""; } return $wgLanguageNamesEn[$code]; } function getMonthName( $key ) { global $wgMonthNamesEn; return $wgMonthNamesEn[$key-1]; } function getMonthAbbreviation( $key ) { global $wgMonthAbbreviationsEn; return $wgMonthAbbreviationsEn[$key-1]; } function getWeekdayName( $key ) { global $wgWeekdayNamesEn; return $wgWeekdayNamesEn[$key-1]; } function userAdjust( $ts ) { global $wgUser; $diff = $wgUser->getOption( "timecorrection" ); if ( ! $diff ) { $diff = 0; } if ( 0 == $diff ) { return $ts; } $t = mktime( ( (int)substr( $ts, 8, 2) ) + $diff, (int)substr( $ts, 10, 2 ), (int)substr( $ts, 12, 2 ), (int)substr( $ts, 4, 2 ), (int)substr( $ts, 6, 2 ), (int)substr( $ts, 0, 4 ) ); return date( "YmdHis", $t ); } function date( $ts, $adj = false ) { if ( $adj ) { $ts = $this->userAdjust( $ts ); } $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " . (0 + substr( $ts, 6, 2 )) . ", " . substr( $ts, 0, 4 ); return $d; } function time( $ts, $adj = false ) { if ( $adj ) { $ts = $this->userAdjust( $ts ); } $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 ); return $t; } function timeanddate( $ts, $adj = false ) { return $this->time( $ts, $adj ) . " " . $this->date( $ts, $adj ); } function rfc1123( $ts ) { return date( "D, d M Y H:i:s T", $ts ); } function getValidSpecialPages() { global $wgValidSpecialPagesEn; return $wgValidSpecialPagesEn; } function getSysopSpecialPages() { global $wgSysopSpecialPagesEn; return $wgSysopSpecialPagesEn; } function getDeveloperSpecialPages() { global $wgDeveloperSpecialPagesEn; return $wgDeveloperSpecialPagesEn; } function getMessage( $key ) { global $wgAllMessagesEn; return $wgAllMessagesEn[$key]; } } include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" ); ?> <-- einde deel 12 -- >