moved weekday, monthname etc to AllMessages arrays.
authorJens Frank <jeluf@users.mediawiki.org>
Sat, 17 Jul 2004 20:34:09 +0000 (20:34 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sat, 17 Jul 2004 20:34:09 +0000 (20:34 +0000)
languages/LanguageAf.php
languages/LanguageAr.php
languages/LanguageBg.php
languages/LanguageBn.php
languages/LanguageCa.php
languages/LanguageCs.php
languages/LanguageCy.php
languages/LanguageDa.php

index a18a934..635d1c2 100644 (file)
        "Amazon.com" => "http://www.noamazon.com/" #patent that
 );
 
-/* private */ $wgWeekdayNamesAf = array(
-       "Sondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag",
-       "Vrydag", "Saterdag"
-);
-
-/* private */ $wgMonthNamesAf = array(
-       "Januarie", "Februarie", "Maart", "April", "Mei", "Junie",
-       "Julie", "Augustus", "September", "Oktober", "November",
-       "Desember"
-);
-
-/* private */ $wgMonthAbbreviationsAf = array(
-       "01", "02", "03", "04", "05", "06", "07", "08",
-       "09", "10", "11", "12"
-);
 
 # All special pages have to be listed here: a description of ""
 # will make them not show up on the "Special Pages" page, which
 );
 
 /* private */ $wgAllMessagesAf = array(
+# Dates
+'sunday' => 'Sondag',
+'monday' => 'Maandag',
+'tuesday' => 'Dinsdag',
+'wednesday' => 'Woensdag',
+'thursday' => 'Donderdag',
+'friday' => 'Vrydag',
+'saturday' => 'Saterdag',
+'january' => 'Januarie',
+'february' => 'Februarie',
+'march' => 'Maart',
+'april' => 'April',
+'may_long' => 'Mei',
+'june' => 'Junie',
+'july' => 'Julie',
+'august' => 'Augustus',
+'september' => 'September',
+'october' => 'Oktober',
+'november' => 'November',
+'december' => 'Desember',
+'jan' => '01',
+'feb' => '02',
+'mar' => '03',
+'apr' => '04',
+'may' => '05',
+'jun' => '06',
+'jul' => '07',
+'aug' => '08',
+'sep' => '09',
+'oct' => '10',
+'nov' => '11',
+'dec' => '12',
+
 
 # Bits of text used by many pages:
 #
@@ -865,24 +883,6 @@ class LanguageAf extends LanguageUtf8 {
                return $wgUserTogglesAf;
        }
 
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesAf;
-               return $wgMonthNamesAf[$key-1];
-       }
-
-       function getMonthAbbreviation( $key )
-       {
-               global $wgMonthAbbreviationsAf;
-               return $wgMonthAbbreviationsAf[$key-1];
-       }
-
-       function getWeekdayName( $key )
-       {
-               global $wgWeekdayNamesAf;
-               return $wgWeekdayNamesAf[$key-1];
-       }
-
        function getValidSpecialPages()
        {
                global $wgValidSpecialPagesAf;
index 22e2569..c827964 100644 (file)
@@ -19,18 +19,28 @@ require_once("LanguageUtf8.php");
        11  => "Template_talk"
 ) + $wgNamespaceNamesEn;
 
-/* private */ $wgWeekdayNamesAr = array(
-       "الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس",
-       "الجمعة", "السبت"
-);
-
-/* private */ $wgMonthNamesAr = array(
-       "يناير", "فبراير", "مارس", "ابريل", "مايو", "يونيو",
-       "يوليو", "أغسطس", "سبتمبر", "اكتوبر", "نوفمبر",
-       "ديسمبر"
-);
 
 /* private */ $wgAllMessagesAr = array(
+       # Dates
+       'sunday' => "الأحد",
+       'monday' => "الإثنين",
+       'tuesday' => "الثلاثاء",
+       'wednesday' => "الأربعاء",
+       'thursday' => "الخميس",
+       'friday' => "الجمعة",
+       'saturday' => "السبت",
+       'january' => "يناير",
+       'february' => "فبراير",
+       'march' => "مارس",
+       'april' => "ابريل",
+       'may_long' => "مايو",
+       'june' => "يونيو",
+       'july' => "يوليو",
+       'august' => "أغسطس",
+       'september' => "سبتمبر",
+       'october' => "اكتوبر",
+       'november' => "نوفمبر",
+       'december' => "ديسمبر",
 
        # Bits of text used by many pages:
        #
@@ -1191,25 +1201,12 @@ class LanguageAr extends LanguageUtf8 {
                return LanguageUtf8::getNsIndex( $text );
        }
 
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesAr;
-               return $wgMonthNamesAr[$key-1];
-       }
-
        function getMonthAbbreviation( $key )
        {
                /* No abbreviations in Arabic */
                return $this->getMonthName( $key );
        }
 
