fix flash info about unknown message

This commit is contained in:
Carl Chenet 2016-11-24 14:16:28 +01:00
parent f1677cc783
commit 6960cb20a1
3 changed files with 3 additions and 1 deletions

View file

@ -143,7 +143,7 @@ private
end
end
flash[:error] = "Could not find message."
flash[:error] = I18n.t 'controllers.messages_controller.flashcannotfindmsg'
redirect_to "/messages"
return false
end

View file

@ -367,6 +367,7 @@ en:
messagessenttitle: "Messages Sent"
flashdelmsg: "Deleted %{nbmsg} message%{plural}."
pluralmsg: "s"
flashcannotfindmsg: "Could not find message."
search_controller:
searchtitle: "Search"
stories_controller:

View file

@ -380,6 +380,7 @@ fr:
messagessenttitle: "Messages envoyés"
flashdelmsg: "%{nbmsg} message%{plural} supprimé%{plural}."
pluralmsg: "s"
flashcannotfindmsg: "Message non trouvé."
search_controller:
searchtitle: "Rechercher"
stories_controller: