Merge branch 'fix-event-update' into 'master'

Fix event update

See merge request framasoft/mobilizon!591
This commit is contained in:
Thomas Citharel 2020-10-08 09:24:10 +02:00
commit 39e90b3a50
42 changed files with 499 additions and 308 deletions

View File

@ -1572,8 +1572,11 @@ defmodule Mobilizon.Events do
Participant
|> join(:inner, [p], a in Actor, on: p.actor_id == a.id and is_nil(a.domain))
|> join(:left, [_p, a], u in User, on: a.user_id == u.id)
|> where([p], p.event_id == ^event_id)
|> select([_p, a, u], {a, u})
|> where(
[p],
p.event_id == ^event_id and p.role not in [^:not_approved, ^:not_confirmed, ^:rejected]
)
|> select([p, a, u], {p, a, u})
end
@spec list_participations_for_user_query(integer()) :: Ecto.Query.t()

View File

@ -11,25 +11,26 @@ defmodule Mobilizon.Web.Email.Event do
alias Mobilizon.Actors.Actor
alias Mobilizon.Events
alias Mobilizon.Events.Event
alias Mobilizon.Events.{Event, Participant}
alias Mobilizon.Storage.Repo
alias Mobilizon.Users.User
alias Mobilizon.Web.{Email, Gettext}
alias Mobilizon.Web.Email
alias Mobilizon.Web.Gettext, as: GettextBackend
@important_changes [:title, :begins_on, :ends_on, :status, :physical_address]
@spec event_updated(User.t(), Actor.t(), Event.t(), Event.t(), MapSet.t(), String.t()) ::
@spec event_updated(String.t(), Actor.t(), Event.t(), Event.t(), MapSet.t(), String.t()) ::
Bamboo.Email.t()
def event_updated(
%User{} = user,
email,
%Actor{} = actor,
%Event{} = old_event,
%Event{} = event,
changes,
locale \\ "en"
) do
Gettext.put_locale(locale)
GettextBackend.put_locale(locale)
subject =
gettext(
@ -37,7 +38,7 @@ defmodule Mobilizon.Web.Email.Event do
title: old_event.title
)
Email.base_email(to: {Actor.display_name(actor), user.email}, subject: subject)
Email.base_email(to: {Actor.display_name(actor), email}, subject: subject)
|> assign(:locale, locale)
|> assign(:event, event)
|> assign(:old_event, old_event)
@ -73,12 +74,27 @@ defmodule Mobilizon.Web.Email.Event do
end
defp send_notification_for_event_update_to_participant(
{%Actor{} = actor, %User{locale: locale} = user},
{%Participant{} = _participant, %Actor{} = actor,
%User{locale: locale, email: email} = _user},
%Event{} = old_event,
%Event{} = event,
diff
) do
user
email
|> Email.Event.event_updated(actor, old_event, event, diff, locale)
|> Email.Mailer.deliver_later()
end
defp send_notification_for_event_update_to_participant(
{%Participant{metadata: %{email: email}} = _participant, %Actor{} = actor, nil},
%Event{} = old_event,
%Event{} = event,
diff
)
when not is_nil(email) do
locale = Gettext.get_locale()
email
|> Email.Event.event_updated(actor, old_event, event, diff, locale)
|> Email.Mailer.deliver_later()
end

View File

@ -35,7 +35,7 @@
<tr>
<td bgcolor="#ffffff" align="left" style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >
<p style="margin: 0;">
<%= gettext "There have been changes for %{title} so we'd thought we'd let you know.", title: @old_event.title %>
<%= gettext("There have been changes for <b>%{title}</b> so we'd thought we'd let you know.", title: @old_event.title) |> raw %>
</p>
</td>
</tr>
@ -45,24 +45,26 @@
<%= if MapSet.member?(@changes, :status) do %>
<tr>
<td bgcolor="#ffffff" align="center">
<%= case @event.status do %>
<% :confirmed -> %>
<%= gettext "This event has been confirmed" %>
<% :tentative -> %>
<%= gettext "This event has yet to be confirmed: organizers will let you know if they do confirm it." %>
<% :cancelled -> %>
<%= gettext "This event has been cancelled by its organizers. Sorry!" %>
<% end %>
<b>
<%= case @event.status do %>
<% :confirmed -> %>
<%= gettext "This event has been confirmed" %>
<% :tentative -> %>
<%= gettext "This event has yet to be confirmed: organizers will let you know if they do confirm it." %>
<% :cancelled -> %>
<%= gettext "This event has been cancelled by its organizers. Sorry!" %>
<% end %>
</b>
</td>
</tr>
<% end %>
<%= if MapSet.member?(@changes, :title) do %>
<tr>
<td bgcolor="#ffffff" align="left">
<%= gettext "Event" %>
<%= gettext "Event title" %>
</td>
<td bgcolor="#ffffff" align="left">
<%= @event.title %>
<b><%= @event.title %></b>
</td>
</tr>
<% end %>
@ -72,7 +74,7 @@
<%= gettext "Start" %>
</td>
<td bgcolor="#ffffff" align="left">
<%= datetime_to_string(@event.begins_on, @locale) %>
<b><%= datetime_to_string(@event.begins_on, @locale) %></b>
</td>
</tr>
<% end %>
@ -82,7 +84,7 @@
<%= gettext "End" %>
</td>
<td bgcolor="#ffffff" align="left">
<%= datetime_to_string(@event.ends_on, @locale) %>
<b><%= datetime_to_string(@event.ends_on, @locale) %></b>
</td>
</tr>
<% end %>

