moved weekday, monthname etc to AllMessages arrays.LanguageDa.php
authorJens Frank <jeluf@users.mediawiki.org>
Sat, 17 Jul 2004 19:58:37 +0000 (19:58 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sat, 17 Jul 2004 19:58:37 +0000 (19:58 +0000)
languages/LanguageEo.php
languages/LanguageFi.php
languages/LanguageIt.php
languages/LanguageNl.php
languages/LanguagePt.php
languages/LanguageSl.php
languages/LanguageSv.php

index b92d6ee..1873818 100644 (file)
@@ -74,24 +74,6 @@ $wgEditEncoding              = "x";
 # $wgBookstoreListEo = ..
 
 
-# Note capitalization; also some uses may require addition of final -n
-/* private */ $wgWeekdayNamesEo = array(
-       "dimanĉo", "lundo", "mardo", "merkredo" , "ĵaŭdo",
-       "vendredo", "sabato"
-);
-
-# Double-check capitalization
-/* private */ $wgMonthNamesEo = array(
-       "januaro", "februaro", "marto", "aprilo", "majo", "junio",
-       "julio", "aŭgusto", "septembro", "oktobro", "novembro",
-       "decembro"
-);
-
-# Hmm
-/* private */ $wgMonthAbbreviationsEo = array(
-       "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aŭg",
-       "Sep", "Okt", "Nov", "Dec"
-);
 
 # All special pages have to be listed here: a description of ""
 # will make them not show up on the "Special Pages" page, which
@@ -149,6 +131,39 @@ $wgEditEncoding            = "x";
 );
 
 /* private */ $wgAllMessagesEo = array(
+# Dates
+
+'sunday' => "dimanĉo",
+'monday' => "lundo",
+'tuesday' => "mardo",
+'wednesday' => "merkredo",
+'thursday' => "ĵaŭdo",
+'friday' => "vendredo",
+'saturday' => "sabato",
+'january' => "januaro",
+'february' => "februaro",
+'march' => "marto",
+'april' => "aprilo",
+'may_long' => "majo",
+'june' => "junio",
+'july' => "julio",
+'august' => "aŭgusto",
+'september' => "septembro",
+'october' => "oktobro",
+'november' => "novembro",
+'december' => "decembro",
+'jan' => "Jan",
+'feb' => "Feb",
+'mar' => "Mar",
+'apr' => "Apr",
+'may' => "Maj",
+'jun' => "Jun",
+'jul' => "Jul",
+'aug' => "Aŭg",
+'sep' => "Sep",
+'oct' => "Okt",
+'nov' => "Nov",
+'dec' => "Dec",
 
 # Teksteroj uzataj fare de diversaj paĝoj:
 #
@@ -1036,24 +1051,6 @@ class LanguageEo extends LanguageUtf8 {
                return $wgUserTogglesEo;
        }
 
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesEo;
-               return $wgMonthNamesEo[$key-1];
-       }
-
-       function getMonthAbbreviation( $key )
-       {
-               global $wgMonthAbbreviationsEo;
-               return $wgMonthAbbreviationsEo[$key-1];
-       }
-
-       function getWeekdayName( $key )
-       {
-               global $wgWeekdayNamesEo;
-               return $wgWeekdayNamesEo[$key-1];
-       }
-
        # Heredu userAdjust()
  
        # La dato- kaj tempo-funkciojn oni povas precizigi laŭ lingvo
index 985e70c..5c471f0 100644 (file)
        
 );
 
