diff --git a/app/models/comment.rb b/app/models/comment.rb index f838d24..22110cb 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -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) diff --git a/config/locales/en.yml b/config/locales/en.yml index 09632f3..23104f4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 9e8262b..8d551c2 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -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"