be more specific on wording for show container

This commit is contained in:
shibao 2022-11-19 12:01:28 -05:00
parent c2568b6521
commit d389515f76
19 changed files with 119 additions and 51 deletions

View File

@ -24,12 +24,20 @@
<%= unless @ammo_groups |> Enum.empty?() do %>
<span class="rounded-lg title text-lg">
<%= gettext("Packs:") %>
<%= if @show_used do %>
<%= gettext("Total packs:") %>
<% else %>
<%= gettext("Packs:") %>
<% end %>
<%= Enum.count(@ammo_groups) %>
</span>
<span class="rounded-lg title text-lg">
<%= gettext("Rounds:") %>
<%= if @show_used do %>
<%= gettext("Total rounds:") %>
<% else %>
<%= gettext("Rounds:") %>
<% end %>
<%= @container |> Containers.get_container_rounds!() %>
</span>
<% end %>
@ -107,7 +115,7 @@
<div class="w-full p-4">
<%= if @ammo_groups |> Enum.empty?() do %>
<h2 class="mx-4 title text-lg text-primary-600">
<h2 class="mx-4 title text-lg text-primary-600 text-center">
<%= gettext("No ammo in this container") %>
</h2>
<% else %>

View File

@ -136,7 +136,7 @@ msgstr ""
msgid "Send instructions to reset password"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:72
#: lib/cannery_web/live/container_live/show.html.heex:80
#, elixir-autogen, elixir-format
msgid "Why not add one?"
msgstr ""

View File

@ -149,7 +149,7 @@ msgstr "Speichern"
msgid "Send instructions to reset password"
msgstr "Anleitung zum Passwort zurücksetzen zusenden"
#: lib/cannery_web/live/container_live/show.html.heex:72
#: lib/cannery_web/live/container_live/show.html.heex:80
#, elixir-autogen, elixir-format
msgid "Why not add one?"
msgstr "Warum fügen Sie keine hinzu?"

View File

@ -470,7 +470,7 @@ msgstr "Willkommen %{name}"
msgid "Your data stays with you, period"
msgstr "Ihre Daten bleiben bei Ihnen, Punkt"
#: lib/cannery_web/live/container_live/show.html.heex:64
#: lib/cannery_web/live/container_live/show.html.heex:72
#, elixir-autogen, elixir-format
msgid "No tags for this container"
msgstr "Keine Tags für diesen Behälter"
@ -676,7 +676,7 @@ msgstr "Editiere %{name} Tags"
#: lib/cannery_web/components/container_card.ex:63
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
#: lib/cannery_web/live/container_live/show.html.heex:32
#: lib/cannery_web/live/container_live/show.html.heex:39
#, elixir-autogen, elixir-format
msgid "Rounds:"
msgstr "Patronen:"
@ -835,7 +835,7 @@ msgstr "Munitionstyp bearbeiten"
msgid "Move Ammo"
msgstr "Munition verschieben"
#: lib/cannery_web/live/container_live/show.html.heex:111
#: lib/cannery_web/live/container_live/show.html.heex:119
#, elixir-autogen, elixir-format, fuzzy
msgid "No ammo in this container"
msgstr "Keine Munitionsgruppe in diesem Behälter"
@ -852,7 +852,7 @@ msgstr "Diese Munitionsgruppe ist nicht in einem Behälter"
#: lib/cannery_web/components/container_card.ex:58
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
#: lib/cannery_web/live/container_live/show.html.heex:27
#: lib/cannery_web/live/container_live/show.html.heex:30
#, elixir-autogen, elixir-format
msgid "Packs:"
msgstr ""
@ -881,7 +881,7 @@ msgstr "Behälter"
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
#: lib/cannery_web/live/container_live/show.html.heex:97
#: lib/cannery_web/live/container_live/show.html.heex:105
#, elixir-autogen, elixir-format
msgid "Show used"
msgstr ""
@ -921,7 +921,7 @@ msgstr "Patronen:"
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
#: lib/cannery_web/live/container_live/index.html.heex:23
#: lib/cannery_web/live/container_live/show.html.heex:103
#: lib/cannery_web/live/container_live/show.html.heex:111
#, elixir-autogen, elixir-format
msgid "View as table"
msgstr ""
@ -1112,3 +1112,13 @@ msgstr "Ursprüngliche Anzahl:"
#, elixir-autogen, elixir-format
msgid "Home"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:28
#, elixir-autogen, elixir-format, fuzzy
msgid "Total packs:"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:37
#, elixir-autogen, elixir-format, fuzzy
msgid "Total rounds:"
msgstr "Summe abgegebener Schüsse:"

