From 27865c840fb942533389a5055675567649de7023 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 8 Jan 2018 02:22:57 +0800 Subject: [PATCH] backend translations added --- .../recruitments/_dashboard_header.html.erb | 18 ++--- .../_employee_academic_form.html.erb | 10 +-- .../recruitments/_employee_dashboard.html.erb | 8 +- .../_employee_experience_form.html.erb | 12 +-- .../recruitments/_employee_form.html.erb | 40 +++++----- .../recruitments/_employer_dashboard.html.erb | 26 +++--- .../recruitments/_employer_form.html.erb | 32 ++++---- app/views/recruitments/_job_form.html.erb | 76 +++++++++--------- .../recruitments/employee_academics.html.erb | 18 ++--- .../recruitments/employee_experience.html.erb | 18 ++--- .../recruitments/employee_portfolio.html.erb | 54 ++++++------- app/views/recruitments/index.html.erb | 4 +- .../recruitments/job_applications.html.erb | 14 ++-- config/locales/en.yml | 78 ++++++++++++++++++ config/locales/zh_tw.yml | 80 ++++++++++++++++++- 15 files changed, 322 insertions(+), 166 deletions(-) diff --git a/app/views/recruitments/_dashboard_header.html.erb b/app/views/recruitments/_dashboard_header.html.erb index dc3dd33..c8b4f5c 100644 --- a/app/views/recruitments/_dashboard_header.html.erb +++ b/app/views/recruitments/_dashboard_header.html.erb @@ -1,21 +1,21 @@

- Welcome <%= @profile.name %>! + <%= t("recruitment.welcome") %> <%= @profile.name %>!

