fix gettext

This commit is contained in:
shibao 2023-01-22 23:52:08 -05:00
parent 8ccd94818c
commit 89413df8c4
9 changed files with 24 additions and 38 deletions

View File

@ -62,7 +62,7 @@ defmodule MemexWeb.UserSettingsController do
case Accounts.update_user_locale(user, locale) do
{:ok, _user} ->
conn
|> put_flash(:info, dgettext("prompts", "Language updated successfully."))
|> put_flash(:info, dgettext("prompts", "language updated successfully."))
|> redirect(to: Routes.user_settings_path(conn, :edit))
{:error, changeset} ->

View File

@ -29,7 +29,7 @@
<%= password_input(f, :password, required: true, class: "input input-primary col-span-2") %>
<%= error_tag(f, :password, "col-span-3") %>
<%= label(f, :locale, gettext("Language"), class: "title text-lg text-primary-400") %>
<%= label(f, :locale, gettext("language"), class: "title text-lg text-primary-400") %>
<%= select(
f,
:locale,

View File

@ -9,7 +9,6 @@
msgid ""
msgstr ""
"Language: de\n"
"Plural-Forms: nplurals=2\n"
#: lib/memex_web/live/invite_live/index.html.heex:30
#, elixir-autogen, elixir-format

View File

@ -36,22 +36,12 @@ msgstr ""
msgid "Keep me logged in for 60 days"
msgstr ""
#: lib/memex_web/templates/user_registration/new.html.heex:32
#, elixir-autogen, elixir-format
msgid "Language"
msgstr ""
#: lib/memex_web/templates/layout/live.html.heex:37
#, elixir-autogen, elixir-format
msgid "Loading..."
msgstr ""
#: lib/memex_web/live/invite_live/form_component.html.heex:20
#, elixir-autogen, elixir-format
msgid "Name"
msgstr ""
#: lib/memex_web/templates/layout/live.html.heex:50
#: lib/memex_web/templates/layout/live.html.heex:40
#, elixir-autogen, elixir-format
msgid "Reconnecting..."
msgstr ""
@ -665,3 +655,8 @@ msgstr ""
#, elixir-autogen, elixir-format, fuzzy
msgid "user registered on"
msgstr ""
#: lib/memex_web/templates/user_registration/new.html.heex:32
#, elixir-autogen, elixir-format, fuzzy
msgid "language"
msgstr ""

View File

@ -9,7 +9,6 @@
msgid ""
msgstr ""
"Language: de\n"
"Plural-Forms: nplurals=2\n"
#: lib/memex/accounts/email.ex:30
#, elixir-autogen, elixir-format

View File

@ -9,7 +9,6 @@
msgid ""
msgstr ""
"Language: de\n"
"Plural-Forms: nplurals=2\n"
#: lib/memex_web/controllers/user_settings_controller.ex:84
#, elixir-autogen, elixir-format

View File

@ -9,7 +9,6 @@
msgid ""
msgstr ""
"Language: de\n"
"Plural-Forms: nplurals=2\n"
#: lib/memex_web/controllers/user_confirmation_controller.ex:38
#, elixir-autogen, elixir-format
@ -76,11 +75,6 @@ msgstr ""
msgid "If your email is in our system, you will receive instructions to reset your password shortly."
msgstr ""
#: lib/memex_web/controllers/user_settings_controller.ex:65
#, elixir-autogen, elixir-format
msgid "Language updated successfully."
msgstr ""
#: lib/memex_web/controllers/user_reset_password_controller.ex:46
#, elixir-autogen, elixir-format
msgid "Password reset successfully."
@ -157,3 +151,8 @@ msgstr ""
#, elixir-autogen, elixir-format, fuzzy
msgid "logged out successfully."
msgstr ""
#: lib/memex_web/controllers/user_settings_controller.ex:65
#, elixir-autogen, elixir-format, fuzzy
msgid "language updated successfully."
msgstr ""

View File

@ -25,22 +25,12 @@ msgstr ""
msgid "Keep me logged in for 60 days"
msgstr ""
#: lib/memex_web/templates/user_registration/new.html.heex:32
#, elixir-autogen, elixir-format
msgid "Language"
msgstr ""
#: lib/memex_web/templates/layout/live.html.heex:37
#, elixir-autogen, elixir-format
msgid "Loading..."
msgstr ""
#: lib/memex_web/live/invite_live/form_component.html.heex:20
#, elixir-autogen, elixir-format
msgid "Name"
msgstr ""
#: lib/memex_web/templates/layout/live.html.heex:50
#: lib/memex_web/templates/layout/live.html.heex:40
#, elixir-autogen, elixir-format
msgid "Reconnecting..."
msgstr ""
@ -654,3 +644,8 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "user registered on"
msgstr ""
#: lib/memex_web/templates/user_registration/new.html.heex:32
#, elixir-autogen, elixir-format
msgid "language"
msgstr ""

View File

@ -75,11 +75,6 @@ msgstr ""
msgid "If your email is in our system, you will receive instructions to reset your password shortly."
msgstr ""
#: lib/memex_web/controllers/user_settings_controller.ex:65
#, elixir-autogen, elixir-format
msgid "Language updated successfully."
msgstr ""
#: lib/memex_web/controllers/user_reset_password_controller.ex:46
#, elixir-autogen, elixir-format
msgid "Password reset successfully."
@ -156,3 +151,8 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "logged out successfully."
msgstr ""
#: lib/memex_web/controllers/user_settings_controller.ex:65
#, elixir-autogen, elixir-format
msgid "language updated successfully."
msgstr ""