From 9eeda2d7e35b741f6ccbc08604510e99bec2e646 Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Sat, 25 Apr 2015 12:01:20 -0500 Subject: [PATCH] Internationalize login_box --- app/views/layouts/_login_box.html.erb | 20 ++++++++++---------- config/locales/views/layouts/en.yml | 13 +++++++++++++ 2 files changed, 23 insertions(+), 10 deletions(-) create mode 100644 config/locales/views/layouts/en.yml diff --git a/app/views/layouts/_login_box.html.erb b/app/views/layouts/_login_box.html.erb index 46cefeb0..5c2bbb33 100644 --- a/app/views/layouts/_login_box.html.erb +++ b/app/views/layouts/_login_box.html.erb @@ -6,22 +6,22 @@ <% else %> -
  • Login
  • -
  • Register
  • +
  • <%= link_to t('.login'), login_path %>
  • +
  • <%= link_to t('.register'), signup_path %>
  • <% end %> diff --git a/config/locales/views/layouts/en.yml b/config/locales/views/layouts/en.yml new file mode 100644 index 00000000..40ffe57a --- /dev/null +++ b/config/locales/views/layouts/en.yml @@ -0,0 +1,13 @@ +en: + layouts: + login_box: + logged_in_as: Logged in as %{username} + my_content: My Content + account_settings: Account Settings + privacy_policy: Privacy Policy + report_a_problem: Report a problem + give_feedback: Give feedback + request_a_feature: Request a feature + log_out: Log out + login: Login + register: Register \ No newline at end of file