ee cummings more emails
This commit is contained in:
parent
c02fb06eb2
commit
96e155a49a
@ -28,21 +28,21 @@ defmodule Memex.Email do
|
||||
@spec generate_email(key :: String.t(), User.t(), attrs :: map()) :: t()
|
||||
def generate_email("welcome", user, %{"url" => url}) do
|
||||
user
|
||||
|> base_email(dgettext("emails", "Confirm your Memex account"))
|
||||
|> base_email(dgettext("emails", "confirm your memEx account"))
|
||||
|> html_email(:confirm_email_html, %{user: user, url: url})
|
||||
|> text_email(:confirm_email_text, %{user: user, url: url})
|
||||
end
|
||||
|
||||
def generate_email("reset_password", user, %{"url" => url}) do
|
||||
user
|
||||
|> base_email(dgettext("emails", "Reset your Memex password"))
|
||||
|> base_email(dgettext("emails", "reset your memEx password"))
|
||||
|> html_email(:reset_password_html, %{user: user, url: url})
|
||||
|> text_email(:reset_password_text, %{user: user, url: url})
|
||||
end
|
||||
|
||||
def generate_email("update_email", user, %{"url" => url}) do
|
||||
user
|
||||
|> base_email(dgettext("emails", "Update your Memex email"))
|
||||
|> base_email(dgettext("emails", "update your memEx email"))
|
||||
|> html_email(:update_email_html, %{user: user, url: url})
|
||||
|> text_email(:update_email_text, %{user: user, url: url})
|
||||
end
|
||||
|
@ -10,7 +10,7 @@
|
||||
<hr style="margin: 2em auto; border-width: 1px; border-color: rgb(161, 161, 170); width: 100%; max-width: 42rem;" />
|
||||
|
||||
<a style="color: rgb(161, 161, 170);" href={~p"/"}>
|
||||
<%= dgettext("emails", "This email was sent from memEx") %>
|
||||
<%= dgettext("emails", "this email was sent from memEx") %>
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -6,4 +6,4 @@
|
||||
|
||||
=====================
|
||||
|
||||
<%= dgettext("emails", "This email was sent from memEx at %{url}", url: ~p"/") %>
|
||||
<%= dgettext("emails", "this email was sent from memEx at %{url}", url: ~p"/") %>
|
||||
|
@ -10,11 +10,6 @@ msgid ""
|
||||
msgstr ""
|
||||
"Language: de\n"
|
||||
|
||||
#: lib/memex/accounts/email.ex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Confirm your Memex account"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/controllers/email_html/confirm_email_html.html.heex:3
|
||||
#: lib/memex_web/controllers/email_html/confirm_email_text.txt.eex:2
|
||||
#: lib/memex_web/controllers/email_html/reset_password_html.html.heex:3
|
||||
@ -36,16 +31,6 @@ msgstr ""
|
||||
msgid "If you didn't request this change from %{url}, please ignore this."
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Reset your Memex password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Update your Memex email"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/controllers/email_html/update_email_html.html.heex:8
|
||||
#: lib/memex_web/controllers/email_html/update_email_text.txt.eex:4
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -64,16 +49,6 @@ msgstr ""
|
||||
msgid "You can reset your password by visiting the URL below:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/components/layouts/email_html.html.heex:13
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "This email was sent from memEx"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/components/layouts/email_text.txt.eex:9
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "This email was sent from memEx at %{url}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/controllers/email_html/confirm_email_html.html.heex:22
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "If you didn't create an account at memEx, please ignore this."
|
||||
@ -90,3 +65,28 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Welcome to memEx"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:31
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "confirm your memEx account"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:38
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "reset your memEx password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/components/layouts/email_html.html.heex:13
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "this email was sent from memEx"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/components/layouts/email_text.txt.eex:9
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "this email was sent from memEx at %{url}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:45
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "update your memEx email"
|
||||
msgstr ""
|
||||
|
@ -10,11 +10,6 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Confirm your Memex account"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/controllers/email_html/confirm_email_html.html.heex:3
|
||||
#: lib/memex_web/controllers/email_html/confirm_email_text.txt.eex:2
|
||||
#: lib/memex_web/controllers/email_html/reset_password_html.html.heex:3
|
||||
@ -36,16 +31,6 @@ msgstr ""
|
||||
msgid "If you didn't request this change from %{url}, please ignore this."
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Reset your Memex password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Update your Memex email"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/controllers/email_html/update_email_html.html.heex:8
|
||||
#: lib/memex_web/controllers/email_html/update_email_text.txt.eex:4
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -64,16 +49,6 @@ msgstr ""
|
||||
msgid "You can reset your password by visiting the URL below:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/components/layouts/email_html.html.heex:13
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "This email was sent from memEx"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/components/layouts/email_text.txt.eex:9
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "This email was sent from memEx at %{url}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/controllers/email_html/confirm_email_html.html.heex:22
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "If you didn't create an account at memEx, please ignore this."
|
||||
@ -90,3 +65,28 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Welcome to memEx"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "confirm your memEx account"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "reset your memEx password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/components/layouts/email_html.html.heex:13
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "this email was sent from memEx"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/components/layouts/email_text.txt.eex:9
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "this email was sent from memEx at %{url}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "update your memEx email"
|
||||
msgstr ""
|
||||
|
@ -11,11 +11,6 @@ msgstr ""
|
||||
"Language: en\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: lib/memex/accounts/email.ex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Confirm your Memex account"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/controllers/email_html/confirm_email_html.html.heex:3
|
||||
#: lib/memex_web/controllers/email_html/confirm_email_text.txt.eex:2
|
||||
#: lib/memex_web/controllers/email_html/reset_password_html.html.heex:3
|
||||
@ -37,16 +32,6 @@ msgstr ""
|
||||
msgid "If you didn't request this change from %{url}, please ignore this."
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Reset your Memex password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Update your Memex email"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/controllers/email_html/update_email_html.html.heex:8
|
||||
#: lib/memex_web/controllers/email_html/update_email_text.txt.eex:4
|
||||
#, elixir-autogen, elixir-format
|
||||
@ -65,16 +50,6 @@ msgstr ""
|
||||
msgid "You can reset your password by visiting the URL below:"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/components/layouts/email_html.html.heex:13
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "This email was sent from memEx"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/components/layouts/email_text.txt.eex:9
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "This email was sent from memEx at %{url}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/controllers/email_html/confirm_email_html.html.heex:22
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "If you didn't create an account at memEx, please ignore this."
|
||||
@ -91,3 +66,28 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Welcome to memEx"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:31
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "confirm your memEx account"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:38
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "reset your memEx password"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/components/layouts/email_html.html.heex:13
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "this email was sent from memEx"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex_web/components/layouts/email_text.txt.eex:9
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "this email was sent from memEx at %{url}"
|
||||
msgstr ""
|
||||
|
||||
#: lib/memex/accounts/email.ex:45
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "update your memEx email"
|
||||
msgstr ""
|
||||
|
Loading…
Reference in New Issue
Block a user