missing i18n for dragons

This commit is contained in:
Carl Chenet 2017-05-17 11:02:32 +02:00
parent 0f7a901a55
commit 1ac81cbe2a
3 changed files with 6 additions and 2 deletions

View file

@ -176,7 +176,7 @@ class Comment < ActiveRecord::Base
m = Moderation.new
m.comment_id = self.id
m.moderator_user_id = user.id
m.action = "turned into a dragon"
m.action = I18n.t('models.comment.turnedintodragon')
m.save
self.save(:validate => false)
@ -191,7 +191,7 @@ class Comment < ActiveRecord::Base
m = Moderation.new
m.comment_id = self.id
m.moderator_user_id = user.id
m.action = "slayed dragon"
m.action = I18n.t('models.comment.slayeddragon')
m.save
self.save(:validate => false)

View file

@ -20,6 +20,8 @@ en:
storyidcannotbeblank: "A story ID cannot be blank."
deletedcomment: "deleted comment"
threadremovedby: "Thread removed by moderator %{modoname} : %{modreason}"
turnedintodragon: "turned into a dragon"
slayeddragon: "slayed dragon"
moderation:
storyeditedby: "Your story has been edited by "
usersuggestions: "user suggestions"

View file

@ -32,6 +32,8 @@ fr:
storyidcannotbeblank: "Un ID d'info ne peut pas être vide."
deletedcomment: "commentaire supprimé"
threadremovedby: "Fil supprimé par le modérateur %{modoname} : %{modreason}"
turnedintodragon: "transformé en dragon"
slayeddragon: "le dragon a été terrassé"
moderation:
storyeditedby: "Votre info a été éditée par "
usersuggestions: "suggestions d'utilisateur"