Ticket #3307 (closed defect (bug): duplicate)

Opened 5 years ago

Last modified 5 years ago

Add i18n support to function get_archives()

Reported by: yskins Owned by: anonymous
Priority: lowest Milestone:
Component: Administration Version: 2.0.4
Severity: normal Keywords: i18n
Cc:

Description

In english, we use the format like "January 2006" in archive list. But in chinese, we often use the format like "2006-1". Can you replace line 339 and line 342 in /wp-includes/template-functions-general.php to:

$text = sprintf(__('%s %d'), $month[zeroise($arcresult->month,2)], $arcresult->year);

So I can translate '%s %d' into '%2$d-%1$s' in my po file.

I'm using WordPress 2.0.5

Change History

same to #1540

comment:2   matt5 years ago

  • Status changed from new to closed
  • Resolution set to duplicate
  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.