From 85cf4641a246eaac11c33a2041bf0776883c85bf Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 19 Jan 2018 17:08:40 +0800 Subject: [PATCH] languages fix --- .../admin/recruitments/categories.html.erb | 10 ++--- app/views/admin/recruitments/index.html.erb | 12 +++--- .../admin/recruitments/industries.html.erb | 10 ++--- .../admin/recruitments/load_chart.html.erb | 12 +++--- config/locales/en.yml | 17 +++++++++ config/locales/zh_tw.yml | 38 ++++++++++++++----- 6 files changed, 67 insertions(+), 32 deletions(-) diff --git a/app/views/admin/recruitments/categories.html.erb b/app/views/admin/recruitments/categories.html.erb index 0e5e75d..84ac8c8 100644 --- a/app/views/admin/recruitments/categories.html.erb +++ b/app/views/admin/recruitments/categories.html.erb @@ -2,7 +2,7 @@ - + @@ -24,7 +24,7 @@
@@ -32,12 +32,12 @@ diff --git a/app/views/admin/recruitments/index.html.erb b/app/views/admin/recruitments/index.html.erb index 717d0e9..ca02d54 100644 --- a/app/views/admin/recruitments/index.html.erb +++ b/app/views/admin/recruitments/index.html.erb @@ -39,27 +39,27 @@

Summary

diff --git a/app/views/admin/recruitments/industries.html.erb b/app/views/admin/recruitments/industries.html.erb index 4856a0b..a13ed7c 100644 --- a/app/views/admin/recruitments/industries.html.erb +++ b/app/views/admin/recruitments/industries.html.erb @@ -2,7 +2,7 @@
Title<%= t("recruitment.categories") %>
- + @@ -24,7 +24,7 @@
@@ -32,12 +32,12 @@ diff --git a/app/views/admin/recruitments/load_chart.html.erb b/app/views/admin/recruitments/load_chart.html.erb index e5a85dd..cf42455 100644 --- a/app/views/admin/recruitments/load_chart.html.erb +++ b/app/views/admin/recruitments/load_chart.html.erb @@ -1,19 +1,19 @@ <% if params[:type] == "posting" %>

- Posting statistics for the month - <%= @startdt.strftime("%B %Y") %> + <%= t("recruitment.posting_for_the_month") %> + <%= @startdt.strftime("%B %Y") %>

<%= column_chart @data, ytitle: t("recruitment.number_of_posts"), label: t("recruitment.number_of_posts"), id: "posting_chart" %> <% elsif params[:type] == "registration" %>

- Registration statistics for the month - <%= @startdt.strftime("%B %Y") %> + <%= t("recruitment.registration_for_month") %> + <%= @startdt.strftime("%B %Y") %>

<%= column_chart @data, ytitle: t("recruitment.number_of_registered_users"), label: t("recruitment.number_of_registered_users"), id: "registration_chart", colors: ["#f2096e"] %> <% elsif params[:type] == "filled" %>

- Positions filled statistics for the month - <%= @startdt.strftime("%B %Y") %> + <%= t("recruitment.positions_for_month") %> + <%= @startdt.strftime("%B %Y") %>

<%= column_chart @data, ytitle: t("recruitment.number_of_positions_filled"), label: t("recruitment.number_of_positions_filled"), id: "filled_chart", colors: ["#aff109"] %> <% end %> \ No newline at end of file diff --git a/config/locales/en.yml b/config/locales/en.yml index 6cfec04..6ac7d7b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,12 +1,29 @@ en: + application_type: Application Type + restful_actions: + postings: Postings + industries: Industries module_name: recruitment: Recruitment recruitment: + total_internship_postings: Total Internship Postings + total_exchange_postings: Total Exchange Postings + total_employees: Total Employees + total_employers: Total Employers + total_positions_filled: Total Positions Filled + total_job_postings: Total Job Postings + posting_for_the_month: Posting statistics for the month + registration_for_month: Registration statistics for the month + positions_for_month: Positions filled statistics for the month edit_exchange: Edit Exchange show_jobs: Show Jobs number_of_positions_filled: Number of position filled number_of_registered_users: Number of registered users select_year: Year + title: Title + add_industry: Add Industry + add_category: Add Category + job_category: Job Category select_month: Month postings: Postings number_of_posts: Number of Posts diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index 5c12e3e..eb79bda 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -1,16 +1,34 @@ zh_tw: + application_type: 申請類別 + restful_actions: + postings: 張貼資訊 + industries: 行業 + categories: 工作類別 module_name: recruitment: 招募 recruitment: - edit_exchange: Edit Exchange - show_jobs: Show Jobs - number_of_positions_filled: Number of position filled - number_of_registered_users: Number of registered users - select_year: Year - select_month: Month - postings: Postings - number_of_posts: Number of Posts - number_of_applicants: Number of Applications + total_internship_postings: 全部實習生需求列表 + total_exchange_postings: 全部交換生需求列表 + total_employees: 所有雇員 + total_employers: 所有雇主 + total_positions_filled: 全部已完成之雇用 + total_job_postings: 全部工作需求文章 + posting_for_the_month: 本月PO文結算 + registration_for_month: 本月註冊人數 + positions_for_month: 本月新僱員數 + edit_exchange: 編輯交換生資訊 + show_jobs: 列出所有工作 + number_of_positions_filled: 新僱員數 + number_of_registered_users: 新註冊人數 + select_year: 年 + select_month: 月 + title: 職稱 + add_industry: 新增產業 + add_category: 新增工作類別 + job_category: 工作類別 + postings: 張貼資訊 + number_of_posts: 文章數目 + number_of_applicants: 申請件數 applications: 應用 disable_user: 停止用戶 enable_user: 啟動用戶 @@ -91,7 +109,7 @@ zh_tw: degree_name: 學位名稱 note: 筆記 end_date: 結束日期 - job_title: 工作直稱 + job_title: 工作職稱 company_name: 公司名稱 applied_date: 應徵日期 no_jobs_found: 無相關工作
Title<%= t("recruitment.title") %>