Internationalize application layout

This commit is contained in:
Robert Richter 2015-04-25 13:21:43 -05:00
parent 3773e71f9b
commit 8cf88fd5d0
2 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="<%= I18n.locale %>">
<head>
<title>Indent</title>
<%= stylesheet_link_tag "application", :media => "all" %>
@ -28,10 +28,10 @@
<div class="row">
<div class="col-md-12">
<p>
Indent &middot;
<a href="/about/attribution">Image Attribution</a> &middot;
<a href="/about/privacy">Privacy Policy</a> &middot;
<a href="https://github.com/drusepth/Indent">Source Code</a>
<%= t '.brand' %> &middot;
<%= link_to t('.image_attribution'), attribution_info_path %> &middot;
<%= link_to t('.privacy_policy'), privacy_info_path %> &middot;
<%= link_to t('.source_code'), 'https://github.com/drusepth/Indent' %>
</p>
</div>
</div>

View File

@ -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