-       function getWeekdayName( $key )
-       {
-               global $wgWeekdayNamesAr;
-               return $wgWeekdayNamesAr[$key-1];
-       }
-
-
        function isRTL() { return true; }
 
        function linkPrefixExtension() { return true; }
index 0821f00..8f6bd61 100644 (file)
   'Amazon.com'     => "http://www.amazon.com/exec/obidos/ISBN=$1",
 );
 
-/* private */ $wgWeekdayNamesBg = array(
-  'неделя', 'понеделник', 'вторник', 'сряда', 'четвъртък',
-  'петък', 'събота'
-);
-
-/* private */ $wgMonthNamesBg = array(
-  'януари', 'февруари', 'март', 'април', 'май', 'юни',
-  'юли', 'август', 'септември', 'октомври', 'ноември',
-  'декември'
-);
-
-/* private */ $wgMonthAbbreviationsBg = array(
-  'яну', 'фев', 'мар', 'апр', 'май', 'юни', 'юли', 'авг',
-  'сеп', 'окт', 'ное', 'дек'
-);
 
 
 # Note to translators:
 # въведете 'portal' => ''
 
 /* private */ $wgAllMessagesBg = array(
+# Dates
+'sunday' => 'неделя',
+'monday' => 'понеделник',
+'tuesday' => 'вторник',
+'wednesday' => 'сряда',
+'thursday' => 'четвъртък',
+'friday' => 'петък',
+'saturday' => 'събота',
+'january' => 'януари',
+'february' => 'февруари',
+'march' => 'март',
+'april' => 'април',
+'may_long' => 'май',
+'june' => 'юни',
+'july' => 'юли',
+'august' => 'август',
+'september' => 'септември',
+'october' => 'октомври',
+'november' => 'ноември',
+'december' => 'декември',
+'jan' => 'яну',
+'feb' => 'фев',
+'mar' => 'мар',
+'apr' => 'апр',
+'may' => 'май',
+'jun' => 'юни',
+'jul' => 'юли',
+'aug' => 'авг',
+'sep' => 'сеп',
+'oct' => 'окт',
+'nov' => 'ное',
+'dec' => 'дек',
 
 # Bits of text used by many pages:
 #
@@ -1423,37 +1440,6 @@ class LanguageBg extends LanguageUtf8 {
     return $wgUserTogglesBg;
   }
 
-  function getMonthName( $key )
-  {
-    global $wgMonthNamesBg;
-    return $wgMonthNamesBg[$key-1];
-  }
-
-  /* by default we just return base form */
-  function getMonthNameGen( $key )
-  {
-    global $wgMonthNamesBg;
-    return $wgMonthNamesBg[$key-1];
-  }
-
-  function getMonthRegex()
-  {
-    global $wgMonthNamesBg;
-    return implode( "|", $wgMonthNamesBg );
-  }
-
-  function getMonthAbbreviation( $key )
-  {
-    global $wgMonthAbbreviationsBg;
-    return $wgMonthAbbreviationsBg[$key-1];
-  }
-
-  function getWeekdayName( $key )
-  {
-    global $wgWeekdayNamesBg;
-    return $wgWeekdayNamesBg[$key-1];
-  }
-
   function getValidSpecialPages()
   {
     global $wgValidSpecialPagesBg;
index a702bc1..2af83f5 100644 (file)
  "myskin" => "MySkin"
 );
 
-/* private */ $wgMathNamesBn = array(
-  "Always render PNG",
-  "HTML if very simple or else PNG",
-  "HTML if possible or else PNG",
-  "Leave it as TeX (for text browsers)",
-  "Recommended for modern browsers"
-);
 
 /* private */ $wgDateFormatsBn = array(
   "No preference",
@@ -82,21 +75,6 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
   "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
 );
 
-/* private */ $wgWeekdayNamesBn = array(
-  "রবিবার", "সোমবার", "মঙ্গলবার", "বুধবার", "বৃহস্পতিবার",
-  "শুক্রবার", "শনিবার"
-);
-
-/* private */ $wgMonthNamesBn = array(
-  "জানুয়ারী", "ফেব্রুয়ারী", "মার্চ", "এপ্রিল", "মে", "জুন",
-  "জুলাই", "আগস্ট", "সেপ্টেম্বর", "অক্টোবর", "নভেম্বর",
-  "ডিসেম্বর"
-);
-
-/* private */ $wgMonthAbbreviationsBn = array(
-  "জানু", "ফেব্রু", "মার্চ", "এপ্রিল", "মে", "জুন", "জুলাই", "আগস্ট",
-  "সেপ্টে", "অক্টো", "নভে", "ডিসে"
-);
 
 # All special pages have to be listed here: a description of ""
 # will make them not show up on the "Special Pages" page, which
@@ -152,6 +130,39 @@ this</a> (alternative: like this<a href=\"\" class=\"internal\">?</a>).",
 );
 
 /* private */ $wgAllMessagesBn = array(
+# Dates
+
+'sunday' => "রবিবার",
+'monday' => "সোমবার",
+'tuesday' => "মঙ্গলবার",
+'wednesday' => "বুধবার",
+'thursday' => "বৃহস্পতিবার",
+'friday' => "শুক্রবার",
+'saturday' => "শনিবার",
+'january' => "জানুয়ারী",
+'february' => "ফেব্রুয়ারী",
+'march' => "মার্চ",
+'april' => "এপ্রিল",
+'may_long' => "মে",
+'june' => "জুন",
+'july' => "জুলাই",
+'august' => "আগস্ট",
+'september' => "সেপ্টেম্বর",
+'october' => "অক্টোবর",
+'november' => "নভেম্বর",
+'december' => "ডিসেম্বর",
+'jan' => "জানু",
+'feb' => "ফেব্রু",
+'mar' => "মার্চ",
+'apr' => "এপ্রিল",
+'may' => "মে",
+'jun' => "জুন",
+'jul' => "জুলাই",
+'aug' => "আগস্ট",
+'sep' => "সেপ্টে",
+'oct' => "অক্টো",
+'nov' => "নভে",
+'dec' => "ডিসে",
 
 # Bits of text used by many pages:
 #
@@ -985,12 +996,6 @@ class LanguageBn extends LanguageUtf8 {
                return Language::getNsIndex( $text );
        }
 
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesBn;
-               return $wgMonthNamesBn[$key-1];
-       }
-
        function getMessage( $key )
        {
                global $wgAllMessagesBn;
index 9b9ce1d..1702d08 100644 (file)
        "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
 );
 
-/* private */ $wgWeekdayNamesCa = array(
-       "Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous",
-       "Divendres", "Dissabte"
-);
-
-/* private */ $wgMonthNamesCa = array(
-       "gener", "febrer", "març", "abril", "maig", "juny",
-       "juliol", "agost", "setembre", "octubre", "novembre",
-       "desembre"
-);
-
-/* private */ $wgMonthAbbreviationsCa = array(
-       "gen", "feb", "mar", "abr", "mai", "jun", "jul", "ago",
-       "set", "oct", "nov", "des"
-);
 
 # All special pages have to be listed here: a description of ""
 # will make them not show up on the "Special Pages" page, which
 );
 
 /* private */ $wgAllMessagesCa = array(
+#Dates
+
+'sunday' => 'Diumenge',
+'monday' => 'Dilluns',
+'tuesday' => 'Dimarts',
+'wednesday' => 'Dimecres',
+'thursday' => 'Dijous',
+'friday' => 'Divendres',
+'saturday' => 'Dissabte',
+'january' => 'gener',
+'february' => 'febrer',
+'march' => 'març',
+'april' => 'abril',
+'may_long' => 'maig',
+'june' => 'juny',
+'july' => 'juliol',
+'august' => 'agost',
+'september' => 'setembre',
+'october' => 'octubre',
+'november' => 'novembre',
+'december' => 'desembre',
+'jan' => 'gen',
+'feb' => 'feb',
+'mar' => 'mar',
+'apr' => 'abr',
+'may' => 'mai',
+'jun' => 'jun',
+'jul' => 'jul',
+'aug' => 'ago',
+'sep' => 'set',
+'oct' => 'oct',
+'nov' => 'nov',
+'dec' => 'des',
+
 
 # Bits of text used by many pages:
 #
@@ -935,24 +954,6 @@ class LanguageCa extends LanguageUtf8 {
                return $wgUserTogglesCa;
        }
 
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesCa;
-               return $wgMonthNamesCa[$key-1];
-       }
-
-       function getMonthAbbreviation( $key )
-       {
-               global $wgMonthAbbreviationsCa;
-               return $wgMonthAbbreviationsCa[$key-1];
-       }
-
-       function getWeekdayName( $key )
-       {
-               global $wgWeekdayNamesCa;
-               return $wgWeekdayNamesCa[$key-1];
-       }
-
        # Inherit userAdjust()
         
        function shortdate( $ts, $adj = false )
