fix gettext
This commit is contained in:
parent
8ccd94818c
commit
89413df8c4
@ -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} ->
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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 ""
|
||||
|
@ -9,7 +9,6 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Language: de\n"
|
||||
"Plural-Forms: nplurals=2\n"
|
||||
|
||||
#: lib/memex/accounts/email.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
|
@ -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
|
||||
|
@ -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 ""
|
||||
|
@ -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 ""
|
||||
|
@ -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 ""
|
||||
|
Loading…
Reference in New Issue
Block a user