Make password reset pages translatable
This commit is contained in:
parent
9f4c5743e8
commit
1edbda39e1
6 changed files with 61 additions and 8 deletions
|
@ -1 +1 @@
|
||||||
<h2>Invalid Token</h2>
|
<h2><%= Gettext.dpgettext("static_pages", "password reset invalid token message", "Invalid Token") %></h2>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<h2>Password Reset for <%= @user.nickname %></h2>
|
<h2>Password Reset for <%= @user.nickname %></h2>
|
||||||
<%= form_for @conn, Routes.reset_password_path(@conn, :do_reset), [as: "data"], fn f -> %>
|
<%= form_for @conn, Routes.reset_password_path(@conn, :do_reset), [as: "data"], fn f -> %>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<%= label f, :password, "Password" %>
|
<%= label f, :password, Gettext.dpgettext("static_pages", "password reset form password prompt", "Password") %>
|
||||||
<%= password_input f, :password %>
|
<%= password_input f, :password %>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<%= label f, :password_confirmation, "Confirmation" %>
|
<%= label f, :password_confirmation, Gettext.dpgettext("static_pages", "password reset form confirm password prompt", "Confirmation") %>
|
||||||
<%= password_input f, :password_confirmation %>
|
<%= password_input f, :password_confirmation %>
|
||||||
</div>
|
</div>
|
||||||
<%= hidden_input f, :token, value: @token.token %>
|
<%= hidden_input f, :token, value: @token.token %>
|
||||||
<%= submit "Reset" %>
|
<%= submit Gettext.dpgettext("static_pages", "password reset button", "Reset") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
<h2>Password reset failed</h2>
|
<h2><%= Gettext.dpgettext("static_pages", "password reset failed message", "Password reset failed") %></h2>
|
||||||
<h3><a href="<%= Pleroma.Web.Endpoint.url() %>">Homepage</a></h3>
|
<h3>
|
||||||
|
<a href="<%= Pleroma.Web.Endpoint.url() %>">
|
||||||
|
<%= Gettext.dpgettext("static_pages", "password reset failed homepage link", "Homepage") %>
|
||||||
|
</a>
|
||||||
|
</h3>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
<h2>Password changed!</h2>
|
<h2><%= Gettext.dpgettext("static_pages", "password reset successful message", "Password changed!") %></h2>
|
||||||
<h3><a href="<%= Pleroma.Web.Endpoint.url() %>">Homepage</a></h3>
|
<h3><a href="<%= Pleroma.Web.Endpoint.url() %>"><%= Gettext.dpgettext("static_pages", "password reset successful homepage link", "Homepage") %></a></h3>
|
||||||
|
|
|
@ -5,4 +5,5 @@
|
||||||
defmodule Pleroma.Web.TwitterAPI.PasswordView do
|
defmodule Pleroma.Web.TwitterAPI.PasswordView do
|
||||||
use Pleroma.Web, :view
|
use Pleroma.Web, :view
|
||||||
import Phoenix.HTML.Form
|
import Phoenix.HTML.Form
|
||||||
|
alias Pleroma.Web.Gettext
|
||||||
end
|
end
|
||||||
|
|
|
@ -105,3 +105,51 @@ msgstr ""
|
||||||
msgctxt "remote follow header"
|
msgctxt "remote follow header"
|
||||||
msgid "Remotely follow %{nickname}"
|
msgid "Remotely follow %{nickname}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-format
|
||||||
|
#: lib/pleroma/web/templates/twitter_api/password/reset.html.eex:12
|
||||||
|
msgctxt "password reset button"
|
||||||
|
msgid "Reset"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-format
|
||||||
|
#: lib/pleroma/web/templates/twitter_api/password/reset_failed.html.eex:4
|
||||||
|
msgctxt "password reset failed homepage link"
|
||||||
|
msgid "Homepage"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-format
|
||||||
|
#: lib/pleroma/web/templates/twitter_api/password/reset_failed.html.eex:1
|
||||||
|
msgctxt "password reset failed message"
|
||||||
|
msgid "Password reset failed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-format
|
||||||
|
#: lib/pleroma/web/templates/twitter_api/password/reset.html.eex:8
|
||||||
|
msgctxt "password reset form confirm password prompt"
|
||||||
|
msgid "Confirmation"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-format
|
||||||
|
#: lib/pleroma/web/templates/twitter_api/password/reset.html.eex:4
|
||||||
|
msgctxt "password reset form password prompt"
|
||||||
|
msgid "Password"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-format
|
||||||
|
#: lib/pleroma/web/templates/twitter_api/password/invalid_token.html.eex:1
|
||||||
|
msgctxt "password reset invalid token message"
|
||||||
|
msgid "Invalid Token"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-format
|
||||||
|
#: lib/pleroma/web/templates/twitter_api/password/reset_success.html.eex:2
|
||||||
|
msgctxt "password reset successful homepage link"
|
||||||
|
msgid "Homepage"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-format
|
||||||
|
#: lib/pleroma/web/templates/twitter_api/password/reset_success.html.eex:1
|
||||||
|
msgctxt "password reset successful message"
|
||||||
|
msgid "Password changed!"
|
||||||
|
msgstr ""
|
||||||
|
|
Loading…
Reference in a new issue