Send Notifications when participation approval

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-06-08 12:28:19 +02:00
parent 63efea7371
commit 3e74f59ee8
38 changed files with 2500 additions and 973 deletions

View File

@@ -27,7 +27,7 @@ msgid "Feed for %{email} on Mobilizon"
msgstr "Flux per %{email} sus Mobilizon"
#, elixir-format
#: lib/web/templates/email/email.html.eex:155
#: lib/web/templates/email/email.html.eex:151
#: lib/web/templates/email/email.text.eex:16
msgid "%{instance} is a Mobilizon server."
msgstr "%{instance} es una instància Mobilizon."
@@ -48,7 +48,7 @@ msgid "Activate my account"
msgstr "Activar mon compte"
#, elixir-format
#: lib/web/templates/email/email.html.eex:124
#: lib/web/templates/email/email.html.eex:120
#: lib/web/templates/email/email.text.eex:14
msgid "Ask the community on Framacolibri"
msgstr "Demandatz a la comunautat sus Framacolibri"
@@ -76,7 +76,7 @@ msgid "Instructions to reset your password on %{instance}"
msgstr "Consignas per reïnincializar vòstre senhal sus %{instance}"
#, elixir-format
#: lib/web/templates/email/email.html.eex:156
#: lib/web/templates/email/email.html.eex:152
msgid "Learn more about Mobilizon."
msgstr "Ne saber mai tocant Mobilizon."
@@ -86,7 +86,7 @@ msgid "Nearly here!"
msgstr "I sètz gaireben!"
#, elixir-format
#: lib/web/templates/email/email.html.eex:121
#: lib/web/templates/email/email.html.eex:117
#: lib/web/templates/email/email.text.eex:12
msgid "Need some help? Something not working properly?"
msgstr "Besonh dajuda? Quicòm truca?"
@@ -310,14 +310,14 @@ msgid "You requested a new password for your account on %{instance}."
msgstr "Avètz demandat un nòu senhal per vòstre compte sus %{instance}."
#, elixir-format
#: lib/web/templates/email/email.html.eex:95
#: lib/web/templates/email/email.html.eex:91
msgid "In the meantime, please consider that the software is not (yet) finished. More information %{a_start}on our blog%{a_end}."
msgstr ""
"Daquel temps, consideratz que lo logicial es pas (encara) acabat. Mai d"
"informacion %{a_start}sus nòstre blòg%{a_end}."
#, elixir-format
#: lib/web/templates/email/email.html.eex:94
#: lib/web/templates/email/email.html.eex:90
msgid "Mobilizon is under development, we will add new features to this site during regular updates, until the release of %{b_start}version 1 of the software in the first half of 2020%{b_end}."
msgstr ""
"Mobilizon es en desvolopament, ajustarem de nòvas foncionalitats a aqueste "
@@ -325,14 +325,14 @@ msgstr ""
"la version 1 del logicial al primièr semèstre 2020%{b_end}."
#, elixir-format
#: lib/web/templates/email/email.html.eex:91
#: lib/web/templates/email/email.html.eex:87
#: lib/web/templates/email/email.text.eex:6
msgid "This is a demonstration site to test the beta version of Mobilizon."
msgstr ""
"Aquò es un site de demostracion per ensajar la version beta de Mobilizon."
#, elixir-format
#: lib/web/templates/email/email.html.eex:89
#: lib/web/templates/email/email.html.eex:85
msgid "Warning"
msgstr "Avertiment"
@@ -355,7 +355,7 @@ msgid "Event status has been set as tentative"
msgstr "Lestatut de leveniment es estat definit coma « de confirmar »"
#, elixir-format
#: lib/web/templates/email/email.html.eex:92
#: lib/web/templates/email/email.html.eex:88
msgid "%{b_start}Please do not use it in any real way%{b_end}"
msgstr "%{b_start}Mercés de lutilizar pas dun biais real%{b_end}"
@@ -701,7 +701,8 @@ msgid "Verify email address"
msgstr "Verificar ladreça electronica"
#, elixir-format
#: lib/web/templates/email/on_day_notification.html.eex:70
#: lib/web/templates/email/notification_each_week.html.eex:70
#: lib/web/templates/email/notification_each_week.text.eex:14 lib/web/templates/email/on_day_notification.html.eex:70
#: lib/web/templates/email/on_day_notification.text.eex:14
msgid "If you need to cancel your participation, just access the event page through the link above and click on the participation button."
msgid_plural "If you need to cancel your participation, just access the event page through the links above and click on the participation button."
@@ -792,3 +793,57 @@ msgstr ""
#: lib/web/templates/email/event_updated.html.eex:102
msgid "Physical address was removed"
msgstr ""
#, elixir-format
#: lib/web/email/notification.ex:70
msgid "One event planned this week"
msgid_plural "%{nb_events} events planned this week"
msgstr[0] ""
msgstr[1] ""
#, elixir-format
#: lib/web/email/notification.ex:92
msgid "One participation request for event %{title} to process"
msgid_plural "%{number_participation_requests} participation requests for event %{title} to process"
msgstr[0] ""
msgstr[1] ""
#, elixir-format
#: lib/web/templates/email/notification_each_week.html.eex:38
#: lib/web/templates/email/notification_each_week.text.eex:4
msgid "You have one event this week:"
msgid_plural "You have %{total} events this week:"
msgstr[0] ""
msgstr[1] ""
#, elixir-format
#: lib/web/templates/email/pending_participation_notification.html.eex:38
#: lib/web/templates/email/pending_participation_notification.text.eex:4
msgid "You have one pending participation to process:"
msgid_plural "You have %{number_participation_requests} participation requests to process:"
msgstr[0] ""
msgstr[1] ""
#, elixir-format
#: lib/web/templates/email/notification_each_week.html.eex:13
#: lib/web/templates/email/notification_each_week.text.eex:1
msgid "Events this week"
msgstr ""
#, elixir-format
#: lib/web/templates/email/pending_participation_notification.html.eex:51
#: lib/web/templates/email/pending_participation_notification.text.eex:6
msgid "Manage pending participation requests"
msgstr ""
#, elixir-format
#: lib/web/templates/email/pending_participation_notification.html.eex:13
#: lib/web/templates/email/pending_participation_notification.text.eex:1
msgid "Pending participations to process"
msgstr ""
#, elixir-format
#: lib/web/templates/email/pending_participation_notification.html.eex:64
#: lib/web/templates/email/pending_participation_notification.text.eex:8
msgid "You receive this email because you chose to get notifications for pending participations to your events. You may disable or change the configuration for these notification in your Mobilizon user settings."
msgstr ""