Ticket #2399 (closed defect (bug): fixed)

Opened 3 years ago

Last modified 2 years ago

Next month in wp-calendar not i18n enabled

Reported by: bob58 Assigned to: markjaquith
Priority: low Milestone:
Component: Administration Version: 2.0
Severity: trivial Keywords: i18n Internationalization wp-calendar bg|has-patch bg|commit
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

i18n.diff (1.8 kB) - added by markjaquith on 02/07/06 10:18:19.

Change History

02/06/06 11:30:41 changed by bob58

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

02/06/06 17:21:06 changed by davidhouse

  • keywords changed from i18n Internationalization wp-calendar to i18n Internationalization wp-calendar bg|has-patch.

02/07/06 10:18:19 changed by markjaquith

  • attachment i18n.diff added.

02/07/06 10:19:04 changed by markjaquith

  • keywords changed from i18n Internationalization wp-calendar bg|has-patch to i18n Internationalization wp-calendar bg|has-patch bg|commit.
  • owner changed from anonymous to markjaquith.
  • status changed from new to assigned.
  • milestone set to 2.1.

02/12/06 08:00:56 changed by ryan

  • status changed from assigned to closed.
  • resolution set to fixed.

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

02/19/06 11:25:34 changed by ryan

  • status changed from closed to closed.
  • resolution set to fixed.

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

02/19/06 11:25:44 changed by ryan

  • milestone changed from 2.1 to 2.0.2.

11/30/06 19:41:50 changed by

  • milestone deleted.

Milestone 2.0.2 deleted