WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#2399 closed defect (bug) (fixed)

Next month in wp-calendar not i18n enabled

Reported by: bob58 Owned by: markjaquith
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)]] . ' &raquo;</a></td>';
	} else {
		echo "\n\t\t".'<td colspan="3" id="next" class="pad">&nbsp;</td>';
	}

Then it matches the handling for "previous month" and internationalization should work.

Kind regards and thanks a lot.

Bob

Attachments (1)

i18n.diff (1.8 KB) - added by markjaquith 8 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 bob588 years ago

The file is template-functions-general.php, sorry.

comment:2 davidhouse8 years ago

  • Keywords bg|has-patch added

markjaquith8 years ago

comment:3 markjaquith8 years ago

  • Keywords bg|commit added
  • Milestone set to 2.1
  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

comment:4 ryan8 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [3518]) i18n fix for next month links from bob58. fixes #2399

comment:5 ryan8 years ago

  • Resolution set to fixed

(In [3557]) i18n fix for next month links from bob58. fixes #2399

comment:6 ryan8 years ago

  • Milestone changed from 2.1 to 2.0.2

comment:7 anonymous7 years ago

  • Milestone 2.0.2 deleted

Milestone 2.0.2 deleted

Note: See TracTickets for help on using tickets.