summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-05 12:29:21 +0200
committerAzul <azul@leap.se>2014-05-19 14:23:25 +0200
commit97e30cc136a72092abba19f1b601ad9d5ebd5257 (patch)
tree0b94946edc7abc5d8df4f7941aea0db24575fd0d
parent89e9154499f67fd8c63e1098b3e50b317c690dd0 (diff)
i18n for error pages
-rw-r--r--app/views/errors/not_found.html.haml8
-rw-r--r--app/views/errors/server_error.html.haml8
-rw-r--r--config/locales/en.yml9
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}"