diff --git a/lib/web/email/participation.ex b/lib/web/email/participation.ex index d2d246936..a52b787a9 100644 --- a/lib/web/email/participation.ex +++ b/lib/web/email/participation.ex @@ -9,7 +9,7 @@ defmodule Mobilizon.Web.Email.Participation do alias Mobilizon.Actors.Actor alias Mobilizon.Config - alias Mobilizon.Events.Participant + alias Mobilizon.Events.{Event, Participant} alias Mobilizon.Users alias Mobilizon.Users.User alias Mobilizon.Web.{Email, Gettext} @@ -80,6 +80,27 @@ defmodule Mobilizon.Web.Email.Participation do |> render(:event_participation_rejected) end + @spec participation_updated(String.t(), Participant.t(), String.t()) :: Bamboo.Email.t() + def participation_updated( + email, + %Participant{event: %Event{join_options: :free} = event, role: :participant}, + locale + ) do + Gettext.put_locale(locale) + + subject = + gettext( + "Your participation to event %{title} has been confirmed", + title: event.title + ) + + Email.base_email(to: email, subject: subject) + |> assign(:locale, locale) + |> assign(:event, event) + |> assign(:subject, subject) + |> render(:event_participation_confirmed) + end + @spec participation_updated(String.t(), Participant.t(), String.t()) :: Bamboo.Email.t() def participation_updated( email, diff --git a/lib/web/templates/email/anonymous_participation_confirmation.html.eex b/lib/web/templates/email/anonymous_participation_confirmation.html.eex index 0dcd6ae90..54ce6ec11 100644 --- a/lib/web/templates/email/anonymous_participation_confirmation.html.eex +++ b/lib/web/templates/email/anonymous_participation_confirmation.html.eex @@ -39,13 +39,6 @@

- - -

- <%= ngettext "Would you wish to cancel your attendance, visit the event page through the link above and click the « Attending » button.", "Would you wish to cancel your attendance to one or several events, visit the event pages through the links above and click the « Attending » button.", 1 %> -

- - @@ -64,6 +57,13 @@ + + +

+ <%= ngettext "Would you wish to cancel your attendance, visit the event page through the link above and click the « Attending » button.", "Would you wish to cancel your attendance to one or several events, visit the event pages through the links above and click the « Attending » button.", 1 %> +

+ +

diff --git a/lib/web/templates/email/event_participation_approved.html.eex b/lib/web/templates/email/event_participation_approved.html.eex index 539c0ce85..7ec2ed034 100644 --- a/lib/web/templates/email/event_participation_approved.html.eex +++ b/lib/web/templates/email/event_participation_approved.html.eex @@ -35,7 +35,7 @@

- <%= gettext "You recently requested to attend %{title}.", title: @event.title %> + <%= gettext("You recently requested to attend %{title}.", title: @event.title) |> raw %>

diff --git a/lib/web/templates/email/event_participation_confirmed.html.eex b/lib/web/templates/email/event_participation_confirmed.html.eex new file mode 100644 index 000000000..3dbbab91c --- /dev/null +++ b/lib/web/templates/email/event_participation_confirmed.html.eex @@ -0,0 +1,81 @@ + + + + + + + + +
+

+ <%= gettext "You're going!" %> +

+
+ + + + + + + + + + + + + + + + + + + + + + +
+

+ <%= gettext("You recently requested to attend %{title}.", title: @event.title) |> raw %> +

+
+

+ <%= gettext "You have now confirmed your participation. Update your calendar, because you're on the guest list now!" %> +

+
+ + + + +
+ + + + +
+ <%= gettext "Visit event page" %> +
+
+
+

+ <%= gettext "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." %> +

+
+ + + diff --git a/lib/web/templates/email/event_participation_confirmed.text.eex b/lib/web/templates/email/event_participation_confirmed.text.eex new file mode 100644 index 000000000..869df0b4d --- /dev/null +++ b/lib/web/templates/email/event_participation_confirmed.text.eex @@ -0,0 +1,6 @@ +<%= gettext "You're going!" %> +== +<%= gettext "You recently requested to attend %{title}.", title: @event.title %> +<%= gettext "You have confirmed your participation. Update your calendar, because you're on the guest list now!" %> +<%= page_url(Mobilizon.Web.Endpoint, :event, @event.uuid) %> +<%= gettext "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." %> diff --git a/priv/gettext/ar/LC_MESSAGES/default.po b/priv/gettext/ar/LC_MESSAGES/default.po index 63f229324..b38192127 100644 --- a/priv/gettext/ar/LC_MESSAGES/default.po +++ b/priv/gettext/ar/LC_MESSAGES/default.po @@ -115,7 +115,7 @@ msgid "You created an account on %{host} with this email address. You are one cl msgstr "" #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "" @@ -151,7 +151,7 @@ msgid "Warning" msgstr "تنبيه" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "" @@ -1029,6 +1029,7 @@ msgstr "إعرض التقرير" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1056,7 +1057,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1073,13 +1075,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "لقد قمتَ بتقديم طلب للمشاركة في فعالية %{title}." #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1285,3 +1288,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "لقد قمتَ بتقديم طلب للمشاركة في فعالية %{title}." + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "" diff --git a/priv/gettext/be/LC_MESSAGES/default.po b/priv/gettext/be/LC_MESSAGES/default.po index b157e3ca9..139a788bf 100644 --- a/priv/gettext/be/LC_MESSAGES/default.po +++ b/priv/gettext/be/LC_MESSAGES/default.po @@ -112,7 +112,7 @@ msgid "You created an account on %{host} with this email address. You are one cl msgstr "" #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "" @@ -148,7 +148,7 @@ msgid "Warning" msgstr "" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "" @@ -1005,6 +1005,7 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1032,7 +1033,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1049,13 +1051,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1261,3 +1264,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "" + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "" diff --git a/priv/gettext/ca/LC_MESSAGES/default.po b/priv/gettext/ca/LC_MESSAGES/default.po index bc01ab2a4..767c869f5 100644 --- a/priv/gettext/ca/LC_MESSAGES/default.po +++ b/priv/gettext/ca/LC_MESSAGES/default.po @@ -122,7 +122,7 @@ msgstr "" "'activar-lo. Si no l'has creat tu, ignora aquest mail." #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "T'han aprovat la participació a %{title}" @@ -158,7 +158,7 @@ msgid "Warning" msgstr "Alerta" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "" @@ -1022,6 +1022,7 @@ msgstr "Mostra la denúncia" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1049,7 +1050,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1066,13 +1068,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "Has soŀlicitat participar a l'activitat %{title}." #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1281,3 +1284,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "Has soŀlicitat participar a l'activitat %{title}." + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "T'han aprovat la participació a %{title}" diff --git a/priv/gettext/cs/LC_MESSAGES/default.po b/priv/gettext/cs/LC_MESSAGES/default.po index 3cd0f95ec..9a0fda1be 100644 --- a/priv/gettext/cs/LC_MESSAGES/default.po +++ b/priv/gettext/cs/LC_MESSAGES/default.po @@ -112,7 +112,7 @@ msgid "You created an account on %{host} with this email address. You are one cl msgstr "" #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "" @@ -148,7 +148,7 @@ msgid "Warning" msgstr "" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "" @@ -1005,6 +1005,7 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1032,7 +1033,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1049,13 +1051,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1261,3 +1264,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "" + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "" diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po index fef977f17..332249e4a 100644 --- a/priv/gettext/de/LC_MESSAGES/default.po +++ b/priv/gettext/de/LC_MESSAGES/default.po @@ -124,7 +124,7 @@ msgstr "" "E-Mail bitte." #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "Deine Teilnahme an der Veranstaltung %{title}wurde akzeptiert" @@ -161,7 +161,7 @@ msgid "Warning" msgstr "Warnung" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "Meine Teilnahme an der Veranstaltung %{title} zusagen" @@ -1030,6 +1030,7 @@ msgstr "Meldung ansehen" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1057,7 +1058,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1074,13 +1076,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "Du hast angefragt, an der Veranstaltung %{title} teilzunehmen." #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1289,3 +1292,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "Du hast angefragt, an der Veranstaltung %{title} teilzunehmen." + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "Deine Teilnahme an der Veranstaltung %{title}wurde akzeptiert" diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 001806961..e1a012cac 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -98,7 +98,7 @@ msgid "You created an account on %{host} with this email address. You are one cl msgstr "" #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "" @@ -134,7 +134,7 @@ msgid "Warning" msgstr "" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "" @@ -984,6 +984,7 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1011,7 +1012,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1028,13 +1030,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1240,3 +1243,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "" + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index 9f16a4912..890bec4ec 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -121,7 +121,7 @@ msgid "You created an account on %{host} with this email address. You are one cl msgstr "You created an account on %{host} with this email address. You are one click away from activating it." #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "Your participation to event %{title} has been approved" @@ -157,7 +157,7 @@ msgid "Warning" msgstr "Warning" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "" @@ -1007,6 +1007,7 @@ msgstr "View the report" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1034,7 +1035,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1051,13 +1053,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "You requested to participate in event %{title}." #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1263,3 +1266,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "You requested to participate in event %{title}." + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "Your participation to event %{title} has been approved" diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index 24f811448..76609965f 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -123,7 +123,7 @@ msgstr "" "Estás a un clic de activarlo. Si no eras tú, ignora este correo electrónico." #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "Su participación en el evento %{title} ha sido aprobada" @@ -160,7 +160,7 @@ msgid "Warning" msgstr "Advertencia" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "Confirme su participación en el evento %{title}" @@ -1218,6 +1218,7 @@ msgstr "Ver el informe:" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "Visita la página del evento" @@ -1245,7 +1246,8 @@ msgstr "Qué pasa hoy?" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" "Si desea actualizar o cancelar su asistencia, simplemente acceda a la página " @@ -1268,13 +1270,14 @@ msgid "You issued a request to attend %{title}." msgstr "Envió una solicitud para asistir a %{title}." #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "Solicitaste participar en el evento %{title}." #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "¡Vas!" @@ -1579,3 +1582,20 @@ msgstr "" "contenidos se entregan a los servidores. siguiendo tu instancia, y los " "mensajes directos se entregan a los servidores de los destinatarios, en la " "medida en que estos destinatarios residen en un servidor diferente a este." + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "Solicitaste participar en el evento %{title}." + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "Su participación en el evento %{title} ha sido aprobada" diff --git a/priv/gettext/fi/LC_MESSAGES/default.po b/priv/gettext/fi/LC_MESSAGES/default.po index 630b138f4..9a2cfc3f0 100644 --- a/priv/gettext/fi/LC_MESSAGES/default.po +++ b/priv/gettext/fi/LC_MESSAGES/default.po @@ -123,7 +123,7 @@ msgstr "" "huomiotta." #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "Osallistumisesi tapahtumaan %{title} on hyväksytty" @@ -159,7 +159,7 @@ msgid "Warning" msgstr "Varoitus" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "Vahvista osallistumisesi tapahtumaan %{title}" @@ -1196,6 +1196,7 @@ msgstr "Näytä raportti:" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "Käy tapahtumasivulla" @@ -1223,7 +1224,8 @@ msgstr "Mitä tänään tapahtuu?" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" "Jos haluat päivittää tai perua osallistumisesi, siirry yllä olevasta " @@ -1246,13 +1248,14 @@ msgid "You issued a request to attend %{title}." msgstr "Lähetit pyynnön osallistua tapahtumaan %{title}." #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "Lähetit pyynnön osallistua tapahtumaan %{title}." #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "Olet mukana!" @@ -1537,3 +1540,20 @@ msgstr "" "palvelimille. Ryhmän kautta luotu sisältö välitetään ryhmän kaikkien " "jäsenten kaikille palvelimille, mikäli ryhmässä on muita kuin tätä " "palvelinta käyttäviä jäseniä." + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "Lähetit pyynnön osallistua tapahtumaan %{title}." + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "Osallistumisesi tapahtumaan %{title} on hyväksytty" diff --git a/priv/gettext/fr/LC_MESSAGES/default.po b/priv/gettext/fr/LC_MESSAGES/default.po index ad5183304..41cee8e78 100644 --- a/priv/gettext/fr/LC_MESSAGES/default.po +++ b/priv/gettext/fr/LC_MESSAGES/default.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2020-09-23 15:04+0200\n" +"PO-Revision-Date: 2020-09-29 17:07+0200\n" "Last-Translator: Thomas Citharel \n" "Language-Team: French \n" "Language: fr\n" @@ -120,7 +120,7 @@ msgid "You created an account on %{host} with this email address. You are one cl msgstr "Vous avez créé un compte sur %{host} avec cette adresse email. Vous êtes à un clic de l'activer." #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "Votre participation à l'événement %{title} a été approuvée" @@ -156,7 +156,7 @@ msgid "Warning" msgstr "Attention" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "Confirmer ma participation à l'événement %{title}" @@ -1006,6 +1006,7 @@ msgstr "Voir le signalement :" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "Voir la page de l'événement" @@ -1033,7 +1034,8 @@ msgstr "Quoi de neuf aujourd'hui ?" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "Si vous souhaitez mettre à jour ou annuler votre participation, il vous suffit d'accéder à la page de l'événement par le lien ci-dessus et de cliquer sur le bouton Participer." @@ -1050,13 +1052,14 @@ msgid "You issued a request to attend %{title}." msgstr "Vous avez effectué une demande de participation à %{title}." #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "Vous avez demandé à participer à l'événement %{title}." #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "Vous y allez !" @@ -1264,3 +1267,20 @@ msgstr "Vos évènements et commentaires sont transmis aux instanc msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "Votre contenu peut être téléchargé par d'autres instances du réseau. Vos événements publics et commentaires sont transmis aux instances abonnées à votre instance. Le contenu créé à travers un groupe est transmis à toutes les instances de tous les membres du groupe, si celleux-ci sont inscrit·e·s sur une autre instance que la vôtre." + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "Vous avez confirmé votre participation. Mettez à jour votre agenda, car vous êtes maintenant sur la liste des invités !" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "Vous avez demandé à participer à l'événement %{title}." + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "Votre participation à l'événement %{title} a été approuvée" diff --git a/priv/gettext/it/LC_MESSAGES/default.po b/priv/gettext/it/LC_MESSAGES/default.po index 0abee7fae..36eef2e51 100644 --- a/priv/gettext/it/LC_MESSAGES/default.po +++ b/priv/gettext/it/LC_MESSAGES/default.po @@ -116,7 +116,7 @@ msgid "You created an account on %{host} with this email address. You are one cl msgstr "" #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "" @@ -152,7 +152,7 @@ msgid "Warning" msgstr "Attenzione" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "" @@ -1003,6 +1003,7 @@ msgstr "Visualizza la segnalazione:" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "Visualizza la pagina dell'evento" @@ -1030,7 +1031,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1047,13 +1049,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1259,3 +1262,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "" + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "" diff --git a/priv/gettext/ja/LC_MESSAGES/default.po b/priv/gettext/ja/LC_MESSAGES/default.po index 8727516fe..138073706 100644 --- a/priv/gettext/ja/LC_MESSAGES/default.po +++ b/priv/gettext/ja/LC_MESSAGES/default.po @@ -114,7 +114,7 @@ msgid "You created an account on %{host} with this email address. You are one cl msgstr "" #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "" @@ -150,7 +150,7 @@ msgid "Warning" msgstr "" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "" @@ -993,6 +993,7 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1020,7 +1021,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1037,13 +1039,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1249,3 +1252,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "" + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "" diff --git a/priv/gettext/nl/LC_MESSAGES/default.po b/priv/gettext/nl/LC_MESSAGES/default.po index 4cf1c2b49..96ea9eefb 100644 --- a/priv/gettext/nl/LC_MESSAGES/default.po +++ b/priv/gettext/nl/LC_MESSAGES/default.po @@ -123,7 +123,7 @@ msgstr "" "klik van de activering. Gelieve deze email te negeren als u dit niet was." #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "Uw deelname aan het evenement %{title} is goedgekeurd" @@ -159,7 +159,7 @@ msgid "Warning" msgstr "Waarschuwing" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "" @@ -1025,6 +1025,7 @@ msgstr "Bekijk de melding" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1052,7 +1053,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1069,13 +1071,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "U hebt gevraagd om deel te nemen aan het evenement %{title}." #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1284,3 +1287,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "U hebt gevraagd om deel te nemen aan het evenement %{title}." + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "Uw deelname aan het evenement %{title} is goedgekeurd" diff --git a/priv/gettext/oc/LC_MESSAGES/default.po b/priv/gettext/oc/LC_MESSAGES/default.po index 439001aa3..b5353bf6d 100644 --- a/priv/gettext/oc/LC_MESSAGES/default.po +++ b/priv/gettext/oc/LC_MESSAGES/default.po @@ -115,7 +115,7 @@ msgid "You created an account on %{host} with this email address. You are one cl msgstr "Avètz creat un compte sus %{host} amb aquesta adreça electronica. Sètz a un clic de l’activar." #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "Vòstra participacion a l’eveniment %{title} es estada aprovada" @@ -152,7 +152,7 @@ msgid "Warning" msgstr "Avertiment" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "Confirmatz vòstra participacion a l’eveniment %{title}" @@ -1025,6 +1025,7 @@ msgstr "Veire lo senhalament" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1052,7 +1053,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1069,13 +1071,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "Avètz demandat de participar a l’eveniment %{title}." #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1286,3 +1289,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "Avètz demandat de participar a l’eveniment %{title}." + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "Vòstra participacion a l’eveniment %{title} es estada aprovada" diff --git a/priv/gettext/pl/LC_MESSAGES/default.po b/priv/gettext/pl/LC_MESSAGES/default.po index 9f84c4130..16336266d 100644 --- a/priv/gettext/pl/LC_MESSAGES/default.po +++ b/priv/gettext/pl/LC_MESSAGES/default.po @@ -125,7 +125,7 @@ msgstr "" "e-mail." #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "Twój udział w wydarzeniu %{title} został zatwierdzony" @@ -163,7 +163,7 @@ msgid "Warning" msgstr "Ostrzeżenie" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "Potwierdź swoje uczestnictwo w wydarzeniu %{title}" @@ -1038,6 +1038,7 @@ msgstr "Zobacz zgłoszenie" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1065,7 +1066,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1082,13 +1084,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "Poprosiłeś(-aś) o uczestnictwo w wydarzeniu %{title}." #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1297,3 +1300,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "Poprosiłeś(-aś) o uczestnictwo w wydarzeniu %{title}." + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "Twój udział w wydarzeniu %{title} został zatwierdzony" diff --git a/priv/gettext/pt/LC_MESSAGES/default.po b/priv/gettext/pt/LC_MESSAGES/default.po index a4ef43449..caa1b611b 100644 --- a/priv/gettext/pt/LC_MESSAGES/default.po +++ b/priv/gettext/pt/LC_MESSAGES/default.po @@ -112,7 +112,7 @@ msgid "You created an account on %{host} with this email address. You are one cl msgstr "" #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "" @@ -148,7 +148,7 @@ msgid "Warning" msgstr "" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "" @@ -998,6 +998,7 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1025,7 +1026,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1042,13 +1044,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1254,3 +1257,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "" + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "" diff --git a/priv/gettext/pt_BR/LC_MESSAGES/default.po b/priv/gettext/pt_BR/LC_MESSAGES/default.po index 33380fd7c..0fed6e087 100644 --- a/priv/gettext/pt_BR/LC_MESSAGES/default.po +++ b/priv/gettext/pt_BR/LC_MESSAGES/default.po @@ -123,7 +123,7 @@ msgstr "" "ignorar este e-mail." #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "A sua participação no evento %{title} foi aprovada" @@ -159,7 +159,7 @@ msgid "Warning" msgstr "Atenção" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "Confirmar sua participação no evento %{title}" @@ -1082,6 +1082,7 @@ msgstr "Veja o relato" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1109,7 +1110,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1126,13 +1128,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "Você solicitou participar no evento %{title}." #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1376,3 +1379,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "Você solicitou participar no evento %{title}." + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "A sua participação no evento %{title} foi aprovada" diff --git a/priv/gettext/ru/LC_MESSAGES/default.po b/priv/gettext/ru/LC_MESSAGES/default.po index 4aebb3784..6999d5b0e 100644 --- a/priv/gettext/ru/LC_MESSAGES/default.po +++ b/priv/gettext/ru/LC_MESSAGES/default.po @@ -119,7 +119,7 @@ msgid "You created an account on %{host} with this email address. You are one cl msgstr "" #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "" @@ -155,7 +155,7 @@ msgid "Warning" msgstr "" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "" @@ -1016,6 +1016,7 @@ msgstr "Показать сообщение о проблеме" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1043,7 +1044,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1060,13 +1062,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1272,3 +1275,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "" + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "" diff --git a/priv/gettext/sv/LC_MESSAGES/default.po b/priv/gettext/sv/LC_MESSAGES/default.po index b1a75c0cf..6bda72105 100644 --- a/priv/gettext/sv/LC_MESSAGES/default.po +++ b/priv/gettext/sv/LC_MESSAGES/default.po @@ -124,7 +124,7 @@ msgstr "" "du strunta i det här meddelandet." #, elixir-format -#: lib/web/email/participation.ex:92 +#: lib/web/email/participation.ex:113 msgid "Your participation to event %{title} has been approved" msgstr "Din förfrågan om att få delta i evenemanget %{title} har godkännts" @@ -161,7 +161,7 @@ msgid "Warning" msgstr "Varning" #, elixir-format -#: lib/web/email/participation.ex:114 +#: lib/web/email/participation.ex:135 msgid "Confirm your participation to event %{title}" msgstr "" @@ -1021,6 +1021,7 @@ msgstr "Visa anmälan:" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:58 +#: lib/web/templates/email/event_participation_confirmed.html.eex:58 msgid "Visit event page" msgstr "" @@ -1048,7 +1049,8 @@ msgstr "" #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:70 -#: lib/web/templates/email/event_participation_approved.text.eex:11 +#: lib/web/templates/email/event_participation_approved.text.eex:11 lib/web/templates/email/event_participation_confirmed.html.eex:70 +#: lib/web/templates/email/event_participation_confirmed.text.eex:6 msgid "Would you wish to update or cancel your attendance, simply access the event page through the link above and click on the Attending button." msgstr "" @@ -1065,13 +1067,14 @@ msgid "You issued a request to attend %{title}." msgstr "" #, elixir-format -#: lib/web/templates/email/event_participation_approved.html.eex:38 #: lib/web/templates/email/event_participation_approved.text.eex:5 +#: lib/web/templates/email/event_participation_confirmed.text.eex:3 msgid "You recently requested to attend %{title}." msgstr "Du har bett om att få delta i evenemanget %{title}." #, elixir-format #: lib/web/templates/email/event_participation_approved.html.eex:13 +#: lib/web/templates/email/event_participation_confirmed.html.eex:13 lib/web/templates/email/event_participation_confirmed.text.eex:1 msgid "You're going!" msgstr "" @@ -1277,3 +1280,20 @@ msgstr "" msgctxt "terms" msgid "Your content may be downloaded by other instances in the network. Your public events and comments are delivered to the instances following your own instance. Content created through a group is forwarded to all the instances of all the members of the group, insofar as these members reside on a different instance than this one." msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_confirmed.html.eex:45 +#: lib/web/templates/email/event_participation_confirmed.text.eex:4 +msgid "You have confirmed your participation. Update your calendar, because you're on the guest list now!" +msgstr "" + +#, elixir-format +#: lib/web/templates/email/event_participation_approved.html.eex:38 +#: lib/web/templates/email/event_participation_confirmed.html.eex:38 +msgid "You recently requested to attend %{title}." +msgstr "Du har bett om att få delta i evenemanget %{title}." + +#, elixir-format +#: lib/web/email/participation.ex:92 +msgid "Your participation to event %{title} has been confirmed" +msgstr "Din förfrågan om att få delta i evenemanget %{title} har godkännts" diff --git a/test/graphql/resolvers/participant_test.exs b/test/graphql/resolvers/participant_test.exs index b1a909168..19f64a4d0 100644 --- a/test/graphql/resolvers/participant_test.exs +++ b/test/graphql/resolvers/participant_test.exs @@ -1139,14 +1139,20 @@ defmodule Mobilizon.GraphQL.Resolvers.ParticipantTest do Email.Participation.anonymous_participation_confirmation(@email, participant) ) - conn - |> AbsintheHelpers.graphql_query( - query: @confirmation_mutation, - variables: %{confirmationToken: confirmation_token} - ) + res = + conn + |> AbsintheHelpers.graphql_query( + query: @confirmation_mutation, + variables: %{confirmationToken: confirmation_token} + ) + + assert is_nil(res["errors"]) assert %Participant{role: :participant} = + participant = event.id |> Events.list_participants_for_event() |> Map.get(:elements) |> hd() + + assert_delivered_email(Email.Participation.participation_updated(@email, participant)) end test "I can participate anonymously and and confirm my participation with bad token",