Merge pull request #4725 from blockscout/np-fix-hadcode-coin-name

Fix hardcoded strings
pull/4726/head
Victor Baranov 3 years ago committed by GitHub
commit 7d5a05f882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      apps/block_scout_web/lib/block_scout_web/templates/block/overview.html.eex
  3. 2
      apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex
  4. 34
      apps/block_scout_web/priv/gettext/default.pot
  5. 34
      apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po

@ -16,6 +16,7 @@
- [#4579](https://github.com/blockscout/blockscout/pull/4579) - Write contract page: Resize inputs; Improve multiplier selector - [#4579](https://github.com/blockscout/blockscout/pull/4579) - Write contract page: Resize inputs; Improve multiplier selector
### Fixes ### Fixes
- [#4725](https://github.com/blockscout/blockscout/pull/4725) - Fix hardcoded coin name on transaction's and block's page
- [#4717](https://github.com/blockscout/blockscout/pull/4717) - Contract verification fix: check only success creation tx - [#4717](https://github.com/blockscout/blockscout/pull/4717) - Contract verification fix: check only success creation tx
- [#4713](https://github.com/blockscout/blockscout/pull/4713) - Search input field: sanitize input - [#4713](https://github.com/blockscout/blockscout/pull/4713) - Search input field: sanitize input
- [#4703](https://github.com/blockscout/blockscout/pull/4703) - Block Details page: Fix pagination on the Transactions tab - [#4703](https://github.com/blockscout/blockscout/pull/4703) - Block Details page: Fix pagination on the Transactions tab

@ -206,7 +206,7 @@
<dl class="row"> <dl class="row">
<dt class="col-sm-3 col-lg-2 text-muted"> <dt class="col-sm-3 col-lg-2 text-muted">
<%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html", <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
text: gettext("xDai burned from transactions included in the block (Base fee (per unit of gas) * Gas Used).") %> text: gettext("Ether") <> " " <> gettext("burned from transactions included in the block (Base fee (per unit of gas) * Gas Used).") %>
<%= gettext("Burnt Fees") %> <%= gettext("Burnt Fees") %>
</dt> </dt>
<dd class="col-sm-9 col-lg-10"><i class="fas fa-fire i-tooltip-2"></i> <s><%= format_wei_value(burned_fee, :ether) %></s></dd> <dd class="col-sm-9 col-lg-10"><i class="fas fa-fire i-tooltip-2"></i> <s><%= format_wei_value(burned_fee, :ether) %></s></dd>

@ -387,7 +387,7 @@
<dl class="row"> <dl class="row">
<dt class="col-sm-3 col-lg-2 text-muted"> <dt class="col-sm-3 col-lg-2 text-muted">
<%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html", <%= render BlockScoutWeb.CommonComponentsView, "_i_tooltip_2.html",
text: gettext("Amount of xDai burned for this transaction. Equals Block Base Fee per Gas * Gas Used.") %> text: gettext("Amount of") <> " " <> gettext("Ether") <> " " <> gettext("burned for this transaction. Equals Block Base Fee per Gas * Gas Used.") %>
<%= gettext "Transaction Burnt Fee" %> <%= gettext "Transaction Burnt Fee" %>
</dt> </dt>
<dd class="col-sm-9 col-lg-10"><i class="fas fa-fire i-tooltip-2"></i> <%= format_wei_value(burned_fee, :ether) %> <dd class="col-sm-9 col-lg-10"><i class="fas fa-fire i-tooltip-2"></i> <%= format_wei_value(burned_fee, :ether) %>

@ -234,11 +234,6 @@ msgstr ""
msgid "Amount of distributed reward. Miners receive a static block reward + Tx fees + uncle fees." msgid "Amount of distributed reward. Miners receive a static block reward + Tx fees + uncle fees."
msgstr "" msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/transaction/overview.html.eex:390
msgid "Amount of xDai burned for this transaction. Equals Block Base Fee per Gas * Gas Used."
msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/api_docs/eth_rpc.html.eex:15 #: lib/block_scout_web/templates/api_docs/eth_rpc.html.eex:15
msgid "Anything not in this list is not supported. Click on the method to be taken to the documentation for that method, and check the notes section for any potential differences." msgid "Anything not in this list is not supported. Click on the method to be taken to the documentation for that method, and check the notes section for any potential differences."
@ -1026,10 +1021,11 @@ msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address/_balance_card.html.eex:18 #: lib/block_scout_web/templates/address/_balance_card.html.eex:18
#: lib/block_scout_web/templates/address/index.html.eex:5 lib/block_scout_web/templates/internal_transaction/_tile.html.eex:20 #: lib/block_scout_web/templates/address/index.html.eex:5 lib/block_scout_web/templates/block/overview.html.eex:209
#: lib/block_scout_web/templates/layout/_topnav.html.eex:87 lib/block_scout_web/templates/layout/_topnav.html.eex:108 #: lib/block_scout_web/templates/internal_transaction/_tile.html.eex:20 lib/block_scout_web/templates/layout/_topnav.html.eex:87
#: lib/block_scout_web/templates/layout/app.html.eex:45 lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20 #: lib/block_scout_web/templates/layout/_topnav.html.eex:108 lib/block_scout_web/templates/layout/app.html.eex:45
#: lib/block_scout_web/templates/transaction/_tile.html.eex:37 lib/block_scout_web/views/wei_helpers.ex:78 #: lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20 lib/block_scout_web/templates/transaction/_tile.html.eex:37
#: lib/block_scout_web/templates/transaction/overview.html.eex:390 lib/block_scout_web/views/wei_helpers.ex:78
msgid "Ether" msgid "Ether"
msgstr "" msgstr ""
@ -3016,11 +3012,6 @@ msgstr ""
msgid "validator" msgid "validator"
msgstr "" msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/block/overview.html.eex:209
msgid "xDai burned from transactions included in the block (Base fee (per unit of gas) * Gas Used)."
msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/stakes/_stakes_modal_withdraw.html.eex:76 #: lib/block_scout_web/templates/stakes/_stakes_modal_withdraw.html.eex:76
msgid "<p>Pending stake (stake placed on a candidate pool or placed during the current staking epoch) may be withdrawn now.</p>\n <p>Active stake (stake available after the current epoch) can be ordered for withdrawal from the pool, and will be available to claim after the current staking epoch is complete.</p>\n <p>If you have already ordered (and the staking window is still open), you may increase your current order by entering a positive value, or decrease your current order by entering a negative value in the box and clicking 'Order Withdrawal'. You must either keep the minimum stake amount in the pool, or order your entire stake for withdrawal.</p>\n" msgid "<p>Pending stake (stake placed on a candidate pool or placed during the current staking epoch) may be withdrawn now.</p>\n <p>Active stake (stake available after the current epoch) can be ordered for withdrawal from the pool, and will be available to claim after the current staking epoch is complete.</p>\n <p>If you have already ordered (and the staking window is still open), you may increase your current order by entering a positive value, or decrease your current order by entering a negative value in the box and clicking 'Order Withdrawal'. You must either keep the minimum stake amount in the pool, or order your entire stake for withdrawal.</p>\n"
@ -3040,3 +3031,18 @@ msgstr ""
#: lib/block_scout_web/templates/transaction/_decoded_input_body.html.eex:53 #: lib/block_scout_web/templates/transaction/_decoded_input_body.html.eex:53
msgid "Expand" msgid "Expand"
msgstr "" msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/transaction/overview.html.eex:390
msgid "Amount of"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/transaction/overview.html.eex:390
msgid "burned for this transaction. Equals Block Base Fee per Gas * Gas Used."
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/block/overview.html.eex:209
msgid "burned from transactions included in the block (Base fee (per unit of gas) * Gas Used)."
msgstr ""

@ -234,11 +234,6 @@ msgstr ""
msgid "Amount of distributed reward. Miners receive a static block reward + Tx fees + uncle fees." msgid "Amount of distributed reward. Miners receive a static block reward + Tx fees + uncle fees."
msgstr "" msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/transaction/overview.html.eex:390
msgid "Amount of xDai burned for this transaction. Equals Block Base Fee per Gas * Gas Used."
msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/api_docs/eth_rpc.html.eex:15 #: lib/block_scout_web/templates/api_docs/eth_rpc.html.eex:15
msgid "Anything not in this list is not supported. Click on the method to be taken to the documentation for that method, and check the notes section for any potential differences." msgid "Anything not in this list is not supported. Click on the method to be taken to the documentation for that method, and check the notes section for any potential differences."
@ -1026,10 +1021,11 @@ msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/address/_balance_card.html.eex:18 #: lib/block_scout_web/templates/address/_balance_card.html.eex:18
#: lib/block_scout_web/templates/address/index.html.eex:5 lib/block_scout_web/templates/internal_transaction/_tile.html.eex:20 #: lib/block_scout_web/templates/address/index.html.eex:5 lib/block_scout_web/templates/block/overview.html.eex:209
#: lib/block_scout_web/templates/layout/_topnav.html.eex:87 lib/block_scout_web/templates/layout/_topnav.html.eex:108 #: lib/block_scout_web/templates/internal_transaction/_tile.html.eex:20 lib/block_scout_web/templates/layout/_topnav.html.eex:87
#: lib/block_scout_web/templates/layout/app.html.eex:45 lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20 #: lib/block_scout_web/templates/layout/_topnav.html.eex:108 lib/block_scout_web/templates/layout/app.html.eex:45
#: lib/block_scout_web/templates/transaction/_tile.html.eex:37 lib/block_scout_web/views/wei_helpers.ex:78 #: lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20 lib/block_scout_web/templates/transaction/_tile.html.eex:37
#: lib/block_scout_web/templates/transaction/overview.html.eex:390 lib/block_scout_web/views/wei_helpers.ex:78
msgid "Ether" msgid "Ether"
msgstr "" msgstr ""
@ -3016,11 +3012,6 @@ msgstr ""
msgid "validator" msgid "validator"
msgstr "" msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/block/overview.html.eex:209
msgid "xDai burned from transactions included in the block (Base fee (per unit of gas) * Gas Used)."
msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/stakes/_stakes_modal_withdraw.html.eex:76 #: lib/block_scout_web/templates/stakes/_stakes_modal_withdraw.html.eex:76
msgid "<p>Pending stake (stake placed on a candidate pool or placed during the current staking epoch) may be withdrawn now.</p>\n <p>Active stake (stake available after the current epoch) can be ordered for withdrawal from the pool, and will be available to claim after the current staking epoch is complete.</p>\n <p>If you have already ordered (and the staking window is still open), you may increase your current order by entering a positive value, or decrease your current order by entering a negative value in the box and clicking 'Order Withdrawal'. You must either keep the minimum stake amount in the pool, or order your entire stake for withdrawal.</p>\n" msgid "<p>Pending stake (stake placed on a candidate pool or placed during the current staking epoch) may be withdrawn now.</p>\n <p>Active stake (stake available after the current epoch) can be ordered for withdrawal from the pool, and will be available to claim after the current staking epoch is complete.</p>\n <p>If you have already ordered (and the staking window is still open), you may increase your current order by entering a positive value, or decrease your current order by entering a negative value in the box and clicking 'Order Withdrawal'. You must either keep the minimum stake amount in the pool, or order your entire stake for withdrawal.</p>\n"
@ -3040,3 +3031,18 @@ msgstr ""
#: lib/block_scout_web/templates/transaction/_decoded_input_body.html.eex:53 #: lib/block_scout_web/templates/transaction/_decoded_input_body.html.eex:53
msgid "Expand" msgid "Expand"
msgstr "" msgstr ""
#, elixir-format, fuzzy
#: lib/block_scout_web/templates/transaction/overview.html.eex:390
msgid "Amount of"
msgstr ""
#, elixir-format, fuzzy
#: lib/block_scout_web/templates/transaction/overview.html.eex:390
msgid "burned for this transaction. Equals Block Base Fee per Gas * Gas Used."
msgstr ""
#, elixir-format, fuzzy
#: lib/block_scout_web/templates/block/overview.html.eex:209
msgid "burned from transactions included in the block (Base fee (per unit of gas) * Gas Used)."
msgstr ""

Loading…
Cancel
Save