#2399 closed defect (bug) (fixed)
Next month in wp-calendar not i18n enabled
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | trivial | Version: | 2.0 |
Component: | Administration | Keywords: | i18n Internationalization wp-calendar bg|has-patch bg|commit |
Focuses: | Cc: |
Description
I'm using a german translation file and there is one problem in the function get_calendar:
Lines 492 to 498 (for link next month) should be changed to the following:
if ( $next ) { echo "\n\t\t".'<td abbr="' . $month[zeroise($next->month, 2)] . '" colspan="3" id="next"><a href="' . get_month_link($next->year, $next->month) . '" title="' . sprintf(__('View posts for %1$s %2$s'), $month[zeroise($next->month, 2)], date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) . '">' . $month_abbrev[$month[zeroise($next->month, 2)]] . ' »</a></td>'; } else { echo "\n\t\t".'<td colspan="3" id="next" class="pad"> </td>'; }
Then it matches the handling for "previous month" and internationalization should work.
Kind regards and thanks a lot.
Bob
Attachments (1)
Change History (8)
Note: See
TracTickets for help on using
tickets.
The file is template-functions-general.php, sorry.