translate missing string for hat request
This commit is contained in:
parent
2e0697d4a3
commit
2f495bba7d
|
@ -20,9 +20,8 @@ class HatRequest < ActiveRecord::Base
|
||||||
m = Message.new
|
m = Message.new
|
||||||
m.author_user_id = user.id
|
m.author_user_id = user.id
|
||||||
m.recipient_user_id = self.user_id
|
m.recipient_user_id = self.user_id
|
||||||
m.subject = "Your hat \"#{self.hat}\" has been approved"
|
m.subject = I18n.t 'models.hat.grantsubject', :hat => "#{self.hat}"
|
||||||
m.body = "This hat may now be worn when commenting.\n\n" +
|
m.body = raw(I18n.t 'models.hat.grantbody')
|
||||||
"This is an automated message."
|
|
||||||
m.save!
|
m.save!
|
||||||
|
|
||||||
self.destroy
|
self.destroy
|
||||||
|
@ -34,7 +33,7 @@ class HatRequest < ActiveRecord::Base
|
||||||
m = Message.new
|
m = Message.new
|
||||||
m.author_user_id = user.id
|
m.author_user_id = user.id
|
||||||
m.recipient_user_id = self.user_id
|
m.recipient_user_id = self.user_id
|
||||||
m.subject = "Your request for hat \"#{self.hat}\" has been rejected"
|
m.subject = I18n.t 'models.hat.rejectsubject', :hat => "#{self.hat}"
|
||||||
m.body = reason
|
m.body = reason
|
||||||
m.save!
|
m.save!
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,9 @@ en:
|
||||||
slayeddragon: "slayed dragon"
|
slayeddragon: "slayed dragon"
|
||||||
metooerror: "Please just upvote the parent post instead."
|
metooerror: "Please just upvote the parent post instead."
|
||||||
hat:
|
hat:
|
||||||
|
grantsubject: "Your hat %{hat} has been approved"
|
||||||
|
grantbody: "This hat may now be worn when commenting.\n\nThis is an automated message."
|
||||||
|
rejectsubject: "Your request for hat %{hat} has been rejected"
|
||||||
grantedby: "<span class=\"hat hat_%{hat}\" title=\"Granted by %{inviteuser} on %{invitedate}\""
|
grantedby: "<span class=\"hat hat_%{hat}\" title=\"Granted by %{inviteuser} on %{invitedate}\""
|
||||||
moderation:
|
moderation:
|
||||||
storyeditedby: "Your story has been edited by "
|
storyeditedby: "Your story has been edited by "
|
||||||
|
|
|
@ -48,6 +48,9 @@ fr:
|
||||||
slayeddragon: "le dragon a été terrassé"
|
slayeddragon: "le dragon a été terrassé"
|
||||||
metooerror: "Merci de voter pour le commentaire à la place."
|
metooerror: "Merci de voter pour le commentaire à la place."
|
||||||
hat:
|
hat:
|
||||||
|
grantsubject: "Votre chapeau %{hat} a été approuvé"
|
||||||
|
grantbody: "Vous pouvez maintenant porter ce chapeau quand vous commentez.\n\nCeci est un message automatique."
|
||||||
|
rejectsubject: "Votre demande du chapeau %{hat} a été rejetée"
|
||||||
grantedby: "<span class=\"hat hat_%{hat}\" title=\"Accordé par %{inviteuser} le %{invitedate}\""
|
grantedby: "<span class=\"hat hat_%{hat}\" title=\"Accordé par %{inviteuser} le %{invitedate}\""
|
||||||
moderation:
|
moderation:
|
||||||
storyeditedby: "Votre info a été éditée par "
|
storyeditedby: "Votre info a été éditée par "
|
||||||
|
|
Loading…
Reference in a new issue