Index: trunk/phase3/includes/SpecialPreferences.php |
— | — | @@ -101,7 +101,7 @@ |
102 | 102 | } |
103 | 103 | |
104 | 104 | function execute() { |
105 | | - global $wgUser, $wgOut, $wgUseDynamicDates; |
| 105 | + global $wgUser, $wgOut; |
106 | 106 | |
107 | 107 | if ( $wgUser->isAnon() ) { |
108 | 108 | $wgOut->errorpage( 'prefsnologin', 'prefsnologintext' ); |
— | — | @@ -367,7 +367,7 @@ |
368 | 368 | * @access private |
369 | 369 | */ |
370 | 370 | function mainPrefsForm( $err ) { |
371 | | - global $wgUser, $wgOut, $wgLang, $wgContLang, $wgUseDynamicDates, $wgValidSkinNames; |
| 371 | + global $wgUser, $wgOut, $wgLang, $wgContLang, $wgValidSkinNames; |
372 | 372 | global $wgAllowRealName, $wgImageLimits; |
373 | 373 | global $wgLanguageNames, $wgDisableLangConversion; |
374 | 374 | global $wgEmailNotificationForWatchlistPages, $wgEmailNotificationForUserTalkPages,$wgEmailNotificationForMinorEdits; |
— | — | @@ -605,16 +605,13 @@ |
606 | 606 | |
607 | 607 | # Date format |
608 | 608 | # |
609 | | - if ( $wgUseDynamicDates ) { |
| 609 | + |
| 610 | + if ($dateopts) { |
610 | 611 | $wgOut->addHTML( "<fieldset>\n<legend>$dateFormat</legend>\n" ); |
611 | | - for ( $i = 0; $i < count( $dateopts ); ++$i) { |
612 | | - if ( $i == $this->mDate ) { |
613 | | - $checked = ' checked="checked"'; |
614 | | - } else { |
615 | | - $checked = ""; |
616 | | - } |
| 612 | + foreach($dateopts as $key => $option) { |
| 613 | + ($key == $this->mDate) ? $checked = ' checked="checked"' : $checked = ''; |
617 | 614 | $wgOut->addHTML( "<div><label><input type='radio' name=\"wpDate\" ". |
618 | | - "value=\"$i\"$checked /> {$dateopts[$i]}</label></div>\n" ); |
| 615 | + "value=\"$key\"$checked />$option</label></div>\n" ); |
619 | 616 | } |
620 | 617 | $wgOut->addHTML( "</fieldset>\n\n"); |
621 | 618 | } |
Index: trunk/phase3/languages/LanguageWa.php |
— | — | @@ -44,10 +44,6 @@ |
45 | 45 | |
46 | 46 | /* private */ $wgDateFormatsWa = array( /* cwè fé chal ??? */ |
47 | 47 | "Nole preferince", |
48 | | - "January 15, 2001", |
49 | | - "15 January 2001", |
50 | | - "2001 January 15", |
51 | | - "2001-01-15" |
52 | 48 | ); |
53 | 49 | |
54 | 50 | /* private */ $wgBookstoreListWa = array( |
Index: trunk/phase3/languages/LanguageCy.php |
— | — | @@ -37,10 +37,6 @@ |
38 | 38 | |
39 | 39 | /* private */ $wgDateFormatsCy = array( |
40 | 40 | "Dim dewis", |
41 | | - "Ionawr 15, 2001", |
42 | | - "15 Ionawr 2001", |
43 | | - "2001 Ionawr 15", |
44 | | - "2001-01-15" |
45 | 41 | ); |
46 | 42 | |
47 | 43 | /* private */ $wgBookstoreListCy = array( |
Index: trunk/phase3/languages/LanguageSl.php |
— | — | @@ -117,10 +117,6 @@ |
118 | 118 | |
119 | 119 | /* private */ $wgDateFormatsSl = array( |
120 | 120 | 'No preference', |
121 | | - 'januar 15, 2001', |
122 | | - '15 januar 2001', |
123 | | - '2001 januar 15', |
124 | | - '2001-01-15' |
125 | 121 | ); |
126 | 122 | |
127 | 123 | |
Index: trunk/phase3/languages/LanguageSq.php |
— | — | @@ -48,9 +48,6 @@ |
49 | 49 | |
50 | 50 | /* private */ $wgDateFormatsSq = array( |
51 | 51 | "Pa preferencë", |
52 | | - "Janar 15, 2001", |
53 | | - "15 Janar 2001", |
54 | | - "2001 Janar 15" |
55 | 52 | ); |
56 | 53 | |
57 | 54 | |
Index: trunk/phase3/languages/LanguageDa.php |
— | — | @@ -57,10 +57,6 @@ |
58 | 58 | |
59 | 59 | /* private */ $wgDateFormatsDa = array( |
60 | 60 | "Ingen foretrukken", |
61 | | - "januar 15, 2001", |
62 | | - "15. januar 2001", |
63 | | - "2001 januar 15", |
64 | | - "2001-01-15" |
65 | 61 | ); |
66 | 62 | |
67 | 63 | |
Index: trunk/phase3/languages/LanguageSr.php |
— | — | @@ -34,9 +34,6 @@ |
35 | 35 | |
36 | 36 | /* private */ $wgDateFormatsSr = array( |
37 | 37 | "Без посебних жеља", |
38 | | - "Јануар 15, 2001", |
39 | | - "15 Јануар 2001", |
40 | | - "2001 Јануар 15" |
41 | 38 | ); |
42 | 39 | |
43 | 40 | |
Index: trunk/phase3/languages/LanguageSv.php |
— | — | @@ -62,10 +62,6 @@ |
63 | 63 | |
64 | 64 | /* private */ $wgDateFormatsSv = array( |
65 | 65 | "Ingen inställning", |
66 | | - "Januari 15, 2001", |
67 | | - "15 Januari 2001", |
68 | | - "2001 Januari 15", |
69 | | - "2001-01-15" |
70 | 66 | ); |
71 | 67 | |
72 | 68 | /* private */ $wgBookstoreListSv = array( |
Index: trunk/phase3/languages/LanguageTa.php |
— | — | @@ -57,9 +57,6 @@ |
58 | 58 | |
59 | 59 | /* private */ $wgDateFormatsTa = array( |
60 | 60 | "முன்னுரிமை இல்லை", |
61 | | - "ஜனவரி 15, 2001", |
62 | | - "15 ஜனவரி 2001", |
63 | | - "2001 ஜனவரி 15" |
64 | 61 | ); |
65 | 62 | |
66 | 63 | |
Index: trunk/phase3/languages/LanguageTh.php |
— | — | @@ -40,10 +40,6 @@ |
41 | 41 | |
42 | 42 | /* private */ $wgDateFormatsTh = array( |
43 | 43 | "No preference", |
44 | | - "มกราคม 15, 2001", |
45 | | - "15 มกราคม 2001", |
46 | | - "2001 มกราคม 15", |
47 | | - "2001-01-15" |
48 | 44 | ); |
49 | 45 | |
50 | 46 | |
Index: trunk/phase3/languages/LanguageHu.php |
— | — | @@ -79,9 +79,6 @@ |
80 | 80 | |
81 | 81 | /* private */ $wgDateFormatsHu = array( |
82 | 82 | "Mindegy", |
83 | | - "Július 8, 2003", |
84 | | - "8 Július, 2003", |
85 | | - "2003 Július 8" |
86 | 83 | ); |
87 | 84 | |
88 | 85 | |
Index: trunk/phase3/languages/LanguageLt.php |
— | — | @@ -27,10 +27,6 @@ |
28 | 28 | |
29 | 29 | /* private */ $wgDateFormatsLt = array( |
30 | 30 | "Nesvarbu", |
31 | | - "Sausio 15, 2001", |
32 | | - "15 Sausio 2001", |
33 | | - "2001 Sausio 15", |
34 | | - "2001-01-15" |
35 | 31 | ); |
36 | 32 | |
37 | 33 | /* private */ $wgWeekdayNamesLt = array( |
Index: trunk/phase3/languages/LanguagePt.php |
— | — | @@ -60,9 +60,6 @@ |
61 | 61 | |
62 | 62 | /* private */ $wgDateFormatsPt = array( |
63 | 63 | "Sem preferência", |
64 | | - "Janeiro 15, 2001", |
65 | | - "15 Janeiro 2001", |
66 | | - "2001 Janeiro 15" |
67 | 64 | ); |
68 | 65 | |
69 | 66 | |
Index: trunk/phase3/languages/LanguageTt.php |
— | — | @@ -55,10 +55,6 @@ |
56 | 56 | |
57 | 57 | /* private */ $wgDateFormatsTt = array( |
58 | 58 | "köyläwsez", |
59 | | - "Ğínwar 15, 2001", |
60 | | - "15. Ğínwar 2001", |
61 | | - "2001 Ğínwar 15", |
62 | | - "2001-01-15" |
63 | 59 | ); |
64 | 60 | |
65 | 61 | |
Index: trunk/phase3/languages/LanguageId.php |
— | — | @@ -72,10 +72,6 @@ |
73 | 73 | |
74 | 74 | /* private */ $wgDateFormatsId = array( |
75 | 75 | "Tiada pilihan", |
76 | | - "Januari 15, 2001", |
77 | | - "15 Januari 2001", |
78 | | - "2001 Januari 15", |
79 | | - "2001-01-15" |
80 | 76 | ); |
81 | 77 | |
82 | 78 | /* private */ $wgUserTogglesId = array( |
Index: trunk/phase3/languages/LanguageEs.php |
— | — | @@ -56,9 +56,6 @@ |
57 | 57 | |
58 | 58 | /* private */ $wgDateFormatsEs = array( |
59 | 59 | "Sin preferencia", |
60 | | - "enero 15, 2001", |
61 | | - "15 de enero de 2001", |
62 | | - "2001 enero 15" |
63 | 60 | ); |
64 | 61 | |
65 | 62 | /* Please customize this with some Spanish-language bookshops |
Index: trunk/phase3/languages/LanguageIs.php |
— | — | @@ -869,7 +869,7 @@ |
870 | 870 | |
871 | 871 | switch( $wgUser->getOption( 'date' ) ) { |
872 | 872 | # 15. jan. 2001 kl. 16:12 || 16:12, 15. jan. 2001 |
873 | | - case 2: case 4: return (0 + substr( $ts, 6, 2 )) . '. ' . |
| 873 | + case '2': case '4': return (0 + substr( $ts, 6, 2 )) . '. ' . |
874 | 874 | $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . '. ' . |
875 | 875 | substr($ts, 0, 4); |
876 | 876 | # 2001-01-15 16:12:34 |
— | — | @@ -900,7 +900,7 @@ |
901 | 901 | |
902 | 902 | switch ( $wgUser->getOption( 'date' ) ) { |
903 | 903 | # 16:12, 15. janúar 2001 || 16:12, 15. jan. 2001 |
904 | | - case 3: case 4: return $this->time( $ts, $adj ) . ', ' . $this->date( $ts, $adj ); |
| 904 | + case '3': case '4': return $this->time( $ts, $adj ) . ', ' . $this->date( $ts, $adj ); |
905 | 905 | # 2001-01-15 16:12:34 |
906 | 906 | case 'ISO 8601': return $this->date( $ts, $adj ) . ' ' . $this->time( $ts, $adj ); |
907 | 907 | # 15. janúar 2001 kl. 16:12 || 15. jan. 2001 kl. 16:12 |
Index: trunk/phase3/languages/LanguageUk.php |
— | — | @@ -51,9 +51,6 @@ |
52 | 52 | /* Non-std date formats are only enabled for English, which is idiosyncratic that way */ |
53 | 53 | /* private */ $wgDateFormatsUk = array( |
54 | 54 | "Немає значення", |
55 | | - "Січень 15, 2001", |
56 | | - "15 січня 2001", |
57 | | - "2001 січень 15" |
58 | 55 | ); |
59 | 56 | |
60 | 57 | |
Index: trunk/phase3/languages/LanguageMs.php |
— | — | @@ -46,8 +46,6 @@ |
47 | 47 | |
48 | 48 | /* private */ $wgDateFormatsMs = array( |
49 | 49 | "Tiada pilihan", # "No preference", |
50 | | - "15 Januari 2001", # "Januari 15, 2001", |
51 | | - "15 Januari 2001", # "2001 Januari 15" |
52 | 50 | ); |
53 | 51 | |
54 | 52 | |
Index: trunk/phase3/languages/LanguageBg.php |
— | — | @@ -48,10 +48,6 @@ |
49 | 49 | |
50 | 50 | /* private */ $wgDateFormatsBg = array( |
51 | 51 | 'Без предпочитание', |
52 | | - 'януари 15, 2001', |
53 | | - '15 януари 2001', |
54 | | - '2001 януари 15', |
55 | | - '2001-01-15' |
56 | 52 | ); |
57 | 53 | |
58 | 54 | |
Index: trunk/phase3/languages/LanguageBn.php |
— | — | @@ -43,9 +43,6 @@ |
44 | 44 | |
45 | 45 | /* private */ $wgDateFormatsBn = array( |
46 | 46 | "No preference", |
47 | | - "January 15, 2001", |
48 | | - "15 January 2001", |
49 | | - "2001 January 15" |
50 | 47 | ); |
51 | 48 | |
52 | 49 | |
Index: trunk/phase3/languages/LanguageFo.php |
— | — | @@ -49,10 +49,6 @@ |
50 | 50 | |
51 | 51 | /* private */ $wgDateFormatsFo = array( |
52 | 52 | "Ongi forrættindi", |
53 | | - "januar 15, 2001", |
54 | | - "15. januar 2001", |
55 | | - "2001 januar 15", |
56 | | - "2001-01-15" |
57 | 53 | ); |
58 | 54 | |
59 | 55 | /* private */ $wgBookstoreListFo = array( |
Index: trunk/phase3/languages/LanguageNn.php |
— | — | @@ -74,10 +74,6 @@ |
75 | 75 | |
76 | 76 | /* private */ $wgDateFormatsNn = array( |
77 | 77 | 'Ingen preferanse', |
78 | | - 'januar 15, 2001', |
79 | | - '15 januar 2001', |
80 | | - '2001 januar 15', |
81 | | - '2001-01-15' |
82 | 78 | ); |
83 | 79 | |
84 | 80 | /* private */ $wgBookstoreListNn = array( |
Index: trunk/phase3/languages/LanguageFy.php |
— | — | @@ -53,10 +53,11 @@ |
54 | 54 | |
55 | 55 | |
56 | 56 | /* private */ $wgDateFormatsFy = array( |
57 | | - "Gjin foarkar", |
58 | | - "jannewaris 8, 2001", |
59 | | - "8 jannewaris 2001", |
60 | | - "2001 jannewaris 8" |
| 57 | + 'Gjin foarkar', |
| 58 | + '16:12, jan 15, 2001', |
| 59 | + '16:12, 15 jan 2001', |
| 60 | + '16:12, 2001 jan 15', |
| 61 | + 'ISO 8601' => '2001-01-15 16:12:34' |
61 | 62 | ); |
62 | 63 | |
63 | 64 | /* private */ $wgBookstoreListFy = array( |
— | — | @@ -1081,52 +1082,35 @@ |
1082 | 1083 | |
1083 | 1084 | # Inherit userAdjust() |
1084 | 1085 | |
1085 | | - function date( $ts, $adj = false ) |
1086 | | - { |
1087 | | - global $wgAmericanDates, $wgUser, $wgUseDynamicDates; |
| 1086 | + function date( $ts, $adj = false ) { |
| 1087 | + global $wgUser; |
1088 | 1088 | |
1089 | 1089 | if ( $adj ) { $ts = $this->userAdjust( $ts ); } |
1090 | 1090 | |
1091 | | - if ( $wgUseDynamicDates ) { |
1092 | | - $datePreference = $wgUser->getOption( 'date' ); |
1093 | | - if ( $datePreference == 0 ) { |
1094 | | - $datePreference = $wgAmericanDates ? 1 : 2; |
1095 | | - } |
1096 | | - } else { |
1097 | | - $datePreference = $wgAmericanDates ? 1 : 2; |
| 1091 | + switch ( $wgUser->getOption( 'date' ) ) { |
| 1092 | + # jan 8, 2001 |
| 1093 | + case '0': case '1': return $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) |
| 1094 | + . ' ' . (0 + substr( $ts, 6, 2 )) . ', ' . substr( $ts, 0, 4 ); |
| 1095 | + # 8 jannewaris 2001 |
| 1096 | + case '2': return (0 + substr( $ts, 6, 2 )) . ' ' . |
| 1097 | + $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . ' ' . |
| 1098 | + substr( $ts, 0, 4 ); |
| 1099 | + case 'ISO 8601': return substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2); |
| 1100 | + # 2001 jannewaris 8 |
| 1101 | + default: return substr( $ts, 0, 4 ) . ' ' . |
| 1102 | + $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) |
| 1103 | + . ' ' . (0 + substr( $ts, 6, 2 )); |
1098 | 1104 | } |
| 1105 | + } |
| 1106 | + function timeanddate( $ts, $adj = false ) { |
| 1107 | + global $wgUser; |
1099 | 1108 | |
1100 | | - if ( $datePreference == 1 ) { |
1101 | | - # MDY |
1102 | | - $d = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . |
1103 | | - " " . (0 + substr( $ts, 6, 2 )) . ", " . |
1104 | | - substr( $ts, 0, 4 ); |
1105 | | - } else if ( $datePreference == 2 ) { |
1106 | | - #DMY |
1107 | | - $d = (0 + substr( $ts, 6, 2 )) . " " . |
1108 | | - $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " . |
1109 | | - substr( $ts, 0, 4 ); |
1110 | | - } else { |
1111 | | - #YMD |
1112 | | - $d = substr( $ts, 0, 4 ) . " " . $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . |
1113 | | - " " . (0 + substr( $ts, 6, 2 )); |
| 1109 | + switch ( $wgUser->getOption( 'date' ) ) { |
| 1110 | + case 'ISO 8601': return $this->date( $ts, $adj ) . ' ' . $this->time( $ts, $adj ); |
| 1111 | + default: return $this->time( $ts, $adj ) . ', ' . $this->date( $ts, $adj ); |
1114 | 1112 | } |
1115 | | - |
1116 | | - return $d; |
1117 | 1113 | } |
1118 | 1114 | |
1119 | | - function time( $ts, $adj = false ) |
1120 | | - { |
1121 | | - if ( $adj ) { $ts = $this->userAdjust( $ts ); } |
1122 | | - |
1123 | | - $t = substr( $ts, 8, 2 ) . "." . substr( $ts, 10, 2 ); |
1124 | | - return $t; |
1125 | | - } |
1126 | | - |
1127 | | -# Inherit timeanddate() |
1128 | | - |
1129 | | -# Inherit rfc1123() |
1130 | | - |
1131 | 1115 | function getValidSpecialPages() |
1132 | 1116 | { |
1133 | 1117 | global $wgValidSpecialPagesFy; |
Index: trunk/phase3/languages/Language.php |
— | — | @@ -122,11 +122,11 @@ |
123 | 123 | define( 'MW_DATE_USER_FORMAT', true ); |
124 | 124 | |
125 | 125 | /* private */ $wgDateFormatsEn = array( |
126 | | - 'No preference', |
127 | | - 'January 15, 2001', |
128 | | - '15 January 2001', |
129 | | - '2001 January 15', |
130 | | - '2001-01-15' |
| 126 | + 'Default', |
| 127 | + '16:12, January 15, 2001', |
| 128 | + '16:12, 15 January 2001', |
| 129 | + '16:12, 2001 January 15', |
| 130 | + 'ISO 8601' => '2001-01-15 16:12:34' |
131 | 131 | ); |
132 | 132 | |
133 | 133 | /* private */ $wgUserTogglesEn = array( |
— | — | @@ -1788,10 +1788,6 @@ |
1789 | 1789 | 'specialloguserlabel' => 'User: ', |
1790 | 1790 | 'speciallogtitlelabel' => 'Title: ', |
1791 | 1791 | |
1792 | | -# labels for Group: and User: ond Special:Listusers |
1793 | | -'speciallistusersuserlabel' => 'User: ', |
1794 | | -'speciallistusersgrouplabel' => 'Group: ', |
1795 | | - |
1796 | 1792 | 'passwordtooshort' => 'Your password is too short. It must have at least $1 characters.', |
1797 | 1793 | |
1798 | 1794 | # external editor support |
— | — | @@ -1971,35 +1967,33 @@ |
1972 | 1968 | } |
1973 | 1969 | |
1974 | 1970 | function date( $ts, $adj = false, $format = MW_DATE_USER_FORMAT, $timecorrection = false ) { |
1975 | | - global $wgAmericanDates, $wgUser, $wgUseDynamicDates; |
1976 | | - |
| 1971 | + global $wgAmericanDates, $wgUser; |
| 1972 | + |
1977 | 1973 | $ts=wfTimestamp(TS_MW,$ts); |
1978 | 1974 | |
1979 | 1975 | if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } |
1980 | 1976 | |
1981 | | - if ( $wgUseDynamicDates ) { |
1982 | | - if ( $format == MW_DATE_USER_FORMAT ) { |
1983 | | - $datePreference = $wgUser->getOption( 'date' ); |
1984 | | - } else { |
1985 | | - $options = $this->getDefaultUserOptions(); |
1986 | | - $datePreference = $options['date']; |
1987 | | - } |
1988 | | - if ( $datePreference == 0 ) { |
1989 | | - $datePreference = $wgAmericanDates ? 1 : 2; |
1990 | | - } |
| 1977 | + |
| 1978 | + if ( $format == MW_DATE_USER_FORMAT ) { |
| 1979 | + $datePreference = $wgUser->getOption( 'date' ); |
1991 | 1980 | } else { |
| 1981 | + $options = $this->getDefaultUserOptions(); |
| 1982 | + $datePreference = $options['date']; |
| 1983 | + } |
| 1984 | + |
| 1985 | + if ($datePreference == '0') { |
1992 | 1986 | $datePreference = $wgAmericanDates ? 1 : 2; |
1993 | 1987 | } |
1994 | 1988 | |
1995 | 1989 | $month = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ); |
1996 | 1990 | $day = $this->formatNum( 0 + substr( $ts, 6, 2 ) ); |
1997 | 1991 | $year = $this->formatNum( substr( $ts, 0, 4 ) ); |
1998 | | - |
| 1992 | + |
1999 | 1993 | switch( $datePreference ) { |
2000 | | - case 1: return "$month $day, $year"; |
2001 | | - case 2: return "$day $month $year"; |
2002 | | - case 4: return substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2); |
2003 | | - default: return "$year $month $day"; |
| 1994 | + case '2': return "$day $month $year"; |
| 1995 | + case '3': return "$year $month $day"; |
| 1996 | + case 'ISO 8601': return substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2); |
| 1997 | + default: return "$month $day, $year"; |
2004 | 1998 | } |
2005 | 1999 | } |
2006 | 2000 | |
— | — | @@ -2010,7 +2004,7 @@ |
2011 | 2005 | if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } |
2012 | 2006 | |
2013 | 2007 | $t = substr( $ts, 8, 2 ) . ':' . substr( $ts, 10, 2 ); |
2014 | | - if ( $seconds || $wgUser->getOption( 'date' ) == 4) { |
| 2008 | + if ( $seconds || $wgUser->getOption( 'date' ) == 'ISO 8601' ) { |
2015 | 2009 | $t .= ':' . substr( $ts, 12, 2 ); |
2016 | 2010 | } |
2017 | 2011 | return $this->formatNum( $t ); |
— | — | @@ -2019,11 +2013,11 @@ |
2020 | 2014 | function timeanddate( $ts, $adj = false, $format = MW_DATE_USER_FORMAT, $timecorrection = false, $dateandtime = false) { |
2021 | 2015 | global $wgUser; |
2022 | 2016 | $ts=wfTimestamp(TS_MW,$ts); |
2023 | | - if ( 4 == $wgUser->getOption( 'date' ) ) { |
2024 | | - return $this->date( $ts, $adj, $format, $timecorrection ) . ' ' . |
| 2017 | + |
| 2018 | + switch ( $wgUser->getOption( 'date' ) ) { |
| 2019 | + case 'ISO 8601': return $this->date( $ts, $adj, $format, $timecorrection ) . ' ' . |
2025 | 2020 | $this->time( $ts, $adj, false, $timecorrection ); |
2026 | | - } else { |
2027 | | - return $this->time( $ts, $adj, false, $timecorrection ) . ', ' . |
| 2021 | + default: return $this->time( $ts, $adj, false, $timecorrection ) . ', ' . |
2028 | 2022 | $this->date( $ts, $adj, $format, $timecorrection ); |
2029 | 2023 | } |
2030 | 2024 | } |
Index: trunk/phase3/languages/LanguageRo.php |
— | — | @@ -50,9 +50,6 @@ |
51 | 51 | |
52 | 52 | /* private */ $wgDateFormatsRo = array( |
53 | 53 | "Nici o preferinţă", |
54 | | - "Ianuarie 15, 2001", |
55 | | - "15 Ianuarie 2001", |
56 | | - "2001 Ianuarie 15" |
57 | 54 | ); |
58 | 55 | |
59 | 56 | /* private */ $wgBookstoreListRo = array( |
Index: trunk/phase3/languages/LanguageNv.php |
— | — | @@ -54,10 +54,6 @@ |
55 | 55 | |
56 | 56 | /* private */ $wgDateFormatsNv = array( |
57 | 57 | 'No preference', |
58 | | - 'Yas Niłt\'ees 15, 2001', |
59 | | - '15 Yas Niłt\'ees 2001', |
60 | | - '2001 Yas Niłt\'ees 15', |
61 | | - '2001-01-15' |
62 | 58 | ); |
63 | 59 | |
64 | 60 | /* private */ $wgUserTogglesNv = array( |
Index: trunk/phase3/languages/LanguageCa.php |
— | — | @@ -46,10 +46,6 @@ |
47 | 47 | |
48 | 48 | /* private */ $wgDateFormatsCa = array( |
49 | 49 | "No preference", |
50 | | - "January 15, 2001", |
51 | | - "15 January 2001", |
52 | | - "2001 January 15", |
53 | | - "2001-01-15" |
54 | 50 | ); |
55 | 51 | |
56 | 52 | |
Index: trunk/phase3/languages/LanguageGa.php |
— | — | @@ -63,10 +63,6 @@ |
64 | 64 | |
65 | 65 | /* private */ $wgDateFormatsGa = array( |
66 | 66 | "Is cuma liom", |
67 | | - "Eanáir 15, 2001", |
68 | | - "15 Eanáir 2001", |
69 | | - "2001 Eanáir 15", |
70 | | - "2001-01-15" |
71 | 67 | ); |
72 | 68 | |
73 | 69 | # If possible, find Irish language book services on the Internet, searchable by ISBN |