-class LanguageNl extends Language {
-
- function getDefaultUserOptions () {
- global $wgDefaultUserOptionsNl ;
- return $wgDefaultUserOptionsNl ;
- }
-
- function getBookstoreList () {
- global $wgBookstoreListEn ; # No locals defined... yet
- return $wgBookstoreListEn ;
- }
-
- function getNamespaces() {
- global $wgNamespaceNamesNl;
- return $wgNamespaceNamesNl;
- }
-
- function getNsText( $index ) {
- global $wgNamespaceNamesNl;
- return $wgNamespaceNamesNl[$index];
- }
-
- function getNsIndex( $text ) {
- global $wgNamespaceNamesNl;
-
- foreach ( $wgNamespaceNamesNl as $i => $n ) {
- if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
- }
- return false;
- }
-
- # Inherit specialPage()
-
- function getQuickbarSettings() {
- global $wgQuickbarSettingsNl;
- return $wgQuickbarSettingsNl;
- }
-
- function getSkinNames() {
- global $wgSkinNamesNl;
- return $wgSkinNamesNl;
- }
-
- function getMathNames() {
- global $wgMathNamesNl;
- return $wgMathNamesNl;
- }
-
- function getUserToggles() {
- global $wgUserTogglesNl;
- return $wgUserTogglesNl;
- }
-
- function getLanguageNames() {
- global $wgLanguageNamesNl;
- return $wgLanguageNamesNl;
- }
-
- function getLanguageName( $code ) {
- global $wgLanguageNamesNl;
- if ( ! array_key_exists( $code, $wgLanguageNamesNl ) ) {
- return "";
- }
- return $wgLanguageNamesNl[$code];
- }
-
- function getMonthName( $key )
- {
- global $wgMonthNamesNl;
- return $wgMonthNamesNl[$key-1];
- }
-
- /* by default we just return base form; this should be ok for Nl */
-
- function getMonthNameGen( $key )
- {
- global $wgMonthNamesNl;
- return $wgMonthNamesNl[$key-1];
- }
-
- function getMonthAbbreviation( $key )
- {
- global $wgMonthAbbreviationsNl;
-
- return $wgMonthAbbreviationsNl[$key-1];
- }
-
- function getWeekdayName( $key )
- {
- global $wgWeekdayNamesNl;
- return $wgWeekdayNamesNl[$key-1];
- }
-
- # Inherit userAdjust()
-
- function date( $ts, $adj = false )
- {
- if ( $adj ) { $ts = $this->userAdjust( $ts ); }
-
- $d = (0 + substr( $ts, 6, 2 )) . " " .
- $this->getMonthAbbreviation( substr( $ts, 4, 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->date( $ts, $adj ) . " " . $this->time( $ts, $adj );
- }
-
- function getValidSpecialPages()
- {
- global $wgValidSpecialPagesNl;
- return $wgValidSpecialPagesNl;
- }
-
-
- function getSysopSpecialPages()
- {
- global $wgSysopSpecialPagesNl;
- return $wgSysopSpecialPagesNl;
- }
-
- function getDeveloperSpecialPages()
- {
- global $wgDeveloperSpecialPagesNl;
- return $wgDeveloperSpecialPagesNl;
- }
-
- function getMessage( $key )
- {
- global $wgAllMessagesNl, $wgAllMessagesEn;
- $m = $wgAllMessagesNl[$key];
-
- if ( "" == $m ) { return $wgAllMessagesEn[$key]; }
- else return $m;
- }
-
- # Inherit iconv(), ucfirst(), stripForSearch(), recodeForEdit(), recodeInput()
- # since they are same as English/Latin1
+class LanguageNl extends LanguageUtf8 {
+
+ function getDefaultUserOptions () {
+ $opt = Language::getDefaultUserOptions();
+ $opt["date"]=2;
+ return $opt;
+ }
+
+ function getNamespaces() {
+ global $wgNamespaceNamesNl;
+ return $wgNamespaceNamesNl;
+ }
+
+ function getNsText( $index ) {
+ global $wgNamespaceNamesNl;
+ return $wgNamespaceNamesNl[$index];
+ }
+
+ function getNsIndex( $text ) {
+ global $wgNamespaceNamesNl;
+
+ foreach ( $wgNamespaceNamesNl as $i => $n ) {
+ if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
+ }
+ return false;
+ }
+
+ # Inherit specialPage()
+
+ function getQuickbarSettings() {
+ global $wgQuickbarSettingsNl;
+ return $wgQuickbarSettingsNl;
+ }
+
+ function getSkinNames() {
+ global $wgSkinNamesNl;
+ return $wgSkinNamesNl;
+ }
+
+ # Inherit userAdjust()
+
+ function date( $ts, $adj = false ) {
+ if ( $adj ) { $ts = $this->userAdjust( $ts ); }
+
+ $d = (0 + substr( $ts, 6, 2 )) . " " .
+ $this->getMonthAbbreviation( substr( $ts, 4, 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->date( $ts, $adj ) . " " . $this->time( $ts, $adj );
+ }
+
+ function getValidSpecialPages() {
+ global $wgValidSpecialPagesNl;
+ return $wgValidSpecialPagesNl;
+ }
+
+
+ function getSysopSpecialPages() {
+ global $wgSysopSpecialPagesNl;
+ return $wgSysopSpecialPagesNl;
+ }
+
+ function getDeveloperSpecialPages() {
+ global $wgDeveloperSpecialPagesNl;
+ return $wgDeveloperSpecialPagesNl;
+ }
+
+ function getMessage( $key ) {
+ global $wgAllMessagesNl;
+ if( isset( $wgAllMessagesNl[$key] ) ) {
+ return $wgAllMessagesNl[$key];
+ } else {
+ return "";
+ }
+ }
+
+ function isRTL() { return false; }
+
+ # Inherit iconv(), ucfirst(), stripForSearch(), recodeForEdit(), recodeInput()
+ # since they are same as English/Latin1