適用するテンプレートや、運用ポリシーみたいな物で「年月日や曜日は英表記!!」って
そう言う人は少なからず居るかも知れない。自分はそんな感じ。
折角日本語にローカライズしてくれた言語ファイルを提供して貰ってはいるが、
見た目がちとしっくりこないしなんだかな~という状態だったので、また作って見ました。
配布もしてみる。
自分が以前やった方法を参照しながら作業をして見た訳なのだが!!
うちの Linux に入っている msgfmt コマンドのバージョンが古い為に WP 2.9 付属の
ja.mo をビルド出来ない…ってなっちゃいました。
# ちなみに言語ファイルは「/wp-content/languages/ja.{mo,po}」の 2 つです。
# po ファイルが定義みたいな。mo ファイルがビルドしたバイナリで実際に使う奴。
Win 用にある Poedit っておいうソフトも使ってみたけど、エラーが出る。
しかたないなーとなったので、msgfmt が入っている gettext というパッケージのソースを
ダウンロードしてきた。
デフォのまま configure, make, make install してみた感じ。
WP 2.9 の ja.mo ビルド時にエラー吐いたうちの msgfmt はバージョン 0.14 でした。
最新版を落としてきてビルドしたやつは 0.17 と。
これなら
ってやるだけで No Error!!!
操作はやっぱ GUI が楽だったんで、po ファイルは Win で Poedit。ビルドは Linux で msgfmt 0.17。
ぶっち作成 ja.mo ファイル。ja.po 込み。 (tar.gz 形式 353KB)
差分だけ見たい方は以下に diff -u した結果はっつけます。
--- /var/tmp/ja.po.old 2010-01-24 21:01:59.000000000 +0900 +++ /var/tmp/ja.po 2010-01-25 02:10:47.000000000 +0900 @@ -16,8 +16,8 @@ "Project-Id-Version: WordPress 2.9.1 ja\n" "Report-Msgid-Bugs-To: wp-polyglots@lists.automattic.com\n" "POT-Creation-Date: 2010-01-05 04:57+0000\n" -"PO-Revision-Date: 2010-01-05 15:18+0900\n" -"Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n" +"PO-Revision-Date: 2010-01-24 23:48+0900\n" +"Last-Translator: \n" "Language-Team: wp-ja <wpja.team@gmail.com>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -311,7 +311,7 @@ #: wp-admin/includes/template.php:2149 #: wp-admin/upload.php:426 msgid "Y/m/d" -msgstr "Y年n月j日" +msgstr "Y/m/d" #: wp-admin/admin-footer.php:23 msgid "Thank you for creating with <a href=\"http://wordpress.org/\">WordPress</a>." @@ -983,13 +983,13 @@ #: wp-admin/includes/template.php:1634 #: wp-admin/upload.php:417 msgid "Y/m/d g:i:s A" -msgstr "Y年n月j日 g:i:s a" +msgstr "Y/m/d g:i:s A" #: wp-admin/edit-attachment-rows.php:157 #: wp-admin/upload.php:422 #, php-format msgid "%s from now" -msgstr "%s後" +msgstr "%s from now" #: wp-admin/edit-attachment-rows.php:159 #: wp-admin/includes/plugin-install.php:507 @@ -1000,7 +1000,7 @@ #: wp-admin/upload.php:424 #, php-format msgid "%s ago" -msgstr "%s前" +msgstr "%s ago" #: wp-admin/edit-attachment-rows.php:179 msgid "(Unattached)" @@ -1315,7 +1315,7 @@ #: wp-admin/edit-page-form.php:49 #: wp-admin/includes/meta-boxes.php:150 msgid "M j, Y @ G:i" -msgstr "Y年n月j日 @ G:i" +msgstr "M j, Y @ G:i" #: wp-admin/edit-form-advanced.php:57 #, php-format @@ -6225,18 +6225,18 @@ #: wp-admin/includes/schema.php:220 #: wp-admin/options-general.php:216 msgid "F j, Y" -msgstr "Y年n月j日" +msgstr "M j, Y @ G:i" #. translators: default time format, see http://php.net/date #: wp-admin/includes/schema.php:222 #: wp-admin/options-general.php:249 msgid "g:i a" -msgstr "g:i A" +msgstr "g:i a" #. translators: links last updated date format, see http://php.net/date #: wp-admin/includes/schema.php:224 msgid "F j, Y g:i a" -msgstr "Y年n月j日 g:i A" +msgstr "F j, Y g:i a" #. translators: user role #: wp-admin/includes/schema.php:384 @@ -6486,7 +6486,7 @@ #: wp-admin/includes/template.php:2111 msgid "Y/m/d \\a\\t g:i A" -msgstr "Y年n月j日 g:i a" +msgstr "Y/m/d \\a\\t g:i A" #: wp-admin/includes/template.php:2149 #, php-format @@ -6495,11 +6495,11 @@ #: wp-admin/includes/template.php:2149 msgid "g:ia" -msgstr "g:i A" +msgstr "g:ia" #: wp-admin/includes/template.php:2251 msgid "Y/m/d \\a\\t g:ia" -msgstr "Y年n月j日 g:i a" +msgstr "Y/m/d \\a\\t g:ia" #: wp-admin/includes/template.php:2325 msgid "Reply to Comment" @@ -11069,19 +11069,19 @@ #, php-format msgid "%s min" msgid_plural "%s mins" -msgstr[0] "%s分" +msgstr[0] "%s min" #: wp-includes/formatting.php:1776 #, php-format msgid "%s hour" msgid_plural "%s hours" -msgstr[0] "%s時間" +msgstr[0] "%s hour" #: wp-includes/formatting.php:1782 #, php-format msgid "%s day" msgid_plural "%s days" -msgstr[0] "%s日" +msgstr[0] "%s day" #. translators: used between list items, there is a space after the coma #: wp-includes/formatting.php:2669 @@ -11385,20 +11385,20 @@ #: wp-includes/general-template.php:821 #, php-format msgid "%1$s %2$d" -msgstr "%2$d年%1$s" +msgstr "%1$s %2$d" #. translators: Calendar caption: 1: month name, 2: 4-digit year #: wp-includes/general-template.php:1026 #, php-format msgctxt "calendar caption" msgid "%1$s %2$s" -msgstr "%2$s年%1$s" +msgstr "%1$s %2$s" #: wp-includes/general-template.php:1053 #: wp-includes/general-template.php:1063 #, php-format msgid "View posts for %1$s %2$s" -msgstr "%2$s年%1$sの投稿を表示" +msgstr "%1$s %2$sの投稿を表示" #. translators: Separator between blog name and feed type in feed links #: wp-includes/general-template.php:1458 @@ -11545,217 +11545,217 @@ #: wp-includes/locale.php:140 #: wp-includes/locale.php:155 msgid "January" -msgstr "1月" +msgstr "January" #: wp-includes/js/tinymce/langs/wp-langs.php:53 #: wp-includes/locale.php:141 #: wp-includes/locale.php:156 msgid "February" -msgstr "2月" +msgstr "February" #: wp-includes/js/tinymce/langs/wp-langs.php:53 #: wp-includes/locale.php:142 #: wp-includes/locale.php:157 msgid "March" -msgstr "3月" +msgstr "March" #: wp-includes/js/tinymce/langs/wp-langs.php:53 #: wp-includes/locale.php:143 #: wp-includes/locale.php:158 msgid "April" -msgstr "4月" +msgstr "April" #: wp-includes/js/tinymce/langs/wp-langs.php:53 #: wp-includes/locale.php:144 #: wp-includes/locale.php:159 msgid "May" -msgstr "5月" +msgstr "May" #: wp-includes/js/tinymce/langs/wp-langs.php:53 #: wp-includes/locale.php:145 #: wp-includes/locale.php:160 msgid "June" -msgstr "6月" +msgstr "June" #: wp-includes/js/tinymce/langs/wp-langs.php:53 #: wp-includes/locale.php:146 #: wp-includes/locale.php:161 msgid "July" -msgstr "7月" +msgstr "July" #: wp-includes/js/tinymce/langs/wp-langs.php:53 #: wp-includes/locale.php:147 #: wp-includes/locale.php:162 msgid "August" -msgstr "8月" +msgstr "August" #: wp-includes/js/tinymce/langs/wp-langs.php:53 #: wp-includes/locale.php:148 #: wp-includes/locale.php:163 msgid "September" -msgstr "9月" +msgstr "September" #: wp-includes/js/tinymce/langs/wp-langs.php:53 #: wp-includes/locale.php:149 #: wp-includes/locale.php:164 msgid "October" -msgstr "10月" +msgstr "October" #: wp-includes/js/tinymce/langs/wp-langs.php:53 #: wp-includes/locale.php:150 #: wp-includes/locale.php:165 msgid "November" -msgstr "11月" +msgstr "November" #: wp-includes/js/tinymce/langs/wp-langs.php:53 #: wp-includes/locale.php:151 #: wp-includes/locale.php:166 msgid "December" -msgstr "12月" +msgstr "December" #: wp-includes/js/tinymce/langs/wp-langs.php:54 #: wp-includes/locale.php:155 msgid "Jan_January_abbreviation" -msgstr "1月_January_abbreviation" +msgstr "Jan_January_abbreviation" #: wp-includes/js/tinymce/langs/wp-langs.php:54 #: wp-includes/locale.php:156 msgid "Feb_February_abbreviation" -msgstr "2月_February_abbreviation" +msgstr "Feb_February_abbreviation" #: wp-includes/js/tinymce/langs/wp-langs.php:54 #: wp-includes/locale.php:157 msgid "Mar_March_abbreviation" -msgstr "3月_March_abbreviation" +msgstr "Mar_March_abbreviation" #: wp-includes/js/tinymce/langs/wp-langs.php:54 #: wp-includes/locale.php:158 msgid "Apr_April_abbreviation" -msgstr "4月_April_abbreviation" +msgstr "Apr_April_abbreviation" #: wp-includes/js/tinymce/langs/wp-langs.php:54 #: wp-includes/locale.php:159 msgid "May_May_abbreviation" -msgstr "5月_May_abbreviation" +msgstr "May_May_abbreviation" #: wp-includes/js/tinymce/langs/wp-langs.php:54 #: wp-includes/locale.php:160 msgid "Jun_June_abbreviation" -msgstr "6月_June_abbreviation" +msgstr "Jun_June_abbreviation" #: wp-includes/js/tinymce/langs/wp-langs.php:54 #: wp-includes/locale.php:161 msgid "Jul_July_abbreviation" -msgstr "7月_July_abbreviation" +msgstr "Jul_July_abbreviation" #: wp-includes/js/tinymce/langs/wp-langs.php:54 #: wp-includes/locale.php:162 msgid "Aug_August_abbreviation" -msgstr "8月_August_abbreviation" +msgstr "Aug_August_abbreviation" #: wp-includes/js/tinymce/langs/wp-langs.php:54 #: wp-includes/locale.php:163 msgid "Sep_September_abbreviation" -msgstr "9月_September_abbreviation" +msgstr "Sep_September_abbreviation" #: wp-includes/js/tinymce/langs/wp-langs.php:54 #: wp-includes/locale.php:164 msgid "Oct_October_abbreviation" -msgstr "10月_October_abbreviation" +msgstr "Oct_October_abbreviation" #: wp-includes/js/tinymce/langs/wp-langs.php:54 #: wp-includes/locale.php:165 msgid "Nov_November_abbreviation" -msgstr "11月_November_abbreviation" +msgstr "Nov_November_abbreviation" #: wp-includes/js/tinymce/langs/wp-langs.php:54 #: wp-includes/locale.php:166 msgid "Dec_December_abbreviation" -msgstr "12月_December_abbreviation" +msgstr "Dec_December_abbreviation" #: wp-includes/js/tinymce/langs/wp-langs.php:55 #: wp-includes/locale.php:108 #: wp-includes/locale.php:118 #: wp-includes/locale.php:131 msgid "Sunday" -msgstr "日曜日" +msgstr "Sunday" #: wp-includes/js/tinymce/langs/wp-langs.php:55 #: wp-includes/locale.php:109 #: wp-includes/locale.php:119 #: wp-includes/locale.php:132 msgid "Monday" -msgstr "月曜日" +msgstr "Monday" #: wp-includes/js/tinymce/langs/wp-langs.php:55 #: wp-includes/locale.php:110 #: wp-includes/locale.php:120 #: wp-includes/locale.php:133 msgid "Tuesday" -msgstr "火曜日" +msgstr "Tuesday" #: wp-includes/js/tinymce/langs/wp-langs.php:55 #: wp-includes/locale.php:111 #: wp-includes/locale.php:121 #: wp-includes/locale.php:134 msgid "Wednesday" -msgstr "水曜日" +msgstr "Wednesday" #: wp-includes/js/tinymce/langs/wp-langs.php:55 #: wp-includes/locale.php:112 #: wp-includes/locale.php:122 #: wp-includes/locale.php:135 msgid "Thursday" -msgstr "木曜日" +msgstr "Thursday" #: wp-includes/js/tinymce/langs/wp-langs.php:55 #: wp-includes/locale.php:113 #: wp-includes/locale.php:123 #: wp-includes/locale.php:136 msgid "Friday" -msgstr "金曜日" +msgstr "Friday" #: wp-includes/js/tinymce/langs/wp-langs.php:55 #: wp-includes/locale.php:114 #: wp-includes/locale.php:124 #: wp-includes/locale.php:137 msgid "Saturday" -msgstr "土曜日" +msgstr "Saturday" #: wp-includes/js/tinymce/langs/wp-langs.php:56 #: wp-includes/locale.php:131 msgid "Sun" -msgstr "日" +msgstr "Sun" #: wp-includes/js/tinymce/langs/wp-langs.php:56 #: wp-includes/locale.php:132 msgid "Mon" -msgstr "月" +msgstr "Mon" #: wp-includes/js/tinymce/langs/wp-langs.php:56 #: wp-includes/locale.php:133 msgid "Tue" -msgstr "火" +msgstr "Tue" #: wp-includes/js/tinymce/langs/wp-langs.php:56 #: wp-includes/locale.php:134 msgid "Wed" -msgstr "水" +msgstr "Wed" #: wp-includes/js/tinymce/langs/wp-langs.php:56 #: wp-includes/locale.php:135 msgid "Thu" -msgstr "木" +msgstr "Thu" #: wp-includes/js/tinymce/langs/wp-langs.php:56 #: wp-includes/locale.php:136 msgid "Fri" -msgstr "金" +msgstr "Fri" #: wp-includes/js/tinymce/langs/wp-langs.php:56 #: wp-includes/locale.php:137 msgid "Sat" -msgstr "土" +msgstr "Sat" #: wp-includes/js/tinymce/langs/wp-langs.php:59 msgid "Print" @@ -13132,31 +13132,31 @@ #: wp-includes/locale.php:118 msgid "S_Sunday_initial" -msgstr "日_Sunday_initial" +msgstr "S_Sunday_initial" #: wp-includes/locale.php:119 msgid "M_Monday_initial" -msgstr "月_Monday_initial" +msgstr "M_Monday_initial" #: wp-includes/locale.php:120 msgid "T_Tuesday_initial" -msgstr "火_Tuesday_initial" +msgstr "T_Tuesday_initial" #: wp-includes/locale.php:121 msgid "W_Wednesday_initial" -msgstr "水_Wednesday_initial" +msgstr "W_Wednesday_initial" #: wp-includes/locale.php:122 msgid "T_Thursday_initial" -msgstr "木_Thursday_initial" +msgstr "T_Thursday_initial" #: wp-includes/locale.php:123 msgid "F_Friday_initial" -msgstr "金_Friday_initial" +msgstr "F_Friday_initial" #: wp-includes/locale.php:124 msgid "S_Saturday_initial" -msgstr "土_Saturday_initial" +msgstr "S_Saturday_initial" #: wp-includes/locale.php:173 msgid "am" @@ -13444,7 +13444,7 @@ #: wp-includes/post-template.php:1200 msgctxt "revision date format" msgid "j F, Y @ G:i" -msgstr "Y年n月j日 @ G:i" +msgstr "j F, Y @ G:i" #. translators: 1: date #: wp-includes/post-template.php:1202
Related posts:
