Merge pull request #4810 from blockscout/np-fix-cldr-error

Show nil block.size as N/A bytes
pull/4812/head
Victor Baranov 3 years ago committed by GitHub
commit 8cc6e3ef13
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. 5
      apps/block_scout_web/priv/gettext/default.pot
  4. 7
      apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po

@ -23,6 +23,7 @@
- [#4579](https://github.com/blockscout/blockscout/pull/4579) - Write contract page: Resize inputs; Improve multiplier selector
### Fixes
- [#4810](https://github.com/blockscout/blockscout/pull/4810) - Show `nil` block.size as `N/A bytes`
- [#4798](https://github.com/blockscout/blockscout/pull/4798) - Token instance View contract icon Safari fix
- [#4796](https://github.com/blockscout/blockscout/pull/4796) - Fix nil.timestamp issue
- [#4764](https://github.com/blockscout/blockscout/pull/4764) - Add cleaning of substrings of `require` messages from parsed constructor arguments

@ -107,7 +107,7 @@
text: gettext("Size of the block in bytes.") %>
<%= gettext("Size") %>
</dt>
<dd class="col-sm-9 col-lg-10"><%= Cldr.Unit.new(:byte, @block.size) |> cldr_unit_to_string!() %></dd>
<dd class="col-sm-9 col-lg-10"><%= if !is_nil(@block.size), do: (Cldr.Unit.new(:byte, @block.size) |> cldr_unit_to_string!()), else: gettext("N/A bytes") %></dd>
</dl>
<!-- Hash -->
<dl class="row">

@ -3216,3 +3216,8 @@ msgstr ""
#: lib/block_scout_web/templates/address_token/overview.html.eex:66
msgid "Shows the total CRC balance in the address."
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/block/overview.html.eex:110
msgid "N/A bytes"
msgstr ""

@ -3212,7 +3212,12 @@ msgstr ""
msgid "CRC Worth"
msgstr ""
#, elixir-format, fuzzy
#, elixir-format
#: lib/block_scout_web/templates/address_token/overview.html.eex:66
msgid "Shows the total CRC balance in the address."
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/block/overview.html.eex:110
msgid "N/A bytes"
msgstr ""

Loading…
Cancel
Save