View File

@ -47,8 +47,8 @@ msgid "Comments"
msgstr "التعليقات"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:62
#: lib/web/templates/email/report.html.eex:72 lib/web/templates/email/report.text.eex:11
#: lib/web/templates/email/report.html.eex:72
#: lib/web/templates/email/report.text.eex:11
msgid "Event"
msgstr "الفعالية"
@ -125,7 +125,7 @@ msgid "Your participation to event %{title} has been rejected"
msgstr ""
#, elixir-format
#: lib/web/email/event.ex:35
#: lib/web/email/event.ex:36
msgid "Event %{title} has been updated"
msgstr "تم تحديث الفعالية %{title}"
@ -792,7 +792,7 @@ msgstr ""
#, elixir-format
#: lib/web/templates/email/anonymous_participation_confirmation.html.eex:63
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:131
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:133
#: lib/web/templates/email/event_updated.text.eex:24 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
@ -846,7 +846,7 @@ msgid "Confirm new email"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:82
#: lib/web/templates/email/event_updated.html.eex:84
msgid "End"
msgstr ""
@ -923,12 +923,12 @@ msgid "Learn more about Mobilizon here!"
msgstr "تعلّم المزيد عن Mobilizon."
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:92
#: lib/web/templates/email/event_updated.html.eex:94
msgid "Location"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:102
#: lib/web/templates/email/event_updated.html.eex:104
msgid "Location address was removed"
msgstr ""
@ -967,7 +967,7 @@ msgid "Sorry! You're not going."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:72
#: lib/web/templates/email/event_updated.html.eex:74
msgid "Start"
msgstr ""
@ -977,25 +977,24 @@ msgid "Start %{begins_on}"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:38
#: lib/web/templates/email/event_updated.text.eex:3
msgid "There have been changes for %{title} so we'd thought we'd let you know."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:54
#: lib/web/templates/email/event_updated.html.eex:55
#: lib/web/templates/email/event_updated.text.eex:11
msgid "This event has been cancelled by its organizers. Sorry!"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:50
#: lib/web/templates/email/event_updated.html.eex:51
#: lib/web/templates/email/event_updated.text.eex:7
msgid "This event has been confirmed"
msgstr "تم تأكيد الفعالية"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:52
#: lib/web/templates/email/event_updated.html.eex:53
#: lib/web/templates/email/event_updated.text.eex:9
msgid "This event has yet to be confirmed: organizers will let you know if they do confirm it."
msgstr ""
@ -1028,7 +1027,7 @@ msgid "Visit event page"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:119
#: lib/web/templates/email/event_updated.html.eex:121
msgid "Visit the updated event page"
msgstr ""
@ -1391,7 +1390,17 @@ msgstr ""
msgid "Hi there! You just registered to join this event: « <b>%{title}</b> ». Please confirm the e-mail address you provided:"
msgstr ""
#, elixir-format, fuzzy
#, elixir-format
#: lib/web/templates/email/event_participation_rejected.html.eex:38
msgid "You issued a request to attend <b>%{title}</b>."
msgstr ""
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:64
msgid "Event title"
msgstr "الفعالية"
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:38
msgid "There have been changes for <b>%{title}</b> so we'd thought we'd let you know."
msgstr ""

View File

@ -689,7 +689,7 @@ msgid "You need to be logged-in and an administrator to access dashboard statist
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/admin.ex:242
#: lib/graphql/resolvers/admin.ex:232
msgid "You need to be logged-in and an administrator to save admin settings"
msgstr ""

View File

