From f24e078ec94988d749a4abf2ff7cfcb1f2b142a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=B7=9D=20=E5=8D=9A=E4=B9=8B?= Date: Sat, 22 Jan 2011 16:52:04 +0900 Subject: [PATCH] add japanese translation file --- app/views/user_import/result.html.erb | 4 +-- config/locales/en.yml | 9 ++----- config/locales/ja.yml | 23 ++++++++++++++++ lang/en.yml | 39 ++++++++++++++------------- lang/ja.yml | 39 ++++++++++++++------------- 5 files changed, 67 insertions(+), 47 deletions(-) create mode 100644 config/locales/ja.yml diff --git a/app/views/user_import/result.html.erb b/app/views/user_import/result.html.erb index 66de455..3cdf1cf 100644 --- a/app/views/user_import/result.html.erb +++ b/app/views/user_import/result.html.erb @@ -4,12 +4,12 @@ <% end %>

<%= t(:label_import_result) %>

-

<%= t(:label_result_notice, { :a => @handle_count, :b => @handle_count - @failed_count } ) %>

+

<%= t(:label_result_notice, { :upload_count => @handle_count, :success_count => @handle_count - @failed_count } ) %>


<% if @failed_count > 0 %> -<%= t(:label_result_failed, @failed_count) %> + <%= t(:label_result_failed, { :failed_count => @failed_count } ) %> diff --git a/config/locales/en.yml b/config/locales/en.yml index b6ceafd..959debd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,9 +1,4 @@ - - - -# English strings go here for Rails i18n en: - my_label: "My label" user_import: "User Import" # index view @@ -23,6 +18,6 @@ en: # result view label_import_result: "Import Result" - label_result_notice: "%{a} issues processed. %{b} issues success imported." - label_result_failed: "Failed %d rows:" + label_result_notice: "%{upload_count} users processed. %{success_count} users success imported." + label_result_failed: "Failed %{failed_count} rows:" message_unique_filed_duplicated: "Unique field \"login\" has duplicate record" diff --git a/config/locales/ja.yml b/config/locales/ja.yml new file mode 100644 index 0000000..4db3dcb --- /dev/null +++ b/config/locales/ja.yml @@ -0,0 +1,23 @@ +ja: + user_import: "ユーザー一括登録" + + # index view + label_upload_notice: "一括登録に使うCSVファイルを選択してください。CSVファイルには任意のヘッダ行が必要です。" + label_upload_format: "ファイルフォーマット設定" + label_upload_encoding: "文字コード:" + label_upload_splitter: "フィールド区切り文字:" + label_upload_wrapper: "フィールド囲み文字:" + button_upload: "ファイル・アップロード" + + # match view + label_match_columns: "カラム対応確認" + label_match_select: "フィールドとカラムを対応付けてください" + label_toplines: "%{original_filename} ファイルを全件表示:" + message_missing_imported_file: "アップロードされたファイルが見つかりません。" + button_submit: "登録" + + # result view + label_import_result: "登録結果" + label_result_notice: "アップロードされた件数 =>%{upload_count}, 成功した件数 => %{success_count}" + label_result_failed: "登録失敗した件数 => %{failed_count}, 該当行:" + message_unique_filed_duplicated: "\"login\"フィールドが既存のレコードと重複している行が見つかりました。" diff --git a/lang/en.yml b/lang/en.yml index 1933f4f..959debd 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -1,22 +1,23 @@ -user_import: "User Import" +en: -# index view -label_upload_notice: "Select a CSV file to import. Import file must have a header row." -label_upload_format: "File format settings" -label_upload_encoding: "Encoding:" -label_upload_splitter: "Field seperate char:" -label_upload_wrapper: "Field wrap char:" -button_upload: "Upload File" + user_import: "User Import" + # index view + label_upload_notice: "Select a CSV file to import. Import file must have a header row." + label_upload_format: "File format settings" + label_upload_encoding: "Encoding:" + label_upload_splitter: "Field seperate char:" + label_upload_wrapper: "Field wrap char:" + button_upload: "Upload File" -# match view -label_match_columns: "Matching Columns" -label_match_select: "Select match field" -label_toplines: "Display all lines of %s:" -message_missing_imported_file: "Missing imported file" -button_submit: "Submit" + # match view + label_match_columns: "Matching Columns" + label_match_select: "Select match field" + label_toplines: "Display all lines of %{original_filename}:" + message_missing_imported_file: "Missing imported file" + button_submit: "Submit" -# result view -label_import_result: "Import Result" -label_result_notice: "%d issues processed. %d issues success imported." -label_result_failed: "Failed %d rows:" -message_unique_filed_duplicated: "Unique field \"login\" has duplicate record" + # result view + label_import_result: "Import Result" + label_result_notice: "%{upload_count} users processed. %{success_count} users success imported." + label_result_failed: "Failed %{failed_count} rows:" + message_unique_filed_duplicated: "Unique field \"login\" has duplicate record" diff --git a/lang/ja.yml b/lang/ja.yml index bf59c22..4db3dcb 100644 --- a/lang/ja.yml +++ b/lang/ja.yml @@ -1,22 +1,23 @@ -user_import: "ユーザー一括登録" +ja: + user_import: "ユーザー一括登録" -# index view -label_upload_notice: "一括登録に使うCSVファイルを選択してください。CSVファイルには任意のヘッダ行が必要です。" -label_upload_format: "ファイルフォーマット設定" -label_upload_encoding: "文字コード:" -label_upload_splitter: "フィールド区切り文字:" -label_upload_wrapper: "フィールド囲み文字:" -button_upload: "ファイル・アップロード" + # index view + label_upload_notice: "一括登録に使うCSVファイルを選択してください。CSVファイルには任意のヘッダ行が必要です。" + label_upload_format: "ファイルフォーマット設定" + label_upload_encoding: "文字コード:" + label_upload_splitter: "フィールド区切り文字:" + label_upload_wrapper: "フィールド囲み文字:" + button_upload: "ファイル・アップロード" -# match view -label_match_columns: "カラム対応確認" -label_match_select: "フィールドとカラムを対応付けてください" -label_toplines: "%s ファイルを全件表示:" -message_missing_imported_file: "アップロードされたファイルが見つかりません。" -button_submit: "登録" + # match view + label_match_columns: "カラム対応確認" + label_match_select: "フィールドとカラムを対応付けてください" + label_toplines: "%{original_filename} ファイルを全件表示:" + message_missing_imported_file: "アップロードされたファイルが見つかりません。" + button_submit: "登録" -# result view -label_import_result: "登録結果" -label_result_notice: "アップロードされた件数 =>%d, 成功した件数 => %d" -label_result_failed: "登録失敗した件数 => %d, 該当行:" -message_unique_filed_duplicated: "\"login\"フィールドが既存のレコードと重複している行が見つかりました。" + # result view + label_import_result: "登録結果" + label_result_notice: "アップロードされた件数 =>%{upload_count}, 成功した件数 => %{success_count}" + label_result_failed: "登録失敗した件数 => %{failed_count}, 該当行:" + message_unique_filed_duplicated: "\"login\"フィールドが既存のレコードと重複している行が見つかりました。"
#