diff options
| -rw-r--r-- | app/views/errors/not_found.html.haml | 8 | ||||
| -rw-r--r-- | app/views/errors/server_error.html.haml | 8 | ||||
| -rw-r--r-- | config/locales/en.yml | 9 | 
3 files changed, 17 insertions, 8 deletions
| diff --git a/app/views/errors/not_found.html.haml b/app/views/errors/not_found.html.haml index 22b6a55..75cb889 100644 --- a/app/views/errors/not_found.html.haml +++ b/app/views/errors/not_found.html.haml @@ -1,7 +1,7 @@  .hero-unit -  %h1 Page not found. -  %h2 The page you were looking for doesn't exist. -  %p.lead You may have mistyped the address or the page may have moved. +  %h1=t :not_found_title +  %h2=t :not_found_subtitle +  %p.lead=t :not_found_lead    %a.btn.btn-primary.btn-large{href:'/'}      %i.icon-home.icon-white -    Home +    =t :home diff --git a/app/views/errors/server_error.html.haml b/app/views/errors/server_error.html.haml index 173cdad..68baf20 100644 --- a/app/views/errors/server_error.html.haml +++ b/app/views/errors/server_error.html.haml @@ -1,7 +1,7 @@  .hero-unit -  %h1 Ouch! -  %h2 We ran into a server error. -  %p.lead The problem has been logged and we will look into it. +  %h1=t :server_error_title +  %h2=t :server_error_subtitle +  %p.lead=t :server_error_lead    %a.btn.btn-primary.btn-large{href:'/'}      %i.icon-home.icon-white -    Home +    =t :home diff --git a/config/locales/en.yml b/config/locales/en.yml index cebf075..899d659 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,10 +1,19 @@  en: +  home: Home    privacy_policy: Privacy Policy    terms_of_service: Terms of Service    pricing: Pricing    about: About Us    contact: Contact + +  not_found_title: Page not found. +  not_found_subtitle: "The page you were looking for doesn't exist." +  not_found_lead: "You may have mistyped the address or the page may have moved." +  server_error_title: Ouch! +  server_error_subtitle: We ran into a server error. +  server_error_lead: The problem has been logged and we will look into it.    no_such_thing: "No such %{thing}." +    thing_was_successfully_created: "%{thing} was successfully created."    create_thing: "Create %{thing}" | 
