adds i18n to header

ref: #38
This commit is contained in:
Juanjo Bazán
2015-07-28 18:49:41 +02:00
parent 6a6804f73b
commit efc1b71dbf
3 changed files with 29 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
<div class="row">
<div class="small-12 column">
<div class="right">
<a href="#">Portal de Transparencia</a> | <a href="#">Datos abiertos</a>
<a href="#"><%= t("layouts.header.external_link_transparency") %></a> | <a href="#"><%= t("layouts.header.external_link_opendata") %></a>
</div>
</div>
</div>
@@ -15,10 +15,10 @@
<li class="name">
<%= link_to root_path do %>
<%= image_tag('header-logo-madrid.png', :class => 'left', :size => '96x96') %>
gobierno<strong>abierto</strong> | <span>Participación</span>
<%= t("layouts.header.open_gov", open: "<strong>#{t('layouts.header.open')}</strong>").html_safe %> | <span><%= t("layouts.header.participation") %></span>
<% end %>
</li>
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
<li class="toggle-topbar menu-icon"><a href="#"><span><%= t("layouts.header.menu") %></span></a></li>
</ul>
<section class="top-bar-section">
@@ -30,9 +30,9 @@
<% if home_page? %>
<div class="row">
<div class="small-12 column text-center">
<h1>Estamos abriendo Madrid</h1>
<h2>Para que todos los madrileños decidamos que ciudad queremos tener.</h2>
<%= link_to 'Participa en los últimos debates e iniciativas', new_debate_path, :class => 'button radius' %>
<h1><%= t("layouts.header.open_city") %></h1>
<h2><%= t("layouts.header.open_city_slogan") %></h2>
<%= link_to t("layouts.header.create_debate"), new_debate_path, :class => 'button radius' %>
</div>
</div>
<% end %>

View File

@@ -1,4 +1,15 @@
en:
layouts:
header:
external_link_transparency: Transparency
external_link_opendata: Open data
open_gov: "%{open} government"
open: "Open"
participation: Participation
menu: Menu
open_city: We are opening Madrid
open_city_slogan: So the citizens can decide what kind of city they want.
create_debate: Create a debate
debates:
debate:
debate: Debate

View File

@@ -1,4 +1,15 @@
es:
layouts:
header:
external_link_transparency: Portal de Transparencia
external_link_opendata: Datos abiertos
open_gov: "Gobierno %{open}"
open: "abierto"
participation: Participación
menu: Menú
open_city: Estamos abriendo Madrid
open_city_slogan: Para que todos los madrileños decidamos que ciudad queremos tener.
create_debate: Crea un debate
debates:
debate:
debate: Debate