-/* private */ $wgWeekdayNamesFi = array(
-       "sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai",
-       "perjantai", "lauantai"
-);
-
-/* private */ $wgMonthNamesFi = array(
-       "tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu",
-        "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu",
-       "joulukuu"
-);
-
-/* private */ $wgMonthAbbreviationsFi = array(
-       "tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo",
-       "syys", "loka", "marras", "joulu"
-);
 
 /* private */ $wgValidSpecialPagesFi = array(
        "Userlogin"             => "Sisäänkirjautuminen",
 
 
 /* private */ $wgAllMessagesFi = array(
+# Dates
+'sunday' => 'sunnuntai',
+'monday' => 'maanantai',
+'tuesday' => 'tiistai',
+'wednesday' => 'keskiviikko',
+'thursday' => 'torstai',
+'friday' => 'perjantai',
+'saturday' => 'lauantai',
+'january' => 'tammikuu',
+'february' => 'helmikuu',
+'march' => 'maaliskuu',
+'april' => 'huhtikuu',
+'may_long' => 'toukokuu',
+'june' => 'kesäkuu',
+'july' => 'heinäkuu',
+'august' => 'elokuu',
+'september' => 'syyskuu',
+'october' => 'lokakuu',
+'november' => 'marraskuu',
+'december' => 'joulukuu',
+'jan' => 'tammi',
+'feb' => 'helmi',
+'mar' => 'maalis',
+'apr' => 'huhti',
+'may' => 'touko',
+'jun' => 'kesä',
+'jul' => 'heinä',
+'aug' => 'elo',
+'sep' => 'syys',
+'oct' => 'loka',
+'nov' => 'marras',
+'dec' => 'joulu',
+
 # Bits of text used by many pages:
 #
 "linktrail"            => "/^((?:ä|ö|[a-z])+)(.*)\$/sD",
@@ -853,31 +871,6 @@ class LanguageFi extends LanguageUtf8 {
                return $wgUserTogglesFi;
        }
 
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesFi;
-               return $wgMonthNamesFi[$key-1];
-       }
-
-       /* by default we just return base form */
-       function getMonthNameGen( $key )
-       {
-               global $wgMonthNamesFi;
-               return $wgMonthNamesFi[$key-1];
-       }
-
-       function getMonthAbbreviation( $key )
-       {
-               global $wgMonthAbbreviationsFi;
-               return $wgMonthAbbreviationsFi[$key-1];
-       }
-
-       function getWeekdayName( $key )
-       {
-               global $wgWeekdayNamesFi;
-               return $wgWeekdayNamesFi[$key-1];
-       }
-
        # Inherit userAdjust()
  
        function date( $ts, $adj = false )
index fa89ab3..b21918e 100644 (file)
 /* Just inherit the (mostly) native-language plus latinized formed */
 /* private */ $wgLanguageNamesIt = $wgLanguageNamesEn;
 
-/* private */ $wgWeekdayNamesIt = array(
-       "Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì",
-       "Venerdì", "Sabato"
-);
-
-/* private */ $wgMonthNamesIt = array(
-       "Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno",
-       "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre",
-       "Dicembre"
-);
-
-/* private */ $wgMonthAbbreviationsIt = array(
-       "Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago",
-       "Set", "Ott", "Nov", "Dic"
-);
 
 # All special pages have to be listed here: a description of ""
 # will make them not show up on the "Special Pages" page, which
 );
 
 /* private */ $wgAllMessagesIt = array(
+# dates
+'sunday' => 'Domenica',
+'monday' => 'Lunedì',
+'tuesday' => 'Martedì',
+'wednesday' => 'Mercoledì',
+'thursday' => 'Giovedì',
+'friday' => 'Venerdì',
+'saturday' => 'Sabato',
+'january' => 'Gennaio',
+'february' => 'Febbraio',
+'march' => 'Marzo',
+'april' => 'Aprile',
+'may_long' => 'Maggio',
+'june' => 'Giugno',
+'july' => 'Luglio',
+'august' => 'Agosto',
+'september' => 'Settembre',
+'october' => 'Ottobre',
+'november' => 'Novembre',
+'december' => 'Dicembre',
+'jan' => 'Gen',
+'feb' => 'Feb',
+'mar' => 'Mar',
+'apr' => 'Apr',
+'may' => 'Mag',
+'jun' => 'Giu',
+'jul' => 'Lug',
+'aug' => 'Ago',
+'sep' => 'Set',
+'oct' => 'Ott',
+'nov' => 'Nov',
+'dec' => 'Dic',
+
 
 # Bits of text used by many pages:
 #
@@ -843,24 +861,6 @@ class LanguageIt extends LanguageUtf8 {
                return $wgLanguageNamesIt[$code];
        }
 
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesIt;
-               return $wgMonthNamesIt[$key-1];
-       }
-
-       function getMonthAbbreviation( $key )
-       {
-               global $wgMonthAbbreviationsIt;
-               return $wgMonthAbbreviationsIt[$key-1];
-       }
-
-       function getWeekdayName( $key )
-       {
-               global $wgWeekdayNamesIt;
-               return $wgWeekdayNamesIt[$key-1];
-       }
-
        function date( $ts, $adj = false )
        {
                if ( $adj ) { $ts = $this->userAdjust( $ts ); }
index 3061a56..e7ebff8 100644 (file)
@@ -72,21 +72,6 @@ require_once( "LanguageUtf8.php" );
  "nocache" => "Gebruik geen caching"
 );
 
