日付を英語表記にするプラグイン EnglishDate を導入していますが、サイドバーウィジェットのカレンダーとアーカイブリストの部分が「2010年February」というようなおかしな表記になっていました。
これを「February, 2010」というふうに表示するには、wp-includes/general-template.php を書き替える必要がありました。
参考:WordPressの日付表示を英語表記にする方法:WPアップグレード後にやること | きにきじ
以下は、ver. 2.9.2 の場合です。
まず、カレンダー部分は 1026行目
$calendar_caption = _x('%1$s %2$s', 'calendar caption');
を
$calendar_caption = _x('%1$s, %2$s', 'calendar caption');
に書き替えます。
そして、アーカイブリストの部分は 821行目
$text = sprintf(__('%1$s %2$d'), $wp_locale->get_month($arcresult->month), $arcresult->year);
を
$text = sprintf(__('%1$s, %2$d'), $wp_locale->get_month($arcresult->month), $arcresult->year);
に書き替えます。
いずれも '%1$s %2$d' を '%1$s, %2$d' とするだけですが、WordPress をバージョンアップする毎に設定し直さなければならないようです。






Comments & Trackbacks (1)
[...] 『We were born in 1967.: 英語表記にしたカレンダーとアーカイブの日付』 [...]