From 03ff659d4bba7cec5e8f28761aa8a48b71449712 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Sat, 17 Jul 2004 19:58:37 +0000 Subject: [PATCH] moved weekday, monthname etc to AllMessages arrays.LanguageDa.php --- languages/LanguageEo.php | 69 ++++++++++++++++------------------ languages/LanguageFi.php | 73 ++++++++++++++++-------------------- languages/LanguageIt.php | 66 ++++++++++++++++---------------- languages/LanguageNl.php | 69 ++++++++++++++++------------------ languages/LanguagePt.php | 81 ++++++++++++++++------------------------ languages/LanguageSl.php | 70 ++++++++++++++++------------------ languages/LanguageSv.php | 64 ++++++++++++++++--------------- 7 files changed, 231 insertions(+), 261 deletions(-) diff --git a/languages/LanguageEo.php b/languages/LanguageEo.php index b92d6ee692..1873818992 100644 --- a/languages/LanguageEo.php +++ b/languages/LanguageEo.php @@ -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 diff --git a/languages/LanguageFi.php b/languages/LanguageFi.php index 985e70c179..5c471f0bb4 100644 --- a/languages/LanguageFi.php +++ b/languages/LanguageFi.php @@ -63,21 +63,6 @@ ); -/* 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", @@ -127,6 +112,39 @@ /* 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 ) diff --git a/languages/LanguageIt.php b/languages/LanguageIt.php index fa89ab35f4..b21918e6fd 100644 --- a/languages/LanguageIt.php +++ b/languages/LanguageIt.php @@ -77,21 +77,6 @@ /* 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 @@ -144,6 +129,39 @@ ); /* 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 ); } diff --git a/languages/LanguageNl.php b/languages/LanguageNl.php index 3061a56177..e7ebff8c4e 100644 --- a/languages/LanguageNl.php +++ b/languages/LanguageNl.php @@ -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 ) { diff --git a/languages/LanguagePt.php b/languages/LanguagePt.php index 299206eb46..07fdaa30fa 100644 --- a/languages/LanguagePt.php +++ b/languages/LanguagePt.php @@ -93,23 +93,6 @@ "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 @@ -164,6 +147,39 @@ ); /* 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 ); diff --git a/languages/LanguageSl.php b/languages/LanguageSl.php index 526ed05292..a4d8701910 100644 --- a/languages/LanguageSl.php +++ b/languages/LanguageSl.php @@ -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; diff --git a/languages/LanguageSv.php b/languages/LanguageSv.php index b77c623bac..897b59e558 100644 --- a/languages/LanguageSv.php +++ b/languages/LanguageSv.php @@ -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 ) { -- 2.20.1