From 62bd116a811dced6b2b6db6d99e79a38cf2e71a2 Mon Sep 17 00:00:00 2001 From: Ryan Arthur Date: Fri, 27 Jul 2018 13:18:56 -0400 Subject: [PATCH] Internationalization --- .../explorer_web/templates/chain/_block.html.eex | 2 +- apps/explorer_web/priv/gettext/default.pot | 13 +++++-------- .../priv/gettext/en/LC_MESSAGES/default.po | 13 +++++-------- 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/apps/explorer_web/lib/explorer_web/templates/chain/_block.html.eex b/apps/explorer_web/lib/explorer_web/templates/chain/_block.html.eex index 9c27f0b2c5..ee9ba26f85 100644 --- a/apps/explorer_web/lib/explorer_web/templates/chain/_block.html.eex +++ b/apps/explorer_web/lib/explorer_web/templates/chain/_block.html.eex @@ -6,7 +6,7 @@ - Validated by + <%= gettext "Miner" %> <%= link to: address_path(ExplorerWeb.Endpoint, :show, @locale, @block.miner), "data-toggle": "tooltip", "data-placement": "top", diff --git a/apps/explorer_web/priv/gettext/default.pot b/apps/explorer_web/priv/gettext/default.pot index 4f6c0552e4..c0effd2fe7 100644 --- a/apps/explorer_web/priv/gettext/default.pot +++ b/apps/explorer_web/priv/gettext/default.pot @@ -15,7 +15,6 @@ msgstr "" msgid "Copyright %{year} POA" msgstr "" -#: lib/explorer_web/templates/block/index.html.eex:20 #: lib/explorer_web/templates/block/overview.html.eex:84 msgid "Gas Used" msgstr "" @@ -40,7 +39,6 @@ msgstr "" #: lib/explorer_web/templates/address_transaction/index.html.eex:13 #: lib/explorer_web/templates/address_transaction/index.html.eex:55 #: lib/explorer_web/templates/address_transaction/index.html.eex:131 -#: lib/explorer_web/templates/block/index.html.eex:19 #: lib/explorer_web/templates/block_transaction/index.html.eex:13 #: lib/explorer_web/templates/block_transaction/index.html.eex:26 #: lib/explorer_web/templates/block_transaction/index.html.eex:36 @@ -63,12 +61,13 @@ msgstr "" msgid "Difficulty" msgstr "" -#: lib/explorer_web/templates/block/index.html.eex:21 #: lib/explorer_web/templates/block/overview.html.eex:92 msgid "Gas Limit" msgstr "" +#: lib/explorer_web/templates/block/index.html.eex:39 #: lib/explorer_web/templates/block/overview.html.eex:70 +#: lib/explorer_web/templates/chain/_block.html.eex:9 msgid "Miner" msgstr "" @@ -109,8 +108,6 @@ msgstr "" msgid "Cumulative Gas Used" msgstr "" -#: lib/explorer_web/templates/block/index.html.eex:20 -#: lib/explorer_web/templates/block/index.html.eex:21 #: lib/explorer_web/templates/transaction/overview.html.eex:92 msgid "Gas" msgstr "" @@ -181,11 +178,11 @@ msgstr "" msgid "POA" msgstr "" -#: lib/explorer_web/templates/block/index.html.eex:39 +#: lib/explorer_web/templates/block/index.html.eex:29 msgid "%{count} transactions" msgstr "" -#: lib/explorer_web/templates/block/index.html.eex:5 +#: lib/explorer_web/templates/block/index.html.eex:7 msgid "Showing #%{start_block} to #%{end_block}" msgstr "" @@ -470,7 +467,7 @@ msgstr "" #: lib/explorer_web/templates/address_internal_transaction/index.html.eex:133 #: lib/explorer_web/templates/address_transaction/index.html.eex:146 -#: lib/explorer_web/templates/block/index.html.eex:60 +#: lib/explorer_web/templates/block/index.html.eex:52 #: lib/explorer_web/templates/block_transaction/index.html.eex:51 #: lib/explorer_web/templates/pending_transaction/index.html.eex:79 #: lib/explorer_web/templates/transaction/index.html.eex:84 diff --git a/apps/explorer_web/priv/gettext/en/LC_MESSAGES/default.po b/apps/explorer_web/priv/gettext/en/LC_MESSAGES/default.po index cdda42e820..7e07c01ff1 100644 --- a/apps/explorer_web/priv/gettext/en/LC_MESSAGES/default.po +++ b/apps/explorer_web/priv/gettext/en/LC_MESSAGES/default.po @@ -27,7 +27,6 @@ msgstr "Blocks" msgid "Copyright %{year} POA" msgstr "%{year} POA Network Ltd. All rights reserved" -#: lib/explorer_web/templates/block/index.html.eex:20 #: lib/explorer_web/templates/block/overview.html.eex:84 msgid "Gas Used" msgstr "Gas Used" @@ -52,7 +51,6 @@ msgstr "POA Network Explorer" #: lib/explorer_web/templates/address_transaction/index.html.eex:13 #: lib/explorer_web/templates/address_transaction/index.html.eex:55 #: lib/explorer_web/templates/address_transaction/index.html.eex:131 -#: lib/explorer_web/templates/block/index.html.eex:19 #: lib/explorer_web/templates/block_transaction/index.html.eex:13 #: lib/explorer_web/templates/block_transaction/index.html.eex:26 #: lib/explorer_web/templates/block_transaction/index.html.eex:36 @@ -75,12 +73,13 @@ msgstr "Block #%{number} Details" msgid "Difficulty" msgstr "Difficulty" -#: lib/explorer_web/templates/block/index.html.eex:21 #: lib/explorer_web/templates/block/overview.html.eex:92 msgid "Gas Limit" msgstr "Gas Limit" +#: lib/explorer_web/templates/block/index.html.eex:39 #: lib/explorer_web/templates/block/overview.html.eex:70 +#: lib/explorer_web/templates/chain/_block.html.eex:9 msgid "Miner" msgstr "Validator" @@ -121,8 +120,6 @@ msgstr "Transaction Details" msgid "Cumulative Gas Used" msgstr "Cumulative Gas Used" -#: lib/explorer_web/templates/block/index.html.eex:20 -#: lib/explorer_web/templates/block/index.html.eex:21 #: lib/explorer_web/templates/transaction/overview.html.eex:92 msgid "Gas" msgstr "Gas" @@ -193,11 +190,11 @@ msgstr "Balance" msgid "POA" msgstr "POA" -#: lib/explorer_web/templates/block/index.html.eex:39 +#: lib/explorer_web/templates/block/index.html.eex:29 msgid "%{count} transactions" msgstr "%{count} transactions" -#: lib/explorer_web/templates/block/index.html.eex:5 +#: lib/explorer_web/templates/block/index.html.eex:7 msgid "Showing #%{start_block} to #%{end_block}" msgstr "Showing #%{start_block} to #%{end_block}" @@ -482,7 +479,7 @@ msgstr "" #: lib/explorer_web/templates/address_internal_transaction/index.html.eex:133 #: lib/explorer_web/templates/address_transaction/index.html.eex:146 -#: lib/explorer_web/templates/block/index.html.eex:60 +#: lib/explorer_web/templates/block/index.html.eex:52 #: lib/explorer_web/templates/block_transaction/index.html.eex:51 #: lib/explorer_web/templates/pending_transaction/index.html.eex:79 #: lib/explorer_web/templates/transaction/index.html.eex:84