feat(cli): add command to test emails send correctly

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-12-06 18:56:46 +01:00
parent 4855af8f87
commit 7210f86889
62 changed files with 1478 additions and 786 deletions

View File

@@ -109,7 +109,7 @@ msgstr "Resetting your password is easy. Just press the button below and follow
msgid "You created an account on %{host} with this email address. You are one click away from activating it. If this wasn't you, please ignore this email."
msgstr "You created an account on %{host} with this email address. You are one click away from activating it."
#: lib/web/email/participation.ex:114
#: lib/web/email/participation.ex:115
#, elixir-autogen, elixir-format
msgid "Your participation to event %{title} has been approved"
msgstr "Your participation to event %{title} has been approved"
@@ -139,7 +139,7 @@ msgstr "You requested a new password for your account on %{instance}."
msgid "Warning"
msgstr "Warning"
#: lib/web/email/participation.ex:140
#: lib/web/email/participation.ex:142
#, elixir-autogen, elixir-format
msgid "Confirm your participation to event %{title}"
msgstr "Confirm your participation to event %{title}"
@@ -1009,7 +1009,7 @@ msgstr ""
#: lib/web/templates/email/event_participation_approved.html.heex:98
#: lib/web/templates/email/event_participation_approved.text.eex:11
#: lib/web/templates/email/event_participation_confirmed.html.heex:98
#: lib/web/templates/email/event_participation_confirmed.html.heex:140
#: lib/web/templates/email/event_participation_confirmed.text.eex:6
#, elixir-autogen, elixir-format
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."
@@ -1323,7 +1323,7 @@ msgid "This is a demonstration site to test Mobilizon."
msgstr "This is a demonstration site to test the beta version of Mobilizon."
#: lib/service/metadata/actor.ex:86
#: lib/service/metadata/actor.ex:92
#: lib/service/metadata/actor.ex:93
#: lib/service/metadata/instance.ex:60
#: lib/service/metadata/instance.ex:66
#, elixir-autogen, elixir-format
@@ -2029,11 +2029,30 @@ msgid "Participant registration date"
msgstr ""
#: lib/web/templates/email/anonymous_participation_confirmation.html.heex:113
#: lib/web/templates/email/event_participation_confirmed.html.heex:122
#, elixir-autogen, elixir-format
msgid "Cancel my attendance"
msgstr ""
#: lib/web/templates/email/anonymous_participation_confirmation.html.heex:90
#: lib/web/templates/email/event_participation_confirmed.html.heex:99
#, elixir-autogen, elixir-format
msgid "If you wish to cancel your participation, simply click on the link below."
msgstr ""
#: lib/web/email/admin.ex:142
#, elixir-autogen, elixir-format
msgid "Email configuration test for %{instance}"
msgstr ""
#: lib/web/templates/email/email_configuration_test.html.heex:47
#: lib/web/templates/email/email_configuration_test.text.eex:3
#, elixir-autogen, elixir-format
msgid "If you received this email, the email configuration seems to be correct."
msgstr ""
#: lib/web/templates/email/email_configuration_test.html.heex:18
#: lib/web/templates/email/email_configuration_test.text.eex:1
#, elixir-autogen, elixir-format
msgid "Well done!"
msgstr ""

View File

