Replace hardcoded update notice when updating translations with proper I18n

This commit is contained in:
Angel Perez
2018-07-26 19:39:49 -04:00
parent 1255389ef7
commit 8015596cb8
3 changed files with 4 additions and 1 deletions

View File

@@ -27,7 +27,8 @@ class Admin::SiteCustomization::InformationTextsController < Admin::SiteCustomiz
end 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 end
private private

View File

@@ -29,6 +29,7 @@ en:
budget_investment: "Investment project updated succesfully." budget_investment: "Investment project updated succesfully."
topic: "Topic updated successfully." topic: "Topic updated successfully."
valuator_group: "Valuator group updated successfully" valuator_group: "Valuator group updated successfully"
translation: "Translation updated successfully"
destroy: destroy:
spending_proposal: "Spending proposal deleted succesfully." spending_proposal: "Spending proposal deleted succesfully."
budget_investment: "Investment project deleted succesfully." budget_investment: "Investment project deleted succesfully."

View File

@@ -29,6 +29,7 @@ es:
budget_investment: "Proyecto de gasto actualizado correctamente" budget_investment: "Proyecto de gasto actualizado correctamente"
topic: "Tema actualizado correctamente." topic: "Tema actualizado correctamente."
valuator_group: "Grupo de evaluadores actualizado correctamente" valuator_group: "Grupo de evaluadores actualizado correctamente"
translation: "Traducción actualizada correctamente"
destroy: destroy:
spending_proposal: "Propuesta de inversión eliminada." spending_proposal: "Propuesta de inversión eliminada."
budget_investment: "Proyecto de gasto eliminado." budget_investment: "Proyecto de gasto eliminado."