Add internationalization (#114)

🇬🇧 and 🇮🇹
This commit is contained in:
Riccardo Graziosi
2022-06-05 11:40:43 +02:00
committed by GitHub
parent ba86e81aa0
commit 78049a820c
71 changed files with 802 additions and 266 deletions

View File

@@ -1,24 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=utf-8' http-equiv='content-type' />
</head>
<body>
<h1>Hello, <%= @user.full_name %></h1>
<p>
There is a new reply by <b><%= @comment.user.full_name %></b> on your comment from post <b><%= @comment.post.title %></b>:
</p>
<p>
<i><%= @comment.body %></i>
</p>
<p>
<%= link_to "Click here", post_url(@comment.post) %> to have your say!
</p>
<p>
Have a great day!
</p>
</body>
<footer>
Annoyed? You can <%= link_to("turn off notifications here", edit_user_registration_url) %>.
</footer>
</html>
<p>
<%= t('user_mailer.notify_comment_owner.body', { user: @comment.user.full_name, post: @comment.post.title }) %>
</p>
<p>
<i><%= @comment.body %></i>
</p>
<p>
<%= link_to t('user_mailer.learn_more'), post_url(@comment.post) %>
</p>