From 8015596cb8a99b2ea96d94f0fb86d632b83e3812 Mon Sep 17 00:00:00 2001 From: Angel Perez Date: Thu, 26 Jul 2018 19:39:49 -0400 Subject: [PATCH] Replace hardcoded update notice when updating translations with proper I18n --- .../admin/site_customization/information_texts_controller.rb | 3 ++- config/locales/en/responders.yml | 1 + config/locales/es/responders.yml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/admin/site_customization/information_texts_controller.rb b/app/controllers/admin/site_customization/information_texts_controller.rb index 8a523f989..5227b3a78 100644 --- a/app/controllers/admin/site_customization/information_texts_controller.rb +++ b/app/controllers/admin/site_customization/information_texts_controller.rb @@ -27,7 +27,8 @@ class Admin::SiteCustomization::InformationTextsController < Admin::SiteCustomiz end - redirect_to admin_site_customization_information_texts_path, notice: "Translation updated successfully" + redirect_to admin_site_customization_information_texts_path, + notice: t('flash.actions.update.translation') end private diff --git a/config/locales/en/responders.yml b/config/locales/en/responders.yml index f91cb807c..e11b071f2 100644 --- a/config/locales/en/responders.yml +++ b/config/locales/en/responders.yml @@ -29,6 +29,7 @@ en: budget_investment: "Investment project updated succesfully." topic: "Topic updated successfully." valuator_group: "Valuator group updated successfully" + translation: "Translation updated successfully" destroy: spending_proposal: "Spending proposal deleted succesfully." budget_investment: "Investment project deleted succesfully." diff --git a/config/locales/es/responders.yml b/config/locales/es/responders.yml index 3674a0290..1910acd95 100644 --- a/config/locales/es/responders.yml +++ b/config/locales/es/responders.yml @@ -29,6 +29,7 @@ es: budget_investment: "Proyecto de gasto actualizado correctamente" topic: "Tema actualizado correctamente." valuator_group: "Grupo de evaluadores actualizado correctamente" + translation: "Traducción actualizada correctamente" destroy: spending_proposal: "Propuesta de inversión eliminada." budget_investment: "Proyecto de gasto eliminado."