chore: gettext

pull/1119/head
zachdaniel 6 years ago
parent 655ed95541
commit 168bb12fc3
  1. 2
      apps/block_scout_web/lib/block_scout_web/templates/transaction/_decoded_input.html.eex
  2. 18
      apps/block_scout_web/lib/block_scout_web/templates/transaction_log/index.html.eex
  3. 41
      apps/block_scout_web/priv/gettext/default.pot
  4. 41
      apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po

@ -39,7 +39,7 @@
<% :error -> %>
<%= nil %>
<% copy_text -> %>
<button type="button" class="copy icon-link" data-toggle="tooltip" data-placement="top" data-clipboard-text="<%= copy_text %>" aria-label="Copy Value">
<button type="button" class="copy icon-link" data-toggle="tooltip" data-placement="top" data-clipboard-text="<%= copy_text %>" aria-label="<%= gettext "Copy Value" %>">
<i class="fas fa-clone"></i>
</button>
<% end %>

@ -28,11 +28,17 @@
<%= case decode(log, @transaction) do %>
<% {:error, :contract_not_verified} -> %>
<div class="alert alert-danger">
To see decoded input data, the <a href="<%= address_verify_contract_path(@conn, :new, @transaction.to_address.hash)%>" target="_blank">contract must be verified.</a>
<%= gettext "To see decoded input data, the contract must be verified." %>
<%= case @transaction do %>
<% %{to_address: %{hash: hash}} -> %>
<%= gettext "Verify the contract " %><a href="<%= address_verify_contract_path(@conn, :new, hash)%>"><%= gettext "here" %></a>
<% _ -> %>
<%= nil %>
<% end %>
</div>
<% {:error, :could_not_decode} -> %>
<div class="alert alert-danger">
Failed to decode log data.
<%= gettext "Failed to decode log data." %>
</div>
<% {:ok, method_id, text, mapping} -> %>
<table summary="Transaction Info" class="table thead-light table-bordered transaction-input-table">
@ -45,7 +51,7 @@
<td colspan="3"><code><%= text %></code></td>
</tr>
</table>
<table style="color: black;" summary="Log Data" class="table thead-light table-bordered table-responsive">
<table style="color: black;" summary="<%= gettext "Log Data" %>" class="table thead-light table-bordered table-responsive">
<tr>
<th scope="col"></th>
<th scope="col"><%= gettext "Name" %></th>
@ -60,7 +66,7 @@
<% :error -> %>
<%= nil %>
<% copy_text -> %>
<button type="button" class="copy icon-link" data-toggle="tooltip" data-placement="top" data-clipboard-text="<%= copy_text %>" aria-label="Copy Value">
<button type="button" class="copy icon-link" data-toggle="tooltip" data-placement="top" data-clipboard-text="<%= copy_text %>" aria-label="<%= gettext "Copy Value" %>">
<i class="fas fa-clone"></i>
</button>
<% end %>
@ -85,7 +91,7 @@
<button swapper class="button button-primary"><%= gettext "Show Raw Topics"%></button>
</div>
<div swappable-item class="raw-transaction-log-topics">
<button swapper type="button" class="close pr-2" aria-label="Close">
<button swapper type="button" class="close pr-2" aria-label="<%= gettext "Close" %>">
<span aria-hidden="true">&times;</span>
</button>
<%= unless is_nil(log.first_topic) do %>
@ -124,7 +130,7 @@
</div>
<div swappable-item class="text-dark raw-transaction-log-data">
<button swapper type="button" class="close pr-2" aria-label="Close">
<button swapper type="button" class="close pr-2" aria-label="<%= gettext "Close" %>">
<span aria-hidden="true">&times;</span>
</button>
<%= log.data %>

@ -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 ""

@ -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 ""

Loading…
Cancel
Save