From 5dac8cb5a115e35a6215b432c9075d9b523f6426 Mon Sep 17 00:00:00 2001 From: Carl Chenet Date: Wed, 8 Feb 2017 08:42:13 +0100 Subject: [PATCH] i18n of a email reply on a mention --- app/views/email_reply/mention.text.erb | 4 ++-- config/locales/en.yml | 3 +++ config/locales/fr.yml | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/email_reply/mention.text.erb b/app/views/email_reply/mention.text.erb index 51eaf4a..de0728c 100644 --- a/app/views/email_reply/mention.text.erb +++ b/app/views/email_reply/mention.text.erb @@ -1,5 +1,5 @@ -<%= @comment.user.username %> mentioned you in a comment: +<%= t(:emailmentionreplyat, :author => "#{@comment.user.username}" %> <%= word_wrap(@comment.plaintext_comment, :line_width => 72).gsub(/\n/, "\n ") %> -Continue this discussion at <%= @comment.url %> +<%= t(:emailmentioncontinueto) %><%= @comment.url %> diff --git a/config/locales/en.yml b/config/locales/en.yml index c71dc6f..03a09b6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -461,3 +461,6 @@ en: # reply at in views/email_reply/reply.text.erb emailreplyat: "%{author} has replied to you:" emailcontinueto: "Continue this discussion at " + # reply at in views/email_reply/mention.text.erb + emailmentionreplyat: "%{author} mentioned you in a comment:" + emailmentioncontinueto: "Continue this discussion at " diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 279255c..e51d72b 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -471,6 +471,9 @@ fr: # reply at in views/email_reply/reply.text.erb emailreplyat: "%{author} vous a répondu : " emailcontinueto: "Continuer cette discussion à " + # reply at in views/email_reply/mention.text.erb + emailmentionreplyat: "%{author} vous a mentionné dans un commentaire : " + emailmentioncontinueto: "Continuer cette discussion à " date: abbr_day_names: - dim