diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index a8827d1..704243e 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -2,7 +2,8 @@ %html %head %title - Errbit — + = t('.title') + — = yield(:page_title).present? ? yield(:page_title) : yield(:title) %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "content-type" }/ = favicon_link_tag @@ -14,7 +15,7 @@ %body{:id => controller.controller_name, :class => controller.action_name} #header %div - = link_to 'Errbit', root_path, :id => 'site-name' + = link_to t('.errbit'), root_path, :id => 'site-name' = render 'shared/navigation' if current_user = render 'shared/session' #content-wrapper @@ -30,5 +31,5 @@ - if content_for?(:comments) #content-comments = yield :comments - #footer Powered by #{link_to 'Errbit', 'http://github.com/errbit/errbit', :target => '_blank'}: the open source error catcher. + #footer= t('.powered_html', :link => link_to(t('.errbit'), 'http://github.com/errbit/errbit', :target => '_blank')) = yield :scripts diff --git a/config/locales/en.yml b/config/locales/en.yml index cd32e20..cb03918 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -15,6 +15,11 @@ en: one: "%{count} err has" other: "%{count} errs have" + layouts: + application: + title: 'Errbit' + errbit: 'Errbit' + powered_html: "Powered by %{link} : the open source error catcher." controllers: users: @@ -24,6 +29,7 @@ en: error: "You can't delete yourself" update: success: "%{name}'s information was successfully updated." + devise: registrations: 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.' -- libgit2 0.21.2