@ -44,8 +44,8 @@ msgid "Comments"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:62
#: lib/web/templates/email/report.html.eex:72 lib/web/templates/email/report.text.eex:11
#: lib/web/templates/email/report.html.eex:72
#: lib/web/templates/email/report.text.eex:11
msgid "Event"
msgstr ""
@ -122,7 +122,7 @@ msgid "Your participation to event %{title} has been rejected"
msgstr ""
#, elixir-format
#: lib/web/email/event.ex:35
#: lib/web/email/event.ex:36
msgid "Event %{title} has been updated"
msgstr ""
@ -774,7 +774,7 @@ msgstr ""
#, elixir-format
#: lib/web/templates/email/anonymous_participation_confirmation.html.eex:63
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:131
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:133
#: lib/web/templates/email/event_updated.text.eex:24 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
@ -822,7 +822,7 @@ msgid "Confirm new email"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:82
#: lib/web/templates/email/event_updated.html.eex:84
msgid "End"
msgstr ""
@ -899,12 +899,12 @@ msgid "Learn more about Mobilizon here!"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:92
#: lib/web/templates/email/event_updated.html.eex:94
msgid "Location"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:102
#: lib/web/templates/email/event_updated.html.eex:104
msgid "Location address was removed"
msgstr ""
@ -943,7 +943,7 @@ msgid "Sorry! You're not going."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:72
#: lib/web/templates/email/event_updated.html.eex:74
msgid "Start"
msgstr ""
@ -953,25 +953,24 @@ msgid "Start %{begins_on}"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:38
#: lib/web/templates/email/event_updated.text.eex:3
msgid "There have been changes for %{title} so we'd thought we'd let you know."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:54
#: lib/web/templates/email/event_updated.html.eex:55
#: lib/web/templates/email/event_updated.text.eex:11
msgid "This event has been cancelled by its organizers. Sorry!"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:50
#: lib/web/templates/email/event_updated.html.eex:51
#: lib/web/templates/email/event_updated.text.eex:7
msgid "This event has been confirmed"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:52
#: lib/web/templates/email/event_updated.html.eex:53
#: lib/web/templates/email/event_updated.text.eex:9
msgid "This event has yet to be confirmed: organizers will let you know if they do confirm it."
msgstr ""
@ -1004,7 +1003,7 @@ msgid "Visit event page"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:119
#: lib/web/templates/email/event_updated.html.eex:121
msgid "Visit the updated event page"
msgstr ""
@ -1367,7 +1366,17 @@ msgstr ""
msgid "Hi there! You just registered to join this event: « <b>%{title}</b> ». Please confirm the e-mail address you provided:"
msgstr ""
#, elixir-format, fuzzy
#, elixir-format
#: lib/web/templates/email/event_participation_rejected.html.eex:38
msgid "You issued a request to attend <b>%{title}</b>."
msgstr ""
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:64
msgid "Event title"
msgstr ""
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:38
msgid "There have been changes for <b>%{title}</b> so we'd thought we'd let you know."
msgstr ""

View File

@ -663,7 +663,7 @@ msgid "You need to be logged-in and an administrator to access dashboard statist
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/admin.ex:242
#: lib/graphql/resolvers/admin.ex:232
msgid "You need to be logged-in and an administrator to save admin settings"
msgstr ""

View File

@ -48,8 +48,8 @@ msgid "Comments"
msgstr "Comentaris"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:62
#: lib/web/templates/email/report.html.eex:72 lib/web/templates/email/report.text.eex:11
#: lib/web/templates/email/report.html.eex:72
#: lib/web/templates/email/report.text.eex:11
msgid "Event"
msgstr "Activitat"
@ -132,7 +132,7 @@ msgid "Your participation to event %{title} has been rejected"
msgstr "T'han denegat la participació a %{title}"
#, elixir-format
#: lib/web/email/event.ex:35
#: lib/web/email/event.ex:36
msgid "Event %{title} has been updated"
msgstr "S'ha actualitzat {%title}"
@ -783,7 +783,7 @@ msgstr "No ho facis servir més que proves, sisplau"
#, elixir-format
#: lib/web/templates/email/anonymous_participation_confirmation.html.eex:63
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:131
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:133
#: lib/web/templates/email/event_updated.text.eex:24 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
@ -833,7 +833,7 @@ msgid "Confirm new email"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:82
#: lib/web/templates/email/event_updated.html.eex:84
msgid "End"
msgstr ""
@ -916,12 +916,12 @@ msgid "Learn more about Mobilizon here!"
msgstr "Per aprendre més de Mobilizon."
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:92
#: lib/web/templates/email/event_updated.html.eex:94
msgid "Location"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:102
#: lib/web/templates/email/event_updated.html.eex:104
msgid "Location address was removed"
msgstr ""
@ -960,7 +960,7 @@ msgid "Sorry! You're not going."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:72
#: lib/web/templates/email/event_updated.html.eex:74
msgid "Start"
msgstr ""
@ -970,25 +970,24 @@ msgid "Start %{begins_on}"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:38
#: lib/web/templates/email/event_updated.text.eex:3
msgid "There have been changes for %{title} so we'd thought we'd let you know."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:54
#: lib/web/templates/email/event_updated.html.eex:55
#: lib/web/templates/email/event_updated.text.eex:11
msgid "This event has been cancelled by its organizers. Sorry!"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:50
#: lib/web/templates/email/event_updated.html.eex:51
#: lib/web/templates/email/event_updated.text.eex:7
msgid "This event has been confirmed"
msgstr "S'ha confirmat l'activitat"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:52
#: lib/web/templates/email/event_updated.html.eex:53
#: lib/web/templates/email/event_updated.text.eex:9
msgid "This event has yet to be confirmed: organizers will let you know if they do confirm it."
msgstr ""
@ -1021,7 +1020,7 @@ msgid "Visit event page"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:119
#: lib/web/templates/email/event_updated.html.eex:121
msgid "Visit the updated event page"
msgstr ""
@ -1387,7 +1386,17 @@ msgstr ""
msgid "Hi there! You just registered to join this event: « <b>%{title}</b> ». Please confirm the e-mail address you provided:"
msgstr ""
#, elixir-format, fuzzy
#, elixir-format
#: lib/web/templates/email/event_participation_rejected.html.eex:38
msgid "You issued a request to attend <b>%{title}</b>."
msgstr ""
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:64
msgid "Event title"
msgstr "Activitat"
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:38
msgid "There have been changes for <b>%{title}</b> so we'd thought we'd let you know."
msgstr ""