index fddf8c4..42788d5 100644 (file)
 # Se eble, trovu Chehxajn libroservojn traserceblaj lau ISBN
 # $wgBookstoreListCs = ..
 
-# Note capitalization; also some uses may require addition of final -n
-/* private */ $wgWeekdayNamesCs = array(
-       "neděle", "pondělí", "úterý", "středa" , "čtvrtek",
-       "pátek", "sobota"
-);
-
-# Double-check capitalization
-/* private */ $wgMonthNamesCs = array(
-       "leden", "únor", "březen", "duben", "květen", "červen",
-       "červenec", "srpen", "září", "říjen", "listopad",
-       "prosinec"
-);
-
-# Hmm
-/* private */ $wgMonthAbbreviationsCs = array(
-       "Led", "Úno", "Bře", "Dub", "Kvě", "Čer", "Črv", "Srp",
-       "Zář", "Říj", "Lis", "Pro"
-);
 
 # All special pages have to be listed here: a description of ""
 # will make them not show up on the "Special Pages" page, which
 #
 # *Neměnit jména v levém sloupci, jsou to interní jména programových funkcí. Pravý sloupec  obsahuje několik mezer, které mají tak zůstat, aby se tyto funkce nezařadily do seznamu speciálních stránek.
 /* private */ $wgValidSpecialPagesCs = array(
+       # Dates
+       'sunday' => "neděle",
+       'monday' => "pondělí",
+       'tuesday' => "úterý",
+       'wednesday' => "středa",
+       'thursday' => "čtvrtek",
+       'friday' => "pátek",
+       'saturday' => "sobota",
+       'january' => "leden",
+       'february' => "únor",
+       'march' => "březen",
+       'april' => "duben",
+       'may_long' => "květen",
+       'june' => "červen",
+       'july' => "červenec",
+       'august' => "srpen",
+       'september' => "září",
+       'october' => "říjen",
+       'november' => "listopad",
+       'december' => "prosinec",
+       'jan' => "Led",
+       'feb' => "Úno",
+       'mar' => "Bře",
+       'apr' => "Dub",
+       'may' => "Kvě",
+       'jun' => "Čer",
+       'jul' => "Črv",
+       'aug' => "Srp",
+       'sep' => "Zář",
+       'oct' => "Říj",
+       'nov' => "Lis",
+       'dec' => "Pro",
+
        "Userlogin"             => "",
        "Userlogout"    => "",
        "Preferences"   => "Změnit moje uživatelské preference", 
@@ -775,24 +790,6 @@ class LanguageCs extends LanguageUtf8 {
                return $wgUserTogglesCs;
        }
 
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesCs;
-               return $wgMonthNamesCs[$key-1];
-       }
-
-       function getMonthAbbreviation( $key )
-       {
-               global $wgMonthAbbreviationsCs;
-               return $wgMonthAbbreviationsCs[$key-1];
-       }
-
-       function getWeekdayName( $key )
-       {
-               global $wgWeekdayNamesCs;
-               return $wgWeekdayNamesCs[$key-1];
-       }
-
        # Zdědit userAdjust()
  
        # Datové a časové funkce možno upřesnit podle jazyka
