diff --git a/lib/chess_web/templates/registration/new.html.eex b/lib/chess_web/templates/registration/new.html.eex index c9d2787..ebbd32c 100644 --- a/lib/chess_web/templates/registration/new.html.eex +++ b/lib/chess_web/templates/registration/new.html.eex @@ -1,9 +1,11 @@ -

Register

+

<%= gettext "Register" %>

<%= form_for @changeset, registration_path(@conn, :create), [class: "create-registration"], fn f -> %> <%= if @changeset.action do %>
-

Oops, something went wrong! Please check the errors below.

+

+ <%= gettext "Oops, something went wrong! Please check the errors below." %> +

<% end %> @@ -19,6 +21,6 @@
- <%= submit "Register", class: "btn btn-primary" %> + <%= submit gettext("Register"), class: "btn btn-primary" %>
<% end %> diff --git a/lib/chess_web/templates/session/new.html.eex b/lib/chess_web/templates/session/new.html.eex index fbb5ea1..e02b6a2 100644 --- a/lib/chess_web/templates/session/new.html.eex +++ b/lib/chess_web/templates/session/new.html.eex @@ -1,9 +1,11 @@ -

Log in

+

<%= gettext "Log in" %>

<%= form_for @changeset, session_path(@conn, :create), [class: "create-session"], fn f -> %> <%= if @changeset.action do %>
-

Oops, something went wrong! Please check the errors below.

+

+ <%= gettext "Oops, something went wrong! Please check the errors below." %> +

<% end %> @@ -16,6 +18,6 @@
- <%= submit "Log in", class: "btn btn-primary" %> + <%= submit gettext("Log in"), class: "btn btn-primary" %>
<% end %> diff --git a/lib/chess_web/views/error_view.ex b/lib/chess_web/views/error_view.ex index f6f6de4..99aa39f 100644 --- a/lib/chess_web/views/error_view.ex +++ b/lib/chess_web/views/error_view.ex @@ -2,11 +2,11 @@ defmodule ChessWeb.ErrorView do use ChessWeb, :view def render("404.html", _assigns) do - "Page not found" + gettext "Page not found" end def render("500.html", _assigns) do - "Internal server error" + gettext "Internal server error" end # In case no render clause matches or no