View File

@ -89,7 +89,7 @@ msgstr ""
#: lib/cannery_web/live/container_live/index.ex:223
#: lib/cannery_web/live/container_live/index.html.heex:73
#: lib/cannery_web/live/container_live/show.html.heex:51
#: lib/cannery_web/live/container_live/show.html.heex:59
#: lib/cannery_web/live/tag_live/index.html.heex:39
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete %{name}?"

View File

@ -453,7 +453,7 @@ msgstr ""
msgid "Your data stays with you, period"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:64
#: lib/cannery_web/live/container_live/show.html.heex:72
#, elixir-autogen, elixir-format
msgid "No tags for this container"
msgstr ""
@ -659,7 +659,7 @@ msgstr ""
#: lib/cannery_web/components/container_card.ex:63
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
#: lib/cannery_web/live/container_live/show.html.heex:32
#: lib/cannery_web/live/container_live/show.html.heex:39
#, elixir-autogen, elixir-format
msgid "Rounds:"
msgstr ""
@ -818,7 +818,7 @@ msgstr ""
msgid "Move Ammo"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:111
#: lib/cannery_web/live/container_live/show.html.heex:119
#, elixir-autogen, elixir-format
msgid "No ammo in this container"
msgstr ""
@ -835,7 +835,7 @@ msgstr ""
#: lib/cannery_web/components/container_card.ex:58
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
#: lib/cannery_web/live/container_live/show.html.heex:27
#: lib/cannery_web/live/container_live/show.html.heex:30
#, elixir-autogen, elixir-format
msgid "Packs:"
msgstr ""
@ -864,7 +864,7 @@ msgstr ""
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
#: lib/cannery_web/live/container_live/show.html.heex:97
#: lib/cannery_web/live/container_live/show.html.heex:105
#, elixir-autogen, elixir-format
msgid "Show used"
msgstr ""
@ -904,7 +904,7 @@ msgstr ""
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
#: lib/cannery_web/live/container_live/index.html.heex:23
#: lib/cannery_web/live/container_live/show.html.heex:103
#: lib/cannery_web/live/container_live/show.html.heex:111
#, elixir-autogen, elixir-format
msgid "View as table"
msgstr ""
@ -1095,3 +1095,13 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Home"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:28
#, elixir-autogen, elixir-format
msgid "Total packs:"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:37
#, elixir-autogen, elixir-format
msgid "Total rounds:"
msgstr ""

View File

@ -137,7 +137,7 @@ msgstr ""
msgid "Send instructions to reset password"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:72
#: lib/cannery_web/live/container_live/show.html.heex:80
#, elixir-autogen, elixir-format
msgid "Why not add one?"
msgstr ""

View File