index e38ef08..0e6044f 100644 (file)
         "Amazon.co.uk" => "http://www.amazon.co.uk/exec/obidos/ISBN=$1"
 );
 
-/* private */ $wgWeekdayNamesCy = array(
-       "Dydd Sul", "Dydd Llun", "Dydd Mawrth", "Dydd Mercher", "Dydd Iau",
-       "Dydd Gwener", "Dydd Sadwrn"
-);
-
-/* private */ $wgMonthNamesCy = array(
-       "Ionawr", "Chwefror", "Mawrth", "Ebrill", "Mai", "Mehefin",
-       "Gorffenaf", "Awst", "Medi", "Hydref", "Tachwedd",
-       "Rhagfyr"
-);
-
-/* private */ $wgMonthAbbreviationsCy = array(
-       "Ion", "Chwe", "Maw", "Ebr", "Mai", "Meh", "Gor", "Aws",
-       "Med", "Hyd", "Tach", "Rhag"
-);
 
 /* private */ $wgMagicWordsCy = array(
 #   ID                                 CASE  SYNONYMS
 );
 
 /* private */ $wgAllMessagesCy = array(
+# Dates
+'sunday' => 'Dydd Sul',
+'monday' => 'Dydd Llun',
+'tuesday' => 'Dydd Mawrth',
+'wednesday' => 'Dydd Mercher',
+'thursday' => 'Dydd Iau',
+'friday' => 'Dydd Gwener',
+'saturday' => 'Dydd Sadwrn',
+'january' => 'Ionawr',
+'february' => 'Chwefror',
+'march' => 'Mawrth',
+'april' => 'Ebrill',
+'may_long' => 'Mai',
+'june' => 'Mehefin',
+'july' => 'Gorffenaf',
+'august' => 'Awst',
+'september' => 'Medi',
+'october' => 'Hydref',
+'november' => 'Tachwedd',
+'december' => 'Rhagfyr',
+'jan' => 'Ion',
+'feb' => 'Chwe',
+'mar' => 'Maw',
+'apr' => 'Ebr',
+'may' => 'Mai',
+'jun' => 'Meh',
+'jul' => 'Gor',
+'aug' => 'Aws',
+'sep' => 'Med',
+'oct' => 'Hyd',
+'nov' => 'Tach',
+'dec' => 'Rhag',
+
 
 # Bits of text used by many pages:
 #
@@ -1076,24 +1094,6 @@ class LanguageCy extends LanguageUtf8 {
                return $wgUserTogglesCy;
        }
 
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesCy;
-               return $wgMonthNamesCy[$key-1];
-       }
-       
-       function getMonthAbbreviation( $key )
-       {
-               global $wgMonthAbbreviationsCy;
-               return $wgMonthAbbreviationsCy[$key-1];
-       }
-
-       function getWeekdayName( $key )
-       {
-               global $wgWeekdayNamesCy;
-               return $wgWeekdayNamesCy[$key-1];
-       }
-
        function getValidSpecialPages()
        {
                global $wgValidSpecialPagesCy;
index dd3137b..39d2eb4 100644 (file)
@@ -93,21 +93,6 @@ require_once( "LanguageUtf8.php" );
        "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
 );
 
