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
|
case Accounts.update_user_locale(user, locale) do
|
||||||
{:ok, _user} ->
|
{:ok, _user} ->
|
||||||
conn
|
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))
|
|> redirect(to: Routes.user_settings_path(conn, :edit))
|
||||||
|
|
||||||
{:error, changeset} ->
|
{:error, changeset} ->
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
<%= password_input(f, :password, required: true, class: "input input-primary col-span-2") %>
|
<%= password_input(f, :password, required: true, class: "input input-primary col-span-2") %>
|
||||||
<%= error_tag(f, :password, "col-span-3") %>
|
<%= 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(
|
<%= select(
|
||||||
f,
|
f,
|
||||||
:locale,
|
:locale,
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
"Plural-Forms: nplurals=2\n"
|
|
||||||
|
|
||||||
#: lib/memex_web/live/invite_live/index.html.heex:30
|
#: lib/memex_web/live/invite_live/index.html.heex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
|
@ -36,22 +36,12 @@ msgstr ""
|
|||||||
msgid "Keep me logged in for 60 days"
|
msgid "Keep me logged in for 60 days"
|
||||||
msgstr ""
|
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
|
#: lib/memex_web/live/invite_live/form_component.html.heex:20
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Name"
|
msgid "Name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/memex_web/templates/layout/live.html.heex:50
|
#: lib/memex_web/templates/layout/live.html.heex:40
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reconnecting..."
|
msgid "Reconnecting..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -665,3 +655,8 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "user registered on"
|
msgid "user registered on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/memex_web/templates/user_registration/new.html.heex:32
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "language"
|
||||||
|
msgstr ""
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
"Plural-Forms: nplurals=2\n"
|
|
||||||
|
|
||||||
#: lib/memex/accounts/email.ex:30
|
#: lib/memex/accounts/email.ex:30
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
"Plural-Forms: nplurals=2\n"
|
|
||||||
|
|
||||||
#: lib/memex_web/controllers/user_settings_controller.ex:84
|
#: lib/memex_web/controllers/user_settings_controller.ex:84
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
"Plural-Forms: nplurals=2\n"
|
|
||||||
|
|
||||||
#: lib/memex_web/controllers/user_confirmation_controller.ex:38
|
#: lib/memex_web/controllers/user_confirmation_controller.ex:38
|
||||||
#, elixir-autogen, elixir-format
|
#, 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."
|
msgid "If your email is in our system, you will receive instructions to reset your password shortly."
|
||||||
msgstr ""
|
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
|
#: lib/memex_web/controllers/user_reset_password_controller.ex:46
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Password reset successfully."
|
msgid "Password reset successfully."
|
||||||
@ -157,3 +151,8 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "logged out successfully."
|
msgid "logged out successfully."
|
||||||
msgstr ""
|
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"
|
msgid "Keep me logged in for 60 days"
|
||||||
msgstr ""
|
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
|
#: lib/memex_web/live/invite_live/form_component.html.heex:20
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Name"
|
msgid "Name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/memex_web/templates/layout/live.html.heex:50
|
#: lib/memex_web/templates/layout/live.html.heex:40
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reconnecting..."
|
msgid "Reconnecting..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -654,3 +644,8 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "user registered on"
|
msgid "user registered on"
|
||||||
msgstr ""
|
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."
|
msgid "If your email is in our system, you will receive instructions to reset your password shortly."
|
||||||
msgstr ""
|
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
|
#: lib/memex_web/controllers/user_reset_password_controller.ex:46
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Password reset successfully."
|
msgid "Password reset successfully."
|
||||||
@ -156,3 +151,8 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "logged out successfully."
|
msgid "logged out successfully."
|
||||||
msgstr ""
|
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