@ -454,7 +454,7 @@ msgstr ""
msgid "Your data stays with you, period"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:64
#: lib/cannery_web/live/container_live/show.html.heex:72
#, elixir-autogen, elixir-format
msgid "No tags for this container"
msgstr ""
@ -660,7 +660,7 @@ msgstr ""
#: lib/cannery_web/components/container_card.ex:63
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
#: lib/cannery_web/live/container_live/show.html.heex:32
#: lib/cannery_web/live/container_live/show.html.heex:39
#, elixir-autogen, elixir-format, fuzzy
msgid "Rounds:"
msgstr ""
@ -819,7 +819,7 @@ msgstr ""
msgid "Move Ammo"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:111
#: lib/cannery_web/live/container_live/show.html.heex:119
#, elixir-autogen, elixir-format, fuzzy
msgid "No ammo in this container"
msgstr ""
@ -836,7 +836,7 @@ msgstr ""
#: lib/cannery_web/components/container_card.ex:58
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
#: lib/cannery_web/live/container_live/show.html.heex:27
#: lib/cannery_web/live/container_live/show.html.heex:30
#, elixir-autogen, elixir-format
msgid "Packs:"
msgstr ""
@ -865,7 +865,7 @@ msgstr ""
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
#: lib/cannery_web/live/container_live/show.html.heex:97
#: lib/cannery_web/live/container_live/show.html.heex:105
#, elixir-autogen, elixir-format
msgid "Show used"
msgstr ""
@ -905,7 +905,7 @@ msgstr ""
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
#: lib/cannery_web/live/container_live/index.html.heex:23
#: lib/cannery_web/live/container_live/show.html.heex:103
#: lib/cannery_web/live/container_live/show.html.heex:111
#, elixir-autogen, elixir-format
msgid "View as table"
msgstr ""
@ -1096,3 +1096,13 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Home"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:28
#, elixir-autogen, elixir-format, fuzzy
msgid "Total packs:"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:37
#, elixir-autogen, elixir-format, fuzzy
msgid "Total rounds:"
msgstr ""

View File

@ -75,7 +75,7 @@ msgstr ""
#: lib/cannery_web/live/container_live/index.ex:223
#: lib/cannery_web/live/container_live/index.html.heex:73
#: lib/cannery_web/live/container_live/show.html.heex:51
#: lib/cannery_web/live/container_live/show.html.heex:59
#: lib/cannery_web/live/tag_live/index.html.heex:39
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete %{name}?"

View File

@ -149,7 +149,7 @@ msgstr "Guardar"
msgid "Send instructions to reset password"
msgstr "Enviar instrucciones para reestablecer contraseña"
#: lib/cannery_web/live/container_live/show.html.heex:72
#: lib/cannery_web/live/container_live/show.html.heex:80
#, elixir-autogen, elixir-format
msgid "Why not add one?"
msgstr "¿Por qué no añadir una?"

View File

@ -468,7 +468,7 @@ msgstr ""
msgid "Your data stays with you, period"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:64
#: lib/cannery_web/live/container_live/show.html.heex:72
#, elixir-autogen, elixir-format
msgid "No tags for this container"
msgstr ""
@ -674,7 +674,7 @@ msgstr ""
#: lib/cannery_web/components/container_card.ex:63
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
#: lib/cannery_web/live/container_live/show.html.heex:32
#: lib/cannery_web/live/container_live/show.html.heex:39
#, elixir-autogen, elixir-format
msgid "Rounds:"
msgstr ""
@ -833,7 +833,7 @@ msgstr ""
msgid "Move Ammo"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:111
#: lib/cannery_web/live/container_live/show.html.heex:119
#, elixir-autogen, elixir-format, fuzzy
msgid "No ammo in this container"
msgstr ""
@ -850,7 +850,7 @@ msgstr ""
#: lib/cannery_web/components/container_card.ex:58
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
#: lib/cannery_web/live/container_live/show.html.heex:27
#: lib/cannery_web/live/container_live/show.html.heex:30
#, elixir-autogen, elixir-format
msgid "Packs:"
msgstr ""
@ -879,7 +879,7 @@ msgstr ""
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
#: lib/cannery_web/live/container_live/show.html.heex:97
#: lib/cannery_web/live/container_live/show.html.heex:105
#, elixir-autogen, elixir-format
msgid "Show used"
msgstr ""
@ -919,7 +919,7 @@ msgstr ""
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
#: lib/cannery_web/live/container_live/index.html.heex:23
#: lib/cannery_web/live/container_live/show.html.heex:103
#: lib/cannery_web/live/container_live/show.html.heex:111
#, elixir-autogen, elixir-format
msgid "View as table"
msgstr ""
@ -1110,3 +1110,13 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Home"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:28
#, elixir-autogen, elixir-format, fuzzy
msgid "Total packs:"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:37
#, elixir-autogen, elixir-format, fuzzy
msgid "Total rounds:"
msgstr ""

