WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#201 closed defect (bug) (fixed)

The name of the previous month in the calendar is not localized

Reported by: anonymousbugger Owned by: ryan
Milestone: Priority: normal
Severity: trivial Version:
Component: Template Keywords:
Focuses: Cc:

Description

In template--functions-general.php, line 404:

$month_abbrev[$month[zeroise($previous->month, 2)]]

It shold be:

substr($month[zeroise($previous->month, 2)], 0, 3)

right?

Change History (5)

comment:2 ryan10 years ago

  • Owner changed from anonymous to rboren
  • Status changed from new to assigned

comment:3 ryan10 years ago

Previous month is localized. It's next month that's broken. substr operations are not allowed because they are not multi-byte aware. That's why we use the $month_abbrev array.

comment:4 ryan10 years ago

  • Resolution changed from 10 to 20
  • Status changed from assigned to closed

http://wordpress.org/pipermail/cvs_wordpress.org/2004-August/000209.html

This fixes the localization of the next month link.

Note: See TracTickets for help on using tickets.