IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
70 | 70 | array( 'ru_RU', '21 Июнь', '21 июня' ), |
71 | 71 | array( 'ru_RU', '1 Январь 2016', '1 января 2016' ), |
72 | 72 | array( 'ru_RU', 'Январь 1st 2016', '1 января 2016' ), |
73 | | array( 'ru_RU', 'Январь 1 2016', '1 января 2016' ), |
| 73 | array( 'ru_RU', 'Январь 1 2016', 'Январь 1 2016' ), |
| 74 | array( 'ru_RU', 'Пятница 1 Январь 2016', 'Пятница 1 Январь 2016' ), |
74 | 75 | array( 'pl_PL', '1 Styczeń', '1 stycznia' ), |
75 | 76 | array( 'hr', '1. Siječanj', '1. siječnja' ), |
76 | 77 | array( 'ca', '1 de abril', "1 d'abril" ), |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
335 | 335 | $months = $wp_locale->month; |
336 | 336 | $months_genitive = $wp_locale->month_genitive; |
337 | 337 | |
338 | | // Match a format like 'j F Y' or 'j. F' |
| 338 | // Match a format like 'j F Y' or 'j. F' (day of the month, followed by month name) and decline the month. |
339 | 339 | if ( preg_match( '#^\d{1,2}\.? [^\d ]+#u', $date ) ) { |
340 | 340 | |
341 | 341 | foreach ( $months as $key => $month ) { |
… |
… |
|
349 | 349 | $date = preg_replace( $months, $months_genitive, $date ); |
350 | 350 | } |
351 | 351 | |
352 | | // Match a format like 'F jS' or 'F j' and change it to 'j F' |
353 | | if ( preg_match( '#^[^\d ]+ \d{1,2}(st|nd|rd|th)? #u', trim( $date ) ) ) { |
| 352 | // Match a format like 'F jS' (month name, followed by day with ordinal suffix) and change it to declined 'j F'. |
| 353 | if ( preg_match( '#^[^\d ]+ \d{1,2}(st|nd|rd|th)#u', trim( $date ) ) ) { |
354 | 354 | foreach ( $months as $key => $month ) { |
355 | | $months[ $key ] = '#' . $month . ' (\d{1,2})(st|nd|rd|th)?#u'; |
| 355 | $months[ $key ] = '#' . $month . ' (\d{1,2})(st|nd|rd|th)#u'; |
356 | 356 | } |
357 | 357 | |
358 | 358 | foreach ( $months_genitive as $key => $month ) { |