OSDN Git Service

ロケールの日本語化ファイルを追加
authorSHIMADA Keiki <shimada@1020132iMac-2.reji>
Mon, 23 Aug 2010 02:25:54 +0000 (11:25 +0900)
committerSHIMADA Keiki <shimada@1020132iMac-2.reji>
Mon, 23 Aug 2010 02:25:54 +0000 (11:25 +0900)
config/locales/ja.yml [new file with mode: 0644]
config/locales/translation_ja.yml [new file with mode: 0644]

diff --git a/config/locales/ja.yml b/config/locales/ja.yml
new file mode 100644 (file)
index 0000000..1c1ed7b
--- /dev/null
@@ -0,0 +1,148 @@
+# Japanese translations for Ruby on Rails
+# by Akira Matsuda (ronnie@dio.jp)
+# AR error messages are basically taken from Ruby-GetText-Package. Thanks to Masao Mutoh.
+
+ja:
+  date:
+    formats:
+      default: "%Y/%m/%d"
+      short: "%m/%d"
+      long: "%Y年%m月%d日(%a)"
+
+    day_names: [日曜日, 月曜日, 火曜日, 水曜日, 木曜日, 金曜日, 土曜日]
+    abbr_day_names: [日, 月, 火, 水, 木, 金, 土]
+
+    month_names: [~, 1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12月]
+    abbr_month_names: [~, 1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12月]
+
+    order: [:year, :month, :day]
+
+  time:
+    formats:
+      default: "%Y/%m/%d %H:%M:%S"
+      short: "%y/%m/%d %H:%M"
+      long: "%Y年%m月%d日(%a) %H時%M分%S秒 %Z"
+    am: "午前"
+    pm: "午後"
+
+  support:
+    array:
+      sentence_connector: "と"
+      skip_last_comma: true
+      words_connector: "と"
+      two_words_connector: "と"
+      last_word_connector: "と"
+
+    select:
+      prompt: "選択してください。"
+
+  number:
+    format:
+      separator: "."
+      delimiter: ","
+      precision: 3
+
+    currency:
+      format:
+        format: "%n%u"
+        unit: "円"
+        separator: "."
+        delimiter: ","
+        precision: 0
+
+    percentage:
+      format:
+        delimiter: ""
+
+    precision:
+      format:
+        delimiter: ""
+
+    human:
+      format:
+        delimiter: ""
+        precision: 1
+      storage_units:
+        format: "%n%u"
+        units:
+          byte: "バイト"
+          kb: "キロバイト"
+          mb: "メガバイト"
+          gb: "ギガバイト"
+          tb: "テラバイト"
+
+  datetime:
+    distance_in_words:
+      half_a_minute: "30秒前後"
+      less_than_x_seconds:
+        one:   "1秒以内"
+        other: "%{count}秒以内"
+      x_seconds:
+        one:   "1秒"
+        other: "%{count}秒"
+      less_than_x_minutes:
+        one:   "1分以内"
+        other: "%{count}分以内"
+      x_minutes:
+        one:   "1分"
+        other: "%{count}分"
+      about_x_hours:
+        one:   "約1時間"
+        other: "約%{count}時間"
+      x_days:
+        one:   "1日"
+        other: "%{count}日"
+      about_x_months:
+        one:   "約1ヶ月"
+        other: "約%{count}ヶ月"
+      x_months:
+        one:   "1ヶ月"
+        other: "%{count}ヶ月"
+      about_x_years:
+        one:   "約%{count}年"
+        other: "約%{count}年"
+      over_x_years:
+        one:   "%{count}年以上"
+        other: "%{count}年以上"
+
+  activemodel:
+    errors:
+      template:
+        header:
+          one:    "%{model}にエラーが発生しました。"
+          other:  "%{model}に%{count}つのエラーが発生しました。"
+        body: "次の項目を確認してください。"
+
+  activerecord:
+    errors:
+      template:
+        header:
+          one:   "%{model}にエラーが発生しました。"
+          other: "%{model}に%{count}つのエラーが発生しました。"
+        body: "次の項目を確認してください。"
+
+      messages:
+        inclusion: "は一覧にありません。"
+        exclusion: "は予約されています。"
+        invalid: "は不正な値です。"
+        confirmation: "が一致しません。"
+        accepted: "を受諾してください。"
+        empty: "を入力してください。"
+        blank: "を入力してください。"
+        too_long: "は%{count}文字以内で入力してください。"
+        too_short: "は%{count}文字以上で入力してください。"
+        wrong_length: "は%{count}文字で入力してください。"
+        taken: "はすでに存在します。"
+        not_a_number: "は数値で入力してください。"
+        not_an_integer: "は整数で入力してください。"
+        greater_than: "は%{count}より大きい値にしてください。"
+        greater_than_or_equal_to: "は%{count}以上の値にしてください。"
+        equal_to: "は%{count}にしてください。"
+        less_than: "は%{count}より小さい値にしてください。"
+        less_than_or_equal_to: "は%{count}以下の値にしてください。"
+        odd: "は奇数にしてください。"
+        even: "は偶数にしてください。"
+        record_invalid: "バリデーションに失敗しました。 %{errors}"
+
+      full_messages:
+        format: "%{attribute}%{message}"
diff --git a/config/locales/translation_ja.yml b/config/locales/translation_ja.yml
new file mode 100644 (file)
index 0000000..3c82bb4
--- /dev/null
@@ -0,0 +1,24 @@
+ja: 
+  activerecord: 
+    models: 
+      song: "ソング"  #g
+
+    attributes: 
+      song: 
+        code: "コード"  #g
+        title: "タイトル"  #g
+        words: "言葉"  #g
+        words_for_search: "検索ワード"  #g
+        copyright: "著作権"  #g
+        font_size: "フォントサイズ"  #g
+        deleted_at: "で削除"  #g
+
+  selectable_attrs: 
+    Song: 
+      font_size: 
+        xsmall: "Xsmall"  #g
+        small: "スモール"  #g
+        middle: "中間"  #g
+        large: "大"  #g
+        xlarge: "エクストララージ"  #g
+