r4316 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r4315‎ | r4316 | r4317 >
Date:05:52, 18 July 2004
Author:jeluf
Status:old
Tags:
Comment:
moved weekday, monthname etc to AllMessages arrays.LanguageEl.php
Modified paths:
  • /trunk/phase3/languages/LanguageEs.php (modified) (history)
  • /trunk/phase3/languages/LanguageEt.php (modified) (history)
  • /trunk/phase3/languages/LanguageFa.php (modified) (history)
  • /trunk/phase3/languages/LanguageFy.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageFa.php
@@ -76,17 +76,7 @@
7777 "nocache" => "از کار انداختن حافظه‌ی نهانی صفحات"
7878 );
7979
80 -/* private */ $wgWeekdayNamesFa = array(
81 - "یک‌شنبه", "دوشنبه", "سه‌شنبه", "چهارشنبه", "پنجشنبه",
82 - "جمعه", "شنبه"
83 -);
8480
85 -/* private */ $wgMonthNamesFa = array(
86 - "ژانویه", "فوریه", "مارس", "آوریل", "مه", "ژوئن",
87 - "ژوئیه", "اوت", "سپتامبر", "اکتبر", "نوامبر",
88 - "دسامبر"
89 -);
90 -
9181 # All special pages have to be listed here: a description of ""
9282 # will make them not show up on the "Special Pages" page, which
9383 # is the right thing for some of them (such as the "targeted" ones).
@@ -146,7 +136,40 @@
147137 #-------------------------------------------------------------------
148138
149139 /* private */ $wgAllMessagesFa = array(
 140+# Dates
150141
 142+'sunday' => "یک‌شنبه",
 143+'monday' => "دوشنبه",
 144+'tuesday' => "سه‌شنبه",
 145+'wednesday' => "چهارشنبه",
 146+'thursday' => "پنجشنبه",
 147+'friday' => "جمعه",
 148+'saturday' => "شنبه",
 149+'january' => "ژانویه",
 150+'february' => "فوریه",
 151+'march' => "مارس",
 152+'april' => "آوریل",
 153+'may_long' => "مه",
 154+'june' => "ژوئن",
 155+'july' => "ژوئیه",
 156+'august' => "اوت",
 157+'september' => "سپتامبر",
 158+'october' => "اکتبر",
 159+'november' => "نوامبر",
 160+'december' => "دسامبر",
 161+'jan' => "ژانویه",
 162+'feb' => "فوریه",
 163+'mar' => "مارس",
 164+'apr' => "آوریل",
 165+'may' => "مه",
 166+'jun' => "ژوئن",
 167+'jul' => "ژوئیه",
 168+'aug' => "اوت",
 169+'sep' => "سپتامبر",
 170+'oct' => "اکتبر",
 171+'nov' => "نوامبر",
 172+'dec' => "دسامبر",
 173+
151174 # Bits of text used by many pages:
152175 #
153176 "categories" => "رده‌های صفحات",
@@ -1137,24 +1160,6 @@
11381161 return $wgUserTogglesFa;
11391162 }
11401163
1141 - function getMonthName( $key )
1142 - {
1143 - global $wgMonthNamesFa;
1144 - return $wgMonthNamesFa[$key-1];
1145 - }
1146 -
1147 - function getMonthAbbreviation( $key )
1148 - {
1149 - /* Persian doesn't use abbreviations for Gregorian month names */
1150 - return $this->getMonthName( $key );
1151 - }
1152 -
1153 - function getWeekdayName( $key )
1154 - {
1155 - global $wgWeekdayNamesFa;
1156 - return $wgWeekdayNamesFa[$key-1];
1157 - }
1158 -
11591164 function getValidSpecialPages()
11601165 {
11611166 global $wgValidSpecialPagesFa;
Index: trunk/phase3/languages/LanguageFy.php
@@ -80,22 +80,6 @@
8181 /* private */ $wgBookstoreListFy = array(
8282 );
8383
84 -/* private */ $wgWeekdayNamesFy = array(
85 - "snein", "moandei", "tiisdei", "woansdei", "tongersdei",
86 - "freed", "sneon"
87 -);
88 -
89 -/* private */ $wgMonthNamesFy = array(
90 - "jannewaris", "febrewaris", "maart", "april", "maaie", "juny",
91 - "july", "augustus", "septimber", "oktober", "novimber",
92 - "decimber"
93 -);
94 -
95 -/* private */ $wgMonthAbbreviationsFy = array(
96 - "jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug",
97 - "sep", "okt", "nov", "dec"
98 -);
99 -
10084 # All special pages have to be listed here: a description of ""
10185 # will make them not show up on the "Special Pages" page, which
10286 # is the right thing for some of them (such as the "targeted" ones).
@@ -148,7 +132,40 @@
149133 );
150134
151135 /* private */ $wgAllMessagesFy = array(
 136+# Dates
 137+'sunday' => 'snein',
 138+'monday' => 'moandei',
 139+'tuesday' => 'tiisdei',
 140+'wednesday' => 'woansdei',
 141+'thursday' => 'tongersdei',
 142+'friday' => 'freed',
 143+'saturday' => 'sneon',
 144+'january' => 'jannewaris',
 145+'february' => 'febrewaris',
 146+'march' => 'maart',
 147+'april' => 'april',
 148+'may_long' => 'maaie',
 149+'june' => 'juny',
 150+'july' => 'july',
 151+'august' => 'augustus',
 152+'september' => 'septimber',
 153+'october' => 'oktober',
 154+'november' => 'novimber',
 155+'december' => 'decimber',
 156+'jan' => 'jan',
 157+'feb' => 'feb',
 158+'mar' => 'mar',
 159+'apr' => 'apr',
 160+'may' => 'mai',
 161+'jun' => 'jun',
 162+'jul' => 'jul',
 163+'aug' => 'aug',
 164+'sep' => 'sep',
 165+'oct' => 'okt',
 166+'nov' => 'nov',
 167+'dec' => 'dec',
152168
 169+
153170 # Bits of text used by many pages:
154171 #
155172 #"linktrail" => "/^([àáèéìíòóùúâêîôûäëïöüa-z]+)(.*)\$/sD",
@@ -1062,37 +1079,6 @@
10631080 return $wgUserTogglesFy;
10641081 }
10651082
1066 - function getMonthName( $key )
1067 - {
1068 - global $wgMonthNamesFy;
1069 - return $wgMonthNamesFy[$key-1];
1070 - }
1071 -
1072 - /* by default we just return base form */
1073 - function getMonthNameGen( $key )
1074 - {
1075 - global $wgMonthNamesFy;
1076 - return $wgMonthNamesFy[$key-1];
1077 - }
1078 -
1079 - function getMonthRegex()
1080 - {
1081 - global $wgMonthNamesFy;
1082 - return implode( "|", $wgMonthNamesFy );
1083 - }
1084 -
1085 - function getMonthAbbreviation( $key )
1086 - {
1087 - global $wgMonthAbbreviationsFy;
1088 - return $wgMonthAbbreviationsFy[$key-1];
1089 - }
1090 -
1091 - function getWeekdayName( $key )
1092 - {
1093 - global $wgWeekdayNamesFy;
1094 - return $wgWeekdayNamesFy[$key-1];
1095 - }
1096 -
10971083 # Inherit userAdjust()
10981084
10991085 function date( $ts, $adj = false )
Index: trunk/phase3/languages/LanguageEs.php
@@ -91,26 +91,45 @@
9292 "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
9393 );
9494
95 -/* private */ $wgWeekdayNamesEs = array(
96 -"Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"
97 -);
9895
99 -/* private */ $wgMonthNamesEs = array(
100 - "enero", "febrero", "marzo", "abril", "mayo", "junio",
101 - "julio", "agosto", "septiembre", "octubre", "noviembre",
102 - "diciembre"
103 -);
104 -
105 -/* private */ $wgMonthAbbreviationsEs = array(
106 - "ene", "feb", "mar", "abr", "may", "jun", "jul", "ago",
107 - "sep", "oct", "nov", "dic"
108 -);
109 -
11096 # All special pages have to be listed here: a description of ""
11197 # will make them not show up on the "Special Pages" page, which
11298 # is the right thing for some of them (such as the "targeted" ones).
11399 #
114100 /* private */ $wgValidSpecialPagesEs = array(
 101+ # Dates
 102+ 'sunday' => 'Domingo',
 103+ 'monday' => 'Lunes',
 104+ 'tuesday' => 'Martes',
 105+ 'wednesday' => 'Miércoles',
 106+ 'thursday' => 'Jueves',
 107+ 'friday' => 'Viernes',
 108+ 'saturday' => 'Sábado',
 109+ 'january' => 'enero',
 110+ 'february' => 'febrero',
 111+ 'march' => 'marzo',
 112+ 'april' => 'abril',
 113+ 'may_long' => 'mayo',
 114+ 'june' => 'junio',
 115+ 'july' => 'julio',
 116+ 'august' => 'agosto',
 117+ 'september' => 'septiembre',
 118+ 'october' => 'octubre',
 119+ 'november' => 'noviembre',
 120+ 'december' => 'diciembre',
 121+ 'jan' => 'ene',
 122+ 'feb' => 'feb',
 123+ 'mar' => 'mar',
 124+ 'apr' => 'abr',
 125+ 'may' => 'may',
 126+ 'jun' => 'jun',
 127+ 'jul' => 'jul',
 128+ 'aug' => 'ago',
 129+ 'sep' => 'sep',
 130+ 'oct' => 'oct',
 131+ 'nov' => 'nov',
 132+ 'dec' => 'dic',
 133+
115134 "Userlogin" => "",
116135 "Userlogout" => "",
117136 "Preferences" => "Preferencias de usuario",
@@ -1023,21 +1042,6 @@
10241043 }
10251044
10261045
1027 - function getMonthName( $key ) {
1028 - global $wgMonthNamesEs;
1029 - return $wgMonthNamesEs[$key-1];
1030 - }
1031 -
1032 - function getMonthAbbreviation( $key ) {
1033 - global $wgMonthAbbreviationsEs;
1034 - return $wgMonthAbbreviationsEs[$key-1];
1035 - }
1036 -
1037 - function getWeekdayName( $key ) {
1038 - global $wgWeekdayNamesEs;
1039 - return $wgWeekdayNamesEs[$key-1];
1040 - }
1041 -
10421046 # Inherit userAdjust()
10431047
10441048 function shortdate( $ts, $adj = false ) {
Index: trunk/phase3/languages/LanguageEt.php
@@ -65,22 +65,7 @@
6666 "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
6767 );
6868
69 -/* private */ $wgWeekdayNamesEt = array(
70 - "pühapäev", "esmaspäev", "teisipäev", "kolmapäev", "neljapäev",
71 - "reede", "laupäev"
72 -);
7369
74 -/* private */ $wgMonthNamesEt = array(
75 - "jaanuar", "veebruar", "märts", "aprill", "mai", "juuni",
76 - "juuli", "august", "september", "oktoober", "november",
77 - "detsember"
78 -);
79 -
80 -/* private */ $wgMonthAbbreviationsEt = array(
81 - "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug",
82 - "Sep", "Oct", "Nov", "Dec"
83 -);
84 -
8570 # All special pages have to be listed here: a description of ""
8671 # will make them not show up on the "Special Pages" page, which
8772 # is the right thing for some of them (such as the "targeted" ones).
@@ -132,7 +117,41 @@
133118 );
134119
135120 /* private */ $wgAllMessagesEt = array(
 121+# Dates
136122
 123+'sunday' => 'pühapäev',
 124+'monday' => 'esmaspäev',
 125+'tuesday' => 'teisipäev',
 126+'wednesday' => 'kolmapäev',
 127+'thursday' => 'neljapäev',
 128+'friday' => 'reede',
 129+'saturday' => 'laupäev',
 130+'january' => 'jaanuar',
 131+'february' => 'veebruar',
 132+'march' => 'märts',
 133+'april' => 'aprill',
 134+'may_long' => 'mai',
 135+'june' => 'juuni',
 136+'july' => 'juuli',
 137+'august' => 'august',
 138+'september' => 'september',
 139+'october' => 'oktoober',
 140+'november' => 'november',
 141+'december' => 'detsember',
 142+'jan' => 'Jan',
 143+'feb' => 'Feb',
 144+'mar' => 'Mar',
 145+'apr' => 'Apr',
 146+'may' => 'May',
 147+'jun' => 'Jun',
 148+'jul' => 'Jul',
 149+'aug' => 'Aug',
 150+'sep' => 'Sep',
 151+'oct' => 'Oct',
 152+'nov' => 'Nov',
 153+'dec' => 'Dec',
 154+
 155+
137156 # Bits of text used by many pages:
138157 #
139158 "linktrail" => "/^([a-z]+)(.*)\$/sD",
@@ -921,31 +940,6 @@
922941 return $wgUserTogglesEt;
923942 }
924943
925 - function getMonthName( $key )
926 - {
927 - global $wgMonthNamesEt;
928 - return $wgMonthNamesEt[$key-1];
929 - }
930 -
931 - /* by default we just return base form */
932 - function getMonthNameGen( $key )
933 - {
934 - global $wgMonthNamesEt;
935 - return $wgMonthNamesEt[$key-1];
936 - }
937 -
938 - function getMonthAbbreviation( $key )
939 - {
940 - global $wgMonthAbbreviationsEt;
941 - return $wgMonthAbbreviationsEt[$key-1];
942 - }
943 -
944 - function getWeekdayName( $key )
945 - {
946 - global $wgWeekdayNamesEt;
947 - return $wgWeekdayNamesEt[$key-1];
948 - }
949 -
950944 function getValidSpecialPages()
951945 {
952946 global $wgValidSpecialPagesEt;

Status & tagging log