From 0cef4ef5ba29e9f4fec2b1ce4438ac5aba222687 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Sun, 18 Jul 2004 05:52:26 +0000 Subject: [PATCH] moved weekday, monthname etc to AllMessages arrays.LanguageEl.php --- languages/LanguageEs.php | 62 ++++++++++++++++--------------- languages/LanguageEt.php | 74 +++++++++++++++++-------------------- languages/LanguageFa.php | 61 ++++++++++++++++-------------- languages/LanguageFy.php | 80 +++++++++++++++++----------------------- 4 files changed, 133 insertions(+), 144 deletions(-) diff --git a/languages/LanguageEs.php b/languages/LanguageEs.php index 0bb2418c17..ea849336e5 100644 --- a/languages/LanguageEs.php +++ b/languages/LanguageEs.php @@ -91,26 +91,45 @@ require_once( "LanguageUtf8.php" ); "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1" ); -/* private */ $wgWeekdayNamesEs = array( -"Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado" -); - -/* private */ $wgMonthNamesEs = array( - "enero", "febrero", "marzo", "abril", "mayo", "junio", - "julio", "agosto", "septiembre", "octubre", "noviembre", - "diciembre" -); - -/* private */ $wgMonthAbbreviationsEs = array( - "ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", - "sep", "oct", "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 # is the right thing for some of them (such as the "targeted" ones). # /* private */ $wgValidSpecialPagesEs = array( + # Dates + 'sunday' => 'Domingo', + 'monday' => 'Lunes', + 'tuesday' => 'Martes', + 'wednesday' => 'Miércoles', + 'thursday' => 'Jueves', + 'friday' => 'Viernes', + 'saturday' => 'Sábado', + 'january' => 'enero', + 'february' => 'febrero', + 'march' => 'marzo', + 'april' => 'abril', + 'may_long' => 'mayo', + 'june' => 'junio', + 'july' => 'julio', + 'august' => 'agosto', + 'september' => 'septiembre', + 'october' => 'octubre', + 'november' => 'noviembre', + 'december' => 'diciembre', + 'jan' => 'ene', + 'feb' => 'feb', + 'mar' => 'mar', + 'apr' => 'abr', + 'may' => 'may', + 'jun' => 'jun', + 'jul' => 'jul', + 'aug' => 'ago', + 'sep' => 'sep', + 'oct' => 'oct', + 'nov' => 'nov', + 'dec' => 'dic', + "Userlogin" => "", "Userlogout" => "", "Preferences" => "Preferencias de usuario", @@ -1023,21 +1042,6 @@ class LanguageEs extends LanguageUtf8 { } - function getMonthName( $key ) { - global $wgMonthNamesEs; - return $wgMonthNamesEs[$key-1]; - } - - function getMonthAbbreviation( $key ) { - global $wgMonthAbbreviationsEs; - return $wgMonthAbbreviationsEs[$key-1]; - } - - function getWeekdayName( $key ) { - global $wgWeekdayNamesEs; - return $wgWeekdayNamesEs[$key-1]; - } - # Inherit userAdjust() function shortdate( $ts, $adj = false ) { diff --git a/languages/LanguageEt.php b/languages/LanguageEt.php index 1385755819..321ba851de 100644 --- a/languages/LanguageEt.php +++ b/languages/LanguageEt.php @@ -65,21 +65,6 @@ "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1" ); -/* private */ $wgWeekdayNamesEt = array( - "pühapäev", "esmaspäev", "teisipäev", "kolmapäev", "neljapäev", - "reede", "laupäev" -); - -/* private */ $wgMonthNamesEt = array( - "jaanuar", "veebruar", "märts", "aprill", "mai", "juuni", - "juuli", "august", "september", "oktoober", "november", - "detsember" -); - -/* private */ $wgMonthAbbreviationsEt = array( - "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", - "Sep", "Oct", "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 @@ -132,6 +117,40 @@ ); /* private */ $wgAllMessagesEt = array( +# Dates + +'sunday' => 'pühapäev', +'monday' => 'esmaspäev', +'tuesday' => 'teisipäev', +'wednesday' => 'kolmapäev', +'thursday' => 'neljapäev', +'friday' => 'reede', +'saturday' => 'laupäev', +'january' => 'jaanuar', +'february' => 'veebruar', +'march' => 'märts', +'april' => 'aprill', +'may_long' => 'mai', +'june' => 'juuni', +'july' => 'juuli', +'august' => 'august', +'september' => 'september', +'october' => 'oktoober', +'november' => 'november', +'december' => 'detsember', +'jan' => 'Jan', +'feb' => 'Feb', +'mar' => 'Mar', +'apr' => 'Apr', +'may' => 'May', +'jun' => 'Jun', +'jul' => 'Jul', +'aug' => 'Aug', +'sep' => 'Sep', +'oct' => 'Oct', +'nov' => 'Nov', +'dec' => 'Dec', + # Bits of text used by many pages: # @@ -921,31 +940,6 @@ class LanguageEt extends LanguageUtf8 { return $wgUserTogglesEt; } - function getMonthName( $key ) - { - global $wgMonthNamesEt; - return $wgMonthNamesEt[$key-1]; - } - - /* by default we just return base form */ - function getMonthNameGen( $key ) - { - global $wgMonthNamesEt; - return $wgMonthNamesEt[$key-1]; - } - - function getMonthAbbreviation( $key ) - { - global $wgMonthAbbreviationsEt; - return $wgMonthAbbreviationsEt[$key-1]; - } - - function getWeekdayName( $key ) - { - global $wgWeekdayNamesEt; - return $wgWeekdayNamesEt[$key-1]; - } - function getValidSpecialPages() { global $wgValidSpecialPagesEt; diff --git a/languages/LanguageFa.php b/languages/LanguageFa.php index f39f6b04d2..98c01aa4f7 100644 --- a/languages/LanguageFa.php +++ b/languages/LanguageFa.php @@ -76,16 +76,6 @@ require_once("LanguageUtf8.php"); "nocache" => "از کار انداختن حافظه‌ی نهانی صفحات" ); -/* private */ $wgWeekdayNamesFa = array( - "یک‌شنبه", "دوشنبه", "سه‌شنبه", "چهارشنبه", "پنجشنبه", - "جمعه", "شنبه" -); - -/* private */ $wgMonthNamesFa = array( - "ژانویه", "فوریه", "مارس", "آوریل", "مه", "ژوئن", - "ژوئیه", "اوت", "سپتامبر", "اکتبر", "نوامبر", - "دسامبر" -); # All special pages have to be listed here: a description of "" # will make them not show up on the "Special Pages" page, which @@ -146,6 +136,39 @@ require_once("LanguageUtf8.php"); #------------------------------------------------------------------- /* private */ $wgAllMessagesFa = 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: # @@ -1137,24 +1160,6 @@ class LanguageFa extends LanguageUtf8 { return $wgUserTogglesFa; } - function getMonthName( $key ) - { - global $wgMonthNamesFa; - return $wgMonthNamesFa[$key-1]; - } - - function getMonthAbbreviation( $key ) - { - /* Persian doesn't use abbreviations for Gregorian month names */ - return $this->getMonthName( $key ); - } - - function getWeekdayName( $key ) - { - global $wgWeekdayNamesFa; - return $wgWeekdayNamesFa[$key-1]; - } - function getValidSpecialPages() { global $wgValidSpecialPagesFa; diff --git a/languages/LanguageFy.php b/languages/LanguageFy.php index daae904372..223a9e147d 100644 --- a/languages/LanguageFy.php +++ b/languages/LanguageFy.php @@ -80,22 +80,6 @@ if($wgMetaNamespace === FALSE) /* private */ $wgBookstoreListFy = array( ); -/* private */ $wgWeekdayNamesFy = array( - "snein", "moandei", "tiisdei", "woansdei", "tongersdei", - "freed", "sneon" -); - -/* private */ $wgMonthNamesFy = array( - "jannewaris", "febrewaris", "maart", "april", "maaie", "juny", - "july", "augustus", "septimber", "oktober", "novimber", - "decimber" -); - -/* private */ $wgMonthAbbreviationsFy = array( - "jan", "feb", "mar", "apr", "mai", "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 # is the right thing for some of them (such as the "targeted" ones). @@ -148,6 +132,39 @@ if($wgMetaNamespace === FALSE) ); /* private */ $wgAllMessagesFy = array( +# Dates +'sunday' => 'snein', +'monday' => 'moandei', +'tuesday' => 'tiisdei', +'wednesday' => 'woansdei', +'thursday' => 'tongersdei', +'friday' => 'freed', +'saturday' => 'sneon', +'january' => 'jannewaris', +'february' => 'febrewaris', +'march' => 'maart', +'april' => 'april', +'may_long' => 'maaie', +'june' => 'juny', +'july' => 'july', +'august' => 'augustus', +'september' => 'septimber', +'october' => 'oktober', +'november' => 'novimber', +'december' => 'decimber', +'jan' => 'jan', +'feb' => 'feb', +'mar' => 'mar', +'apr' => 'apr', +'may' => 'mai', +'jun' => 'jun', +'jul' => 'jul', +'aug' => 'aug', +'sep' => 'sep', +'oct' => 'okt', +'nov' => 'nov', +'dec' => 'dec', + # Bits of text used by many pages: # @@ -1062,37 +1079,6 @@ class LanguageFy extends LanguageUtf8 { return $wgUserTogglesFy; } - function getMonthName( $key ) - { - global $wgMonthNamesFy; - return $wgMonthNamesFy[$key-1]; - } - - /* by default we just return base form */ - function getMonthNameGen( $key ) - { - global $wgMonthNamesFy; - return $wgMonthNamesFy[$key-1]; - } - - function getMonthRegex() - { - global $wgMonthNamesFy; - return implode( "|", $wgMonthNamesFy ); - } - - function getMonthAbbreviation( $key ) - { - global $wgMonthAbbreviationsFy; - return $wgMonthAbbreviationsFy[$key-1]; - } - - function getWeekdayName( $key ) - { - global $wgWeekdayNamesFy; - return $wgWeekdayNamesFy[$key-1]; - } - # Inherit userAdjust() function date( $ts, $adj = false ) -- 2.20.1