Warning: Declaration of FeedWordPie_Item::get_id($hash = false) should be compatible with SimplePie_Item::get_id($hash = false, $fn = 'md5') in /home/nekyo/nekyo.wp.xdomain.jp/public_html/wp-content/plugins/feedwordpress/feedwordpie_item.class.php on line 0

Warning: Declaration of FeedWordPress_Parser::parse(&$data, $encoding) should be compatible with SimplePie_Parser::parse(&$data, $encoding, $url = '') in /home/nekyo/nekyo.wp.xdomain.jp/public_html/wp-content/plugins/feedwordpress/feedwordpress_parser.class.php on line 0
翻訳 | 日々のできごと

「翻訳」タグアーカイブ

WordPress のコンテンツの日本語化

WordPress の言語ファイルはGetTextを使った .mo という形式になっている。
これを編集するにはオープンソースの poedit を使う。

Custom Post Type UI 1.1.2 の日本語訳が中途半端だったので、日本語化しなおした。

  1. Poedit をダウンロードしてインストールする。
  2. wp-content/plugins/custom-post-type-ui/languages/ にある、custom-post-type-ui.po をローカルに持ってくる。
  3. Poedit を使って custom-post-type-ui.po を開く。左側に原文、右側に日本語訳を入力していく。
  4. ファイルを保存すると custom-post-type-ui.mo が作成される。
  5. 念のため、元の .mo をバックアップして、custom-post-type-ui.mo をさっきの場所に上書きする。

一応、おもて側で見える部分は大体翻訳した Custom Post Type UI 1.1.2 の日本語化ファイルを置くので、自由に使ってください。
cpt-plugin-ja.zip
解凍して出てきた cpt-plugin-ja.mo を wp-content/plugins/custom-post-type-ui/languages/ に上書きしてください。

ソースから言語部分を抽出して翻訳するには…

続きを読む WordPress のコンテンツの日本語化