Commit 105d687a authored by Carl Chenet's avatar Carl Chenet

translate grouped error message for url already posted days ago

parent e1188973
......@@ -71,8 +71,7 @@ class Story < ActiveRecord::Base
if self.new_record? && (s = Story.find_similar_by_url(self.url))
self.already_posted_story = s
if s.is_recent?
errors.add(:url, "has already been submitted within the past " <<
"#{RECENT_DAYS} days")
errors.add(:url, I18n.t('models.story.alreadysubmitted', :days => "#{RECENT_DAYS}"))
......@@ -41,6 +41,7 @@ en:
unmerged: "unmerged from another story"
changedfromto: "changed %{story} from %{stfrom} to %{stto}"
nonmedia: "Must have at least one non-media (PDF, video) tag. If no tags apply to your content, it probably doesn't belong here."
alreadysubmitted: "Url has already been submitted within the past %{days} days."
offtopicvote: "Off-topic"
incorrectvote: "Incorrect"
......@@ -53,6 +53,7 @@ fr:
unmerged: "dé-fusionnée depuis une autre info"
changedfromto: "%{story} changée de %{stfrom} à %{stto}"
nonmedia: "Une étiquette autre que PDF ou video doit être présente"
alreadysubmitted: "a déjà été proposée il y a %{days} jours"
offtopicvote: "Hors-sujet"
incorrectvote: "Incorrecte"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment