From d08fc087694309a94813e575907116e2b2ab6e68 Mon Sep 17 00:00:00 2001 From: Manu Date: Tue, 15 Jan 2019 15:10:14 -0500 Subject: [PATCH] added i18n to process form --- app/views/admin/legislation/processes/_form.html.erb | 6 +++--- config/locales/en/admin.yml | 3 +++ config/locales/es/admin.yml | 3 +++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/views/admin/legislation/processes/_form.html.erb b/app/views/admin/legislation/processes/_form.html.erb index bdfce14ac..1cfb699ee 100644 --- a/app/views/admin/legislation/processes/_form.html.erb +++ b/app/views/admin/legislation/processes/_form.html.erb @@ -210,17 +210,17 @@
-

Process banner color

+

<%= t("admin.legislation.processes.form.banner_title") %>

- <%= f.label :sections, "Background color" %> + <%= f.label :sections, t("admin.legislation.processes.form.banner_background_color") %> <%= color_field(:process, :background_color, id: 'banner_background_color_picker') %> <%= f.text_field :background_color, label: false, id: 'banner_background_color' %>
- <%= f.label :sections, "Font color" %> + <%= f.label :sections, t("admin.legislation.processes.form.banner_font_color") %> <%= color_field(:process, :font_color, id: 'banner_font_color_picker') %> <%= f.text_field :font_color, label: false, id: 'banner_font_color' %>
diff --git a/config/locales/en/admin.yml b/config/locales/en/admin.yml index 7033fefbf..0863f8a9f 100644 --- a/config/locales/en/admin.yml +++ b/config/locales/en/admin.yml @@ -415,6 +415,9 @@ en: homepage: Description homepage_description: Here you can explain the content of the process homepage_enabled: Homepage enabled + banner_title: Banner colors + banner_background_color: Background colour + banner_font_color: Font colour index: create: New process delete: Delete diff --git a/config/locales/es/admin.yml b/config/locales/es/admin.yml index 0075225c7..c423969c4 100644 --- a/config/locales/es/admin.yml +++ b/config/locales/es/admin.yml @@ -415,6 +415,9 @@ es: homepage: Descripción homepage_description: Aquí puedes explicar el contenido del proceso homepage_enabled: Homepage activada + banner_title: Colores del banner + banner_background_color: Color de fondo + banner_font_color: Color del texto index: create: Nuevo proceso delete: Borrar