From acf33337754b28da0f0ada36739bc1a0672130b9 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 5 Jul 2017 14:46:46 +0800 Subject: [PATCH] translations added --- app/views/member_counselors/_body.html.erb | 8 +++--- .../_counselor_body.html.erb | 10 +++---- config/locales/en.yml | 7 ++++- config/locales/zh_tw.yml | 26 ++++++++++++------- 4 files changed, 31 insertions(+), 20 deletions(-) diff --git a/app/views/member_counselors/_body.html.erb b/app/views/member_counselors/_body.html.erb index 48f6856..01f5f0e 100644 --- a/app/views/member_counselors/_body.html.erb +++ b/app/views/member_counselors/_body.html.erb @@ -16,9 +16,9 @@ <%= file.created_at.strftime("%y/%m/%d") %> <%= file.title %> - Download + <%= t("member_counselor.download") %> <%= t("edit") %> - <%= t("delete") %> + <%= t("member_counselor.delete") %> <% end %> @@ -48,9 +48,9 @@ <%= file.created_at.strftime("%y/%m/%d") %> <%= file.title %> - Download + <%= t("member_counselor.download") %> <%= t("edit") %> - <%= t("delete") %> + <%= t("member_counselor.delete") %> <% end %> diff --git a/app/views/member_counselors/_counselor_body.html.erb b/app/views/member_counselors/_counselor_body.html.erb index f36e792..fd787b5 100644 --- a/app/views/member_counselors/_counselor_body.html.erb +++ b/app/views/member_counselors/_counselor_body.html.erb @@ -1,7 +1,7 @@ <%= csrf_meta_tag %> - + @@ -16,15 +16,15 @@ <% end %> <% else %> - + <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 8a1a436..6ff3746 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -35,4 +35,9 @@ en: downloaded_times: Download Count date: Date action: Action - no_files_uploaded: No Files Uploaded \ No newline at end of file + no_files_uploaded: No Files Uploaded + delete: Delete + download: Download + new_record: New Record + view: View + no_record_found: No Record Found \ No newline at end of file diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index cee6202..02b7a69 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -1,11 +1,11 @@ zh_tw: member_counselor: - member_counselor: HPS Members - new_user: Create User - all_members: All Members - uploads: Uploads - results: Results - records: Counselor Records + member_counselor: HPS 會員 + new_user: 新增使用者 + all_members: 所有會員 + uploads: 上傳 + results: 成果報告 + records: 輔導委員記錄 account: 帳號 password: 密碼 confirm_password: 確認密碼 @@ -16,7 +16,7 @@ zh_tw: organization: 服務機關 title: 職稱 event_title: 會議/活動名稱 - export: Export + export: 匯出 county: 縣市 address: 地址 email: 電子信箱 @@ -27,15 +27,21 @@ zh_tw: type1: 學校單位 type2: 縣市政府 type3: 輔導委員 - user_type: User Type + user_type: 會員身份 school: 學校 city: 縣市 year: 年度 - file_date: Date - downloaded_times: Download Count + file_date: 日期 + downloaded_times: 下載次數 date: 日期 action: 操作 no_files_uploaded: 尚未上傳任何檔案 + delete: 刪除 + download: 下載 + new_record: 新記錄 + view: 預覽 + no_record_found: 無記錄 +
輔導記錄單 New Record輔導記錄單 <%= t("member_counselor.new_record") %>
新增日期<%= record.created_at.strftime("%y/%m/%d") %> <%= record.get_title %> - Edit - View - Delete + <%= t("edit") %> + <%= t("member_counselor.view") %> + <%= t("member_counselor.delete") %>
No records found.<%= t("member_counselor.no_record_found") %>