-/* private */ $wgWeekdayNamesDa = array(
-       "søndag", "mandag", "tirsdag", "onsdag", "torsdag",
-       "fredag", "lørdag"
-);
-
-/* private */ $wgMonthNamesDa = array(
-       "januar", "februar", "marts", "april", "maj", "juni",
-       "juli", "august", "september", "oktober", "november",
-       "december"
-);
-
-/* private */ $wgMonthAbbreviationsDa = 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
@@ -181,6 +166,40 @@ require_once( "LanguageUtf8.php" );
 
 
 /* private */ $wgAllMessagesDa = array(
+# Dates
+
+'sunday' => 'søndag',
+'monday' => 'mandag',
+'tuesday' => 'tirsdag',
+'wednesday' => 'onsdag',
+'thursday' => 'torsdag',
+'friday' => 'fredag',
+'saturday' => 'lørdag',
+'january' => 'januar',
+'february' => 'februar',
+'march' => 'marts',
+'april' => 'april',
+'may_long' => 'maj',
+'june' => 'juni',
+'july' => 'juli',
+'august' => 'august',
+'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:
 #
@@ -1154,27 +1173,6 @@ class LanguageDa extends LanguageUtf8 {
                return $wgUserTogglesDa;
        }
 
-       function getMonthName( $key ) {
-               global $wgMonthNamesDa;
-               return $wgMonthNamesDa[$key-1];
-       }
-
-       /* by default we just return base form */
-       function getMonthNameGen( $key ) {
-               global $wgMonthNamesDa;
-               return $wgMonthNamesDa[$key-1];
-       }
-
-       function getMonthAbbreviation( $key ) {
-               global $wgMonthAbbreviationsDa;
-               return $wgMonthAbbreviationsDa[$key-1];
-       }
-
-       function getWeekdayName( $key ) {
-               global $wgWeekdayNamesDa;
-               return $wgWeekdayNamesDa[$key-1];
-       }
-
        # Inherit userAdjust()
 
        function date( $ts, $adj = false ) {