Replace hardcoded update notice when updating translations with proper I18n
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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."
|
||||
|
||||
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user