move resumes default texts to locale
This commit is contained in:
parent
0bb3a54c7e
commit
4c551a873f
|
@ -18,11 +18,12 @@ module ApplicationHelper
|
|||
|
||||
def sign_out_link
|
||||
ssl = Rails.env.production? ? {protocol: :https } : {}
|
||||
link_to "Sign out" , destroy_user_session_url(ssl)
|
||||
link_to "Sign out" , destroy_user_session_url(ssl)
|
||||
end
|
||||
|
||||
# define a bunch of defaults for the best_in_place call
|
||||
def resume_in_place field , txt , attributes = {}
|
||||
def resume_in_place field , attributes = {}
|
||||
txt = I18n.t("resumes.#{field}")
|
||||
br = proc {|txtt| raw(txtt.to_s.gsub("\n" , "<br>")) }
|
||||
defaults = { :url => resume_path , place_holder: txt , display_with: br}
|
||||
unless [:street , :city , :country].include? field
|
||||
|
|
|
@ -18,95 +18,95 @@
|
|||
%p
|
||||
%b School:
|
||||
.col-md-8
|
||||
= resume_in_place :school , "What is the highest level school you went to and what were you good at"
|
||||
= resume_in_place :school
|
||||
.row
|
||||
.col-md-1
|
||||
.col-md-1
|
||||
%p
|
||||
%b Uni:
|
||||
.col-md-8
|
||||
= resume_in_place :uni , "Did you go to university or similar, what degree, did you finish"
|
||||
= resume_in_place :uni
|
||||
.row
|
||||
.col-md-1
|
||||
.col-md-1
|
||||
%p
|
||||
%b Internship:
|
||||
.col-md-8
|
||||
= resume_in_place :internship , "Tell us about any relevant internships you have done, and what they were about"
|
||||
= resume_in_place :internship
|
||||
.row
|
||||
.col-md-1
|
||||
.col-md-1
|
||||
%p
|
||||
%b Work:
|
||||
.col-md-8
|
||||
= resume_in_place :work , "Do you have work experience, in what field, what were your responsibilities."
|
||||
= resume_in_place :work
|
||||
.row
|
||||
.col-md-1
|
||||
.col-md-1
|
||||
%p
|
||||
%b Projects:
|
||||
.col-md-8
|
||||
= resume_in_place :projects , "Did you do any technical project, alone or in a group"
|
||||
= resume_in_place :projects
|
||||
.row
|
||||
.col-md-1
|
||||
.col-md-1
|
||||
%p
|
||||
%b Tech skills:
|
||||
.col-md-8
|
||||
= resume_in_place :tech_skills , "What technical skills have you already acquired"
|
||||
= resume_in_place :tech_skills
|
||||
.row
|
||||
.col-md-1
|
||||
.col-md-1
|
||||
%p
|
||||
%b Soft skills:
|
||||
.col-md-8
|
||||
= resume_in_place :soft_skills , "What non technical skills would you say you are good at"
|
||||
= resume_in_place :soft_skills
|
||||
.row
|
||||
.col-md-1
|
||||
.col-md-1
|
||||
%p
|
||||
%b Intrests:
|
||||
.col-md-8
|
||||
= resume_in_place :interests , "Tell us a bit about your general interest"
|
||||
= resume_in_place :interests
|
||||
.row
|
||||
.col-md-1
|
||||
.col-md-1
|
||||
%p
|
||||
%b Motivation:
|
||||
.col-md-8
|
||||
= resume_in_place :motivation , "And what motivates you to apply for this course"
|
||||
= resume_in_place :motivation
|
||||
.row
|
||||
.col-md-1
|
||||
.col-md-1
|
||||
%p
|
||||
%b Finance plan:
|
||||
.col-md-8
|
||||
= resume_in_place :finance , "What is your source of finance"
|
||||
= resume_in_place :finance
|
||||
.row
|
||||
.col-md-1
|
||||
.col-md-1
|
||||
%p
|
||||
%b Other:
|
||||
.col-md-8
|
||||
= resume_in_place :other , "Anything else you would like to mention"
|
||||
= resume_in_place :other
|
||||
.row
|
||||
.col-md-1
|
||||
.col-md-1
|
||||
%p
|
||||
%b Address:
|
||||
.col-md-8
|
||||
= resume_in_place :street , "Street"
|
||||
= resume_in_place :street
|
||||
.row
|
||||
.col-md-1
|
||||
.col-md-1
|
||||
%p
|
||||
%b City:
|
||||
.col-md-8
|
||||
= resume_in_place :city , "City"
|
||||
= resume_in_place :city
|
||||
.row
|
||||
.col-md-1
|
||||
.col-md-1
|
||||
%p
|
||||
%b Country:
|
||||
.col-md-8
|
||||
= resume_in_place :country , "Country"
|
||||
= resume_in_place :country
|
||||
|
|
|
@ -1,23 +1,16 @@
|
|||
# Files in the config/locales directory are used for internationalization
|
||||
# and are automatically loaded by Rails. If you want to use locales other
|
||||
# than English, add the necessary files in this directory.
|
||||
#
|
||||
# To use the locales, use `I18n.t`:
|
||||
#
|
||||
# I18n.t 'hello'
|
||||
#
|
||||
# In views, this is aliased to just `t`:
|
||||
#
|
||||
# <%= t('hello') %>
|
||||
#
|
||||
# To use a different locale, set it with `I18n.locale`:
|
||||
#
|
||||
# I18n.locale = :es
|
||||
#
|
||||
# This would use the information in config/locales/es.yml.
|
||||
#
|
||||
# To learn more, please read the Rails Internationalization guide
|
||||
# available at http://guides.rubyonrails.org/i18n.html.
|
||||
|
||||
en:
|
||||
hello: "Hello world"
|
||||
resumes:
|
||||
school: "What is the highest level school you went to and what were you good at"
|
||||
uni: "Did you go to university or similar, what degree, did you finish"
|
||||
internship: "Tell us about any relevant internships you have done, and what they were about"
|
||||
work: "Do you have work experience, in what field, what were your responsibilities."
|
||||
projects: "Did you do any technical project, alone or in a group"
|
||||
tech_skills: "What technical skills have you already acquired"
|
||||
soft_skills: "What non technical skills would you say you are good at"
|
||||
interests: "Tell us a bit about your general interest"
|
||||
motivation: "And what motivates you to apply for this course"
|
||||
finance: "What is your source of finance"
|
||||
other: "Anything else you would like to mention"
|
||||
street: "Street"
|
||||
city: "City"
|
||||
country: "Country"
|
||||
|
|
Loading…
Reference in New Issue