Using proper language navigating

This commit is contained in:
2017-02-26 17:01:34 +01:00
parent 00be66373e
commit c85e2a6d45
5 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
html
html lang="#{I18n.locale}"
head
title #CH420 - #{content_for(:title)}
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
+5 -4
View File
@@ -5,14 +5,15 @@
h1
= title t('.title_html')
.col-xs-12.col-md-3
.pull-right
a href='/'
nav.pull-right
h2.sr-only =t('.lang')
a href='/' lang='de'
| Deutsch
|   |  
a href='/it'
a href='/it' lang='it'
| Italiano
|   |  
a href='/fr'
a href='/fr' lang='fr'
| Français
br/
= render 'shared/counter'
+1
View File
@@ -16,6 +16,7 @@ de:
supporters:
form:
lang: Sprache
logo: Logo der Initiative
title_html: Ja, ich will <strong class="text-success">Cannabis</strong> in der Schweiz <strong class="text-success">legalisieren</strong>
submit: Unterstützung zusichern
+1
View File
@@ -16,6 +16,7 @@ fr:
supporters:
form:
lang: Langue
logo: Logo de l'initiative
title_html: Oui, je veux <strong class="text-success">légaliser le cannabis</strong> en Suisse.
submit: Confirmer mon soutien
+1
View File
@@ -16,6 +16,7 @@ it:
supporters:
form:
lang: Lingua
logo: Logo dell'iniziativa
title_html: Si, voglio <strong class="text-success">legalizzare</strong> la <strong class="text-success">cannabis in Svizzera</strong>
submit: Garantire il sostengo