29 * as Sunday and Saturday, don't conflict. See init() method for more. |
29 * as Sunday and Saturday, don't conflict. See init() method for more. |
30 * |
30 * |
31 * @see WP_Locale::init() for how to handle the hack. |
31 * @see WP_Locale::init() for how to handle the hack. |
32 * |
32 * |
33 * @since 2.1.0 |
33 * @since 2.1.0 |
34 * @var array |
34 * @var string[] |
35 */ |
35 */ |
36 public $weekday_initial; |
36 public $weekday_initial; |
37 |
37 |
38 /** |
38 /** |
39 * Stores the translated strings for the abbreviated weekday names. |
39 * Stores the translated strings for the abbreviated weekday names. |
40 * |
40 * |
41 * @since 2.1.0 |
41 * @since 2.1.0 |
42 * @var array |
42 * @var string[] |
43 */ |
43 */ |
44 public $weekday_abbrev; |
44 public $weekday_abbrev; |
45 |
45 |
46 /** |
46 /** |
47 * Stores the translated strings for the full month names. |
47 * Stores the translated strings for the full month names. |
48 * |
48 * |
49 * @since 2.1.0 |
49 * @since 2.1.0 |
50 * @var array |
50 * @var string[] |
51 */ |
51 */ |
52 public $month; |
52 public $month; |
53 |
53 |
54 /** |
54 /** |
55 * Stores the translated strings for the month names in genitive case, if the locale specifies. |
55 * Stores the translated strings for the month names in genitive case, if the locale specifies. |
56 * |
56 * |
57 * @since 4.4.0 |
57 * @since 4.4.0 |
58 * @var array |
58 * @var string[] |
59 */ |
59 */ |
60 public $month_genitive; |
60 public $month_genitive; |
61 |
61 |
62 /** |
62 /** |
63 * Stores the translated strings for the abbreviated month names. |
63 * Stores the translated strings for the abbreviated month names. |
64 * |
64 * |
65 * @since 2.1.0 |
65 * @since 2.1.0 |
66 * @var array |
66 * @var string[] |
67 */ |
67 */ |
68 public $month_abbrev; |
68 public $month_abbrev; |
69 |
69 |
70 /** |
70 /** |
71 * Stores the translated strings for 'am' and 'pm'. |
71 * Stores the translated strings for 'am' and 'pm'. |
72 * |
72 * |
73 * Also the capitalized versions. |
73 * Also the capitalized versions. |
74 * |
74 * |
75 * @since 2.1.0 |
75 * @since 2.1.0 |
76 * @var array |
76 * @var string[] |
77 */ |
77 */ |
78 public $meridiem; |
78 public $meridiem; |
79 |
79 |
80 /** |
80 /** |
81 * The text direction of the locale language. |
81 * The text direction of the locale language. |
126 $this->weekday[4] = /* translators: Weekday. */ __( 'Thursday' ); |
134 $this->weekday[4] = /* translators: Weekday. */ __( 'Thursday' ); |
127 $this->weekday[5] = /* translators: Weekday. */ __( 'Friday' ); |
135 $this->weekday[5] = /* translators: Weekday. */ __( 'Friday' ); |
128 $this->weekday[6] = /* translators: Weekday. */ __( 'Saturday' ); |
136 $this->weekday[6] = /* translators: Weekday. */ __( 'Saturday' ); |
129 |
137 |
130 // The first letter of each day. |
138 // The first letter of each day. |
131 $this->weekday_initial[ __( 'Sunday' ) ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'S', 'Sunday initial' ); |
139 $this->weekday_initial[ $this->weekday[0] ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'S', 'Sunday initial' ); |
132 $this->weekday_initial[ __( 'Monday' ) ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'M', 'Monday initial' ); |
140 $this->weekday_initial[ $this->weekday[1] ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'M', 'Monday initial' ); |
133 $this->weekday_initial[ __( 'Tuesday' ) ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'T', 'Tuesday initial' ); |
141 $this->weekday_initial[ $this->weekday[2] ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'T', 'Tuesday initial' ); |
134 $this->weekday_initial[ __( 'Wednesday' ) ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'W', 'Wednesday initial' ); |
142 $this->weekday_initial[ $this->weekday[3] ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'W', 'Wednesday initial' ); |
135 $this->weekday_initial[ __( 'Thursday' ) ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'T', 'Thursday initial' ); |
143 $this->weekday_initial[ $this->weekday[4] ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'T', 'Thursday initial' ); |
136 $this->weekday_initial[ __( 'Friday' ) ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'F', 'Friday initial' ); |
144 $this->weekday_initial[ $this->weekday[5] ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'F', 'Friday initial' ); |
137 $this->weekday_initial[ __( 'Saturday' ) ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'S', 'Saturday initial' ); |
145 $this->weekday_initial[ $this->weekday[6] ] = /* translators: One-letter abbreviation of the weekday. */ _x( 'S', 'Saturday initial' ); |
138 |
146 |
139 // Abbreviations for each day. |
147 // Abbreviations for each day. |
140 $this->weekday_abbrev[ __( 'Sunday' ) ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Sun' ); |
148 $this->weekday_abbrev[ $this->weekday[0] ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Sun' ); |
141 $this->weekday_abbrev[ __( 'Monday' ) ] = /* translators: Ttree-letter abbreviation of the weekday. */ __( 'Mon' ); |
149 $this->weekday_abbrev[ $this->weekday[1] ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Mon' ); |
142 $this->weekday_abbrev[ __( 'Tuesday' ) ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Tue' ); |
150 $this->weekday_abbrev[ $this->weekday[2] ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Tue' ); |
143 $this->weekday_abbrev[ __( 'Wednesday' ) ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Wed' ); |
151 $this->weekday_abbrev[ $this->weekday[3] ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Wed' ); |
144 $this->weekday_abbrev[ __( 'Thursday' ) ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Thu' ); |
152 $this->weekday_abbrev[ $this->weekday[4] ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Thu' ); |
145 $this->weekday_abbrev[ __( 'Friday' ) ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Fri' ); |
153 $this->weekday_abbrev[ $this->weekday[5] ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Fri' ); |
146 $this->weekday_abbrev[ __( 'Saturday' ) ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Sat' ); |
154 $this->weekday_abbrev[ $this->weekday[6] ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Sat' ); |
147 |
155 |
148 // The months. |
156 // The months. |
149 $this->month['01'] = /* translators: Month name. */ __( 'January' ); |
157 $this->month['01'] = /* translators: Month name. */ __( 'January' ); |
150 $this->month['02'] = /* translators: Month name. */ __( 'February' ); |
158 $this->month['02'] = /* translators: Month name. */ __( 'February' ); |
151 $this->month['03'] = /* translators: Month name. */ __( 'March' ); |
159 $this->month['03'] = /* translators: Month name. */ __( 'March' ); |
172 $this->month_genitive['10'] = /* translators: Month name, genitive. */ _x( 'October', 'genitive' ); |
180 $this->month_genitive['10'] = /* translators: Month name, genitive. */ _x( 'October', 'genitive' ); |
173 $this->month_genitive['11'] = /* translators: Month name, genitive. */ _x( 'November', 'genitive' ); |
181 $this->month_genitive['11'] = /* translators: Month name, genitive. */ _x( 'November', 'genitive' ); |
174 $this->month_genitive['12'] = /* translators: Month name, genitive. */ _x( 'December', 'genitive' ); |
182 $this->month_genitive['12'] = /* translators: Month name, genitive. */ _x( 'December', 'genitive' ); |
175 |
183 |
176 // Abbreviations for each month. |
184 // Abbreviations for each month. |
177 $this->month_abbrev[ __( 'January' ) ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Jan', 'January abbreviation' ); |
185 $this->month_abbrev[ $this->month['01'] ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Jan', 'January abbreviation' ); |
178 $this->month_abbrev[ __( 'February' ) ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Feb', 'February abbreviation' ); |
186 $this->month_abbrev[ $this->month['02'] ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Feb', 'February abbreviation' ); |
179 $this->month_abbrev[ __( 'March' ) ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Mar', 'March abbreviation' ); |
187 $this->month_abbrev[ $this->month['03'] ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Mar', 'March abbreviation' ); |
180 $this->month_abbrev[ __( 'April' ) ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Apr', 'April abbreviation' ); |
188 $this->month_abbrev[ $this->month['04'] ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Apr', 'April abbreviation' ); |
181 $this->month_abbrev[ __( 'May' ) ] = /* translators: Three-letter abbreviation of the month. */ _x( 'May', 'May abbreviation' ); |
189 $this->month_abbrev[ $this->month['05'] ] = /* translators: Three-letter abbreviation of the month. */ _x( 'May', 'May abbreviation' ); |
182 $this->month_abbrev[ __( 'June' ) ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Jun', 'June abbreviation' ); |
190 $this->month_abbrev[ $this->month['06'] ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Jun', 'June abbreviation' ); |
183 $this->month_abbrev[ __( 'July' ) ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Jul', 'July abbreviation' ); |
191 $this->month_abbrev[ $this->month['07'] ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Jul', 'July abbreviation' ); |
184 $this->month_abbrev[ __( 'August' ) ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Aug', 'August abbreviation' ); |
192 $this->month_abbrev[ $this->month['08'] ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Aug', 'August abbreviation' ); |
185 $this->month_abbrev[ __( 'September' ) ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Sep', 'September abbreviation' ); |
193 $this->month_abbrev[ $this->month['09'] ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Sep', 'September abbreviation' ); |
186 $this->month_abbrev[ __( 'October' ) ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Oct', 'October abbreviation' ); |
194 $this->month_abbrev[ $this->month['10'] ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Oct', 'October abbreviation' ); |
187 $this->month_abbrev[ __( 'November' ) ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Nov', 'November abbreviation' ); |
195 $this->month_abbrev[ $this->month['11'] ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Nov', 'November abbreviation' ); |
188 $this->month_abbrev[ __( 'December' ) ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Dec', 'December abbreviation' ); |
196 $this->month_abbrev[ $this->month['12'] ] = /* translators: Three-letter abbreviation of the month. */ _x( 'Dec', 'December abbreviation' ); |
189 |
197 |
190 // The meridiems. |
198 // The meridiems. |
191 $this->meridiem['am'] = __( 'am' ); |
199 $this->meridiem['am'] = __( 'am' ); |
192 $this->meridiem['pm'] = __( 'pm' ); |
200 $this->meridiem['pm'] = __( 'pm' ); |
193 $this->meridiem['AM'] = __( 'AM' ); |
201 $this->meridiem['AM'] = __( 'AM' ); |
207 /* translators: $dec_point argument for https://www.php.net/number_format, default is '.' */ |
215 /* translators: $dec_point argument for https://www.php.net/number_format, default is '.' */ |
208 $decimal_point = __( 'number_format_decimal_point' ); |
216 $decimal_point = __( 'number_format_decimal_point' ); |
209 |
217 |
210 $this->number_format['decimal_point'] = ( 'number_format_decimal_point' === $decimal_point ) ? '.' : $decimal_point; |
218 $this->number_format['decimal_point'] = ( 'number_format_decimal_point' === $decimal_point ) ? '.' : $decimal_point; |
211 |
219 |
|
220 /* translators: used between list items, there is a space after the comma */ |
|
221 $this->list_item_separator = __( ', ' ); |
|
222 |
212 // Set text direction. |
223 // Set text direction. |
213 if ( isset( $GLOBALS['text_direction'] ) ) { |
224 if ( isset( $GLOBALS['text_direction'] ) ) { |
214 $this->text_direction = $GLOBALS['text_direction']; |
225 $this->text_direction = $GLOBALS['text_direction']; |
215 |
226 |
216 /* translators: 'rtl' or 'ltr'. This sets the text direction for WordPress. */ |
227 /* translators: 'rtl' or 'ltr'. This sets the text direction for WordPress. */ |