View File

@ -657,7 +657,7 @@ msgid "You need to be logged-in and an administrator to access dashboard statist
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/admin.ex:242
#: lib/graphql/resolvers/admin.ex:232
msgid "You need to be logged-in and an administrator to save admin settings"
msgstr ""

View File

@ -44,8 +44,8 @@ msgid "Comments"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:62
#: lib/web/templates/email/report.html.eex:72 lib/web/templates/email/report.text.eex:11
#: lib/web/templates/email/report.html.eex:72
#: lib/web/templates/email/report.text.eex:11
msgid "Event"
msgstr ""
@ -122,7 +122,7 @@ msgid "Your participation to event %{title} has been rejected"
msgstr ""
#, elixir-format
#: lib/web/email/event.ex:35
#: lib/web/email/event.ex:36
msgid "Event %{title} has been updated"
msgstr ""
@ -774,7 +774,7 @@ msgstr ""
#, elixir-format
#: lib/web/templates/email/anonymous_participation_confirmation.html.eex:63
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:131
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:133
#: lib/web/templates/email/event_updated.text.eex:24 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
@ -822,7 +822,7 @@ msgid "Confirm new email"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:82
#: lib/web/templates/email/event_updated.html.eex:84
msgid "End"
msgstr ""
@ -899,12 +899,12 @@ msgid "Learn more about Mobilizon here!"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:92
#: lib/web/templates/email/event_updated.html.eex:94
msgid "Location"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:102
#: lib/web/templates/email/event_updated.html.eex:104
msgid "Location address was removed"
msgstr ""
@ -943,7 +943,7 @@ msgid "Sorry! You're not going."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:72
#: lib/web/templates/email/event_updated.html.eex:74
msgid "Start"
msgstr ""
@ -953,25 +953,24 @@ msgid "Start %{begins_on}"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:38
#: lib/web/templates/email/event_updated.text.eex:3
msgid "There have been changes for %{title} so we'd thought we'd let you know."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:54
#: lib/web/templates/email/event_updated.html.eex:55
#: lib/web/templates/email/event_updated.text.eex:11
msgid "This event has been cancelled by its organizers. Sorry!"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:50
#: lib/web/templates/email/event_updated.html.eex:51
#: lib/web/templates/email/event_updated.text.eex:7
msgid "This event has been confirmed"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:52
#: lib/web/templates/email/event_updated.html.eex:53
#: lib/web/templates/email/event_updated.text.eex:9
msgid "This event has yet to be confirmed: organizers will let you know if they do confirm it."
msgstr ""
@ -1004,7 +1003,7 @@ msgid "Visit event page"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:119
#: lib/web/templates/email/event_updated.html.eex:121
msgid "Visit the updated event page"
msgstr ""
@ -1367,7 +1366,17 @@ msgstr ""
msgid "Hi there! You just registered to join this event: « <b>%{title}</b> ». Please confirm the e-mail address you provided:"
msgstr ""
#, elixir-format, fuzzy
#, elixir-format
#: lib/web/templates/email/event_participation_rejected.html.eex:38
msgid "You issued a request to attend <b>%{title}</b>."
msgstr ""
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:64
msgid "Event title"
msgstr ""
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:38
msgid "There have been changes for <b>%{title}</b> so we'd thought we'd let you know."
msgstr ""

