mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 14:41:41 +00:00
fix: volver a traducir los correos #9941
This commit is contained in:
parent
6992d16ab0
commit
222cc8f626
1 changed files with 37 additions and 37 deletions
|
@ -18,6 +18,9 @@ class DeployMailer < ApplicationMailer
|
||||||
subject = t('.subject', site: site.name)
|
subject = t('.subject', site: site.name)
|
||||||
hostname = site.hostname
|
hostname = site.hostname
|
||||||
|
|
||||||
|
# Informamos a cada quien en su idioma y damos una dirección de
|
||||||
|
# respuesta porque a veces les usuaries nos escriben
|
||||||
|
I18n.with_locale(usuarie.lang) do
|
||||||
@hi = t('.hi')
|
@hi = t('.hi')
|
||||||
@explanation = t('.explanation', fqdn: hostname)
|
@explanation = t('.explanation', fqdn: hostname)
|
||||||
@help = t('.help')
|
@help = t('.help')
|
||||||
|
@ -55,9 +58,6 @@ class DeployMailer < ApplicationMailer
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Informamos a cada quien en su idioma y damos una dirección de
|
|
||||||
# respuesta porque a veces les usuaries nos escriben
|
|
||||||
I18n.with_locale(usuarie.lang) do
|
|
||||||
mail(to: usuarie.email, reply_to: "sutty@#{Site.domain}", subject: subject)
|
mail(to: usuarie.email, reply_to: "sutty@#{Site.domain}", subject: subject)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue