From a198058458d687e7e016213f089caaeb8f61a82f Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Tue, 20 Jul 2004 21:08:32 +0000 Subject: [PATCH] moved weekday, monthname etc to AllMessages arrays. --- languages/LanguageNo.php | 81 +++++++++++++++++----------------------- languages/LanguageOc.php | 69 ++++++++++++++++++---------------- languages/LanguageRo.php | 67 +++++++++++++++++---------------- languages/LanguageRu.php | 81 +++++++++++++++++----------------------- languages/LanguageSc.php | 68 +++++++++++++++++---------------- languages/LanguageSk.php | 66 +++++++++++++++++--------------- languages/LanguageSq.php | 75 +++++++++++++++++-------------------- languages/LanguageSr.php | 76 +++++++++++++++++-------------------- languages/LanguageTa.php | 68 +++++++++++++++++---------------- languages/LanguageTh.php | 68 +++++++++++++++++---------------- 10 files changed, 351 insertions(+), 368 deletions(-) diff --git a/languages/LanguageNo.php b/languages/LanguageNo.php index ae7c511ee6..9ee7a28c07 100644 --- a/languages/LanguageNo.php +++ b/languages/LanguageNo.php @@ -73,21 +73,6 @@ "Mao.no" => "http://www.mao.no/" ); -/* private */ $wgWeekdayNamesNo = array( - "søndag", "mandag", "tirsdag", "onsdag", "torsdag", - "fredag", "lørdag" -); - -/* private */ $wgMonthNamesNo = array( - "januar", "februar", "mars", "april", "mai", "juni", - "juli", "august", "september", "oktober", "november", - "desember" -); - -/* private */ $wgMonthAbbreviationsNo = array( - "jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", - "sep", "okt", "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 @@ -142,6 +127,41 @@ /* private */ $wgAllMessagesNo = array( +# Dates +# + +'sunday' => 'søndag', +'monday' => 'mandag', +'tuesday' => 'tirsdag', +'wednesday' => 'onsdag', +'thursday' => 'torsdag', +'friday' => 'fredag', +'saturday' => 'lørdag', +'january' => 'januar', +'february' => 'februar', +'march' => 'mars', +'april' => 'april', +'may_long' => 'mai', +'june' => 'juni', +'july' => 'juli', +'august' => 'august', +'september' => 'september', +'october' => 'oktober', +'november' => 'november', +'december' => 'desember', +'jan' => 'jan', +'feb' => 'feb', +'mar' => 'mar', +'apr' => 'apr', +'may' => 'mai', +'jun' => 'jun', +'jul' => 'jul', +'aug' => 'aug', +'sep' => 'sep', +'oct' => 'okt', +'nov' => 'nov', +'dec' => 'des', + # Bits of text used by many pages: # "categories" => "Sidekategorier", @@ -1079,37 +1099,6 @@ class LanguageNo extends LanguageUtf8 { return $wgUserTogglesNo; } - function getMonthName( $key ) - { - global $wgMonthNamesNo; - return $wgMonthNamesNo[$key-1]; - } - - /* by default we just return base form */ - function getMonthNameGen( $key ) - { - global $wgMonthNamesNo; - return $wgMonthNamesNo[$key-1]; - } - - function getMonthRegex() - { - global $wgMonthNamesNo; - return implode( "|", $wgMonthNamesNo ); - } - - function getMonthAbbreviation( $key ) - { - global $wgMonthAbbreviationsNo; - return $wgMonthAbbreviationsNo[$key-1]; - } - - function getWeekdayName( $key ) - { - global $wgWeekdayNamesNo; - return $wgWeekdayNamesNo[$key-1]; - } - # Inherit userAdjust() function date( $ts, $adj = false ) diff --git a/languages/LanguageOc.php b/languages/LanguageOc.php index db9d161a3f..00e17e6e3f 100644 --- a/languages/LanguageOc.php +++ b/languages/LanguageOc.php @@ -65,21 +65,6 @@ require_once( "LanguageUtf8.php" ); "Amazon.fr" => "http://www.amazon.fr/exec/obidos/ISBN=$1" ); -/* private */ $wgWeekdayNamesOc = array( - "dimenge", "diluns", "dimarts", "dimèrcres", "dijòus", - "divendres", "dissabte" -); - -/* private */ $wgMonthNamesOc = array( - "janvièir", "febrièr", "març", "abril", "mai", "junh", - "julhet", "agost", "setembre", "octòbre", "novembre", - "decembre" -); - -/* private */ $wgMonthAbbreviationsOc = array( - "jan", "feb", "mar", "abr", "mai", "jun", "jul", "ago", - "set", "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 @@ -134,6 +119,42 @@ require_once( "LanguageUtf8.php" ); /* private */ $wgAllMessagesOc = array( +# Dates +# + +'sunday' => 'dimenge', +'monday' => 'diluns', +'tuesday' => 'dimarts', +'wednesday' => 'dimèrcres', +'thursday' => 'dijòus', +'friday' => 'divendres', +'saturday' => 'dissabte', +'january' => 'janvièir', +'february' => 'febrièr', +'march' => 'març', +'april' => 'abril', +'may_long' => 'mai', +'june' => 'junh', +'july' => 'julhet', +'august' => 'agost', +'september' => 'setembre', +'october' => 'octòbre', +'november' => 'novembre', +'december' => 'decembre', +'jan' => 'jan', +'feb' => 'feb', +'mar' => 'mar', +'apr' => 'abr', +'may' => 'mai', +'jun' => 'jun', +'jul' => 'jul', +'aug' => 'ago', +'sep' => 'set', +'oct' => 'oct', +'nov' => 'nov', +'dec' => 'dec', + + # Bits of text used by many pages: # "categories" => "Catégories de la page", // Looxix "Page categories", @@ -956,24 +977,6 @@ class LanguageOc extends LanguageUtf8 return $wgUserTogglesOc; } - function getMonthName( $key ) - { - global $wgMonthNamesOc; - return $wgMonthNamesOc[$key-1]; - } - - function getMonthAbbreviation( $key ) - { - global $wgMonthAbbreviationsOc; - return $wgMonthAbbreviationsOc[$key-1]; - } - - function getWeekdayName( $key ) - { - global $wgWeekdayNamesOc; - return $wgWeekdayNamesOc[$key-1]; - } - // Inherit userAdjust() function date( $ts, $adj = false ) diff --git a/languages/LanguageRo.php b/languages/LanguageRo.php index 8dfdc4c37c..92c1ca5c1c 100644 --- a/languages/LanguageRo.php +++ b/languages/LanguageRo.php @@ -80,21 +80,7 @@ require_once("LanguageUtf8.php"); "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1" ); -/* private */ $wgWeekdayNamesRo = array( - "Duminică", "Luni", "Marţi", "Miercuri", "Joi", - "Vineri", "Sâmbătă" -); -# Yes, the month names start with small letters in Romanian. -/* private */ $wgMonthNamesRo = array( - "ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", - "iulie", "august", "septembrie", "octombrie", "noiembrie", - "decembrie" -); -/* private */ $wgMonthAbbreviationsRo = array( - "Ian", "Feb", "Mar", "Apr", "Mai", "Iun", "Iul", "Aug", - "Sep", "Oct", "Noi", "Dec" -); /* private */ $wgMagicWordsRo = array( # ID CASE SYNONYMS @@ -180,6 +166,41 @@ require_once("LanguageUtf8.php"); /* private */ $wgAllMessagesRo = array( +# Dates +# + +'sunday' => "Duminică", +'monday' => 'Luni', +'tuesday' => 'Marţi', +'wednesday' => 'Miercuri', +'thursday' => 'Joi', +'friday' => 'Vineri', +'saturday' => "Sâmbătă", +'january' => 'ianuarie', +'february' => 'februarie', +'march' => 'martie', +'april' => 'aprilie', +'may_long' => 'mai', +'june' => 'iunie', +'july' => 'iulie', +'august' => 'august', +'september' => 'septembrie', +'october' => 'octombrie', +'november' => 'noiembrie', +'december' => 'decembrie', +'jan' => 'Ian', +'feb' => 'Feb', +'mar' => 'Mar', +'apr' => 'Apr', +'may' => 'Mai', +'jun' => 'Iun', +'jul' => 'Iul', +'aug' => 'Aug', +'sep' => 'Sep', +'oct' => 'Oct', +'nov' => 'Noi', +'dec' => 'Dec', + # Bits of text used by many pages: # "categories" => "Categorii de pagini", @@ -1080,24 +1101,6 @@ class LanguageRo extends LanguageUtf8 { return $wgUserTogglesRo; } - function getMonthName( $key ) - { - global $wgMonthNamesRo; - return $wgMonthNamesRo[$key-1]; - } - - function getMonthAbbreviation( $key ) - { - global $wgMonthAbbreviationsRo; - return $wgMonthAbbreviationsRo[$key-1]; - } - - function getWeekdayName( $key ) - { - global $wgWeekdayNamesRo; - return $wgWeekdayNamesRo[$key-1]; - } - function timeanddate( $ts, $adj = false ) { return $this->date( $ts, $adj ) . " " . $this->time( $ts, $adj ); diff --git a/languages/LanguageRu.php b/languages/LanguageRu.php index 3ee43e9942..0bba8f1430 100644 --- a/languages/LanguageRu.php +++ b/languages/LanguageRu.php @@ -81,21 +81,6 @@ if($wgMetaNamespace === FALSE) /* Add a $wgBookstoreListRu to override default list of book links for ISBN links */ -/* private */ $wgWeekdayNamesRu = array( - "Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", - "Пятница", "Суббота" -); - -/* private */ $wgMonthNamesRu = array( - "Январь", "Февраль", "Марг", "Апрель", "Май", "Июнь", - "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", - "Декабрь" -); - -/* private */ $wgMonthAbbreviationsRu = array( - "Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", - "Сен", "Окт", "Ноя", "Дек" -); # 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 +134,41 @@ if($wgMetaNamespace === FALSE) /* private */ $wgAllMessagesRu = 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: # "linktrail" => "/^([a-z]+)(.*)\$/sD", @@ -965,37 +985,6 @@ class LanguageRu extends LanguageUtf8 { return $wgUserTogglesRu; } - function getMonthName( $key ) - { - global $wgMonthNamesRu; - return $wgMonthNamesRu[$key-1]; - } - - /* by default we just return base form */ - function getMonthNameGen( $key ) - { - global $wgMonthNamesRu; - return $wgMonthNamesRu[$key-1]; - } - - function getMonthRegex() - { - global $wgMonthNamesRu; - return implode( "|", $wgMonthNamesRu ); - } - - function getMonthAbbreviation( $key ) - { - global $wgMonthAbbreviationsRu; - return $wgMonthAbbreviationsRu[$key-1]; - } - - function getWeekdayName( $key ) - { - global $wgWeekdayNamesRu; - return $wgWeekdayNamesRu[$key-1]; - } - function getValidSpecialPages() { global $wgValidSpecialPagesRu; diff --git a/languages/LanguageSc.php b/languages/LanguageSc.php index 96bbf982cf..872e8fd822 100644 --- a/languages/LanguageSc.php +++ b/languages/LanguageSc.php @@ -55,21 +55,6 @@ require_once( "LanguageUtf8.php" ); /* Just inherit the (mostly) native-language plus latinized formed */ /* private */ $wgLanguageNamesSc = $wgLanguageNamesEn; -/* private */ $wgWeekdayNamesSc = array( - "Domiga", "Lúnis", "Màrtis", "Mércuris", "Zóbia", - "Canàbara", "Sàudu" -); - -/* private */ $wgMonthNamesSc = array( - "Ghenàlliu", "Fiàrzu", "Màrtu", "Abríli", "Màzu", "Làmparas", - "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", - "Dicembre" -); - -/* private */ $wgMonthAbbreviationsSc = 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 @@ -121,6 +106,41 @@ require_once( "LanguageUtf8.php" ); /* private */ $wgAllMessagesSc = array( +# Dates +# + +'sunday' => "Domiga", +'monday' => "Lúnis", +'tuesday' => "Màrtis", +'wednesday' => "Mércuris", +'thursday' => "Zóbia", +'friday' => "Canàbara", +'saturday' => "Sàudu", +'january' => "Ghenàlliu", +'february' => "Fiàrzu", +'march' => "Màrtu", +'april' => "Abríli", +'may_long' => "Màzu", +'june' => "Làmparas", +'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: # "linktrail" => "/^([a-z]+)(.*)\$/sD", @@ -826,24 +846,6 @@ class LanguageSc extends LanguageUtf8 { return $wgLanguageNamesSc[$code]; } - function getMonthName( $key ) - { - global $wgMonthNamesSc; - return $wgMonthNamesSc[$key-1]; - } - - function getMonthAbbreviation( $key ) - { - global $wgMonthAbbreviationsSc; - return $wgMonthAbbreviationsSc[$key-1]; - } - - function getWeekdayName( $key ) - { - global $wgWeekdayNamesSc; - return $wgWeekdayNamesSc[$key-1]; - } - function date( $ts, $adj = false ) { if ( $adj ) { $ts = $this->userAdjust( $ts ); } diff --git a/languages/LanguageSk.php b/languages/LanguageSk.php index e57f8657ef..9298da32fd 100644 --- a/languages/LanguageSk.php +++ b/languages/LanguageSk.php @@ -57,21 +57,8 @@ require_once("LanguageUtf8.php"); ); -/* private */ $wgWeekdayNamesSk = array( - "Nedeľa", "Pondelok", "Utorok", "Streda", "Štvrtok", - "Piatok", "Sobota" -); -/* private */ $wgMonthNamesSk = array( - "Január", "Február", "Marec", "Apríl", "Máj", "Jún", - "Júl", "August", "September", "Október", "November", - "December" -); -/* private */ $wgMonthAbbreviationsSk = array( - "Jan", "Feb", "Mar", "Apr", "Máj", "Jún", "Júl", "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 @@ -126,6 +113,41 @@ require_once("LanguageUtf8.php"); /* private */ $wgAllMessagesSk = array( +# Dates +# + +'sunday' => 'Nedeľa', +'monday' => 'Pondelok', +'tuesday' => 'Utorok', +'wednesday' => 'Streda', +'thursday' => "Štvrtok", +'friday' => 'Piatok', +'saturday' => 'Sobota', +'january' => 'Január', +'february' => 'Február', +'march' => 'Marec', +'april' => 'Apríl', +'may_long' => 'Máj', +'june' => 'Jún', +'july' => 'Júl', +'august' => 'August', +'september' => 'September', +'october' => 'Október', +'november' => 'November', +'december' => 'December', +'jan' => 'Jan', +'feb' => 'Feb', +'mar' => 'Mar', +'apr' => 'Apr', +'may' => 'Máj', +'jun' => 'Jún', +'jul' => 'Júl', +'aug' => 'Aug', +'sep' => 'Sep', +'oct' => 'Okt', +'nov' => 'Nov', +'dec' => 'Dec', + # Bits of text used by many pages: # "linktrail" => "/^([a-z]+)(.*)\$/sD", @@ -917,24 +939,6 @@ class LanguageSk extends LanguageUtf8 { return $wgUserTogglesSk; } - function getMonthName( $key ) - { - global $wgMonthNamesSk; - return $wgMonthNamesSk[$key-1]; - } - - function getMonthAbbreviation( $key ) - { - global $wgMonthAbbreviationsSk; - return $wgMonthAbbreviationsSk[$key-1]; - } - - function getWeekdayName( $key ) - { - global $wgWeekdayNamesSk; - return $wgWeekdayNamesSk[$key-1]; - } - function getValidSpecialPages() { global $wgValidSpecialPagesSk; diff --git a/languages/LanguageSq.php b/languages/LanguageSq.php index d1632c8e08..4c77444d2e 100644 --- a/languages/LanguageSq.php +++ b/languages/LanguageSq.php @@ -76,21 +76,6 @@ require_once("LanguageUtf8.php"); /* Please customize this list... */ -/* private */ $wgWeekdayNamesSq = array( - "E Djelë", "E Hënë", "E Martë", "E Mërkurë", "E Enjte", - "E Premte", "E Shtunë" -); - -/* private */ $wgMonthNamesSq = array( - "Janar", "Shkurt", "Mars", "Prill", "Maj", "Qershor", - "Korrik", "Gusht", "Shtator", "Tetor", "Nëntor", - "Dhjetor" -); - -/* private */ $wgMonthAbbreviationsSq = array( - "Jan", "Shk", "Mar", "Pri", "Maj", "Qer", "Kor", "Gus", - "Sht", "Tet", "Nën", "Dhj" -); # 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,41 @@ require_once("LanguageUtf8.php"); /* private */ $wgAllMessagesSq = array( +# Dates +# + +'sunday' => 'E Djelë', +'monday' => 'E Hënë', +'tuesday' => 'E Martë', +'wednesday' => 'E Mërkurë', +'thursday' => 'E Enjte', +'friday' => 'E Premte', +'saturday' => 'E Shtunë', +'january' => 'Janar', +'february' => 'Shkurt', +'march' => 'Mars', +'april' => 'Prill', +'may_long' => 'Maj', +'june' => 'Qershor', +'july' => 'Korrik', +'august' => 'Gusht', +'september' => 'Shtator', +'october' => 'Tetor', +'november' => 'Nëntor', +'december' => 'Dhjetor', +'jan' => 'Jan', +'feb' => 'Shk', +'mar' => 'Mar', +'apr' => 'Pri', +'may' => 'Maj', +'jun' => 'Qer', +'jul' => 'Kor', +'aug' => 'Gus', +'sep' => 'Sht', +'oct' => 'Tet', +'nov' => 'Nën', +'dec' => 'Dhj', + # Bits of text used by many pages: # "linktrail" => "/^([a-z]+)(.*)\$/sD", @@ -1066,31 +1086,6 @@ class LanguageSq extends LanguageUtf8 { return $wgUserTogglesSq; } - function getMonthName( $key ) - { - global $wgMonthNamesSq; - return $wgMonthNamesSq[$key-1]; - } - - /* by default we just return base form */ - function getMonthNameGen( $key ) - { - global $wgMonthNamesSq; - return $wgMonthNamesSq[$key-1]; - } - - function getMonthAbbreviation( $key ) - { - global $wgMonthAbbreviationsSq; - return $wgMonthAbbreviationsSq[$key-1]; - } - - function getWeekdayName( $key ) - { - global $wgWeekdayNamesSq; - return $wgWeekdayNamesSq[$key-1]; - } - # localised date and time function date( $ts, $adj = false ) { diff --git a/languages/LanguageSr.php b/languages/LanguageSr.php index 4786bf2089..ef5804fbcb 100644 --- a/languages/LanguageSr.php +++ b/languages/LanguageSr.php @@ -61,22 +61,6 @@ require_once( "LanguageUtf8.php" ); "nocache" => "Онемогући кеширање страница" ); -/* private */ $wgWeekdayNamesSr = array( - "Недеља", "Понедељак", "Уторак", "Среда", "Четвртак", - "Петак", "Субота" -); - -/* private */ $wgMonthNamesSr = array( - "Јануар", "Фебруар", "Март", "Април", "Мај", "Јуни", - "Јули", "Август", "Септембар", "Октобар", "Новембар", - "Децембар" -); - -/* private */ $wgMonthAbbreviationsSr = array( - "Јан", "Феб", "Мар", "Апр", "Мај", "Јун", - "Јул", "Авг", "Сеп", "Окт", "Нов", - "Дец" -); /* NOT USED IN STABLE VERSION */ /* private */ $wgMagicWordsSr = array( @@ -151,6 +135,41 @@ require_once( "LanguageUtf8.php" ); /* private */ $wgAllMessagesSr = 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: # "categories" => "Категорије страница", @@ -1098,31 +1117,6 @@ class LanguageSr extends LanguageUtf8 { return $wgUserTogglesSr; } - function getMonthName( $key ) - { - global $wgMonthNamesSr; - return $wgMonthNamesSr[$key-1]; - } - - /* by default we just return base form */ - function getMonthNameGen( $key ) - { - global $wgMonthNamesSr; - return $wgMonthNamesSr[$key-1]; - } - - function getMonthAbbreviation( $key ) - { - global $wgMonthAbbreviationsSr; - return $wgMonthAbbreviationsSr[$key-1]; - } - - function getWeekdayName( $key ) - { - global $wgWeekdayNamesSr; - return $wgWeekdayNamesSr[$key-1]; - } - function getValidSpecialPages() { global $wgValidSpecialPagesSr; diff --git a/languages/LanguageTa.php b/languages/LanguageTa.php index d89e504406..05e44c3c3f 100644 --- a/languages/LanguageTa.php +++ b/languages/LanguageTa.php @@ -92,21 +92,6 @@ require_once( "LanguageUtf8.php" ); "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1" ); -/* private */ $wgWeekdayNamesTa = array( - "ஞாயிறு", "திங்கள்", "செவ்வாய்", "புதன்", "வியாழன்", - "வெள்ளி", "சனி" -); - -/* private */ $wgMonthNamesTa = array( - "ஜனவரி", "பெப்ரவரி", "மார்ச்", "ஏப்ரில்", "மே", "ஜூன்", - "ஜூலை", "ஆகஸ்ட்", "செப்டெம்பர்", "அக்டோபர்", "நவம்பர்", - "டிசம்பர்" -); - -/* private */ $wgMonthAbbreviationsTa = array( - "ஜன", "பெப்", "மார்", "ஏப்", "மே", "ஜூன்", "ஜூலை", "ஆக", - "செப்", "அக்", "நவ", "டிச" -); # All special pages have to be listed here: a description of "" # will make them not show up on the "Special Pages" page, which @@ -169,6 +154,41 @@ require_once( "LanguageUtf8.php" ); /* private */ $wgAllMessagesTa = 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: # "categories" => "பக்க வகைகள்", @@ -938,24 +958,6 @@ class LanguageTa extends LanguageUtf8 { return $wgSkinNamesTa; } - function getMonthName( $key ) - { - global $wgMonthNamesTa; - return $wgMonthNamesTa[$key-1]; - } - - function getMonthAbbreviation( $key ) - { - global $wgMonthAbbreviationsTa; - return $wgMonthAbbreviationsTa[$key-1]; - } - - function getWeekdayName( $key ) - { - global $wgWeekdayNamesTa; - return $wgWeekdayNamesTa[$key-1]; - } - function getValidSpecialPages() { global $wgValidSpecialPagesTa; diff --git a/languages/LanguageTh.php b/languages/LanguageTh.php index 9f84ed510e..d4bd2bec8f 100644 --- a/languages/LanguageTh.php +++ b/languages/LanguageTh.php @@ -68,21 +68,6 @@ "nocache" => "ไม่นำหน้าต่าง ๆ มาใส่ใน cache" ); -/* private */ $wgWeekdayNamesTh = array( - "วันอาทิตย์", "วันจันทร์", "วันอังคาร", "วันพุธ", "วันพฤหัสบดี", - "วันศุกร์", "วันเสาร์" -); - -/* private */ $wgMonthNamesTh = array( - "มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", - "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", - "ธันวาคม" -); - -/* private */ $wgMonthAbbreviationsTh = 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 +131,41 @@ /* private */ $wgAllMessagesTh = 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: # "categories" => "ประเภทของหน้า", @@ -1120,24 +1140,6 @@ class LanguageTh extends LanguageUtf8 { return $wgUserTogglesTh; } - function getMonthName( $key ) - { - global $wgMonthNamesTh; - return $wgMonthNamesTh[$key-1]; - } - - function getMonthAbbreviation( $key ) - { - global $wgMonthAbbreviationsTh; - return $wgMonthAbbreviationsTh[$key-1]; - } - - function getWeekdayName( $key ) - { - global $wgWeekdayNamesTh; - return $wgWeekdayNamesTh[$key-1]; - } - function getValidSpecialPages() { global $wgValidSpecialPagesTh; -- 2.20.1