View File

@ -663,7 +663,7 @@ msgid "You need to be logged-in and an administrator to access dashboard statist
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/admin.ex:242
#: lib/graphql/resolvers/admin.ex:232
msgid "You need to be logged-in and an administrator to save admin settings"
msgstr ""

View File

@ -49,8 +49,8 @@ msgid "Comments"
msgstr "Kommentare"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:62
#: lib/web/templates/email/report.html.eex:72 lib/web/templates/email/report.text.eex:11
#: lib/web/templates/email/report.html.eex:72
#: lib/web/templates/email/report.text.eex:11
msgid "Event"
msgstr "Veranstaltung"
@ -134,7 +134,7 @@ msgid "Your participation to event %{title} has been rejected"
msgstr "Deine Teilnahme an der Veranstaltung %{title}wurde abgelehnt"
#, elixir-format
#: lib/web/email/event.ex:35
#: lib/web/email/event.ex:36
msgid "Event %{title} has been updated"
msgstr "Veranstaltung %{title} wurde aktualisiert"
@ -790,7 +790,7 @@ msgstr ""
#, elixir-format
#: lib/web/templates/email/anonymous_participation_confirmation.html.eex:63
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:131
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:133
#: lib/web/templates/email/event_updated.text.eex:24 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
@ -840,7 +840,7 @@ msgid "Confirm new email"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:82
#: lib/web/templates/email/event_updated.html.eex:84
msgid "End"
msgstr ""
@ -923,12 +923,12 @@ msgid "Learn more about Mobilizon here!"
msgstr "Lerne mehr über Mobilizon."
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:92
#: lib/web/templates/email/event_updated.html.eex:94
msgid "Location"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:102
#: lib/web/templates/email/event_updated.html.eex:104
msgid "Location address was removed"
msgstr ""
@ -967,7 +967,7 @@ msgid "Sorry! You're not going."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:72
#: lib/web/templates/email/event_updated.html.eex:74
msgid "Start"
msgstr ""
@ -977,25 +977,24 @@ msgid "Start %{begins_on}"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:38
#: lib/web/templates/email/event_updated.text.eex:3
msgid "There have been changes for %{title} so we'd thought we'd let you know."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:54
#: lib/web/templates/email/event_updated.html.eex:55
#: lib/web/templates/email/event_updated.text.eex:11
msgid "This event has been cancelled by its organizers. Sorry!"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:50
#: lib/web/templates/email/event_updated.html.eex:51
#: lib/web/templates/email/event_updated.text.eex:7
msgid "This event has been confirmed"
msgstr "Veranstaltung wurde bestätigt"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:52
#: lib/web/templates/email/event_updated.html.eex:53
#: lib/web/templates/email/event_updated.text.eex:9
msgid "This event has yet to be confirmed: organizers will let you know if they do confirm it."
msgstr ""
@ -1028,7 +1027,7 @@ msgid "Visit event page"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:119
#: lib/web/templates/email/event_updated.html.eex:121
msgid "Visit the updated event page"
msgstr ""
@ -1395,7 +1394,17 @@ msgstr ""
msgid "Hi there! You just registered to join this event: « <b>%{title}</b> ». Please confirm the e-mail address you provided:"
msgstr ""
#, elixir-format, fuzzy
#, elixir-format
#: lib/web/templates/email/event_participation_rejected.html.eex:38
msgid "You issued a request to attend <b>%{title}</b>."
msgstr ""
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:64
msgid "Event title"
msgstr "Veranstaltung"
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:38
msgid "There have been changes for <b>%{title}</b> so we'd thought we'd let you know."
msgstr ""

View File

@ -657,7 +657,7 @@ msgid "You need to be logged-in and an administrator to access dashboard statist
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/admin.ex:242
#: lib/graphql/resolvers/admin.ex:232
msgid "You need to be logged-in and an administrator to save admin settings"
msgstr ""

View File

