- 2007/12/7 金曜日 3:01:53
- WordPress
サイドバーのカレンダー表示が12 月 2007となっていてなんとなく落ち着かない。
プラグインで対応しようと作成してみたがうまくいかなかった。
ファイルを直接修正するとバージョンアップのときに困るがいたしかたない。
wp-includes\general-template.phpの547行目を
<caption>’ . $wp_locale->get_month($thismonth) . ‘ ‘ . date(‘Y’, $unixmonth) . ‘</caption>
下のようにして
<caption>’ . date(‘Y’, $unixmonth) . ‘年 ‘ . $wp_locale->get_month($thismonth) . ‘</caption>
修正した。
Related posts:
- WordPress カレンダー 前の月を日本語にする カレンダーの前の月が「Nov」だったので 「11月」にしてみた。 wp-includes\general-template.phpの580行目あたりと、590行目あたりを 下記のように「前の月」と「次の月」を修正した。 [...]...
- 新しい: 渇き
- 古い: Outbound Port25 Blocking
コメント:0
トラックバック:0
- この記事のトラックバック URL
- http://www.ynagata.com/2007/12/07/wordpress-%e3%82%b5%e3%82%a4%e3%83%89%e3%83%90%e3%83%bc%e3%81%ae%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc/trackback/
- トラックバックの送信元リスト
- WordPress サイドバーのカレンダー - 永田順伸のブログ より
