Translate email subject

This commit is contained in:
ricola 2026-01-13 20:01:29 -06:00
parent 382c6d6831
commit eb835bcebe
3 changed files with 12 additions and 8 deletions

View file

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-01-13 19:52-0600\n"
"POT-Creation-Date: 2026-01-13 20:00-0600\n"
"PO-Revision-Date: 2025-03-29 20:41-0600\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -49,6 +49,10 @@ msgstr "Correu o contrasenya incorrecte."
msgid "Reset your password"
msgstr "Reiniciar contrasenya"
#: ../vedia.rb:582
msgid "Results of the vote: %{t}"
msgstr "Resultats de la votació: %{t}"
#: ../views/admin.erb:1 ../views/admin_users.erb:1 ../views/admin_votes.erb:1
#: ../views/layout.erb:30
msgid "Admin"
@ -464,7 +468,3 @@ msgstr "T'has de connectar per veure el detall d'aquesta votació."
#: ../views/votes_show_unknown.erb:2
msgid "Vote not found..."
msgstr "Votació no encontrada..."
#: ../views/votes_show_closed.erb:103
#~ msgid "Removing %{n} vote."
#~ msgstr "Treient %{n} vots."

View file

@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-01-13 19:52-0600\n"
"PO-Revision-Date: 2026-01-13 19:52-0600\n"
"POT-Creation-Date: 2026-01-13 20:00-0600\n"
"PO-Revision-Date: 2026-01-13 20:00-0600\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
@ -50,6 +50,10 @@ msgstr ""
msgid "Reset your password"
msgstr ""
#: ../vedia.rb:582
msgid "Results of the vote: %{t}"
msgstr ""
#: ../views/admin.erb:1 ../views/admin_users.erb:1 ../views/admin_votes.erb:1
#: ../views/layout.erb:30
msgid "Admin"

View file

@ -579,7 +579,7 @@ def close_expired_votes
mail = Mail.new
mail.from = settings.admin_email
mail.to = user.email
mail.subject = _("Results of the vote: #{vote.title}")
mail.subject = _("Results of the vote: %{t}") % { t: vote.title }
template = ERB.new(File.read("views/votes_close_email.erb"))
mail.body = template.result(binding)
mail.deliver