@ -30,8 +30,8 @@ msgid "Comments"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:62
#: lib/web/templates/email/report.html.eex:72 lib/web/templates/email/report.text.eex:11
#: lib/web/templates/email/report.html.eex:72
#: lib/web/templates/email/report.text.eex:11
msgid "Event"
msgstr ""
@ -108,7 +108,7 @@ msgid "Your participation to event %{title} has been rejected"
msgstr ""
#, elixir-format
#: lib/web/email/event.ex:35
#: lib/web/email/event.ex:36
msgid "Event %{title} has been updated"
msgstr ""
@ -755,7 +755,7 @@ msgstr ""
#, elixir-format
#: lib/web/templates/email/anonymous_participation_confirmation.html.eex:63
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:131
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:133
#: lib/web/templates/email/event_updated.text.eex:24 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
@ -801,7 +801,7 @@ msgid "Confirm new email"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:82
#: lib/web/templates/email/event_updated.html.eex:84
msgid "End"
msgstr ""
@ -878,12 +878,12 @@ msgid "Learn more about Mobilizon here!"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:92
#: lib/web/templates/email/event_updated.html.eex:94
msgid "Location"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:102
#: lib/web/templates/email/event_updated.html.eex:104
msgid "Location address was removed"
msgstr ""
@ -922,7 +922,7 @@ msgid "Sorry! You're not going."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:72
#: lib/web/templates/email/event_updated.html.eex:74
msgid "Start"
msgstr ""
@ -932,25 +932,24 @@ msgid "Start %{begins_on}"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:38
#: lib/web/templates/email/event_updated.text.eex:3
msgid "There have been changes for %{title} so we'd thought we'd let you know."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:54
#: lib/web/templates/email/event_updated.html.eex:55
#: lib/web/templates/email/event_updated.text.eex:11
msgid "This event has been cancelled by its organizers. Sorry!"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:50
#: lib/web/templates/email/event_updated.html.eex:51
#: lib/web/templates/email/event_updated.text.eex:7
msgid "This event has been confirmed"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:52
#: lib/web/templates/email/event_updated.html.eex:53
#: lib/web/templates/email/event_updated.text.eex:9
msgid "This event has yet to be confirmed: organizers will let you know if they do confirm it."
msgstr ""
@ -983,7 +982,7 @@ msgid "Visit event page"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:119
#: lib/web/templates/email/event_updated.html.eex:121
msgid "Visit the updated event page"
msgstr ""
@ -1350,3 +1349,13 @@ msgstr ""
#: lib/web/templates/email/event_participation_rejected.html.eex:38
msgid "You issued a request to attend <b>%{title}</b>."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:64
msgid "Event title"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:38
msgid "There have been changes for <b>%{title}</b> so we'd thought we'd let you know."
msgstr ""

View File

@ -53,8 +53,8 @@ msgid "Comments"
msgstr "Comments"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:62
#: lib/web/templates/email/report.html.eex:72 lib/web/templates/email/report.text.eex:11
#: lib/web/templates/email/report.html.eex:72
#: lib/web/templates/email/report.text.eex:11
msgid "Event"
msgstr "Event"
@ -131,7 +131,7 @@ msgid "Your participation to event %{title} has been rejected"
msgstr "Your participation to event %{title} has been rejected"
#, elixir-format
#: lib/web/email/event.ex:35
#: lib/web/email/event.ex:36
msgid "Event %{title} has been updated"
msgstr "Event %{title} has been updated"
@ -808,7 +808,7 @@ msgstr "Please do not use it in any real way"
#, elixir-format
#: lib/web/templates/email/anonymous_participation_confirmation.html.eex:63
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:131
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:133
#: lib/web/templates/email/event_updated.text.eex:24 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
@ -854,7 +854,7 @@ msgid "Confirm new email"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:82
#: lib/web/templates/email/event_updated.html.eex:84
msgid "End"
msgstr ""
@ -931,12 +931,12 @@ msgid "Learn more about Mobilizon here!"
msgstr "Learn more about Mobilizon."
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:92
#: lib/web/templates/email/event_updated.html.eex:94
msgid "Location"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:102
#: lib/web/templates/email/event_updated.html.eex:104
msgid "Location address was removed"
msgstr ""
@ -975,7 +975,7 @@ msgid "Sorry! You're not going."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:72
#: lib/web/templates/email/event_updated.html.eex:74
msgid "Start"
msgstr ""
@ -985,25 +985,24 @@ msgid "Start %{begins_on}"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:38
#: lib/web/templates/email/event_updated.text.eex:3
msgid "There have been changes for %{title} so we'd thought we'd let you know."
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:54
#: lib/web/templates/email/event_updated.html.eex:55
#: lib/web/templates/email/event_updated.text.eex:11
msgid "This event has been cancelled by its organizers. Sorry!"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:50
#: lib/web/templates/email/event_updated.html.eex:51
#: lib/web/templates/email/event_updated.text.eex:7
msgid "This event has been confirmed"
msgstr "Event has been confirmed"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:52
#: lib/web/templates/email/event_updated.html.eex:53
#: lib/web/templates/email/event_updated.text.eex:9
msgid "This event has yet to be confirmed: organizers will let you know if they do confirm it."
msgstr ""
@ -1036,7 +1035,7 @@ msgid "Visit event page"
msgstr ""
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:119
#: lib/web/templates/email/event_updated.html.eex:121
msgid "Visit the updated event page"
msgstr ""
@ -1399,7 +1398,17 @@ msgstr ""
msgid "Hi there! You just registered to join this event: « <b>%{title}</b> ». Please confirm the e-mail address you provided:"
msgstr ""
#, elixir-format, fuzzy
#, elixir-format
#: lib/web/templates/email/event_participation_rejected.html.eex:38
msgid "You issued a request to attend <b>%{title}</b>."
msgstr ""
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:64
msgid "Event title"
msgstr "Event"
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:38
msgid "There have been changes for <b>%{title}</b> so we'd thought we'd let you know."
msgstr ""

