From 07ff796553a54d12cc163e649200af5dcef6fa87 Mon Sep 17 00:00:00 2001 From: shibao Date: Sat, 25 Feb 2023 00:52:50 -0500 Subject: [PATCH] fix more gettexts --- .../templates/user_confirmation/new.html.heex | 2 +- .../templates/user_registration/new.html.heex | 4 ++-- .../user_reset_password/edit.html.heex | 4 ++-- .../templates/user_reset_password/new.html.heex | 2 +- .../templates/user_session/new.html.heex | 4 ++-- .../templates/user_settings/edit.html.heex | 2 +- priv/gettext/de/LC_MESSAGES/default.po | 17 +++++++++++++++++ priv/gettext/default.pot | 17 +++++++++++++++++ priv/gettext/en/LC_MESSAGES/default.po | 17 +++++++++++++++++ priv/gettext/es/LC_MESSAGES/default.po | 17 +++++++++++++++++ priv/gettext/fr/LC_MESSAGES/default.po | 17 +++++++++++++++++ priv/gettext/ga/LC_MESSAGES/default.po | 17 +++++++++++++++++ 12 files changed, 111 insertions(+), 9 deletions(-) diff --git a/lib/cannery_web/templates/user_confirmation/new.html.heex b/lib/cannery_web/templates/user_confirmation/new.html.heex index 0408945d..6d72fe05 100644 --- a/lib/cannery_web/templates/user_confirmation/new.html.heex +++ b/lib/cannery_web/templates/user_confirmation/new.html.heex @@ -9,7 +9,7 @@ action={Routes.user_confirmation_path(@conn, :create)} class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" > - <%= label(f, :email, class: "title text-lg text-primary-600") %> + <%= label(f, :email, gettext("Email"), class: "title text-lg text-primary-600") %> <%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %> <%= submit(dgettext("actions", "Resend confirmation instructions"), diff --git a/lib/cannery_web/templates/user_registration/new.html.heex b/lib/cannery_web/templates/user_registration/new.html.heex index 82ff3bd2..efa30fb2 100644 --- a/lib/cannery_web/templates/user_registration/new.html.heex +++ b/lib/cannery_web/templates/user_registration/new.html.heex @@ -17,11 +17,11 @@ <%= hidden_input(f, :invite_token, value: @invite_token) %> <% end %> - <%= label(f, :email, class: "title text-lg text-primary-600") %> + <%= label(f, :email, gettext("Email"), class: "title text-lg text-primary-600") %> <%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %> <%= error_tag(f, :email, "col-span-3") %> - <%= label(f, :password, class: "title text-lg text-primary-600") %> + <%= label(f, :password, gettext("Password"), class: "title text-lg text-primary-600") %> <%= password_input(f, :password, required: true, class: "input input-primary col-span-2") %> <%= error_tag(f, :password, "col-span-3") %> diff --git a/lib/cannery_web/templates/user_reset_password/edit.html.heex b/lib/cannery_web/templates/user_reset_password/edit.html.heex index 316edcea..18831107 100644 --- a/lib/cannery_web/templates/user_reset_password/edit.html.heex +++ b/lib/cannery_web/templates/user_reset_password/edit.html.heex @@ -15,11 +15,11 @@

