From 13ea6bdd6b76e72de405f7efccf10b1e9771a7d2 Mon Sep 17 00:00:00 2001 From: decabeza Date: Tue, 9 Jan 2018 19:39:51 +0100 Subject: [PATCH] add i18n and fix layout for download current selection --- app/views/admin/budget_investments/_investments.html.erb | 8 ++++---- config/locales/en/admin.yml | 1 + config/locales/es/admin.yml | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/admin/budget_investments/_investments.html.erb b/app/views/admin/budget_investments/_investments.html.erb index 86cd03e79..16d8a83a6 100644 --- a/app/views/admin/budget_investments/_investments.html.erb +++ b/app/views/admin/budget_investments/_investments.html.erb @@ -1,9 +1,9 @@ -
- <%= link_to 'download current selecction',admin_budget_budget_investments_path(csv_params), class: 'advanced-search small' %> -
+<%= link_to t("admin.budget_investments.index.download_current_selection"), + admin_budget_budget_investments_path(csv_params), + class: "float-right small" %> <% if @investments.any? %> -

<%= page_entries_info @investments %>

+

<%= page_entries_info @investments %>

diff --git a/config/locales/en/admin.yml b/config/locales/en/admin.yml index 5e7123335..02811db20 100644 --- a/config/locales/en/admin.yml +++ b/config/locales/en/admin.yml @@ -129,6 +129,7 @@ en: selected: Selected winners: Winners all: All + download_current_selection: "Download current selection" no_budget_investments: "There are no investment projects." title: Investment projects assigned_admin: Assigned administrator diff --git a/config/locales/es/admin.yml b/config/locales/es/admin.yml index 44d527ff4..f42a03b15 100644 --- a/config/locales/es/admin.yml +++ b/config/locales/es/admin.yml @@ -130,6 +130,7 @@ es: selected: Seleccionadas winners: Ganadoras all: Todas + download_current_selection: "Descargar selección actual" no_budget_investments: "No hay proyectos de inversión." title: Proyectos de inversión assigned_admin: Administrador asignado