From 8cf88fd5d04ae1b17dc19d25fb4cba08ceb64ea2 Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Sat, 25 Apr 2015 13:21:43 -0500 Subject: [PATCH] Internationalize application layout --- app/views/layouts/application.html.erb | 10 +++++----- config/locales/views/layouts/en.yml | 5 +++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 56481aee..45e79c85 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,5 +1,5 @@ - + Indent <%= stylesheet_link_tag "application", :media => "all" %> @@ -28,10 +28,10 @@

- Indent · - Image Attribution · - Privacy Policy · - Source Code + <%= t '.brand' %> · + <%= link_to t('.image_attribution'), attribution_info_path %> · + <%= link_to t('.privacy_policy'), privacy_info_path %> · + <%= link_to t('.source_code'), 'https://github.com/drusepth/Indent' %>

diff --git a/config/locales/views/layouts/en.yml b/config/locales/views/layouts/en.yml index ab7993a2..1149840e 100644 --- a/config/locales/views/layouts/en.yml +++ b/config/locales/views/layouts/en.yml @@ -1,5 +1,10 @@ en: layouts: + application: + brand: Indent + image_attribution: Image Attribution + privacy_policy: Privacy Policy + source_code: Source Code login_box: logged_in_as: Logged in as %{username} my_content: My Content