<% if params[:action] == "recruitment_dashboard" && @profile.is_employer? %>
- Add Job + <%= t("recruitment.add_job") %>
<% end %> \ No newline at end of file diff --git a/app/views/recruitments/_employee_academic_form.html.erb b/app/views/recruitments/_employee_academic_form.html.erb index eab8fae..e5ac7ae 100644 --- a/app/views/recruitments/_employee_academic_form.html.erb +++ b/app/views/recruitments/_employee_academic_form.html.erb @@ -1,6 +1,6 @@
- <%= f.label :academic_type, "Academic Type", :class => "col-sm-2 control-label" %> + <%= f.label :academic_type, t("recruitment.academictype"), :class => "col-sm-2 control-label" %>
<%= f.select :academic_type, @academic_types, {}, {:class => "form-control"} %>
@@ -8,7 +8,7 @@
- <%= f.label :start_date, "Start Date", :class => "col-sm-2 control-label" %> + <%= f.label :start_date, t("recruitment.start_date"), :class => "col-sm-2 control-label" %>
<%= f.datetime_picker :start_date, :no_label => true, :new_record => @academic.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
@@ -16,7 +16,7 @@
- <%= f.label :end_date, "End Date", :class => "col-sm-2 control-label" %> + <%= f.label :end_date, t("recruitment.end_date"), :class => "col-sm-2 control-label" %>
<%= f.datetime_picker :end_date, :no_label => true, :new_record => @academic.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %>
@@ -36,7 +36,7 @@ <%= f.fields_for :degree_name_translations do |fe| %>
- <%= fe.label locale, "Degree Name", :class => "col-sm-2 control-label" %> + <%= fe.label locale, t("recruitment.degree_name"), :class => "col-sm-2 control-label" %>
<%= fe.text_field locale, :class => "form-control", :value => @academic.degree_name_translations[locale] %>
@@ -45,7 +45,7 @@ <%= f.fields_for :note_translations do |fe| %>
- <%= fe.label locale, "Note", :class => "col-sm-2 control-label" %> + <%= fe.label locale, t("recruitment.note"), :class => "col-sm-2 control-label" %>
<%= fe.text_area locale, :rows => 10, :class => "form-control", :value => @academic.note_translations[locale] %>
diff --git a/app/views/recruitments/_employee_dashboard.html.erb b/app/views/recruitments/_employee_dashboard.html.erb index 56704aa..bf6c373 100644 --- a/app/views/recruitments/_employee_dashboard.html.erb +++ b/app/views/recruitments/_employee_dashboard.html.erb @@ -1,14 +1,14 @@ - - - + + + <% if @applications.blank? %> - + <% else %> <% @applications.each do |app| %> <% job = app.get_job %> diff --git a/app/views/recruitments/_employee_experience_form.html.erb b/app/views/recruitments/_employee_experience_form.html.erb index 9036dd9..88a5300 100644 --- a/app/views/recruitments/_employee_experience_form.html.erb +++ b/app/views/recruitments/_employee_experience_form.html.erb @@ -12,7 +12,7 @@ <%= f.fields_for :company_name_translations do |fe| %>
- <%= fe.label locale, "Company Name", :class => "col-sm-2 control-label" %> + <%= fe.label locale, t("recruitment.company_name"), :class => "col-sm-2 control-label" %>
<%= fe.text_field locale, :class => "form-control", :value => @experience.company_name_translations[locale] %>
@@ -22,7 +22,7 @@ <%= f.fields_for :job_title_translations do |fe| %>
- <%= fe.label locale, "Job Title", :class => "col-sm-2 control-label" %> + <%= fe.label locale, t("recruitment.job_title"), :class => "col-sm-2 control-label" %>
<%= fe.text_field locale, :class => "form-control", :value => @experience.job_title_translations[locale] %>
@@ -31,7 +31,7 @@ <%= f.fields_for :responsibilities_translations do |fe| %>
- <%= fe.label locale, "Job Responsibilities", :class => "col-sm-2 control-label" %> + <%= fe.label locale, t("recruitment.responsibility"), :class => "col-sm-2 control-label" %>
<%= fe.text_area locale, :rows => 10, :class => "form-control", :value => @experience.responsibilities_translations[locale] %>
@@ -43,7 +43,7 @@
- <%= f.label :start_date, "Start Date", :class => "col-sm-2 control-label" %> + <%= f.label :start_date, t("recruitment.start_date"), :class => "col-sm-2 control-label" %>
<%= f.datetime_picker :start_date, :no_label => true, :new_record => @experience.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
@@ -51,10 +51,10 @@
- <%= f.label :end_date, "End Date", :class => "col-sm-2 control-label" %> + <%= f.label :end_date, t("recruitment.end_date"), :class => "col-sm-2 control-label" %>
<%= f.datetime_picker :end_date, :no_label => true, :new_record => @experience.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %> -
Leave blank if its your current job
+
<%= t("recruitment.leave_blank") %>
diff --git a/app/views/recruitments/_employee_form.html.erb b/app/views/recruitments/_employee_form.html.erb index 613c663..ef7048e 100644 --- a/app/views/recruitments/_employee_form.html.erb +++ b/app/views/recruitments/_employee_form.html.erb @@ -47,28 +47,28 @@ text-align: center; } -

Employee / Fresher Personal Profile

+

<%= t("recruitment.emp_personal_profile") %>