View File

@ -89,7 +89,7 @@ msgstr "Está seguro que desea eliminar %{email}? Esta acción es permanente!"
#: lib/cannery_web/live/container_live/index.ex:223
#: lib/cannery_web/live/container_live/index.html.heex:73
#: lib/cannery_web/live/container_live/show.html.heex:51
#: lib/cannery_web/live/container_live/show.html.heex:59
#: lib/cannery_web/live/tag_live/index.html.heex:39
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete %{name}?"

View File

@ -149,7 +149,7 @@ msgstr "Sauvegarder"
msgid "Send instructions to reset password"
msgstr "Envoyer les instructions pour réinitialiser le mot de passe"
#: lib/cannery_web/live/container_live/show.html.heex:72
#: lib/cannery_web/live/container_live/show.html.heex:80
#, elixir-autogen, elixir-format
msgid "Why not add one?"
msgstr "Pourquoi pas en ajouter un?"

View File

@ -472,7 +472,7 @@ msgstr "Bienvenue à %{name}"
msgid "Your data stays with you, period"
msgstr "Vos données restent avec vous, point final"
#: lib/cannery_web/live/container_live/show.html.heex:64
#: lib/cannery_web/live/container_live/show.html.heex:72
#, elixir-autogen, elixir-format
msgid "No tags for this container"
msgstr "Aucun tag pour ce conteneur"
@ -678,7 +678,7 @@ msgstr "Éditer les tags de %{name}"
#: lib/cannery_web/components/container_card.ex:63
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
#: lib/cannery_web/live/container_live/show.html.heex:32
#: lib/cannery_web/live/container_live/show.html.heex:39
#, elixir-autogen, elixir-format
msgid "Rounds:"
msgstr "Cartouches:"
@ -837,7 +837,7 @@ msgstr "Éditer le type de munition"
msgid "Move Ammo"
msgstr "Déplacer munition"
#: lib/cannery_web/live/container_live/show.html.heex:111
#: lib/cannery_web/live/container_live/show.html.heex:119
#, elixir-autogen, elixir-format, fuzzy
msgid "No ammo in this container"
msgstr "Aucun groupe de munition pour ce conteneur"
@ -854,7 +854,7 @@ msgstr "Ce groupe de munition nest pas dans un conteneur"
#: lib/cannery_web/components/container_card.ex:58
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
#: lib/cannery_web/live/container_live/show.html.heex:27
#: lib/cannery_web/live/container_live/show.html.heex:30
#, elixir-autogen, elixir-format
msgid "Packs:"
msgstr "Packages:"
@ -884,7 +884,7 @@ msgstr "Conteneur"
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
#: lib/cannery_web/live/container_live/show.html.heex:97
#: lib/cannery_web/live/container_live/show.html.heex:105
#, elixir-autogen, elixir-format
msgid "Show used"
msgstr ""
@ -924,7 +924,7 @@ msgstr "Cartouches:"
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
#: lib/cannery_web/live/container_live/index.html.heex:23
#: lib/cannery_web/live/container_live/show.html.heex:103
#: lib/cannery_web/live/container_live/show.html.heex:111
#, elixir-autogen, elixir-format
msgid "View as table"
msgstr ""
@ -1115,3 +1115,13 @@ msgstr "Nombre original:"
#, elixir-autogen, elixir-format
msgid "Home"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:28
#, elixir-autogen, elixir-format, fuzzy
msgid "Total packs:"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:37
#, elixir-autogen, elixir-format, fuzzy
msgid "Total rounds:"
msgstr "Nombre totale de cartouches tirées:"

View File

