From 168bb12fc3f497d492067c3e709f73164811fd70 Mon Sep 17 00:00:00 2001 From: zachdaniel Date: Wed, 21 Nov 2018 09:53:49 -0500 Subject: [PATCH] chore: gettext --- .../transaction/_decoded_input.html.eex | 2 +- .../templates/transaction_log/index.html.eex | 18 +++++--- apps/block_scout_web/priv/gettext/default.pot | 41 ++++++++++++++----- .../priv/gettext/en/LC_MESSAGES/default.po | 41 ++++++++++++++----- 4 files changed, 75 insertions(+), 27 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/transaction/_decoded_input.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/transaction/_decoded_input.html.eex index cc0c35273d..87cf28afd6 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/transaction/_decoded_input.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/transaction/_decoded_input.html.eex @@ -39,7 +39,7 @@ <% :error -> %> <%= nil %> <% copy_text -> %> - <% end %> diff --git a/apps/block_scout_web/lib/block_scout_web/templates/transaction_log/index.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/transaction_log/index.html.eex index c4bb03a252..e1862c1447 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/transaction_log/index.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/transaction_log/index.html.eex @@ -28,11 +28,17 @@ <%= case decode(log, @transaction) do %> <% {:error, :contract_not_verified} -> %>
- To see decoded input data, the contract must be verified. + <%= gettext "To see decoded input data, the contract must be verified." %> + <%= case @transaction do %> + <% %{to_address: %{hash: hash}} -> %> + <%= gettext "Verify the contract " %><%= gettext "here" %> + <% _ -> %> + <%= nil %> + <% end %>
<% {:error, :could_not_decode} -> %>
- Failed to decode log data. + <%= gettext "Failed to decode log data." %>
<% {:ok, method_id, text, mapping} -> %> @@ -45,7 +51,7 @@
<%= text %>
- +
" class="table thead-light table-bordered table-responsive"> @@ -60,7 +66,7 @@ <% :error -> %> <%= nil %> <% copy_text -> %> - <% end %> @@ -85,7 +91,7 @@
- <%= unless is_nil(log.first_topic) do %> @@ -124,7 +130,7 @@
- <%= log.data %> diff --git a/apps/block_scout_web/priv/gettext/default.pot b/apps/block_scout_web/priv/gettext/default.pot index 8dad01d4e5..fb0c863b6c 100644 --- a/apps/block_scout_web/priv/gettext/default.pot +++ b/apps/block_scout_web/priv/gettext/default.pot @@ -218,6 +218,8 @@ msgstr "" #: lib/block_scout_web/templates/address/overview.html.eex:82 #: lib/block_scout_web/templates/tokens/overview/_details.html.eex:84 #: lib/block_scout_web/templates/tokens/overview/_details.html.eex:92 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:94 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:133 msgid "Close" msgstr "" @@ -356,8 +358,8 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:33 -#: lib/block_scout_web/templates/transaction_log/index.html.eex:54 -#: lib/block_scout_web/templates/transaction_log/index.html.eex:118 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:60 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:124 msgid "Data" msgstr "" @@ -589,7 +591,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:29 #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:31 -#: lib/block_scout_web/templates/transaction_log/index.html.eex:51 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:57 msgid "Name" msgstr "" @@ -601,7 +603,7 @@ msgstr "" #, elixir-format #: #: lib/block_scout_web/templates/transaction_internal_transaction/index.html.eex:23 -#: lib/block_scout_web/templates/transaction_log/index.html.eex:145 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:151 msgid "Newer" msgstr "" @@ -823,7 +825,7 @@ msgid "There are no internal transactions for this transaction." msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction_log/index.html.eex:139 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:145 msgid "There are no logs for this transaction." msgstr "" @@ -935,7 +937,7 @@ msgid "Top Accounts - %{subnetwork} Explorer" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction_log/index.html.eex:82 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:88 msgid "Topics" msgstr "" @@ -1324,23 +1326,23 @@ msgid "Decoded" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction_log/index.html.eex:53 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:59 msgid "Indexed?" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction_log/index.html.eex:123 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:129 msgid "Show Raw Data" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction_log/index.html.eex:85 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:91 msgid "Show Raw Topics" msgstr "" #, elixir-format #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:32 -#: lib/block_scout_web/templates/transaction_log/index.html.eex:52 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:58 msgid "Type" msgstr "" @@ -1351,6 +1353,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:8 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:31 msgid "To see decoded input data, the contract must be verified." msgstr "" @@ -1366,11 +1369,13 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:11 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:34 msgid "Verify the contract " msgstr "" #, elixir-format #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:11 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:34 msgid "here" msgstr "" @@ -1383,3 +1388,19 @@ msgstr "" #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:53 msgid "Error rendering value" msgstr "" + +#, elixir-format +#: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:42 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:69 +msgid "Copy Value" +msgstr "" + +#, elixir-format +#: lib/block_scout_web/templates/transaction_log/index.html.eex:41 +msgid "Failed to decode log data." +msgstr "" + +#, elixir-format +#: lib/block_scout_web/templates/transaction_log/index.html.eex:54 +msgid "Log Data" +msgstr "" diff --git a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po index 9c8554adb9..83fed0d3b1 100644 --- a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po +++ b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po @@ -218,6 +218,8 @@ msgstr "" #: lib/block_scout_web/templates/address/overview.html.eex:82 #: lib/block_scout_web/templates/tokens/overview/_details.html.eex:84 #: lib/block_scout_web/templates/tokens/overview/_details.html.eex:92 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:94 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:133 msgid "Close" msgstr "" @@ -356,8 +358,8 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:33 -#: lib/block_scout_web/templates/transaction_log/index.html.eex:54 -#: lib/block_scout_web/templates/transaction_log/index.html.eex:118 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:60 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:124 msgid "Data" msgstr "" @@ -589,7 +591,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:29 #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:31 -#: lib/block_scout_web/templates/transaction_log/index.html.eex:51 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:57 msgid "Name" msgstr "" @@ -601,7 +603,7 @@ msgstr "" #, elixir-format #: #: lib/block_scout_web/templates/transaction_internal_transaction/index.html.eex:23 -#: lib/block_scout_web/templates/transaction_log/index.html.eex:145 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:151 msgid "Newer" msgstr "" @@ -823,7 +825,7 @@ msgid "There are no internal transactions for this transaction." msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction_log/index.html.eex:139 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:145 msgid "There are no logs for this transaction." msgstr "" @@ -935,7 +937,7 @@ msgid "Top Accounts - %{subnetwork} Explorer" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction_log/index.html.eex:82 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:88 msgid "Topics" msgstr "" @@ -1324,23 +1326,23 @@ msgid "Decoded" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction_log/index.html.eex:53 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:59 msgid "Indexed?" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction_log/index.html.eex:123 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:129 msgid "Show Raw Data" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/transaction_log/index.html.eex:85 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:91 msgid "Show Raw Topics" msgstr "" #, elixir-format #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:32 -#: lib/block_scout_web/templates/transaction_log/index.html.eex:52 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:58 msgid "Type" msgstr "" @@ -1351,6 +1353,7 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:8 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:31 msgid "To see decoded input data, the contract must be verified." msgstr "" @@ -1366,11 +1369,13 @@ msgstr "" #, elixir-format #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:11 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:34 msgid "Verify the contract " msgstr "" #, elixir-format #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:11 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:34 msgid "here" msgstr "" @@ -1383,3 +1388,19 @@ msgstr "" #: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:53 msgid "Error rendering value" msgstr "" + +#, elixir-format +#: lib/block_scout_web/templates/transaction/_decoded_input.html.eex:42 +#: lib/block_scout_web/templates/transaction_log/index.html.eex:69 +msgid "Copy Value" +msgstr "" + +#, elixir-format +#: lib/block_scout_web/templates/transaction_log/index.html.eex:41 +msgid "Failed to decode log data." +msgstr "" + +#, elixir-format +#: lib/block_scout_web/templates/transaction_log/index.html.eex:54 +msgid "Log Data" +msgstr ""
<%= gettext "Name" %>