From 97e30cc136a72092abba19f1b601ad9d5ebd5257 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 5 May 2014 12:29:21 +0200 Subject: i18n for error pages --- app/views/errors/not_found.html.haml | 8 ++++---- app/views/errors/server_error.html.haml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'app/views') 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 -- cgit v1.2.3