@ -90,7 +90,7 @@ msgstr ""
#: lib/cannery_web/live/container_live/index.ex:223
#: lib/cannery_web/live/container_live/index.html.heex:73
#: lib/cannery_web/live/container_live/show.html.heex:51
#: lib/cannery_web/live/container_live/show.html.heex:59
#: lib/cannery_web/live/tag_live/index.html.heex:39
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete %{name}?"

View File

@ -147,7 +147,7 @@ msgstr ""
msgid "Send instructions to reset password"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:72
#: lib/cannery_web/live/container_live/show.html.heex:80
#, elixir-autogen, elixir-format
msgid "Why not add one?"
msgstr ""

View File

@ -464,7 +464,7 @@ msgstr ""
msgid "Your data stays with you, period"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:64
#: lib/cannery_web/live/container_live/show.html.heex:72
#, elixir-autogen, elixir-format
msgid "No tags for this container"
msgstr ""
@ -670,7 +670,7 @@ msgstr ""
#: lib/cannery_web/components/container_card.ex:63
#: lib/cannery_web/live/ammo_type_live/show.html.heex:67
#: lib/cannery_web/live/container_live/show.html.heex:32
#: lib/cannery_web/live/container_live/show.html.heex:39
#, elixir-autogen, elixir-format
msgid "Rounds:"
msgstr ""
@ -829,7 +829,7 @@ msgstr ""
msgid "Move Ammo"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:111
#: lib/cannery_web/live/container_live/show.html.heex:119
#, elixir-autogen, elixir-format
msgid "No ammo in this container"
msgstr ""
@ -846,7 +846,7 @@ msgstr ""
#: lib/cannery_web/components/container_card.ex:58
#: lib/cannery_web/live/ammo_type_live/show.html.heex:95
#: lib/cannery_web/live/container_live/show.html.heex:27
#: lib/cannery_web/live/container_live/show.html.heex:30
#, elixir-autogen, elixir-format
msgid "Packs:"
msgstr ""
@ -875,7 +875,7 @@ msgstr ""
#: lib/cannery_web/live/ammo_group_live/index.html.heex:48
#: lib/cannery_web/live/ammo_type_live/index.html.heex:23
#: lib/cannery_web/live/ammo_type_live/show.html.heex:152
#: lib/cannery_web/live/container_live/show.html.heex:97
#: lib/cannery_web/live/container_live/show.html.heex:105
#, elixir-autogen, elixir-format
msgid "Show used"
msgstr ""
@ -915,7 +915,7 @@ msgstr ""
#: lib/cannery_web/live/ammo_type_live/show.html.heex:158
#: lib/cannery_web/live/container_live/index.html.heex:23
#: lib/cannery_web/live/container_live/show.html.heex:103
#: lib/cannery_web/live/container_live/show.html.heex:111
#, elixir-autogen, elixir-format
msgid "View as table"
msgstr ""
@ -1106,3 +1106,13 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Home"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:28
#, elixir-autogen, elixir-format, fuzzy
msgid "Total packs:"
msgstr ""
#: lib/cannery_web/live/container_live/show.html.heex:37
#, elixir-autogen, elixir-format, fuzzy
msgid "Total rounds:"
msgstr ""

View File

@ -85,7 +85,7 @@ msgstr ""
#: lib/cannery_web/live/container_live/index.ex:223
#: lib/cannery_web/live/container_live/index.html.heex:73
#: lib/cannery_web/live/container_live/show.html.heex:51
#: lib/cannery_web/live/container_live/show.html.heex:59
#: lib/cannery_web/live/tag_live/index.html.heex:39
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete %{name}?"

View File

@ -74,7 +74,7 @@ msgstr ""
#: lib/cannery_web/live/container_live/index.ex:223
#: lib/cannery_web/live/container_live/index.html.heex:73
#: lib/cannery_web/live/container_live/show.html.heex:51
#: lib/cannery_web/live/container_live/show.html.heex:59
#: lib/cannery_web/live/tag_live/index.html.heex:39
#, elixir-autogen, elixir-format
msgid "Are you sure you want to delete %{name}?"