21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-04-29 07:20:50 +02:00

Localization of notification mail templates

This commit is contained in:
Jérémy Lecour 2018-06-13 19:56:21 +02:00
parent 1fb78a55f9
commit f646a96953
11 changed files with 120 additions and 13 deletions

View file

@ -0,0 +1,13 @@
<%- if @check.comment.present? -%>
<p>
Vous avez saisi le commentaire suivant pour ce domaine :
<blockquote>
<%= @check.comment -%>
</blockquote>
</p>
<%- end -%>
<%- if @check.vendor.present? -%>
Fournisseur : <%= @check.vendor %>
<% end %>

View file

@ -0,0 +1,11 @@
<%- if @check.comment.present? -%>
Vous avez saisi le commentaire suivant pour ce domaine :
<%= @check.comment -%>
<%- end -%>
<%- if @check.vendor.present? -%>
Fournisseur : <%= @check.vendor %>
<% end %>

View file

@ -0,0 +1,11 @@
<br />
<br />
--
<p>
Vous avez reçu ce courriel à <%= pluralize(delay, "jour", "jours") %> avant la date d'expiration.</br>
Vous pouvez gérer les notifications pour cette vérification à ce adresse :
<%= link_to nil, edit_check_url(check) %>
</p>
<p>L'équipe Chexpire</p>

View file

@ -0,0 +1,8 @@
--
Vous avez reçu ce courriel à <%= pluralize(delay, "jour", "jours") %> avant
la date d'expiration.
Vous pouvez gérer les notifications pour cette vérification à ce adresse :
<%= edit_check_url(check) %>
L'équipe Chexpire

View file

@ -0,0 +1,10 @@
<br />
<br />
--
<p>Vous avez reçu ce courriel à <%= pluralize(delay, "jour", "jours") %> avant la dernière date d'expiration connue.<br />
Vous pouvez gérer les notifications pour cette vérification à ce adresse :
<%= link_to nil, edit_check_url(check) %>
</p>
<p>L'équipe Chexpire</p>

View file

@ -0,0 +1,8 @@
--
Vous avez reçu ce courriel à <%= pluralize(delay, "jour", "jours") %>
avant la dernière date d'expiration connue.
Vous pouvez gérer les notifications pour cette vérification à ce adresse :
<%= edit_check_url(check) %>
L'équipe Chexpire

View file

@ -0,0 +1,12 @@
<p>
Salut,
<br />
<br />
le domaine <strong><%= @check.domain %></strong> va expirer le
<strong><%= format_utc(@check.domain_expires_at) %></strong>.
</p>
<br />
<%= render "check_comment_vendor" %>
<%= render "footer_expires_soon", delay: @notification.delay, check: @check %>

View file

@ -0,0 +1,9 @@
Salut,
le domaine <%= @check.domain %> va expirer le <%= format_utc(@check.domain_expires_at) %>.
<%= render "check_comment_vendor" %>
<%= render "footer_expires_soon", delay: @notification.delay, check: @check %>

View file

@ -11,18 +11,6 @@ or delete the check by following this link:
<%= edit_check_url(@check) %>
<%- if @check.comment.present? -%>
You wrote the following comment with this domain:
<%= @check.comment -%>
<%- end -%>
<%- if @check.vendor.present? -%>
Vendor: <%= @check.vendor %>
<% end %>
<%= render "check_comment_vendor" %>
<%= render "footer_recurrent_failures", delay: @notification.delay, check: @check %>

View file

@ -0,0 +1,24 @@
<p>
Salut,
<br />
<br />
Nous avons rencontré de <strong>multiples erreurs</strong> pendant l'exécution des vérifications du domaine <strong><%= @check.domain %></strong>.
Nous ne pouvons plus interroger la base Whois pour vérifier la date d'expiration.
</p>
<p>
La dernière date d'expiration connue est le <%= format_utc(@check.domain_expires_at) %>.
<br />
Notre dernière vérification réussie a eu lieu le <%= format_utc(@check.last_success_at) %>.
</p>
<p>
Si vous avez supprimé le domaine ou ne l'avez pas renouvellé, merci de désactiver la vérification associée, avec ce lien :<br /><br />
<%= link_to nil, edit_check_url(@check) %>
</p>
<br />
<%= render "check_comment_vendor" %>
<%= render "footer_recurrent_failures", delay: @notification.delay, check: @check %>

View file

@ -0,0 +1,13 @@
Salut,
Nous avons rencontré de multiples erreurs pendant l'exécution des vérifications
du domaine <strong><%= @check.domain %></strong>.
Nous ne pouvons plus interroger la base Whois pour vérifier la date d'expiration.
Si vous avez supprimé le domaine ou ne l'avez pas renouvellé,
merci de désactiver la vérification associée, avec ce lien :
<%= edit_check_url(@check) %>
<%= render "check_comment_vendor" %>
<%= render "footer_recurrent_failures", delay: @notification.delay, check: @check %>