-/* private */ $wgWeekdayNamesNl = array(
- "zondag", "maandag", "dinsdag", "woensdag", "donderdag",
- "vrijdag", "zaterdag"
-);
-
-/* private */ $wgMonthNamesNl = array(
- "januari", "februari", "maart", "april", "mei", "juni",
- "juli", "augustus", "september", "oktober", "november",
- "december"
-);
-
-/* private */ $wgMonthAbbreviationsNl = array(
- "jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug",
- "sep", "okt", "nov", "dec"
-);
 
 # All special pages have to be listed here: a description of ""
 # will make them not show up on the "Special Pages" page, which
@@ -141,6 +126,39 @@ require_once( "LanguageUtf8.php" );
 );
 
 /* private */ $wgAllMessagesNl = array(
+# Dates
+'sunday' => 'zondag',
+'monday' => 'maandag',
+'tuesday' => 'dinsdag',
+'wednesday' => 'woensdag',
+'thursday' => 'donderdag',
+'friday' => 'vrijdag',
+'saturday' => 'zaterdag',
+'january' => 'januari',
+'february' => 'februari',
+'march' => 'maart',
+'april' => 'april',
+'may_long' => 'mei',
+'june' => 'juni',
+'july' => 'juli',
+'august' => 'augustus',
+'september' => 'september',
+'october' => 'oktober',
+'november' => 'november',
+'december' => 'december',
+'jan' => 'jan',
+'feb' => 'feb',
+'mar' => 'mrt',
+'apr' => 'apr',
+'may' => 'mei',
+'jun' => 'jun',
+'jul' => 'jul',
+'aug' => 'aug',
+'sep' => 'sep',
+'oct' => 'okt',
+'nov' => 'nov',
+'dec' => 'dec',
+
 
 # Bits of text used by many pages:
 # Diverse stukjes tekst
@@ -877,27 +895,6 @@ class LanguageNl extends LanguageUtf8 {
                return $wgUserTogglesNl;
        }
        
-       function getMonthName( $key ) {
-               global $wgMonthNamesNl;
-               return $wgMonthNamesNl[$key-1];
-       }
-       
-       function getMonthRegex() {
-               global $wgMonthNamesNl;
-               return implode( "|", $wgMonthNamesNl );
-       }
-       
-       
-       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 ) {
index 299206e..07fdaa3 100644 (file)
     "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
 );
 
