From 96e155a49a21cac3b2e1623479b34c165463b874 Mon Sep 17 00:00:00 2001 From: shibao Date: Fri, 14 Apr 2023 18:29:34 -0400 Subject: [PATCH] ee cummings more emails --- lib/memex/accounts/email.ex | 6 +-- .../components/layouts/email_html.html.heex | 2 +- .../components/layouts/email_text.txt.eex | 2 +- priv/gettext/de/LC_MESSAGES/emails.po | 50 +++++++++---------- priv/gettext/emails.pot | 50 +++++++++---------- priv/gettext/en/LC_MESSAGES/emails.po | 50 +++++++++---------- 6 files changed, 80 insertions(+), 80 deletions(-) diff --git a/lib/memex/accounts/email.ex b/lib/memex/accounts/email.ex index 9da224b..cd26453 100644 --- a/lib/memex/accounts/email.ex +++ b/lib/memex/accounts/email.ex @@ -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 diff --git a/lib/memex_web/components/layouts/email_html.html.heex b/lib/memex_web/components/layouts/email_html.html.heex index a83c3fc..c525f56 100644 --- a/lib/memex_web/components/layouts/email_html.html.heex +++ b/lib/memex_web/components/layouts/email_html.html.heex @@ -10,7 +10,7 @@
- <%= dgettext("emails", "This email was sent from memEx") %> + <%= dgettext("emails", "this email was sent from memEx") %> diff --git a/lib/memex_web/components/layouts/email_text.txt.eex b/lib/memex_web/components/layouts/email_text.txt.eex index 89252e2..20d3648 100644 --- a/lib/memex_web/components/layouts/email_text.txt.eex +++ b/lib/memex_web/components/layouts/email_text.txt.eex @@ -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"/") %> diff --git a/priv/gettext/de/LC_MESSAGES/emails.po b/priv/gettext/de/LC_MESSAGES/emails.po index 56f98b0..28848ad 100644 --- a/priv/gettext/de/LC_MESSAGES/emails.po +++ b/priv/gettext/de/LC_MESSAGES/emails.po @@ -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 "" diff --git a/priv/gettext/emails.pot b/priv/gettext/emails.pot index b47133d..f28a458 100644 --- a/priv/gettext/emails.pot +++ b/priv/gettext/emails.pot @@ -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 "" diff --git a/priv/gettext/en/LC_MESSAGES/emails.po b/priv/gettext/en/LC_MESSAGES/emails.po index f378fec..65c0f77 100644 --- a/priv/gettext/en/LC_MESSAGES/emails.po +++ b/priv/gettext/en/LC_MESSAGES/emails.po @@ -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 ""