Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 5 years ago

#201 closed defect (bug) (fixed)

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

Reported by: anonymousbugger's profile anonymousbugger Owned by: ryan's profile 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 (8)

#2 @ryan
21 years ago

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

#3 @ryan
21 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.

#4 @ryan
21 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.

This ticket was mentioned in Slack in #docs by atachibana. View the logs.


7 years ago

This ticket was mentioned in Slack in #docs by atachibana. View the logs.


7 years ago

This ticket was mentioned in Slack in #docs by atachibana. View the logs.


5 years ago

Note: See TracTickets for help on using tickets.