From 8e5a5d3a81759cfa9ef09f5cfa93cb7e869d189c Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Sat, 17 Jul 2004 20:34:09 +0000 Subject: [PATCH] moved weekday, monthname etc to AllMessages arrays. --- languages/LanguageAf.php | 66 +++++++++++++++++----------------- languages/LanguageAr.php | 43 +++++++++++----------- languages/LanguageBg.php | 78 +++++++++++++++++----------------------- languages/LanguageBn.php | 61 ++++++++++++++++--------------- languages/LanguageCa.php | 67 +++++++++++++++++----------------- languages/LanguageCs.php | 69 +++++++++++++++++------------------ languages/LanguageCy.php | 66 +++++++++++++++++----------------- languages/LanguageDa.php | 70 ++++++++++++++++++------------------ 8 files changed, 252 insertions(+), 268 deletions(-) diff --git a/languages/LanguageAf.php b/languages/LanguageAf.php index a18a934dee..635d1c2de4 100644 --- a/languages/LanguageAf.php +++ b/languages/LanguageAf.php @@ -66,21 +66,6 @@ "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 @@ -133,6 +118,39 @@ ); /* 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; diff --git a/languages/LanguageAr.php b/languages/LanguageAr.php index 22e2569324..c827964f60 100644 --- a/languages/LanguageAr.php +++ b/languages/LanguageAr.php @@ -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; } diff --git a/languages/LanguageBg.php b/languages/LanguageBg.php index 0821f00b8d..8f6bd61fde 100644 --- a/languages/LanguageBg.php +++ b/languages/LanguageBg.php @@ -83,21 +83,6 @@ 'Amazon.com' => "http://www.amazon.com/exec/obidos/ISBN=$1", ); -/* private */ $wgWeekdayNamesBg = array( - 'неделя', 'понеделник', 'вторник', 'сряда', 'четвъртък', - 'петък', 'събота' -); - -/* private */ $wgMonthNamesBg = array( - 'януари', 'февруари', 'март', 'април', 'май', 'юни', - 'юли', 'август', 'септември', 'октомври', 'ноември', - 'декември' -); - -/* private */ $wgMonthAbbreviationsBg = array( - 'яну', 'фев', 'мар', 'апр', 'май', 'юни', 'юли', 'авг', - 'сеп', 'окт', 'ное', 'дек' -); # Note to translators: @@ -218,6 +203,38 @@ # въведете '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; diff --git a/languages/LanguageBn.php b/languages/LanguageBn.php index a702bc17a8..2af83f584b 100644 --- a/languages/LanguageBn.php +++ b/languages/LanguageBn.php @@ -40,13 +40,6 @@ "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 (alternative: like this?).", "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 (alternative: like this?).", ); /* 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; diff --git a/languages/LanguageCa.php b/languages/LanguageCa.php index 9b9ce1ddbe..1702d0858a 100644 --- a/languages/LanguageCa.php +++ b/languages/LanguageCa.php @@ -82,21 +82,6 @@ "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 @@ -148,6 +133,40 @@ ); /* 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 ) diff --git a/languages/LanguageCs.php b/languages/LanguageCs.php index fddf8c4513..42788d511a 100644 --- a/languages/LanguageCs.php +++ b/languages/LanguageCs.php @@ -60,24 +60,6 @@ # 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 @@ -85,6 +67,39 @@ # # *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 diff --git a/languages/LanguageCy.php b/languages/LanguageCy.php index e38ef0802e..0e6044f959 100644 --- a/languages/LanguageCy.php +++ b/languages/LanguageCy.php @@ -74,21 +74,6 @@ "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 @@ -171,6 +156,39 @@ ); /* 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; diff --git a/languages/LanguageDa.php b/languages/LanguageDa.php index dd3137b181..39d2eb4610 100644 --- a/languages/LanguageDa.php +++ b/languages/LanguageDa.php @@ -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 ) { -- 2.20.1