From 1ac81cbe2a86e565680fc59b1159a5c91483d818 Mon Sep 17 00:00:00 2001 From: Carl Chenet Date: Wed, 17 May 2017 11:02:32 +0200 Subject: [PATCH] missing i18n for dragons --- app/models/comment.rb | 4 ++-- config/locales/en.yml | 2 ++ config/locales/fr.yml | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) 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"