View File

@ -667,7 +667,7 @@ msgid "You need to be logged-in and an administrator to access dashboard statist
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/admin.ex:242
#: lib/graphql/resolvers/admin.ex:232
msgid "You need to be logged-in and an administrator to save admin settings"
msgstr ""

View File

@ -664,7 +664,7 @@ msgid "You need to be logged-in and an administrator to access dashboard statist
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/admin.ex:242
#: lib/graphql/resolvers/admin.ex:232
msgid "You need to be logged-in and an administrator to save admin settings"
msgstr ""

View File

@ -48,8 +48,8 @@ msgid "Comments"
msgstr "Comentarios"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:62
#: lib/web/templates/email/report.html.eex:72 lib/web/templates/email/report.text.eex:11
#: lib/web/templates/email/report.html.eex:72
#: lib/web/templates/email/report.text.eex:11
msgid "Event"
msgstr "Evento"
@ -133,7 +133,7 @@ msgid "Your participation to event %{title} has been rejected"
msgstr "Su participación en el evento %{title} ha sido rechazada"
#, elixir-format
#: lib/web/email/event.ex:35
#: lib/web/email/event.ex:36
msgid "Event %{title} has been updated"
msgstr "El evento %{title} ha sido actualizado"
@ -958,7 +958,7 @@ msgstr "Por favor no lo use de ninguna manera real."
#, elixir-format
#: lib/web/templates/email/anonymous_participation_confirmation.html.eex:63
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:131
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:133
#: lib/web/templates/email/event_updated.text.eex:24 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
@ -1010,7 +1010,7 @@ msgid "Confirm new email"
msgstr "Confirme su email"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:82
#: lib/web/templates/email/event_updated.html.eex:84
msgid "End"
msgstr "Final"
@ -1107,12 +1107,12 @@ msgid "Learn more about Mobilizon here!"
msgstr "¡Aprenda más sobre Mobilizon aquí!"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:92
#: lib/web/templates/email/event_updated.html.eex:94
msgid "Location"
msgstr "Ubicación"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:102
#: lib/web/templates/email/event_updated.html.eex:104
msgid "Location address was removed"
msgstr "Dirección física fue eliminada"
@ -1151,7 +1151,7 @@ msgid "Sorry! You're not going."
msgstr "¡Lo siento! No vas."
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:72
#: lib/web/templates/email/event_updated.html.eex:74
msgid "Start"
msgstr "Inicio"
@ -1161,25 +1161,24 @@ msgid "Start %{begins_on}"
msgstr "Inicio% {starts_on}"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:38
#: lib/web/templates/email/event_updated.text.eex:3
msgid "There have been changes for %{title} so we'd thought we'd let you know."
msgstr "Ha habido cambios para% {title}, así que pensamos en avisarle."
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:54
#: lib/web/templates/email/event_updated.html.eex:55
#: lib/web/templates/email/event_updated.text.eex:11
msgid "This event has been cancelled by its organizers. Sorry!"
msgstr "Este evento ha sido cancelado por sus organizadores. ¡Lo siento!"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:50
#: lib/web/templates/email/event_updated.html.eex:51
#: lib/web/templates/email/event_updated.text.eex:7
msgid "This event has been confirmed"
msgstr "El evento ha sido confirmado"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:52
#: lib/web/templates/email/event_updated.html.eex:53
#: lib/web/templates/email/event_updated.text.eex:9
msgid "This event has yet to be confirmed: organizers will let you know if they do confirm it."
msgstr ""
@ -1215,7 +1214,7 @@ msgid "Visit event page"
msgstr "Visita la página del evento"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:119
#: lib/web/templates/email/event_updated.html.eex:121
msgid "Visit the updated event page"
msgstr "Visita la página del evento actualizada"
@ -1695,7 +1694,17 @@ msgstr ""
"¡Hola! Te acabas de registrar para unirte a este evento: «% {title}». "
"Confirme la dirección de correo electrónico que proporcionó:"
#, elixir-format, fuzzy
#, elixir-format
#: lib/web/templates/email/event_participation_rejected.html.eex:38
msgid "You issued a request to attend <b>%{title}</b>."
msgstr "Envió una solicitud para asistir a %{title}."
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:64
msgid "Event title"
msgstr "Evento"
#, elixir-format, fuzzy
#: lib/web/templates/email/event_updated.html.eex:38
msgid "There have been changes for <b>%{title}</b> so we'd thought we'd let you know."
msgstr "Ha habido cambios para% {title}, así que pensamos en avisarle."

