| @@ 493-494 (lines=2) @@ | ||
| 490 | ||
| 491 | $month_numbers = range(1,12); |
|
| 492 | ||
| 493 | foreach($month_numbers as $month) |
|
| 494 | $english_months[] = strftime('%B',mktime(0,0,0,$month,1,2011)); |
|
| 495 | ||
| 496 | setlocale(LC_ALL, get_locale()); |
|
| 497 | ||
| @@ 498-499 (lines=2) @@ | ||
| 495 | ||
| 496 | setlocale(LC_ALL, get_locale()); |
|
| 497 | ||
| 498 | foreach($month_numbers as $month) |
|
| 499 | $foreign_months[] = strftime('%B',mktime(0,0,0,$month,1,2011)); |
|
| 500 | ||
| 501 | return str_replace($foreign_months, $english_months, $foreignMonthName); |
|
| 502 | } |
|