Internationalize the homepage title.

pull/2/head
CJ Bryan and Matt Olenick 7 years ago committed by Doc Ritezel
parent ed6791d2e0
commit 4d38bb6e1b
  1. 4
      lib/explorer_web/templates/layout/app.html.eex
  2. 2
      lib/explorer_web/templates/page/index.html.eex
  3. 20
      priv/gettext/default.pot
  4. 20
      priv/gettext/en/LC_MESSAGES/default.po
  5. 1
      priv/gettext/errors.pot

@ -7,7 +7,7 @@
<meta name="description" content="">
<meta name="author" content="">
<title>Hello Explorer!</title>
<title><%= gettext "explorer-title" %></title>
<link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
</head>
@ -19,7 +19,7 @@
|> img_tag(class: "header__logo")
|> link(to: ExplorerWeb.Endpoint.url())
%>
<div class="header__title"><%= gettext "POA Network Explorer" %></div>
<div class="header__title"><%= gettext "explorer-title" %></div>
</header>
<p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>

@ -1 +1 @@
<div>Welcome to our blockchain explorer.</div>
<div><%= gettext "explorer-welcome" %></div>

@ -0,0 +1,20 @@
## This file is a PO Template file.
##
## `msgid`s here are often extracted from source code.
## Add new translations manually only if they're dynamic
## translations that can't be statically extracted.
##
## Run `mix gettext.extract` to bring this file up to
## date. Leave `msgstr`s empty as changing them here as no
## effect: edit them in PO (`.po`) files instead.
msgid ""
msgstr ""
#: lib/explorer_web/templates/layout/app.html.eex:7
#: lib/explorer_web/templates/layout/app.html.eex:18
msgid "explorer-title"
msgstr ""
#: lib/explorer_web/templates/page/index.html.eex:1
msgid "explorer-welcome"
msgstr ""

@ -0,0 +1,20 @@
## `msgid`s in this file come from POT (.pot) files.
##
## Do not add, change, or remove `msgid`s manually here as
## they're tied to the ones in the corresponding POT file
## (with the same domain).
##
## Use `mix gettext.extract --merge` or `mix gettext.merge`
## to merge POT files into PO files.
msgid ""
msgstr ""
"Language: en\n"
#: lib/explorer_web/templates/layout/app.html.eex:7
#: lib/explorer_web/templates/layout/app.html.eex:18
msgid "explorer-title"
msgstr "POA Network Explorer"
#: lib/explorer_web/templates/page/index.html.eex:1
msgid "explorer-welcome"
msgstr "Welcome to our blockchain explorer."

@ -7,7 +7,6 @@
## Run `mix gettext.extract` to bring this file up to
## date. Leave `msgstr`s empty as changing them here as no
## effect: edit them in PO (`.po`) files instead.
## From Ecto.Changeset.cast/4
msgid "can't be blank"
msgstr ""

Loading…
Cancel
Save