Commit 16d81586c21a816d2b45597c88e34f360000bd35

Authored by Cyril Mougel
1 parent da637097
Exists in master and in 1 other branch production

Extract I18n key from views/layouts/application.html.haml

app/views/layouts/application.html.haml
@@ -2,7 +2,8 @@ @@ -2,7 +2,8 @@
2 %html 2 %html
3 %head 3 %head
4 %title 4 %title
5 - Errbit — 5 + = t('.title')
  6 + —
6 = yield(:page_title).present? ? yield(:page_title) : yield(:title) 7 = yield(:page_title).present? ? yield(:page_title) : yield(:title)
7 %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "content-type" }/ 8 %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "content-type" }/
8 = favicon_link_tag 9 = favicon_link_tag
@@ -14,7 +15,7 @@ @@ -14,7 +15,7 @@
14 %body{:id => controller.controller_name, :class => controller.action_name} 15 %body{:id => controller.controller_name, :class => controller.action_name}
15 #header 16 #header
16 %div 17 %div
17 - = link_to 'Errbit', root_path, :id => 'site-name' 18 + = link_to t('.errbit'), root_path, :id => 'site-name'
18 = render 'shared/navigation' if current_user 19 = render 'shared/navigation' if current_user
19 = render 'shared/session' 20 = render 'shared/session'
20 #content-wrapper 21 #content-wrapper
@@ -30,5 +31,5 @@ @@ -30,5 +31,5 @@
30 - if content_for?(:comments) 31 - if content_for?(:comments)
31 #content-comments 32 #content-comments
32 = yield :comments 33 = yield :comments
33 - #footer Powered by #{link_to 'Errbit', 'http://github.com/errbit/errbit', :target => '_blank'}: the open source error catcher. 34 + #footer= t('.powered_html', :link => link_to(t('.errbit'), 'http://github.com/errbit/errbit', :target => '_blank'))
34 = yield :scripts 35 = yield :scripts
config/locales/en.yml
@@ -15,6 +15,11 @@ en: @@ -15,6 +15,11 @@ en:
15 one: "%{count} err has" 15 one: "%{count} err has"
16 other: "%{count} errs have" 16 other: "%{count} errs have"
17 17
  18 + layouts:
  19 + application:
  20 + title: 'Errbit'
  21 + errbit: 'Errbit'
  22 + powered_html: "Powered by %{link} : the open source error catcher."
18 23
19 controllers: 24 controllers:
20 users: 25 users:
@@ -24,6 +29,7 @@ en: @@ -24,6 +29,7 @@ en:
24 error: "You can't delete yourself" 29 error: "You can't delete yourself"
25 update: 30 update:
26 success: "%{name}'s information was successfully updated." 31 success: "%{name}'s information was successfully updated."
  32 +
27 devise: 33 devise:
28 registrations: 34 registrations:
29 signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.' 35 signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.'