diff --git a/app/views/layouts/application.html.slim b/app/views/layouts/application.html.slim index 222f7b7..5c927cf 100644 --- a/app/views/layouts/application.html.slim +++ b/app/views/layouts/application.html.slim @@ -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 diff --git a/app/views/supporters/_form.slim b/app/views/supporters/_form.slim index c067726..2ff71f6 100644 --- a/app/views/supporters/_form.slim +++ b/app/views/supporters/_form.slim @@ -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' diff --git a/config/locales/de.yml b/config/locales/de.yml index e19d9c6..8671f31 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -16,6 +16,7 @@ de: supporters: form: + lang: Sprache logo: Logo der Initiative title_html: Ja, ich will Cannabis in der Schweiz legalisieren submit: Unterstützung zusichern diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 4ca2ac6..e25e6dc 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -16,6 +16,7 @@ fr: supporters: form: + lang: Langue logo: Logo de l'initiative title_html: Oui, je veux légaliser le cannabis en Suisse. submit: Confirmer mon soutien diff --git a/config/locales/it.yml b/config/locales/it.yml index 9fa5070..f2623ea 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -16,6 +16,7 @@ it: supporters: form: + lang: Lingua logo: Logo dell'iniziativa title_html: Si, voglio legalizzare la cannabis in Svizzera submit: Garantire il sostengo