translate grouped error message for url already posted days ago
This commit is contained in:
parent
e11889734d
commit
105d687a4c
|
@ -71,8 +71,7 @@ class Story < ActiveRecord::Base
|
||||||
if self.new_record? && (s = Story.find_similar_by_url(self.url))
|
if self.new_record? && (s = Story.find_similar_by_url(self.url))
|
||||||
self.already_posted_story = s
|
self.already_posted_story = s
|
||||||
if s.is_recent?
|
if s.is_recent?
|
||||||
errors.add(:url, "has already been submitted within the past " <<
|
errors.add(:url, I18n.t('models.story.alreadysubmitted', :days => "#{RECENT_DAYS}"))
|
||||||
"#{RECENT_DAYS} days")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
|
@ -41,6 +41,7 @@ en:
|
||||||
unmerged: "unmerged from another story"
|
unmerged: "unmerged from another story"
|
||||||
changedfromto: "changed %{story} from %{stfrom} to %{stto}"
|
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."
|
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."
|
||||||
vote:
|
vote:
|
||||||
offtopicvote: "Off-topic"
|
offtopicvote: "Off-topic"
|
||||||
incorrectvote: "Incorrect"
|
incorrectvote: "Incorrect"
|
||||||
|
|
|
@ -53,6 +53,7 @@ fr:
|
||||||
unmerged: "dé-fusionnée depuis une autre info"
|
unmerged: "dé-fusionnée depuis une autre info"
|
||||||
changedfromto: "%{story} changée de %{stfrom} à %{stto}"
|
changedfromto: "%{story} changée de %{stfrom} à %{stto}"
|
||||||
nonmedia: "Une étiquette autre que PDF ou video doit être présente"
|
nonmedia: "Une étiquette autre que PDF ou video doit être présente"
|
||||||
|
alreadysubmitted: "a déjà été proposée il y a %{days} jours"
|
||||||
vote:
|
vote:
|
||||||
offtopicvote: "Hors-sujet"
|
offtopicvote: "Hors-sujet"
|
||||||
incorrectvote: "Incorrecte"
|
incorrectvote: "Incorrecte"
|
||||||
|
|
Loading…
Reference in a new issue