-/* private */ $wgWeekdayNamesPt = array(
-    "Domingo", "Segunda", "Terça-Feira", "Quarta-Feira", "Quinta-Feira",
-    "Sexta-Feira", "Sábado"
-
-);
-
-/* private */ $wgMonthNamesPt = array(
-    "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho",
-    "Julho", "Agosto", "Setembro", "Outubro", "Novembro",
-    "Dezembro"
-
-);
-
-/* private */ $wgMonthAbbreviationsPt = array(
-    "Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago",
-    "Set", "Out", "Nov", "Dez"
-);
 
 # All special pages have to be listed here: a description of ""
 # will make them not show up on the "Special Pages" page, which
 );
 
 /* private */ $wgAllMessagesPt = array(
+# Dates
+'sunday' => 'Domingo',
+'monday' => 'Segunda',
+'tuesday' => 'Terça-Feira',
+'wednesday' => 'Quarta-Feira',
+'thursday' => 'Quinta-Feira',
+'friday' => 'Sexta-Feira',
+'saturday' => 'Sábado',
+'january' => 'Janeiro',
+'february' => 'Fevereiro',
+'march' => 'Março',
+'april' => 'Abril',
+'may_long' => 'Maio',
+'june' => 'Junho',
+'july' => 'Julho',
+'august' => 'Agosto',
+'september' => 'Setembro',
+'october' => 'Outubro',
+'november' => 'Novembro',
+'december' => 'Dezembro',
+'jan' => 'Jan',
+'feb' => 'Fev',
+'mar' => 'Mar',
+'apr' => 'Abr',
+'may' => 'Mai',
+'jun' => 'Jun',
+'jul' => 'Jul',
+'aug' => 'Ago',
+'sep' => 'Set',
+'oct' => 'Out',
+'nov' => 'Nov',
+'dec' => 'Dez',
+
 
 # Bits of text used by many pages:
 #
@@ -980,37 +996,6 @@ class LanguagePt extends LanguageUtf8 {
         return $wgUserTogglesPt;
     }
 
-    function getMonthName( $key )
-    {
-        global $wgMonthNamesPt;
-        return $wgMonthNamesPt[$key-1];
-    }
-    
-    /* by default we just return base form */
-    function getMonthNameGen( $key )
-    {
-        global $wgMonthNamesPt;
-        return $wgMonthNamesPt[$key-1];
-    }
-    
-    function getMonthRegex()
-    {
-        global $wgMonthNamesPt;
-        return implode( "|", $wgMonthNamesEn );
-    }
-
-    function getMonthAbbreviation( $key )
-    {
-        global $wgMonthAbbreviationsPt;
-        return $wgMonthAbbreviationsPt[$key-1];
-    }
-
-    function getWeekdayName( $key )
-    {
-        global $wgWeekdayNamesPt;
-        return $wgWeekdayNamesPt[$key-1];
-    }
     function timeanddate( $ts, $adj = false )
     {
         return $this->time( $ts, $adj ) . ", " . $this->date( $ts, $adj );
index 526ed05..a4d8701 100644 (file)
@@ -80,21 +80,8 @@ require_once( "LanguageUtf8.php" );
        "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
 );
 
-/* private */ $wgWeekdayNamesSl = array(
-       "nedelja", "ponedeljek", "torek", "sreda", "četrtek",
-       "petek", "sobota"
-);
 
-/* private */ $wgMonthNamesSl = array(
-       "januar", "februar", "marec", "april", "maj", "junij",
-       "julij", "avgust", "september", "oktober", "november",
-       "december"
-);
 
-/* private */ $wgMonthAbbreviationsSl = array(
-       "jan", "feb", "mar", "apr", "maj", "jun", "jul", "avg",
-       "sep", "okt", "nov", "dec"
-);
 
 # All special pages have to be listed here: a description of ""
 # will make them not show up on the "Special Pages" page, which
@@ -145,6 +132,38 @@ require_once( "LanguageUtf8.php" );
 );
 
 /* private */ $wgAllMessagesSl = array(
+# Dates
+'sunday' => 'nedelja',
+'monday' => 'ponedeljek',
+'tuesday' => 'torek',
+'wednesday' => 'sreda',
+'thursday' => 'četrtek',
+'friday' => 'petek',
+'saturday' => 'sobota',
+'january' => 'januar',
+'february' => 'februar',
+'march' => 'marec',
+'april' => 'april',
+'may_long' => 'maj',
+'june' => 'junij',
+'july' => 'julij',
+'august' => 'avgust',
+'september' => 'september',
+'october' => 'oktober',
+'november' => 'november',
+'december' => 'december',
+'jan' => 'jan',
+'feb' => 'feb',
+'mar' => 'mar',
+'apr' => 'apr',
+'may' => 'maj',
+'jun' => 'jun',
+'jul' => 'jul',
+'aug' => 'avg',
+'sep' => 'sep',
+'oct' => 'okt',
+'nov' => 'nov',
+'dec' => 'dec',
 
 # Bits of text used by many pages:
 #
@@ -923,31 +942,6 @@ class LanguageSl extends LanguageUtf8 {
   return $wgUserTogglesSl;
  }
 
- function getMonthName( $key )
- {
-  global $wgMonthNamesSl;
-  return $wgMonthNamesSl[$key-1];
- }
-
- /* by default we just return base form */
- function getMonthNameGen( $key )
- {
-  global $wgMonthNamesSl;
-  return $wgMonthNamesSl[$key-1];
- }
-
- function getMonthAbbreviation( $key )
- {
-  global $wgMonthAbbreviationsSl;
-  return $wgMonthAbbreviationsSl[$key-1];
- }
-
- function getWeekdayName( $key )
- {
-  global $wgWeekdayNamesSl;
-  return $wgWeekdayNamesSl[$key-1];
- }
-
  function getValidSpecialPages()
  {
   global $wgValidSpecialPagesSl;
index b77c623..897b59e 100644 (file)
@@ -110,21 +110,6 @@ define( "MW_MATH_MATHML", 5 );
    ease of navigation -- people should be able to recognize their own
    languages! */
 
-/* private */ $wgWeekdayNamesSv = array(
-        "söndag", "måndag", "tisdag", "onsdag", "torsdag",
-        "fredag", "lördag"
-);
-
-/* private */ $wgMonthNamesSv = array(
-        "januari", "februari", "mars", "april", "maj", "juni",
-        "juli", "augusti", "september", "oktober", "november",
-        "december"
-);
-
-/* private */ $wgMonthAbbreviationsSv = array(
-        "jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug",
-        "sep", "okt", "nov", "dec"
-);
 
 // All special pages have to be listed here: a description of ""
 // will make them not show up on the "Special Pages" page, which
@@ -180,6 +165,40 @@ $wgValidSpecialPagesSv = array(
 );
 
 /* private */ $wgAllMessagesSv = array(
+// Dates
+
+'sunday' => "söndag",
+'monday' => "måndag",
+'tuesday' => "tisdag",
+'wednesday' => "onsdag",
+'thursday' => "torsdag",
+'friday' => "fredag",
+'saturday' => "lördag",
+'january' => "januari",
+'february' => "februari",
+'march' => "mars",
+'april' => "april",
+'may_long' => "maj",
+'june' => "juni",
+'july' => "juli",
+'august' => "augusti",
+'september' => "september",
+'october' => "oktober",
+'november' => "november",
+'december' => "december",
+'jan' => "jan",
+'feb' => "feb",
+'mar' => "mar",
+'apr' => "apr",
+'may' => "maj",
+'jun' => "jun",
+'jul' => "jul",
+'aug' => "aug",
+'sep' => "sep",
+'oct' => "okt",
+'nov' => "nov",
+'dec' => "dec",
+
 
 // Bits of text used by many pages:
 //     
@@ -1080,21 +1099,6 @@ class LanguageSv extends LanguageUtf8 {
                return $wgUserTogglesSv;
        }
        
-       function getMonthName( $key ) {
-               global $wgMonthNamesSv;
-               return $wgMonthNamesSv[$key-1];
-       }
-       
-       function getMonthAbbreviation( $key ) {
-               global $wgMonthAbbreviationsSv;
-               return $wgMonthAbbreviationsSv[$key-1];
-       }
-       
-       function getWeekdayName( $key ) {
-               global $wgWeekdayNamesSv;
-               return $wgWeekdayNamesSv[$key-1];
-       }
-       
        # Inherit userAdjust()
        
        function date( $ts, $adj = false ) {