View File

@ -679,7 +679,7 @@ msgstr ""
"panel"
#, elixir-format
#: lib/graphql/resolvers/admin.ex:242
#: lib/graphql/resolvers/admin.ex:232
msgid "You need to be logged-in and an administrator to save admin settings"
msgstr ""
"Debe iniciar sesión y ser administrador para acceder a las estadísticas del "

View File

@ -48,8 +48,8 @@ msgid "Comments"
msgstr "Kommentit"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:62
#: lib/web/templates/email/report.html.eex:72 lib/web/templates/email/report.text.eex:11
#: lib/web/templates/email/report.html.eex:72
#: lib/web/templates/email/report.text.eex:11
msgid "Event"
msgstr "Tapahtuma"
@ -133,7 +133,7 @@ msgid "Your participation to event %{title} has been rejected"
msgstr "Osallistumisesi tapahtumaan %{title) on hylätty"
#, elixir-format
#: lib/web/email/event.ex:35
#: lib/web/email/event.ex:36
msgid "Event %{title} has been updated"
msgstr "Tapahtumaa %{title} on päivitetty"
@ -939,7 +939,7 @@ msgstr "Älä käytä todellisiin tarkoituksiin."
#, elixir-format
#: lib/web/templates/email/anonymous_participation_confirmation.html.eex:63
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:131
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:133
#: lib/web/templates/email/event_updated.text.eex:24 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
@ -990,7 +990,7 @@ msgid "Confirm new email"
msgstr "Vahvista sähköpostiosoite"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:82
#: lib/web/templates/email/event_updated.html.eex:84
msgid "End"
msgstr "Päättyy"
@ -1087,12 +1087,12 @@ msgid "Learn more about Mobilizon here!"
msgstr "Lue lisää Mobilizonista."
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:92
#: lib/web/templates/email/event_updated.html.eex:94
msgid "Location"
msgstr "Sijainti"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:102
#: lib/web/templates/email/event_updated.html.eex:104
msgid "Location address was removed"
msgstr "Käyntiosoite poistettiin"
@ -1131,7 +1131,7 @@ msgid "Sorry! You're not going."
msgstr "Valitettavasti et pääse mukaan."
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:72
#: lib/web/templates/email/event_updated.html.eex:74
msgid "Start"
msgstr "Alkaa"
@ -1141,25 +1141,24 @@ msgid "Start %{begins_on}"
msgstr "Alkaa %{begins_on}"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:38
#: lib/web/templates/email/event_updated.text.eex:3
msgid "There have been changes for %{title} so we'd thought we'd let you know."
msgstr "%{title} on joiltain osin muuttunut, ja ajattelimme ilmoittaa asiasta."
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:54
#: lib/web/templates/email/event_updated.html.eex:55
#: lib/web/templates/email/event_updated.text.eex:11
msgid "This event has been cancelled by its organizers. Sorry!"
msgstr "Valitettavasti tapahtuman järjestäjät peruivat tapahtuman."
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:50
#: lib/web/templates/email/event_updated.html.eex:51
#: lib/web/templates/email/event_updated.text.eex:7
msgid "This event has been confirmed"
msgstr "Tapahtuma on vahvistettu"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:52
#: lib/web/templates/email/event_updated.html.eex:53
#: lib/web/templates/email/event_updated.text.eex:9
msgid "This event has yet to be confirmed: organizers will let you know if they do confirm it."
msgstr ""
@ -1194,7 +1193,7 @@ msgid "Visit event page"
msgstr "Käy tapahtumasivulla"
#, elixir-format
#: lib/web/templates/email/event_updated.html.eex:119
#: lib/web/templates/email/event_updated.html.eex:121
msgid "Visit the updated event page"
msgstr "Käy päivitetyllä tapahtumasivulla"
@ -1645,7 +1644,17 @@ msgstr ""
"Hei! Rekisteröidyit juuri tapahtumaan ”%{title}”. Vahvista ilmoittamasi "
"sähköpostiosoite:"
#, elixir-format, fuzzy
#, elixir-format
#: lib/web/templates/email/event_participation_rejected.html.eex:38