@@ -1175,23 +1175,23 @@ msgstr ""
msgid "Impossible to create application."
msgstr ""
#: lib/web/controllers/application_controller.ex:355
#: lib/web/controllers/application_controller.ex:353
#, elixir-autogen, elixir-format
msgid "Incorrect parameters sent. You need to provide at least the grant_type and client_id parameters, depending on the grant type being used."
msgstr ""
#: lib/web/controllers/application_controller.ex:328
#: lib/web/controllers/application_controller.ex:326
#, elixir-autogen, elixir-format
msgid "Invalid client credentials provided"
msgstr ""
#: lib/web/controllers/application_controller.ex:336
#: lib/web/controllers/application_controller.ex:334
#, elixir-autogen, elixir-format
msgid "Invalid refresh token provided"
msgstr ""
#: lib/web/controllers/application_controller.ex:169
#: lib/web/controllers/application_controller.ex:400
#: lib/web/controllers/application_controller.ex:167
#: lib/web/controllers/application_controller.ex:398
#, elixir-autogen, elixir-format
msgid "No application was found with this client_id"
msgstr ""
@@ -1217,17 +1217,17 @@ msgstr ""
msgid "Not authorized to access this %{object_type}"
msgstr ""
#: lib/web/controllers/application_controller.ex:278
#: lib/web/controllers/application_controller.ex:276
#, elixir-autogen, elixir-format
msgid "Please slow down the rate of your requests"
msgstr ""
#: lib/web/controllers/application_controller.ex:266
#: lib/web/controllers/application_controller.ex:264
#, elixir-autogen, elixir-format
msgid "The authorization request is still pending"
msgstr ""
#: lib/web/controllers/application_controller.ex:248
#: lib/web/controllers/application_controller.ex:246
#, elixir-autogen, elixir-format
msgid "The client_id provided or the device_code associated is invalid"
msgstr ""
@@ -1237,7 +1237,7 @@ msgstr ""
msgid "The device user code was not provided before approving the application"
msgstr ""
#: lib/web/controllers/application_controller.ex:303
#: lib/web/controllers/application_controller.ex:301
#, elixir-autogen, elixir-format
msgid "The given device_code has expired"
msgstr ""
@@ -1247,7 +1247,7 @@ msgstr ""
msgid "The given redirect_uri is not in the list of allowed redirect URIs"
msgstr ""
#: lib/web/controllers/application_controller.ex:157
#: lib/web/controllers/application_controller.ex:155
#, elixir-autogen, elixir-format
msgid "The given scope is not in the list of the app declared scopes"
msgstr ""
@@ -1264,22 +1264,22 @@ msgstr ""
msgid "The given user code is invalid"
msgstr ""
#: lib/web/controllers/application_controller.ex:410
#: lib/web/controllers/application_controller.ex:408
#, elixir-autogen, elixir-format
msgid "The provided client_id does not match the provided code"
msgstr ""
#: lib/web/controllers/application_controller.ex:413
#: lib/web/controllers/application_controller.ex:411
#, elixir-autogen, elixir-format
msgid "The provided client_secret is invalid"
msgstr ""
#: lib/web/controllers/application_controller.ex:406
#: lib/web/controllers/application_controller.ex:404
#, elixir-autogen, elixir-format
msgid "The provided code is invalid or expired"
msgstr ""
#: lib/web/controllers/application_controller.ex:417
#: lib/web/controllers/application_controller.ex:415
#, elixir-autogen, elixir-format
msgid "The provided scope is invalid or not included in the app declared scopes"
msgstr ""
@@ -1289,17 +1289,17 @@ msgstr ""
msgid "The scope parameter is not a space separated list of valid scopes"
msgstr ""
#: lib/web/controllers/application_controller.ex:291
#: lib/web/controllers/application_controller.ex:289
#, elixir-autogen, elixir-format
msgid "The user rejected the requested authorization"
msgstr ""
#: lib/web/controllers/application_controller.ex:403
#: lib/web/controllers/application_controller.ex:401
#, elixir-autogen, elixir-format
msgid "This redirect URI is not allowed"
msgstr ""
#: lib/web/controllers/application_controller.ex:380
#: lib/web/controllers/application_controller.ex:378
#, elixir-autogen, elixir-format, fuzzy
msgid "Token not found"
msgstr ""
@@ -1309,27 +1309,27 @@ msgstr ""
msgid "Too many requests"
msgstr ""
#: lib/web/controllers/application_controller.ex:183
#: lib/web/controllers/application_controller.ex:181
#, elixir-autogen, elixir-format
msgid "Unable to produce device code"
msgstr ""
#: lib/web/controllers/application_controller.ex:372
#: lib/web/controllers/application_controller.ex:370
#, elixir-autogen, elixir-format
msgid "Unable to revoke token"
msgstr ""
#: lib/web/controllers/application_controller.ex:197
#: lib/web/controllers/application_controller.ex:195
#, elixir-autogen, elixir-format
msgid "You need to pass both client_id and scope as parameters to obtain a device code"
msgstr ""
#: lib/web/controllers/application_controller.ex:135
#: lib/web/controllers/application_controller.ex:133
#, elixir-autogen, elixir-format
msgid "You need to provide a valid redirect_uri to autorize an application"
msgstr ""
#: lib/web/controllers/application_controller.ex:125
#: lib/web/controllers/application_controller.ex:123
#, elixir-autogen, elixir-format
msgid "You need to specify client_id, redirect_uri, scope and state to autorize an application"
msgstr ""
@@ -1365,7 +1365,7 @@ msgstr ""
msgid "This instance is pending follow approval"
msgstr ""
#: lib/graphql/schema/custom/timezone.ex:23
#: lib/graphql/schema/custom/timezone.ex:25
#, elixir-autogen, elixir-format
msgid "Timezone ID %{timezone} is invalid"
msgstr ""