- <%= label(f, :password, "New password", class: "title text-lg text-primary-600") %> + <%= label(f, :password, gettext("New password"), class: "title text-lg text-primary-600") %> <%= password_input(f, :password, required: true, class: "input input-primary col-span-2") %> <%= error_tag(f, :password, "col-span-3") %> - <%= label(f, :password_confirmation, "Confirm new password", + <%= label(f, :password_confirmation, gettext("Confirm new password"), class: "title text-lg text-primary-600" ) %> <%= password_input(f, :password_confirmation, diff --git a/lib/cannery_web/templates/user_reset_password/new.html.heex b/lib/cannery_web/templates/user_reset_password/new.html.heex index facedaaa..3c18a589 100644 --- a/lib/cannery_web/templates/user_reset_password/new.html.heex +++ b/lib/cannery_web/templates/user_reset_password/new.html.heex @@ -9,7 +9,7 @@ action={Routes.user_reset_password_path(@conn, :create)} class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" > - <%= label(f, :email, class: "title text-lg text-primary-600") %> + <%= label(f, :email, gettext("Email"), class: "title text-lg text-primary-600") %> <%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %> <%= submit(dgettext("actions", "Send instructions to reset password"), diff --git a/lib/cannery_web/templates/user_session/new.html.heex b/lib/cannery_web/templates/user_session/new.html.heex index d2914a1a..4a2f6291 100644 --- a/lib/cannery_web/templates/user_session/new.html.heex +++ b/lib/cannery_web/templates/user_session/new.html.heex @@ -16,10 +16,10 @@

- <%= label(f, :email, class: "title text-lg text-primary-600") %> + <%= label(f, :email, gettext("Email"), class: "title text-lg text-primary-600") %> <%= email_input(f, :email, required: true, class: "input input-primary col-span-2") %> - <%= label(f, :password, class: "title text-lg text-primary-600") %> + <%= label(f, :password, gettext("Password"), class: "title text-lg text-primary-600") %> <%= password_input(f, :password, required: true, class: "input input-primary col-span-2") %> <%= label(f, :remember_me, gettext("Keep me logged in for 60 days"), diff --git a/lib/cannery_web/templates/user_settings/edit.html.heex b/lib/cannery_web/templates/user_settings/edit.html.heex index d438e81a..780cb956 100644 --- a/lib/cannery_web/templates/user_settings/edit.html.heex +++ b/lib/cannery_web/templates/user_settings/edit.html.heex @@ -24,7 +24,7 @@ <%= hidden_input(f, :action, name: "action", value: "update_email") %> - <%= label(f, :email, class: "title text-lg text-primary-600") %> + <%= label(f, :email, gettext("Email"), class: "title text-lg text-primary-600") %> <%= email_input(f, :email, required: true, class: "mx-2 my-1 input input-primary col-span-2") %> <%= error_tag(f, :email, "col-span-3") %> diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po index 1f5d4d02..c15600b2 100644 --- a/priv/gettext/de/LC_MESSAGES/default.po +++ b/priv/gettext/de/LC_MESSAGES/default.po @@ -574,6 +574,7 @@ msgstr "Pulverart" msgid "UPC" msgstr "UPC" +#: lib/cannery_web/templates/user_reset_password/edit.html.heex:22 #: lib/cannery_web/templates/user_settings/edit.html.heex:76 #, elixir-autogen, elixir-format msgid "Confirm new password" @@ -585,6 +586,7 @@ msgstr "Passwort bestätigen" msgid "Current password" msgstr "Derzeitiges Passwort" +#: lib/cannery_web/templates/user_reset_password/edit.html.heex:18 #: lib/cannery_web/templates/user_settings/edit.html.heex:69 #, elixir-autogen, elixir-format msgid "New password" @@ -1197,3 +1199,18 @@ msgstr "Verbleibende Nutzung:" #, elixir-autogen, elixir-format msgid "Uses: %{uses_count}" msgstr "" + +#: lib/cannery_web/templates/user_confirmation/new.html.heex:12 +#: lib/cannery_web/templates/user_registration/new.html.heex:20 +#: lib/cannery_web/templates/user_reset_password/new.html.heex:12 +#: lib/cannery_web/templates/user_session/new.html.heex:19 +#: lib/cannery_web/templates/user_settings/edit.html.heex:27 +#, elixir-autogen, elixir-format +msgid "Email" +msgstr "" + +#: lib/cannery_web/templates/user_registration/new.html.heex:24 +#: lib/cannery_web/templates/user_session/new.html.heex:22 +#, elixir-autogen, elixir-format +msgid "Password" +msgstr "" diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 8fc7ab9c..a8b82944 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -568,6 +568,7 @@ msgstr "" msgid "UPC" msgstr "" +#: lib/cannery_web/templates/user_reset_password/edit.html.heex:22 #: lib/cannery_web/templates/user_settings/edit.html.heex:76 #, elixir-autogen, elixir-format msgid "Confirm new password" @@ -579,6 +580,7 @@ msgstr "" msgid "Current password" msgstr "" +#: lib/cannery_web/templates/user_reset_password/edit.html.heex:18 #: lib/cannery_web/templates/user_settings/edit.html.heex:69 #, elixir-autogen, elixir-format msgid "New password" @@ -1180,3 +1182,18 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Uses: %{uses_count}" msgstr "" + +#: lib/cannery_web/templates/user_confirmation/new.html.heex:12 +#: lib/cannery_web/templates/user_registration/new.html.heex:20 +#: lib/cannery_web/templates/user_reset_password/new.html.heex:12 +#: lib/cannery_web/templates/user_session/new.html.heex:19 +#: lib/cannery_web/templates/user_settings/edit.html.heex:27 +#, elixir-autogen, elixir-format +msgid "Email" +msgstr "" + +#: lib/cannery_web/templates/user_registration/new.html.heex:24 +#: lib/cannery_web/templates/user_session/new.html.heex:22 +#, elixir-autogen, elixir-format +msgid "Password" +msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index d912cc96..c628d8b5 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -568,6 +568,7 @@ msgstr "" msgid "UPC" msgstr "" +#: lib/cannery_web/templates/user_reset_password/edit.html.heex:22 #: lib/cannery_web/templates/user_settings/edit.html.heex:76 #, elixir-autogen, elixir-format msgid "Confirm new password" @@ -579,6 +580,7 @@ msgstr "" msgid "Current password" msgstr "" +#: lib/cannery_web/templates/user_reset_password/edit.html.heex:18 #: lib/cannery_web/templates/user_settings/edit.html.heex:69 #, elixir-autogen, elixir-format msgid "New password" @@ -1180,3 +1182,18 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Uses: %{uses_count}" msgstr "" + +#: lib/cannery_web/templates/user_confirmation/new.html.heex:12 +#: lib/cannery_web/templates/user_registration/new.html.heex:20 +#: lib/cannery_web/templates/user_reset_password/new.html.heex:12 +#: lib/cannery_web/templates/user_session/new.html.heex:19 +#: lib/cannery_web/templates/user_settings/edit.html.heex:27 +#, elixir-autogen, elixir-format +msgid "Email" +msgstr "" + +#: lib/cannery_web/templates/user_registration/new.html.heex:24 +#: lib/cannery_web/templates/user_session/new.html.heex:22 +#, elixir-autogen, elixir-format +msgid "Password" +msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index 3928b035..4ce0e8dc 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -575,6 +575,7 @@ msgstr "Tipo de polvora" msgid "UPC" msgstr "" +#: lib/cannery_web/templates/user_reset_password/edit.html.heex:22 #: lib/cannery_web/templates/user_settings/edit.html.heex:76 #, elixir-autogen, elixir-format msgid "Confirm new password" @@ -586,6 +587,7 @@ msgstr "Confirme contraseña nueva" msgid "Current password" msgstr "Contraseña actual" +#: lib/cannery_web/templates/user_reset_password/edit.html.heex:18 #: lib/cannery_web/templates/user_settings/edit.html.heex:69 #, elixir-autogen, elixir-format msgid "New password" @@ -1199,3 +1201,18 @@ msgstr "Usos Restantes:" #, elixir-autogen, elixir-format msgid "Uses: %{uses_count}" msgstr "" + +#: lib/cannery_web/templates/user_confirmation/new.html.heex:12 +#: lib/cannery_web/templates/user_registration/new.html.heex:20 +#: lib/cannery_web/templates/user_reset_password/new.html.heex:12 +#: lib/cannery_web/templates/user_session/new.html.heex:19 +#: lib/cannery_web/templates/user_settings/edit.html.heex:27 +#, elixir-autogen, elixir-format +msgid "Email" +msgstr "" + +#: lib/cannery_web/templates/user_registration/new.html.heex:24 +#: lib/cannery_web/templates/user_session/new.html.heex:22 +#, elixir-autogen, elixir-format +msgid "Password" +msgstr "" diff --git a/priv/gettext/fr/LC_MESSAGES/default.po b/priv/gettext/fr/LC_MESSAGES/default.po index 89878aee..d5945ed5 100644 --- a/priv/gettext/fr/LC_MESSAGES/default.po +++ b/priv/gettext/fr/LC_MESSAGES/default.po @@ -576,6 +576,7 @@ msgstr "Type de poudre" msgid "UPC" msgstr "UPC" +#: lib/cannery_web/templates/user_reset_password/edit.html.heex:22 #: lib/cannery_web/templates/user_settings/edit.html.heex:76 #, elixir-autogen, elixir-format msgid "Confirm new password" @@ -587,6 +588,7 @@ msgstr "Confirmez le nouveau mot de passe" msgid "Current password" msgstr "Mot de passe actuel" +#: lib/cannery_web/templates/user_reset_password/edit.html.heex:18 #: lib/cannery_web/templates/user_settings/edit.html.heex:69 #, elixir-autogen, elixir-format msgid "New password" @@ -1200,3 +1202,18 @@ msgstr "Utilisations restantes :" #, elixir-autogen, elixir-format msgid "Uses: %{uses_count}" msgstr "" + +#: lib/cannery_web/templates/user_confirmation/new.html.heex:12 +#: lib/cannery_web/templates/user_registration/new.html.heex:20 +#: lib/cannery_web/templates/user_reset_password/new.html.heex:12 +#: lib/cannery_web/templates/user_session/new.html.heex:19 +#: lib/cannery_web/templates/user_settings/edit.html.heex:27 +#, elixir-autogen, elixir-format +msgid "Email" +msgstr "" + +#: lib/cannery_web/templates/user_registration/new.html.heex:24 +#: lib/cannery_web/templates/user_session/new.html.heex:22 +#, elixir-autogen, elixir-format +msgid "Password" +msgstr "" diff --git a/priv/gettext/ga/LC_MESSAGES/default.po b/priv/gettext/ga/LC_MESSAGES/default.po index 728829bd..b7ca49dc 100644 --- a/priv/gettext/ga/LC_MESSAGES/default.po +++ b/priv/gettext/ga/LC_MESSAGES/default.po @@ -570,6 +570,7 @@ msgstr "" msgid "UPC" msgstr "" +#: lib/cannery_web/templates/user_reset_password/edit.html.heex:22 #: lib/cannery_web/templates/user_settings/edit.html.heex:76 #, elixir-autogen, elixir-format msgid "Confirm new password" @@ -581,6 +582,7 @@ msgstr "" msgid "Current password" msgstr "" +#: lib/cannery_web/templates/user_reset_password/edit.html.heex:18 #: lib/cannery_web/templates/user_settings/edit.html.heex:69 #, elixir-autogen, elixir-format msgid "New password" @@ -1191,3 +1193,18 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Uses: %{uses_count}" msgstr "" + +#: lib/cannery_web/templates/user_confirmation/new.html.heex:12 +#: lib/cannery_web/templates/user_registration/new.html.heex:20 +#: lib/cannery_web/templates/user_reset_password/new.html.heex:12 +#: lib/cannery_web/templates/user_session/new.html.heex:19 +#: lib/cannery_web/templates/user_settings/edit.html.heex:27 +#, elixir-autogen, elixir-format +msgid "Email" +msgstr "" + +#: lib/cannery_web/templates/user_registration/new.html.heex:24 +#: lib/cannery_web/templates/user_session/new.html.heex:22 +#, elixir-autogen, elixir-format +msgid "Password" +msgstr ""