diff --git a/app/assets/images/language_select.png b/app/assets/images/language_select.png new file mode 100644 index 000000000..e0c4e6411 Binary files /dev/null and b/app/assets/images/language_select.png differ diff --git a/app/assets/stylesheets/participacion.scss b/app/assets/stylesheets/participacion.scss index d4442e11c..18303cf2e 100644 --- a/app/assets/stylesheets/participacion.scss +++ b/app/assets/stylesheets/participacion.scss @@ -436,6 +436,24 @@ footer { // 08. Forms // - - - - - - - - - - - - - - - - - - - - - - - - - +form.locale-form { + display: inline-block; + position: relative; + + select { + background-image: url("language_select.png"); + + &.js-locale-switcher { + background-color: transparent; + border: 0; + color: white; + outline: none; + padding-left: rem-calc(3); + padding-right: rem-calc(24); + } + } +} + form { label { diff --git a/app/views/shared/_locale_switcher.html.erb b/app/views/shared/_locale_switcher.html.erb index 3ab2b0a98..b60290296 100644 --- a/app/views/shared/_locale_switcher.html.erb +++ b/app/views/shared/_locale_switcher.html.erb @@ -1,10 +1,8 @@
- - <%= t("layouts.header.language") %> -
- -
-
+ <%= t("layouts.header.locale") %> +
+ +
diff --git a/config/locales/en.yml b/config/locales/en.yml index 79181cd13..df24d783d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -13,7 +13,7 @@ en: open_city_slogan: So the citizens can decide what kind of city they want. see_all_debates: See all debates my_account_link: My account - language: Site language + locale: "Site language:" administration: Administration moderation: Moderation welcome: Welcome diff --git a/config/locales/es.yml b/config/locales/es.yml index 0a953276a..8f48109c9 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -1,5 +1,5 @@ es: - locale: 'Español' + locale: "Español" layouts: header: external_link_transparency: Transparencia @@ -13,7 +13,7 @@ es: open_city_slogan: Para que todos los madrileños decidamos que ciudad queremos tener. see_all_debates: Ver todos los debates my_account_link: Mi cuenta - language: Idioma de la página + locale: "Idioma de la página:" administration: Administrar moderation: Moderar welcome: Portada