<%= f.fields_for :employee_profile do |fe| %>
- +
- <%= fe.label :dob, "Date of Birth", :class => "col-sm-2 control-label" %> + <%= fe.label :dob, t("recruitment.dob"), :class => "col-sm-2 control-label" %>
<%= fe.datetime_picker :dob, :no_label => true, :new_record => @profile.new_record? %>
@@ -76,20 +76,20 @@
- +
- <%= fe.label :country_code, "Country Code", :class => "col-sm-2 control-label" %> + <%= fe.label :country_code, t("recruitment.country_code"), :class => "col-sm-2 control-label" %>
<%= fe.text_field :country_code, :class => "form-control" %>
@@ -97,7 +97,7 @@
- <%= fe.label :phone_number, "Phone Number", :class => "col-sm-2 control-label" %> + <%= fe.label :phone_number, t("recruitment.phone_number"), :class => "col-sm-2 control-label" %>
<%= fe.text_field :phone_number, :class => "form-control" %>
@@ -105,27 +105,27 @@
- +
- <%= fe.label :website, "Website / Link", :class => "col-sm-2 control-label" %> + <%= fe.label :website, t("recruitment.website"), :class => "col-sm-2 control-label" %>
<%= fe.text_field :website, :class => "form-control" %>
- <%= fe.label :avatar, "Avatar", :class => "col-sm-2 control-label" %> + <%= fe.label :avatar, t("recruitment.avatar"), :class => "col-sm-2 control-label" %>
@@ -166,7 +166,7 @@ <%= fe.fields_for :address_translations do |fe| %>
- <%= fe.label locale, "Address", :class => "col-sm-2 control-label" %> + <%= fe.label locale, t("recruitment.address"), :class => "col-sm-2 control-label" %>
<%= fe.text_area locale, :class => "form-control", :value => @profile.employee_profile.address_translations[locale] %>
@@ -175,7 +175,7 @@ <%= fe.fields_for :autobiography_translations do |fe| %>
- <%= fe.label locale, "Autobiography", :class => "col-sm-2 control-label" %> + <%= fe.label locale, t("recruitment.autobiography"), :class => "col-sm-2 control-label" %>
<%= fe.text_area locale, :class => "form-control", :value => @profile.employee_profile.autobiography_translations[locale] %>
@@ -193,7 +193,7 @@ <%= f.hidden_field :last_name, :value => current_pseudo_user.last_name %> <%= f.hidden_field :user_type, :value => "1" %> - <%= f.submit "Save", :class =>"btn btn-primary" %> - <%= f.submit "Next", :class =>"btn btn-primary" %> + <%= f.submit t("save"), :class =>"btn btn-primary" %> + <%= f.submit t("recruitment.next"), :class =>"btn btn-primary" %>
\ No newline at end of file diff --git a/app/views/recruitments/_employer_dashboard.html.erb b/app/views/recruitments/_employer_dashboard.html.erb index 16c8c14..fa9458b 100644 --- a/app/views/recruitments/_employer_dashboard.html.erb +++ b/app/views/recruitments/_employer_dashboard.html.erb @@ -1,16 +1,16 @@
Job TitleCompany NameApplied Date<%= t("recruitment.job_title") %><%= t("recruitment.company_name") %><%= t("recruitment.applied_date") %>
No jobs applied.
<%= t("recruitment.no_jobs_found") %>
- - - - - + + + + + <% if @jobsposted.blank? %> - + <% else %> <% @jobsposted.each do |job| %> @@ -20,18 +20,18 @@ + <%= t("recruitment.show_application") %> (<%= job_count %>) <% else %> - Show + <%= t("recruitment.show_application") %> <% end %> <% end %> @@ -39,5 +39,5 @@
Job TitleJob PostedPosition FilledApplied CandidatesActions<%= t("recruitment.job_title") %><%= t("recruitment.job_posted") %><%= t("recruitment.position_filled") %><%= t("recruitment.applications") %><%= t("recruitment.actions") %>
No jobs posted.
<%= t("recruitment.no_jobs_posted") %>
<% job_count = job.get_application_count %> <% if job_count > 0 %> - Show (<%= job_count %>) - Edit + <%= t("recruitment.edit") %> <% if !job.filled %> - Mark Filled + <%= t("recruitment.mark_filled") %> <% else %> - Not Filled + <%= t("recruitment.not_filled") %> <% end %> - Delete + <%= t(:delete_) %>
\ No newline at end of file diff --git a/app/views/recruitments/_employer_form.html.erb b/app/views/recruitments/_employer_form.html.erb index ea6bb9b..03beba1 100644 --- a/app/views/recruitments/_employer_form.html.erb +++ b/app/views/recruitments/_employer_form.html.erb @@ -16,7 +16,7 @@ border-top: 1px solid #5c5c5c; } -

Employer Personal Profile

+

<%= t("recruitment.employer_personal_profile") %>