From 32711e0341a3361e55d35d8405488f65e6e2520b Mon Sep 17 00:00:00 2001 From: decabeza Date: Tue, 20 Mar 2018 19:52:11 +0100 Subject: [PATCH] Adds map skip checkbox i18n for budget investments --- app/views/budgets/investments/_form.html.erb | 3 ++- app/views/map_locations/_form_fields.html.erb | 6 +++--- app/views/proposals/_form.html.erb | 3 ++- config/locales/en/budgets.yml | 1 + config/locales/es/budgets.yml | 1 + 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/views/budgets/investments/_form.html.erb b/app/views/budgets/investments/_form.html.erb index c4c49a4aa..9969261b8 100644 --- a/app/views/budgets/investments/_form.html.erb +++ b/app/views/budgets/investments/_form.html.erb @@ -38,7 +38,8 @@ label: t("budgets.investments.form.map_location"), help: t("budgets.investments.form.map_location_instructions"), remove_marker_label: t("budgets.investments.form.map_remove_marker"), - parent_class: "budget_investment" %> + parent_class: "budget_investment", + i18n_namespace: "budgets.investments" %> <% end %> diff --git a/app/views/map_locations/_form_fields.html.erb b/app/views/map_locations/_form_fields.html.erb index 41423b50d..be95b0888 100644 --- a/app/views/map_locations/_form_fields.html.erb +++ b/app/views/map_locations/_form_fields.html.erb @@ -19,12 +19,12 @@
<%= form.label :skip_map do %> - <%= form.check_box :skip_map, - title: t("proposals.form.map_skip_checkbox"), + <%= form.check_box :skip_map, + title: t("proposals.form.map_skip_checkbox"), label: false, class: 'js-toggle-map' %> - <%= t("proposals.form.map_skip_checkbox") %> + <%= t("#{i18n_namespace}.form.map_skip_checkbox") %> <% end %>
diff --git a/app/views/proposals/_form.html.erb b/app/views/proposals/_form.html.erb index f60397b17..ae6e329bc 100644 --- a/app/views/proposals/_form.html.erb +++ b/app/views/proposals/_form.html.erb @@ -72,7 +72,8 @@ label: t("proposals.form.map_location"), help: t("proposals.form.map_location_instructions"), remove_marker_label: t("proposals.form.map_remove_marker"), - parent_class: "proposal" %> + parent_class: "proposal", + i18n_namespace: "proposals" %> <% end %> diff --git a/config/locales/en/budgets.yml b/config/locales/en/budgets.yml index b50e122a8..f55bafeed 100644 --- a/config/locales/en/budgets.yml +++ b/config/locales/en/budgets.yml @@ -71,6 +71,7 @@ en: map_location_instructions: "Navigate the map to the location and place the marker." map_remove_marker: "Remove map marker" location: "Location additional info" + map_skip_checkbox: "This investment doesn't have a concrete location or I'm not aware of it." index: title: Participatory budgeting unfeasible: Unfeasible investment projects diff --git a/config/locales/es/budgets.yml b/config/locales/es/budgets.yml index 2bf7cf85a..d02f2380e 100644 --- a/config/locales/es/budgets.yml +++ b/config/locales/es/budgets.yml @@ -71,6 +71,7 @@ es: map_location_instructions: "Navega por el mapa hasta la ubicación y coloca el marcador." map_remove_marker: "Eliminar el marcador" location: "Información adicional de la ubicación" + map_skip_checkbox: "Este proyecto no tiene una ubicación concreta o no la conozco." index: title: Presupuestos participativos unfeasible: Proyectos de gasto no viables