logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 598d3defd5f7ad84ed0c264280f17f404eb45314
parent: 7f8044d91302adbece04db9586384b1a79ef1a6e
Author: Matt Jankowski <mjankowski@thoughtbot.com>
Date:   Thu, 20 Apr 2017 07:09:31 -0400

Use default locale for html lang in layouts (#2212)


Diffstat:

Mapp/views/layouts/application.html.haml2+-
Mapp/views/layouts/embedded.html.haml2+-
Mapp/views/layouts/error.html.haml2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml @@ -1,5 +1,5 @@ !!! 5 -%html{:lang => 'en'} +%html{:lang => I18n.locale} %head %meta{:charset => 'utf-8'}/ %meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1'}/ diff --git a/app/views/layouts/embedded.html.haml b/app/views/layouts/embedded.html.haml @@ -1,5 +1,5 @@ !!! 5 -%html{:lang => 'en'} +%html{:lang => I18n.locale} %head %meta{:charset => 'utf-8'}/ = stylesheet_link_tag 'application', media: 'all' diff --git a/app/views/layouts/error.html.haml b/app/views/layouts/error.html.haml @@ -1,5 +1,5 @@ !!! -%html{:lang => "en"} +%html{:lang => I18n.locale} %head %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/ %meta{:charset => "utf-8"}/