| @@ 568-569 (lines=2) @@ | ||
| 565 | ||
| 566 | $month_numbers = range(1,12); |
|
| 567 | ||
| 568 | foreach($month_numbers as $month) |
|
| 569 | $english_months[] = strftime('%B',mktime(0,0,0,$month,1,2011)); |
|
| 570 | ||
| 571 | setlocale(LC_ALL, get_locale()); |
|
| 572 | ||
| @@ 573-574 (lines=2) @@ | ||
| 570 | ||
| 571 | setlocale(LC_ALL, get_locale()); |
|
| 572 | ||
| 573 | foreach($month_numbers as $month) |
|
| 574 | $foreign_months[] = strftime('%B',mktime(0,0,0,$month,1,2011)); |
|
| 575 | ||
| 576 | return str_replace($foreign_months, $english_months, $foreignMonthName); |
|
| 577 | } |
|