fix flash message for updating filters. fixes #25

This commit is contained in:
Carl Chenet 2016-11-23 17:39:59 +01:00
parent 49360a8c69
commit 8e60bc3829
3 changed files with 3 additions and 1 deletions

View file

@ -26,7 +26,7 @@ class FiltersController < ApplicationController
cookies.permanent[TAG_FILTER_COOKIE] = new_tags.map(&:tag).join(",")
end
flash[:success] = "Your filters have been updated."
flash[:success] = I18n.t 'controllers.filters_controller.flashfilterupdate'
redirect_to filters_path
end

View file

@ -341,6 +341,7 @@ en:
threadstitle: "Your Threads"
filters_controller:
filterstitle: "Tag Filters"
flashfilterupdate: "Your filters have been updated."
home_controller:
recenttitle: "Recent Stories"
abouttitle: "About"

View file

@ -354,6 +354,7 @@ fr:
threadstitle: "Vos sujets"
filters_controller:
filterstitle: "Filtres"
flashfilterupdate: "Vos filtres ont été mis à jour."
home_controller:
recenttitle: "Infos récentes"
abouttitle: "À propos"