From 3eda522903a02fda039b2652dd84761cd37811a5 Mon Sep 17 00:00:00 2001 From: shibao Date: Fri, 31 Jan 2025 23:44:11 -0500 Subject: [PATCH] move staging to container --- CHANGELOG.md | 1 + lib/cannery/ammo.ex | 2 +- lib/cannery/ammo/pack.ex | 52 +++++---- lib/cannery/containers.ex | 16 ++- lib/cannery/containers/container.ex | 46 ++++++-- .../components/container_table_component.ex | 28 ++++- .../components/pack_table_component.ex | 9 +- lib/cannery_web/live/container_live/index.ex | 14 +++ .../live/container_live/index.html.heex | 30 +++-- lib/cannery_web/live/container_live/show.ex | 12 ++ .../live/container_live/show.html.heex | 34 +++--- lib/cannery_web/live/pack_live/index.ex | 12 -- .../live/pack_live/index.html.heex | 31 ++---- lib/cannery_web/live/pack_live/show.ex | 10 -- lib/cannery_web/live/pack_live/show.html.heex | 30 ++--- lib/cannery_web/live/range_live/index.ex | 18 ++- .../live/range_live/index.html.heex | 25 ++--- priv/gettext/actions.pot | 66 ++++++----- priv/gettext/de/LC_MESSAGES/actions.po | 66 ++++++----- priv/gettext/de/LC_MESSAGES/default.po | 105 +++++++++--------- priv/gettext/de/LC_MESSAGES/errors.po | 8 +- priv/gettext/de/LC_MESSAGES/prompts.po | 29 ++--- priv/gettext/default.pot | 105 +++++++++--------- priv/gettext/en/LC_MESSAGES/actions.po | 66 ++++++----- priv/gettext/en/LC_MESSAGES/default.po | 105 +++++++++--------- priv/gettext/en/LC_MESSAGES/errors.po | 8 +- priv/gettext/en/LC_MESSAGES/prompts.po | 29 ++--- priv/gettext/errors.pot | 8 +- priv/gettext/es/LC_MESSAGES/actions.po | 66 ++++++----- priv/gettext/es/LC_MESSAGES/default.po | 105 +++++++++--------- priv/gettext/es/LC_MESSAGES/errors.po | 8 +- priv/gettext/es/LC_MESSAGES/prompts.po | 29 ++--- priv/gettext/fr/LC_MESSAGES/actions.po | 66 ++++++----- priv/gettext/fr/LC_MESSAGES/default.po | 105 +++++++++--------- priv/gettext/fr/LC_MESSAGES/errors.po | 8 +- priv/gettext/fr/LC_MESSAGES/prompts.po | 29 ++--- priv/gettext/ga/LC_MESSAGES/actions.po | 66 ++++++----- priv/gettext/ga/LC_MESSAGES/default.po | 105 +++++++++--------- priv/gettext/ga/LC_MESSAGES/errors.po | 8 +- priv/gettext/ga/LC_MESSAGES/prompts.po | 29 ++--- priv/gettext/it/LC_MESSAGES/actions.po | 66 ++++++----- priv/gettext/it/LC_MESSAGES/default.po | 105 +++++++++--------- priv/gettext/it/LC_MESSAGES/errors.po | 8 +- priv/gettext/it/LC_MESSAGES/prompts.po | 29 ++--- priv/gettext/prompts.pot | 29 ++--- ...250201041849_move_staged_to_containers.exs | 13 +++ test/cannery/ammo_test.exs | 6 +- .../controllers/export_controller_test.exs | 2 +- 48 files changed, 948 insertions(+), 899 deletions(-) create mode 100644 priv/repo/migrations/20250201041849_move_staged_to_containers.exs diff --git a/CHANGELOG.md b/CHANGELOG.md index 385d09a..ec7760a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # v0.9.13 +- Move staging to container, rather than ammo - Add date restriction dropdown to range page - Fix dates not rendering properly in table - Update deps diff --git a/lib/cannery/ammo.ex b/lib/cannery/ammo.ex index bffcd02..1dbbff6 100644 --- a/lib/cannery/ammo.ex +++ b/lib/cannery/ammo.ex @@ -547,7 +547,7 @@ defmodule Cannery.Ammo do @spec list_packs_staged(Queryable.t(), staged :: boolean() | nil) :: Queryable.t() defp list_packs_staged(query, staged) when staged |> is_boolean(), - do: query |> where([p: p], p.staged == ^staged) + do: query |> where([c: c], c.staged == ^staged) defp list_packs_staged(query, _nil), do: query diff --git a/lib/cannery/ammo/pack.ex b/lib/cannery/ammo/pack.ex index f215b74..f1fc758 100644 --- a/lib/cannery/ammo/pack.ex +++ b/lib/cannery/ammo/pack.ex @@ -11,21 +11,19 @@ defmodule Cannery.Ammo.Pack do @derive {Jason.Encoder, only: [ - :id, + :container_id, :count, + :id, + :lot_number, :notes, :price_paid, - :lot_number, - :staged, - :type_id, - :container_id + :type_id ]} schema "packs" do field :count, :integer + field :lot_number, :string field :notes, :string field :price_paid, :float - field :staged, :boolean, default: false - field :lot_number, :string field :purchased_on, :date belongs_to :type, Type @@ -36,12 +34,11 @@ defmodule Cannery.Ammo.Pack do end @type t :: %__MODULE__{ - id: id(), count: integer, + id: id(), + lot_number: String.t() | nil, notes: String.t() | nil, price_paid: float() | nil, - staged: boolean(), - lot_number: String.t() | nil, purchased_on: Date.t(), type: Type.t() | nil, type_id: Type.id(), @@ -92,7 +89,13 @@ defmodule Cannery.Ammo.Pack do |> change(type_id: type_id) |> change(container_id: container_id) |> change(user_id: user_id) - |> cast(attrs, [:count, :lot_number, :notes, :price_paid, :purchased_on, :staged]) + |> cast(attrs, [ + :count, + :lot_number, + :notes, + :price_paid, + :purchased_on + ]) |> validate_required(:type_id, message: dgettext("errors", "Please select a valid type")) |> validate_required(:container_id, message: dgettext("errors", "Please select a valid container") @@ -100,7 +103,13 @@ defmodule Cannery.Ammo.Pack do |> validate_number(:count, greater_than: 0) |> validate_number(:price_paid, greater_than_or_equal_to: 0) |> validate_length(:lot_number, max: 255) - |> validate_required([:count, :staged, :purchased_on, :type_id, :container_id, :user_id]) + |> validate_required([ + :container_id, + :count, + :purchased_on, + :type_id, + :user_id + ]) end @doc false @@ -108,19 +117,22 @@ defmodule Cannery.Ammo.Pack do def update_changeset(pack, attrs, user) do pack |> cast(attrs, [ + :container_id, :count, - :price_paid, - :notes, - :staged, - :purchased_on, :lot_number, - :container_id + :notes, + :price_paid, + :purchased_on ]) |> validate_number(:count, greater_than_or_equal_to: 0) |> validate_number(:price_paid, greater_than_or_equal_to: 0) |> validate_container_id(user) |> validate_length(:lot_number, max: 255) - |> validate_required([:count, :staged, :purchased_on, :container_id]) + |> validate_required([ + :container_id, + :count, + :purchased_on + ]) end defp validate_container_id(changeset, user) do @@ -140,7 +152,7 @@ defmodule Cannery.Ammo.Pack do @spec range_changeset(t() | new_pack(), attrs :: map()) :: changeset() def range_changeset(pack, attrs) do pack - |> cast(attrs, [:count, :staged]) - |> validate_required([:count, :staged]) + |> cast(attrs, [:count]) + |> validate_required([:count]) end end diff --git a/lib/cannery/containers.ex b/lib/cannery/containers.ex index 69c6615..7628f1d 100644 --- a/lib/cannery/containers.ex +++ b/lib/cannery/containers.ex @@ -9,7 +9,9 @@ defmodule Cannery.Containers do @container_preloads [:tags] - @type list_containers_option :: {:search, String.t() | nil} + @type list_containers_option :: + {:search, String.t() | nil} + | {:staged, boolean() | nil} @type list_containers_options :: [list_containers_option()] @doc """ @@ -20,7 +22,10 @@ defmodule Cannery.Containers do iex> list_containers(%User{id: 123}) [%Container{}, ...] - iex> list_containers(%User{id: 123}, search: "cool") + iex> list_containers(%User{id: 123}, + ...> search: "cool", + ...> staged: true + ...> ) [%Container{name: "my cool container"}, ...] """ @@ -37,9 +42,16 @@ defmodule Cannery.Containers do preload: ^@container_preloads ) |> list_containers_search(Keyword.get(opts, :search)) + |> list_containers_staged(Keyword.get(opts, :staged)) |> Repo.all() end + @spec list_containers_staged(Queryable.t(), staged :: boolean() | nil) :: Queryable.t() + defp list_containers_staged(query, staged) when staged |> is_boolean(), + do: query |> where([c: c], c.staged == ^staged) + + defp list_containers_staged(query, _nil), do: query + @spec list_containers_search(Queryable.t(), search :: String.t() | nil) :: Queryable.t() defp list_containers_search(query, search) when search in ["", nil], do: query |> order_by([c: c], c.name) diff --git a/lib/cannery/containers/container.ex b/lib/cannery/containers/container.ex index 904b940..14d7870 100644 --- a/lib/cannery/containers/container.ex +++ b/lib/cannery/containers/container.ex @@ -8,17 +8,19 @@ defmodule Cannery.Containers.Container do @derive {Jason.Encoder, only: [ - :id, - :name, :desc, + :id, :location, - :type, - :tags + :name, + :staged, + :tags, + :type ]} schema "containers" do - field :name, :string field :desc, :string field :location, :string + field :name, :string + field :staged, :boolean, default: false field :type, :string field :user_id, :binary_id @@ -29,10 +31,11 @@ defmodule Cannery.Containers.Container do end @type t :: %__MODULE__{ - id: id(), - name: String.t(), desc: String.t(), + id: id(), location: String.t(), + name: String.t(), + staged: boolean(), type: String.t(), user_id: User.id(), tags: [Tag.t()] | nil, @@ -48,19 +51,40 @@ defmodule Cannery.Containers.Container do def create_changeset(container, %User{id: user_id}, attrs) do container |> change(user_id: user_id) - |> cast(attrs, [:name, :desc, :type, :location]) + |> cast(attrs, [ + :desc, + :location, + :name, + :staged, + :type + ]) |> validate_length(:name, max: 255) |> validate_length(:type, max: 255) - |> validate_required([:name, :type, :user_id]) + |> validate_required([ + :name, + :staged, + :type, + :user_id + ]) end @doc false @spec update_changeset(t() | new_container(), attrs :: map()) :: changeset() def update_changeset(container, attrs) do container - |> cast(attrs, [:name, :desc, :type, :location]) + |> cast(attrs, [ + :desc, + :location, + :name, + :staged, + :type + ]) |> validate_length(:name, max: 255) |> validate_length(:type, max: 255) - |> validate_required([:name, :type]) + |> validate_required([ + :name, + :staged, + :type + ]) end end diff --git a/lib/cannery_web/components/container_table_component.ex b/lib/cannery_web/components/container_table_component.ex index 57e8199..728f596 100644 --- a/lib/cannery_web/components/container_table_component.ex +++ b/lib/cannery_web/components/container_table_component.ex @@ -4,6 +4,7 @@ defmodule CanneryWeb.Components.ContainerTableComponent do """ use CanneryWeb, :live_component alias Cannery.{Accounts.User, Ammo, Containers.Container} + alias CanneryWeb.Components.TableComponent alias Ecto.UUID alias Phoenix.LiveView.{Rendered, Socket} @@ -13,6 +14,7 @@ defmodule CanneryWeb.Components.ContainerTableComponent do required(:id) => UUID.t(), required(:current_user) => User.t(), optional(:containers) => [Container.t()], + optional(:range) => Rendered.t(), optional(:tag_actions) => Rendered.t(), optional(:actions) => Rendered.t(), optional(any()) => any() @@ -23,6 +25,7 @@ defmodule CanneryWeb.Components.ContainerTableComponent do socket = socket |> assign(assigns) + |> assign_new(:range, fn -> [] end) |> assign_new(:tag_actions, fn -> [] end) |> assign_new(:actions, fn -> [] end) |> display_containers() @@ -35,6 +38,7 @@ defmodule CanneryWeb.Components.ContainerTableComponent do assigns: %{ containers: containers, current_user: current_user, + range: range, tag_actions: tag_actions, actions: actions } @@ -62,13 +66,22 @@ defmodule CanneryWeb.Components.ContainerTableComponent do end) |> Enum.concat([ %{label: gettext("Packs"), key: :packs, type: :integer}, - %{label: gettext("Rounds"), key: :rounds, type: :integer}, - %{label: gettext("Tags"), key: :tags, type: :tags}, - %{label: gettext("Actions"), key: :actions, sortable: false, type: :actions} + %{label: gettext("Rounds"), key: :rounds, type: :integer} ]) + |> Enum.concat( + [ + %{label: gettext("Tags"), key: :tags, type: :tags}, + %{label: gettext("Actions"), key: :actions, sortable: false, type: :actions} + ] + |> TableComponent.maybe_compose_columns( + %{label: gettext("Range"), key: :range}, + range != [] + ) + ) extra_data = %{ current_user: current_user, + range: range, tag_actions: tag_actions, actions: actions, pack_count: @@ -136,6 +149,15 @@ defmodule CanneryWeb.Components.ContainerTableComponent do round_count |> Map.get(container_id, 0) end + defp get_value_for_key(:range, %{staged: staged} = container, %{range: range}) do + assigns = %{range: range, container: container} + + {staged, + ~H""" + <%= render_slot(@range, @container) %> + """} + end + defp get_value_for_key(:tags, container, %{tag_actions: tag_actions}) do assigns = %{tag_actions: tag_actions, container: container} diff --git a/lib/cannery_web/components/pack_table_component.ex b/lib/cannery_web/components/pack_table_component.ex index df8c5dc..b33d7de 100644 --- a/lib/cannery_web/components/pack_table_component.ex +++ b/lib/cannery_web/components/pack_table_component.ex @@ -201,13 +201,12 @@ defmodule CanneryWeb.Components.PackTableComponent do """} end - defp get_value_for_key(:range, %{staged: staged} = pack, %{range: range}) do + defp get_value_for_key(:range, pack, %{range: range}) do assigns = %{range: range, pack: pack} - {staged, - ~H""" - <%= render_slot(@range, @pack) %> - """} + ~H""" + <%= render_slot(@range, @pack) %> + """ end defp get_value_for_key( diff --git a/lib/cannery_web/live/container_live/index.ex b/lib/cannery_web/live/container_live/index.ex index 79fe167..61304d0 100644 --- a/lib/cannery_web/live/container_live/index.ex +++ b/lib/cannery_web/live/container_live/index.ex @@ -112,6 +112,20 @@ defmodule CanneryWeb.ContainerLive.Index do {:noreply, socket |> push_patch(to: ~p"/containers/search/#{search_term}")} end + def handle_event( + "toggle_staged", + %{"container_id" => id}, + %{assigns: %{current_user: current_user}} = socket + ) do + container = Containers.get_container!(id, current_user) + + {:ok, _container} = + container + |> Containers.update_container(current_user, %{"staged" => !container.staged}) + + {:noreply, socket |> display_containers()} + end + defp display_containers(%{assigns: %{search: search, current_user: current_user}} = socket) do socket |> assign(:containers, Containers.list_containers(current_user, search: search)) end diff --git a/lib/cannery_web/live/container_live/index.html.heex b/lib/cannery_web/live/container_live/index.html.heex index 9dc3920..74af3d8 100644 --- a/lib/cannery_web/live/container_live/index.html.heex +++ b/lib/cannery_web/live/container_live/index.html.heex @@ -1,10 +1,10 @@ -
-

+
+

<%= gettext("Containers") %>

<%= if @containers |> Enum.empty?() and @search |> is_nil() do %> -

+

<%= gettext("No containers") %> <%= display_emoji("😔") %>

@@ -17,14 +17,14 @@ <%= dgettext("actions", "New Container") %> -
+
<.form :let={f} for={%{}} as={:search} phx-change="search" phx-submit="search" - class="grow flex items-center" + class="flex items-center grow" > <%= text_input(f, :search_term, class: "grow input input-primary", @@ -36,14 +36,14 @@ <.toggle_button action="toggle_table" value={@view_table}> - + <%= gettext("View as table") %>
<%= if @containers |> Enum.empty?() do %> -

+

<%= gettext("No containers") %> <%= display_emoji("😔") %>

@@ -56,6 +56,20 @@ containers={@containers} current_user={@current_user} > + <:range :let={container}> +
+ +
+ <:tag_actions :let={container}>
<.link @@ -109,7 +123,7 @@ <% else %> -
+
<.container_card :for={container <- @containers} container={container} diff --git a/lib/cannery_web/live/container_live/show.ex b/lib/cannery_web/live/container_live/show.ex index 165271c..052cb8c 100644 --- a/lib/cannery_web/live/container_live/show.ex +++ b/lib/cannery_web/live/container_live/show.ex @@ -78,6 +78,18 @@ defmodule CanneryWeb.ContainerLive.Show do {:noreply, socket} end + def handle_event( + "toggle_staged", + _params, + %{assigns: %{container: container, current_user: current_user}} = socket + ) do + {:ok, _container} = + container + |> Containers.update_container(current_user, %{"staged" => !container.staged}) + + {:noreply, socket |> render_container()} + end + def handle_event("toggle_table", _params, %{assigns: %{view_table: view_table}} = socket) do {:noreply, socket |> assign(:view_table, !view_table) |> render_container()} end diff --git a/lib/cannery_web/live/container_live/show.html.heex b/lib/cannery_web/live/container_live/show.html.heex index 27931c3..0042031 100644 --- a/lib/cannery_web/live/container_live/show.html.heex +++ b/lib/cannery_web/live/container_live/show.html.heex @@ -1,34 +1,34 @@ -
-

+
+

<%= @container.name %>

- + <%= gettext("Description:") %> <%= @container.desc %> - + <%= gettext("Type:") %> <%= @container.type %> - + <%= gettext("Location:") %> <%= @container.location %> - + <%= gettext("Packs:") %> <%= @packs_count %> - + <%= gettext("Rounds:") %> <%= @round_count %> -
+
<.link patch={~p"/container/edit/#{@container}"} class="text-primary-600 link" @@ -52,11 +52,19 @@
+
+ +
+
<%= if @container.tags |> Enum.empty?() do %>
-

+

<%= gettext("No tags for this container") %> <%= display_emoji("😔") %>

@@ -105,15 +113,15 @@ <.toggle_button action="toggle_table" value={@view_table}> - + <%= gettext("View as table") %>
-
+
<%= if @packs |> Enum.empty?() do %> -

+

<%= gettext("No ammo in this container") %>

<% else %> @@ -131,7 +139,7 @@ <:actions :let={%{count: pack_count} = pack}> -
+
<.link navigate={~p"/ammo/show/#{pack}"} class="text-primary-600 link" diff --git a/lib/cannery_web/live/pack_live/index.ex b/lib/cannery_web/live/pack_live/index.ex index bb902c2..8b3dc24 100644 --- a/lib/cannery_web/live/pack_live/index.ex +++ b/lib/cannery_web/live/pack_live/index.ex @@ -96,18 +96,6 @@ defmodule CanneryWeb.PackLive.Index do {:noreply, socket |> put_flash(:info, prompt) |> display_packs()} end - def handle_event( - "toggle_staged", - %{"pack_id" => id}, - %{assigns: %{current_user: current_user}} = socket - ) do - pack = Ammo.get_pack!(id, current_user) - - {:ok, _pack} = pack |> Ammo.update_pack(%{"staged" => !pack.staged}, current_user) - - {:noreply, socket |> display_packs()} - end - def handle_event("toggle_show_used", _params, %{assigns: %{show_used: show_used}} = socket) do {:noreply, socket |> assign(:show_used, !show_used) |> display_packs()} end diff --git a/lib/cannery_web/live/pack_live/index.html.heex b/lib/cannery_web/live/pack_live/index.html.heex index 539247d..3e5847b 100644 --- a/lib/cannery_web/live/pack_live/index.html.heex +++ b/lib/cannery_web/live/pack_live/index.html.heex @@ -1,5 +1,5 @@ -
-

+
+

<%= gettext("Ammo") %>

@@ -25,7 +25,7 @@
<% @packs_count == 0 -> %> -

+

<%= gettext("No ammo") %> <%= display_emoji("😔") %>

@@ -38,7 +38,7 @@ <%= dgettext("actions", "Add Ammo") %> -
+
<.form :let={f} for={%{}} @@ -71,7 +71,7 @@ as={:search} phx-change="search" phx-submit="search" - class="grow flex items-center" + class="flex items-center grow" > <%= text_input(f, :search_term, class: "grow input input-primary", @@ -83,14 +83,14 @@ <.toggle_button action="toggle_show_used" value={@show_used}> - + <%= gettext("Show used") %>
<%= if @packs |> Enum.empty?() do %> -

+

<%= gettext("No Ammo") %> <%= display_emoji("😔") %>

@@ -108,18 +108,7 @@ <:range :let={pack}> -
- - +
<.link patch={~p"/ammo/add_shot_record/#{pack}"} class="mx-2 my-1 text-sm btn btn-primary" @@ -129,7 +118,7 @@
<:container :let={{pack, %{name: container_name} = container}}> -
+
<.link navigate={~p"/container/#{container}"} class="mx-2 my-1 link"> <%= container_name %> @@ -140,7 +129,7 @@
<:actions :let={%{count: pack_count} = pack}> -
+
<.link navigate={~p"/ammo/show/#{pack}"} class="text-primary-600 link" diff --git a/lib/cannery_web/live/pack_live/show.ex b/lib/cannery_web/live/pack_live/show.ex index 89fd6bb..bdbe31c 100644 --- a/lib/cannery_web/live/pack_live/show.ex +++ b/lib/cannery_web/live/pack_live/show.ex @@ -57,16 +57,6 @@ defmodule CanneryWeb.PackLive.Show do {:noreply, socket |> put_flash(:info, prompt) |> push_navigate(to: redirect_to)} end - def handle_event( - "toggle_staged", - _params, - %{assigns: %{pack: pack, current_user: current_user}} = socket - ) do - {:ok, pack} = pack |> Ammo.update_pack(%{"staged" => !pack.staged}, current_user) - - {:noreply, socket |> display_pack(pack)} - end - def handle_event( "delete_shot_record", %{"id" => id}, diff --git a/lib/cannery_web/live/pack_live/show.html.heex b/lib/cannery_web/live/pack_live/show.html.heex index aadd2d0..d127984 100644 --- a/lib/cannery_web/live/pack_live/show.html.heex +++ b/lib/cannery_web/live/pack_live/show.html.heex @@ -1,43 +1,43 @@ -
-

+
+

<%= @pack.type.name %>

-
- +
+ <%= gettext("Count:") %> <%= @pack.count %> - + <%= gettext("Original count:") %> <%= @original_count %> - + <%= gettext("Percentage left:") %> <%= gettext("%{percentage}%", percentage: @percentage_remaining) %> <%= if @pack.notes do %> - + <%= gettext("Notes:") %> <%= @pack.notes %> <% end %> - + <%= gettext("Purchased on:") %> <.date id={"#{@pack.id}-purchased-on"} date={@pack.purchased_on} /> <%= if @pack.price_paid do %> - + <%= gettext("Original cost:") %> <%= gettext("$%{amount}", amount: display_currency(@pack.price_paid)) %> - + <%= gettext("Current value:") %> <%= gettext("$%{amount}", amount: display_currency(@pack.price_paid * @percentage_remaining / 100) @@ -76,12 +76,6 @@
- - <.link patch={~p"/ammo/show/move/#{@pack}"} class="btn btn-primary"> <%= dgettext("actions", "Move ammo") %> @@ -96,7 +90,7 @@
<%= if @container do %> -

+

<%= gettext("Stored in") %>

@@ -109,7 +103,7 @@ <%= unless @shot_records |> Enum.empty?() do %>
-

+

<%= gettext("Rounds used") %>

diff --git a/lib/cannery_web/live/range_live/index.ex b/lib/cannery_web/live/range_live/index.ex index ec10f1f..a797803 100644 --- a/lib/cannery_web/live/range_live/index.ex +++ b/lib/cannery_web/live/range_live/index.ex @@ -4,7 +4,8 @@ defmodule CanneryWeb.RangeLive.Index do """ use CanneryWeb, :live_view - alias Cannery.{ActivityLog, ActivityLog.ShotRecord, Ammo} + alias Cannery.{ActivityLog, ActivityLog.ShotRecord} + alias Cannery.{Ammo, Containers} alias Phoenix.LiveView.Socket @impl true @@ -101,14 +102,16 @@ defmodule CanneryWeb.RangeLive.Index do def handle_event( "toggle_staged", - %{"pack_id" => pack_id}, + %{"container_id" => container_id}, %{assigns: %{current_user: current_user}} = socket ) do - pack = Ammo.get_pack!(pack_id, current_user) + container = Containers.get_container!(container_id, current_user) - {:ok, _pack} = pack |> Ammo.update_pack(%{"staged" => !pack.staged}, current_user) + {:ok, _container} = + container + |> Containers.update_container(current_user, %{"staged" => !container.staged}) - prompt = dgettext("prompts", "Ammo unstaged succesfully") + prompt = dgettext("prompts", "Container unstaged succesfully") {:noreply, socket |> put_flash(:info, prompt) |> display_shot_records()} end @@ -175,6 +178,10 @@ defmodule CanneryWeb.RangeLive.Index do start_date: start_date ) + containers = + Containers.list_containers(current_user, staged: true) + |> Map.new(fn container = %{id: container_id} -> {container_id, container} end) + packs = Ammo.list_packs(current_user, staged: true) chart_data = shot_records |> get_chart_data_for_shot_record() original_counts = packs |> Ammo.get_original_counts(current_user) @@ -184,6 +191,7 @@ defmodule CanneryWeb.RangeLive.Index do socket |> assign( + containers: containers, packs: packs, original_counts: original_counts, cprs: cprs, diff --git a/lib/cannery_web/live/range_live/index.html.heex b/lib/cannery_web/live/range_live/index.html.heex index 4b03a50..054ab3d 100644 --- a/lib/cannery_web/live/range_live/index.html.heex +++ b/lib/cannery_web/live/range_live/index.html.heex @@ -3,18 +3,18 @@ <%= gettext("Range day") %>

- <%= if @packs |> Enum.empty?() do %> + <%= if @containers |> Enum.empty?() do %>

- <%= gettext("No ammo staged") %> + <%= gettext("No containers staged") %> <%= display_emoji("😔") %>

- <.link navigate={~p"/ammo"} class="btn btn-primary"> + <.link navigate={~p"/containers"} class="btn btn-primary"> <%= dgettext("actions", "Why not get some ready to shoot?") %> <% else %> - <.link navigate={~p"/ammo"} class="btn btn-primary"> - <%= dgettext("actions", "Stage ammo") %> + <.link navigate={~p"/containers"} class="btn btn-primary"> + <%= dgettext("actions", "Stage containers") %>
@@ -42,25 +42,14 @@
<.pack_card - :for={%{id: pack_id} = pack <- @packs} + :for={%{id: pack_id, container_id: container_id} = pack <- @packs} pack={pack} original_count={Map.fetch!(@original_counts, pack_id)} cpr={Map.get(@cprs, pack_id)} last_used_date={Map.get(@last_used_dates, pack_id)} current_user={@current_user} + container={Map.fetch!(@containers, container_id)} > - - <.link patch={~p"/range/add_shot_record/#{pack}"} class="btn btn-primary"> <%= dgettext("actions", "Record shots") %> diff --git a/priv/gettext/actions.pot b/priv/gettext/actions.pot index 719d9a0..79c78bb 100644 --- a/priv/gettext/actions.pot +++ b/priv/gettext/actions.pot @@ -131,7 +131,7 @@ msgstr "" msgid "Send instructions to reset password" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:65 +#: lib/cannery_web/live/container_live/show.html.heex:73 #, elixir-autogen, elixir-format msgid "Why not add one?" msgstr "" @@ -141,19 +141,14 @@ msgstr "" msgid "Add" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:17 -#, elixir-autogen, elixir-format -msgid "Stage ammo" -msgstr "" - #: lib/cannery_web/live/range_live/index.html.heex:13 #, elixir-autogen, elixir-format msgid "Why not get some ready to shoot?" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:127 -#: lib/cannery_web/live/pack_live/show.html.heex:90 -#: lib/cannery_web/live/range_live/index.html.heex:65 +#: lib/cannery_web/live/pack_live/index.html.heex:116 +#: lib/cannery_web/live/pack_live/show.html.heex:84 +#: lib/cannery_web/live/range_live/index.html.heex:54 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "" @@ -199,8 +194,8 @@ msgid "View in Catalog" msgstr "" #: lib/cannery_web/components/move_pack_component.ex:77 -#: lib/cannery_web/live/pack_live/index.html.heex:138 -#: lib/cannery_web/live/pack_live/show.html.heex:86 +#: lib/cannery_web/live/pack_live/index.html.heex:127 +#: lib/cannery_web/live/pack_live/show.html.heex:80 #, elixir-autogen, elixir-format msgid "Move ammo" msgstr "" @@ -210,14 +205,12 @@ msgstr "" msgid "Set Unlimited" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:82 -#: lib/cannery_web/live/range_live/index.html.heex:61 +#: lib/cannery_web/live/container_live/show.html.heex:59 #, elixir-autogen, elixir-format msgid "Stage for range" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:81 -#: lib/cannery_web/live/range_live/index.html.heex:60 +#: lib/cannery_web/live/container_live/show.html.heex:58 #, elixir-autogen, elixir-format msgid "Unstage from range" msgstr "" @@ -227,8 +220,8 @@ msgstr "" msgid "Export Data as JSON" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:87 -#: lib/cannery_web/live/container_live/index.html.heex:145 +#: lib/cannery_web/live/container_live/index.html.heex:101 +#: lib/cannery_web/live/container_live/index.html.heex:159 #, elixir-autogen, elixir-format msgid "Clone %{container_name}" msgstr "" @@ -238,8 +231,8 @@ msgstr "" msgid "Copy invite link for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:104 -#: lib/cannery_web/live/container_live/index.html.heex:162 +#: lib/cannery_web/live/container_live/index.html.heex:118 +#: lib/cannery_web/live/container_live/index.html.heex:176 #: lib/cannery_web/live/container_live/show.html.heex:48 #, elixir-autogen, elixir-format msgid "Delete %{container_name}" @@ -255,8 +248,8 @@ msgstr "" msgid "Delete invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:77 -#: lib/cannery_web/live/container_live/index.html.heex:135 +#: lib/cannery_web/live/container_live/index.html.heex:91 +#: lib/cannery_web/live/container_live/index.html.heex:149 #: lib/cannery_web/live/container_live/show.html.heex:35 #, elixir-autogen, elixir-format msgid "Edit %{container_name}" @@ -272,56 +265,56 @@ msgstr "" msgid "Edit invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:120 +#: lib/cannery_web/live/container_live/index.html.heex:69 #: lib/cannery_web/live/range_live/index.html.heex:35 #, elixir-autogen, elixir-format msgid "Stage" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:65 -#: lib/cannery_web/live/container_live/index.html.heex:124 +#: lib/cannery_web/live/container_live/index.html.heex:79 +#: lib/cannery_web/live/container_live/index.html.heex:138 #, elixir-autogen, elixir-format msgid "Tag %{container_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:119 +#: lib/cannery_web/live/container_live/index.html.heex:68 #: lib/cannery_web/live/range_live/index.html.heex:34 #, elixir-autogen, elixir-format msgid "Unstage" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:172 +#: lib/cannery_web/live/pack_live/index.html.heex:161 #, elixir-autogen, elixir-format msgid "Clone pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:187 +#: lib/cannery_web/live/pack_live/index.html.heex:176 #: lib/cannery_web/live/pack_live/show.html.heex:71 #, elixir-autogen, elixir-format msgid "Delete pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:160 +#: lib/cannery_web/live/pack_live/index.html.heex:149 #: lib/cannery_web/live/pack_live/show.html.heex:59 #, elixir-autogen, elixir-format msgid "Edit pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:139 -#: lib/cannery_web/live/pack_live/index.html.heex:148 +#: lib/cannery_web/live/container_live/show.html.heex:147 +#: lib/cannery_web/live/pack_live/index.html.heex:137 #: lib/cannery_web/live/type_live/show.html.heex:201 #, elixir-autogen, elixir-format msgid "View pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:159 -#: lib/cannery_web/live/range_live/index.html.heex:192 +#: lib/cannery_web/live/pack_live/show.ex:149 +#: lib/cannery_web/live/range_live/index.html.heex:181 #, elixir-autogen, elixir-format msgid "Delete shot record of %{shot_record_count} shots" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:144 -#: lib/cannery_web/live/range_live/index.html.heex:175 +#: lib/cannery_web/live/pack_live/show.ex:134 +#: lib/cannery_web/live/range_live/index.html.heex:164 #, elixir-autogen, elixir-format msgid "Edit shot record of %{shot_record_count} shots" msgstr "" @@ -357,3 +350,8 @@ msgstr "" #, elixir-autogen, elixir-format msgid "add a type first" msgstr "" + +#: lib/cannery_web/live/range_live/index.html.heex:17 +#, elixir-autogen, elixir-format +msgid "Stage containers" +msgstr "" diff --git a/priv/gettext/de/LC_MESSAGES/actions.po b/priv/gettext/de/LC_MESSAGES/actions.po index ff11870..d1ca52a 100644 --- a/priv/gettext/de/LC_MESSAGES/actions.po +++ b/priv/gettext/de/LC_MESSAGES/actions.po @@ -144,7 +144,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:65 +#: lib/cannery_web/live/container_live/show.html.heex:73 #, elixir-autogen, elixir-format msgid "Why not add one?" msgstr "Warum fĂŒgen Sie keine hinzu?" @@ -154,19 +154,14 @@ msgstr "Warum fĂŒgen Sie keine hinzu?" msgid "Add" msgstr "HinzufĂŒgen" -#: lib/cannery_web/live/range_live/index.html.heex:17 -#, elixir-autogen, elixir-format -msgid "Stage ammo" -msgstr "Munition markieren" - #: lib/cannery_web/live/range_live/index.html.heex:13 #, elixir-autogen, elixir-format msgid "Why not get some ready to shoot?" msgstr "Warum nicht einige fĂŒr den Schießstand auswĂ€hlen?" -#: lib/cannery_web/live/pack_live/index.html.heex:127 -#: lib/cannery_web/live/pack_live/show.html.heex:90 -#: lib/cannery_web/live/range_live/index.html.heex:65 +#: lib/cannery_web/live/pack_live/index.html.heex:116 +#: lib/cannery_web/live/pack_live/show.html.heex:84 +#: lib/cannery_web/live/range_live/index.html.heex:54 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "SchĂŒsse dokumentieren" @@ -212,8 +207,8 @@ msgid "View in Catalog" msgstr "" #: lib/cannery_web/components/move_pack_component.ex:77 -#: lib/cannery_web/live/pack_live/index.html.heex:138 -#: lib/cannery_web/live/pack_live/show.html.heex:86 +#: lib/cannery_web/live/pack_live/index.html.heex:127 +#: lib/cannery_web/live/pack_live/show.html.heex:80 #, elixir-autogen, elixir-format msgid "Move ammo" msgstr "" @@ -223,14 +218,12 @@ msgstr "" msgid "Set Unlimited" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:82 -#: lib/cannery_web/live/range_live/index.html.heex:61 +#: lib/cannery_web/live/container_live/show.html.heex:59 #, elixir-autogen, elixir-format msgid "Stage for range" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:81 -#: lib/cannery_web/live/range_live/index.html.heex:60 +#: lib/cannery_web/live/container_live/show.html.heex:58 #, elixir-autogen, elixir-format msgid "Unstage from range" msgstr "" @@ -240,8 +233,8 @@ msgstr "" msgid "Export Data as JSON" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:87 -#: lib/cannery_web/live/container_live/index.html.heex:145 +#: lib/cannery_web/live/container_live/index.html.heex:101 +#: lib/cannery_web/live/container_live/index.html.heex:159 #, elixir-autogen, elixir-format msgid "Clone %{container_name}" msgstr "" @@ -251,8 +244,8 @@ msgstr "" msgid "Copy invite link for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:104 -#: lib/cannery_web/live/container_live/index.html.heex:162 +#: lib/cannery_web/live/container_live/index.html.heex:118 +#: lib/cannery_web/live/container_live/index.html.heex:176 #: lib/cannery_web/live/container_live/show.html.heex:48 #, elixir-autogen, elixir-format msgid "Delete %{container_name}" @@ -268,8 +261,8 @@ msgstr "" msgid "Delete invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:77 -#: lib/cannery_web/live/container_live/index.html.heex:135 +#: lib/cannery_web/live/container_live/index.html.heex:91 +#: lib/cannery_web/live/container_live/index.html.heex:149 #: lib/cannery_web/live/container_live/show.html.heex:35 #, elixir-autogen, elixir-format msgid "Edit %{container_name}" @@ -285,56 +278,56 @@ msgstr "" msgid "Edit invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:120 +#: lib/cannery_web/live/container_live/index.html.heex:69 #: lib/cannery_web/live/range_live/index.html.heex:35 #, elixir-autogen, elixir-format, fuzzy msgid "Stage" msgstr "Munition markieren" -#: lib/cannery_web/live/container_live/index.html.heex:65 -#: lib/cannery_web/live/container_live/index.html.heex:124 +#: lib/cannery_web/live/container_live/index.html.heex:79 +#: lib/cannery_web/live/container_live/index.html.heex:138 #, elixir-autogen, elixir-format msgid "Tag %{container_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:119 +#: lib/cannery_web/live/container_live/index.html.heex:68 #: lib/cannery_web/live/range_live/index.html.heex:34 #, elixir-autogen, elixir-format msgid "Unstage" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:172 +#: lib/cannery_web/live/pack_live/index.html.heex:161 #, elixir-autogen, elixir-format, fuzzy msgid "Clone pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:187 +#: lib/cannery_web/live/pack_live/index.html.heex:176 #: lib/cannery_web/live/pack_live/show.html.heex:71 #, elixir-autogen, elixir-format, fuzzy msgid "Delete pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:160 +#: lib/cannery_web/live/pack_live/index.html.heex:149 #: lib/cannery_web/live/pack_live/show.html.heex:59 #, elixir-autogen, elixir-format, fuzzy msgid "Edit pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:139 -#: lib/cannery_web/live/pack_live/index.html.heex:148 +#: lib/cannery_web/live/container_live/show.html.heex:147 +#: lib/cannery_web/live/pack_live/index.html.heex:137 #: lib/cannery_web/live/type_live/show.html.heex:201 #, elixir-autogen, elixir-format, fuzzy msgid "View pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:159 -#: lib/cannery_web/live/range_live/index.html.heex:192 +#: lib/cannery_web/live/pack_live/show.ex:149 +#: lib/cannery_web/live/range_live/index.html.heex:181 #, elixir-autogen, elixir-format, fuzzy msgid "Delete shot record of %{shot_record_count} shots" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:144 -#: lib/cannery_web/live/range_live/index.html.heex:175 +#: lib/cannery_web/live/pack_live/show.ex:134 +#: lib/cannery_web/live/range_live/index.html.heex:164 #, elixir-autogen, elixir-format, fuzzy msgid "Edit shot record of %{shot_record_count} shots" msgstr "" @@ -370,3 +363,8 @@ msgstr "" #, elixir-autogen, elixir-format, fuzzy msgid "add a type first" msgstr "" + +#: lib/cannery_web/live/range_live/index.html.heex:17 +#, elixir-autogen, elixir-format +msgid "Stage containers" +msgstr "" diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po index b46bcba..15e7086 100644 --- a/priv/gettext/de/LC_MESSAGES/default.po +++ b/priv/gettext/de/LC_MESSAGES/default.po @@ -117,7 +117,7 @@ msgstr "Anzahl" msgid "Count:" msgstr "Anzahl:" -#: lib/cannery_web/components/container_table_component.ex:46 +#: lib/cannery_web/components/container_table_component.ex:50 #: lib/cannery_web/live/container_live/form_component.html.heex:30 #: lib/cannery_web/live/type_live/form_component.html.heex:43 #, elixir-autogen, elixir-format @@ -189,7 +189,7 @@ msgstr "Einladungen" msgid "Keep me logged in for 60 days" msgstr "FĂŒr 60 Tage eingeloggt bleiben" -#: lib/cannery_web/components/container_table_component.ex:47 +#: lib/cannery_web/components/container_table_component.ex:51 #: lib/cannery_web/components/move_pack_component.ex:66 #: lib/cannery_web/live/container_live/form_component.html.heex:49 #, elixir-autogen, elixir-format @@ -224,7 +224,7 @@ msgstr "Metallene Munitionskiste mit Anime-Girl-Sticker" msgid "My cool ammo can" msgstr "Meine coole Munitionskiste" -#: lib/cannery_web/components/container_table_component.ex:45 +#: lib/cannery_web/components/container_table_component.ex:49 #: lib/cannery_web/components/type_table_component.ex:152 #: lib/cannery_web/live/container_live/form_component.html.heex:21 #: lib/cannery_web/live/invite_live/form_component.html.heex:21 @@ -281,7 +281,7 @@ msgstr "Keine Tags" #: lib/cannery_web/components/add_shot_record_component.html.heex:38 #: lib/cannery_web/components/shot_record_table_component.ex:46 #: lib/cannery_web/live/pack_live/form_component.html.heex:75 -#: lib/cannery_web/live/pack_live/show.ex:90 +#: lib/cannery_web/live/pack_live/show.ex:80 #: lib/cannery_web/live/range_live/form_component.html.heex:30 #, elixir-autogen, elixir-format msgid "Notes" @@ -354,12 +354,12 @@ msgstr "Einfach:" msgid "Steel" msgstr "Stahl" -#: lib/cannery_web/live/pack_live/show.html.heex:100 +#: lib/cannery_web/live/pack_live/show.html.heex:94 #, elixir-autogen, elixir-format msgid "Stored in" msgstr "Gelagert in" -#: lib/cannery_web/components/container_table_component.ex:66 +#: lib/cannery_web/components/container_table_component.ex:73 #: lib/cannery_web/components/core_components/topbar.html.heex:28 #: lib/cannery_web/live/tag_live/index.ex:43 #: lib/cannery_web/live/tag_live/index.ex:53 @@ -389,7 +389,7 @@ msgstr "Die selbst-gehostete Website zur Verwaltung von Schusswaffen" msgid "Tracer" msgstr "Leuchtspur" -#: lib/cannery_web/components/container_table_component.ex:48 +#: lib/cannery_web/components/container_table_component.ex:52 #: lib/cannery_web/components/move_pack_component.ex:65 #: lib/cannery_web/components/pack_table_component.ex:108 #: lib/cannery_web/live/container_live/form_component.html.heex:40 @@ -419,15 +419,16 @@ msgstr "Verbleibende Nutzung" msgid "Your data stays with you, period" msgstr "Ihre Daten bleiben bei Ihnen, Punkt" -#: lib/cannery_web/live/container_live/show.html.heex:60 +#: lib/cannery_web/live/container_live/show.html.heex:68 #, elixir-autogen, elixir-format msgid "No tags for this container" msgstr "Keine Tags fĂŒr diesen BehĂ€lter" +#: lib/cannery_web/components/container_table_component.ex:77 #: lib/cannery_web/components/core_components/topbar.html.heex:48 #: lib/cannery_web/components/pack_table_component.ex:80 -#: lib/cannery_web/live/range_live/index.ex:75 -#: lib/cannery_web/live/range_live/index.ex:85 +#: lib/cannery_web/live/range_live/index.ex:76 +#: lib/cannery_web/live/range_live/index.ex:86 #, elixir-autogen, elixir-format msgid "Range" msgstr "Schießplatz" @@ -439,7 +440,7 @@ msgstr "Range Day" #: lib/cannery_web/components/add_shot_record_component.html.heex:49 #: lib/cannery_web/components/shot_record_table_component.ex:47 -#: lib/cannery_web/live/pack_live/show.ex:91 +#: lib/cannery_web/live/pack_live/show.ex:81 #: lib/cannery_web/live/range_live/form_component.html.heex:41 #, elixir-autogen, elixir-format msgid "Date" @@ -450,26 +451,21 @@ msgstr "Datum" msgid "Shots fired" msgstr "SchĂŒsse abgegeben" -#: lib/cannery_web/live/range_live/index.html.heex:8 -#, elixir-autogen, elixir-format -msgid "No ammo staged" -msgstr "Keine Munition selektiert" - #: lib/cannery_web/components/add_shot_record_component.html.heex:3 #: lib/cannery_web/live/pack_live/index.ex:35 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "SchĂŒsse dokumentieren" -#: lib/cannery_web/live/range_live/index.html.heex:75 -#: lib/cannery_web/live/range_live/index.html.heex:159 +#: lib/cannery_web/live/range_live/index.html.heex:64 +#: lib/cannery_web/live/range_live/index.html.heex:148 #, elixir-autogen, elixir-format msgid "No shots recorded" msgstr "Keine SchĂŒsse dokumentiert" #: lib/cannery_web/components/shot_record_table_component.ex:45 -#: lib/cannery_web/live/pack_live/show.ex:89 -#: lib/cannery_web/live/range_live/index.html.heex:89 +#: lib/cannery_web/live/pack_live/show.ex:79 +#: lib/cannery_web/live/range_live/index.html.heex:78 #, elixir-autogen, elixir-format msgid "Rounds shot" msgstr "Patronen abgefeuert" @@ -484,7 +480,7 @@ msgstr "Munition verschieben" msgid "No other containers" msgstr "Kein weiterer BehĂ€lter" -#: lib/cannery_web/live/range_live/index.html.heex:80 +#: lib/cannery_web/live/range_live/index.html.heex:69 #, elixir-autogen, elixir-format msgid "Shot log" msgstr "Schießkladde" @@ -492,7 +488,7 @@ msgstr "Schießkladde" #: lib/cannery_web/components/core_components/pack_card.html.heex:42 #: lib/cannery_web/components/core_components/pack_card.html.heex:47 #: lib/cannery_web/components/pack_table_component.ex:181 -#: lib/cannery_web/components/pack_table_component.ex:264 +#: lib/cannery_web/components/pack_table_component.ex:263 #: lib/cannery_web/components/type_table_component.ex:273 #: lib/cannery_web/live/pack_live/show.html.heex:37 #: lib/cannery_web/live/pack_live/show.html.heex:42 @@ -565,13 +561,13 @@ msgid "Reconnecting..." msgstr "Neu verbinden..." #: lib/cannery_web/live/container_live/index.ex:28 -#: lib/cannery_web/live/container_live/show.ex:118 +#: lib/cannery_web/live/container_live/show.ex:130 #, elixir-autogen, elixir-format msgid "Edit %{name}" msgstr "%{name} bearbeiten" #: lib/cannery_web/live/container_live/index.ex:63 -#: lib/cannery_web/live/container_live/show.ex:119 +#: lib/cannery_web/live/container_live/show.ex:131 #, elixir-autogen, elixir-format msgid "Edit %{name} tags" msgstr "Editiere %{name} Tags" @@ -584,7 +580,7 @@ msgid "Rounds:" msgstr "Patronen:" #: lib/cannery_web/components/pack_table_component.ex:178 -#: lib/cannery_web/components/pack_table_component.ex:260 +#: lib/cannery_web/components/pack_table_component.ex:259 #: lib/cannery_web/components/type_table_component.ex:272 #: lib/cannery_web/live/type_live/show.html.heex:154 #, elixir-autogen, elixir-format @@ -616,7 +612,7 @@ msgstr "UrsprĂŒngliche Anzahl:" msgid "Percentage left:" msgstr "Prozent verbleibend:" -#: lib/cannery_web/live/pack_live/show.html.heex:113 +#: lib/cannery_web/live/pack_live/show.html.heex:107 #, elixir-autogen, elixir-format msgid "Rounds used" msgstr "Patronen verbraucht" @@ -647,8 +643,8 @@ msgid "Reset your password" msgstr "Passwort zurĂŒcksetzen" #: lib/cannery_web/live/pack_live/show.ex:40 -#: lib/cannery_web/live/range_live/index.ex:51 -#: lib/cannery_web/live/range_live/index.ex:67 +#: lib/cannery_web/live/range_live/index.ex:52 +#: lib/cannery_web/live/range_live/index.ex:68 #, elixir-autogen, elixir-format msgid "Record Shots" msgstr "SchĂŒsse dokumentieren" @@ -706,7 +702,7 @@ msgstr "Munitionstyp bearbeiten" msgid "Move Ammo" msgstr "Munition verschieben" -#: lib/cannery_web/live/container_live/show.html.heex:117 +#: lib/cannery_web/live/container_live/show.html.heex:125 #, elixir-autogen, elixir-format, fuzzy msgid "No ammo in this container" msgstr "Keine Munitionsgruppe in diesem BehĂ€lter" @@ -716,7 +712,7 @@ msgstr "Keine Munitionsgruppe in diesem BehĂ€lter" msgid "Show Ammo" msgstr "Zeige Munitionsarten" -#: lib/cannery_web/live/pack_live/show.html.heex:105 +#: lib/cannery_web/live/pack_live/show.html.heex:99 #, elixir-autogen, elixir-format, fuzzy msgid "This ammo is not in a container" msgstr "Diese Munitionsgruppe ist nicht in einem BehĂ€lter" @@ -756,31 +752,31 @@ msgstr "BehĂ€lter" msgid "Show used" msgstr "" -#: lib/cannery_web/components/pack_table_component.ex:219 +#: lib/cannery_web/components/pack_table_component.ex:218 #: lib/cannery_web/live/pack_live/show.html.heex:19 #, elixir-autogen, elixir-format msgid "%{percentage}%" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:207 +#: lib/cannery_web/live/range_live/index.ex:215 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds shot: %{count}" msgstr "Patronen abgefeuert" -#: lib/cannery_web/components/container_table_component.ex:64 +#: lib/cannery_web/components/container_table_component.ex:68 #: lib/cannery_web/components/type_table_component.ex:122 #, elixir-autogen, elixir-format, fuzzy msgid "Packs" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:65 +#: lib/cannery_web/components/container_table_component.ex:69 #: lib/cannery_web/components/type_table_component.ex:143 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds" msgstr "Patronen:" #: lib/cannery_web/live/container_live/index.html.heex:40 -#: lib/cannery_web/live/container_live/show.html.heex:109 +#: lib/cannery_web/live/container_live/show.html.heex:117 #: lib/cannery_web/live/type_live/show.html.heex:170 #, elixir-autogen, elixir-format msgid "View as table" @@ -826,7 +822,7 @@ msgstr "" msgid "Used rounds:" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:91 +#: lib/cannery_web/live/range_live/index.html.heex:80 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds shot chart" msgstr "Patronen abgefeuert" @@ -933,7 +929,7 @@ msgid "Average CPR" msgstr "" #: lib/cannery_web/components/core_components/pack_card.html.heex:17 -#: lib/cannery_web/components/pack_table_component.ex:268 +#: lib/cannery_web/components/pack_table_component.ex:267 #, elixir-autogen, elixir-format msgid "Empty" msgstr "" @@ -1015,7 +1011,7 @@ msgstr "" msgid "Search tags" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:135 +#: lib/cannery_web/live/range_live/index.html.heex:124 #, elixir-autogen, elixir-format msgid "Search shot records" msgstr "" @@ -1150,12 +1146,12 @@ msgstr "" msgid "Really great weather" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:67 +#: lib/cannery_web/components/container_table_component.ex:74 #: lib/cannery_web/components/move_pack_component.ex:67 #: lib/cannery_web/components/pack_table_component.ex:62 #: lib/cannery_web/components/shot_record_table_component.ex:48 #: lib/cannery_web/components/type_table_component.ex:99 -#: lib/cannery_web/live/pack_live/show.ex:92 +#: lib/cannery_web/live/pack_live/show.ex:82 #, elixir-autogen, elixir-format msgid "Actions" msgstr "" @@ -1181,9 +1177,9 @@ msgstr "" msgid "Close modal" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:97 +#: lib/cannery_web/live/container_live/show.html.heex:105 #: lib/cannery_web/live/pack_live/index.html.heex:58 -#: lib/cannery_web/live/range_live/index.html.heex:114 +#: lib/cannery_web/live/range_live/index.html.heex:103 #: lib/cannery_web/live/type_live/index.html.heex:37 #, elixir-autogen, elixir-format msgid "All" @@ -1264,10 +1260,10 @@ msgstr "Keine Munition" msgid "None specified" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:100 +#: lib/cannery_web/live/container_live/show.html.heex:108 #: lib/cannery_web/live/pack_live/form_component.html.heex:30 #: lib/cannery_web/live/pack_live/index.html.heex:61 -#: lib/cannery_web/live/range_live/index.html.heex:117 +#: lib/cannery_web/live/range_live/index.html.heex:106 #: lib/cannery_web/live/type_live/form_component.html.heex:28 #: lib/cannery_web/live/type_live/index.html.heex:40 #: lib/cannery_web/live/type_live/show.html.heex:56 @@ -1290,10 +1286,10 @@ msgstr "ZĂŒndertyp" msgid "Projectile" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:98 +#: lib/cannery_web/live/container_live/show.html.heex:106 #: lib/cannery_web/live/pack_live/form_component.html.heex:28 #: lib/cannery_web/live/pack_live/index.html.heex:59 -#: lib/cannery_web/live/range_live/index.html.heex:115 +#: lib/cannery_web/live/range_live/index.html.heex:104 #: lib/cannery_web/live/type_live/form_component.html.heex:26 #: lib/cannery_web/live/type_live/index.html.heex:38 #: lib/cannery_web/live/type_live/show.html.heex:54 @@ -1345,10 +1341,10 @@ msgstr "" msgid "Shot type:" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:99 +#: lib/cannery_web/live/container_live/show.html.heex:107 #: lib/cannery_web/live/pack_live/form_component.html.heex:29 #: lib/cannery_web/live/pack_live/index.html.heex:60 -#: lib/cannery_web/live/range_live/index.html.heex:116 +#: lib/cannery_web/live/range_live/index.html.heex:105 #: lib/cannery_web/live/type_live/form_component.html.heex:27 #: lib/cannery_web/live/type_live/index.html.heex:39 #: lib/cannery_web/live/type_live/show.html.heex:52 @@ -1390,10 +1386,10 @@ msgid "Wadding:" msgstr "" #: lib/cannery_web/components/type_table_component.ex:149 -#: lib/cannery_web/live/container_live/show.html.heex:91 +#: lib/cannery_web/live/container_live/show.html.heex:99 #: lib/cannery_web/live/pack_live/form_component.html.heex:22 #: lib/cannery_web/live/pack_live/index.html.heex:50 -#: lib/cannery_web/live/range_live/index.html.heex:106 +#: lib/cannery_web/live/range_live/index.html.heex:95 #: lib/cannery_web/live/type_live/form_component.html.heex:21 #: lib/cannery_web/live/type_live/index.html.heex:29 #: lib/cannery_web/live/type_live/show.html.heex:46 @@ -1413,7 +1409,7 @@ msgid "Used up!" msgstr "" #: lib/cannery_web/live/pack_live/show.ex:41 -#: lib/cannery_web/live/range_live/index.ex:59 +#: lib/cannery_web/live/range_live/index.ex:60 #, elixir-autogen, elixir-format, fuzzy msgid "Edit Shot Record" msgstr "Schießkladde editieren" @@ -1452,7 +1448,12 @@ msgstr "" msgid "Any" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:149 +#: lib/cannery_web/live/range_live/index.html.heex:138 #, elixir-autogen, elixir-format, fuzzy msgid "Dates" msgstr "Datum" + +#: lib/cannery_web/live/range_live/index.html.heex:8 +#, elixir-autogen, elixir-format, fuzzy +msgid "No containers staged" +msgstr "Kein BehĂ€lter" diff --git a/priv/gettext/de/LC_MESSAGES/errors.po b/priv/gettext/de/LC_MESSAGES/errors.po index 20c4e36..28b1ec3 100644 --- a/priv/gettext/de/LC_MESSAGES/errors.po +++ b/priv/gettext/de/LC_MESSAGES/errors.po @@ -23,7 +23,7 @@ msgstr "" ## Run "mix gettext.extract" to bring this file up to ## date. Leave "msgstr"s empty as changing them here has no ## effect: edit them in PO (.po) files instead. -#: lib/cannery/containers.ex:222 +#: lib/cannery/containers.ex:234 #, elixir-autogen, elixir-format msgid "Container must be empty before deleting" msgstr "BehĂ€lter muss vor dem Löschen leer sein" @@ -170,7 +170,7 @@ msgstr "" "UngĂŒltige Nummer an Kopien. Muss zwischen 1 and %{max} liegen. War " "%{multiplier}" -#: lib/cannery_web/live/range_live/index.html.heex:94 +#: lib/cannery_web/live/range_live/index.html.heex:83 #, elixir-autogen, elixir-format msgid "Your browser does not support the canvas element." msgstr "" @@ -216,12 +216,12 @@ msgstr "" msgid "You must log in to access this page." msgstr "" -#: lib/cannery/ammo/pack.ex:98 +#: lib/cannery/ammo/pack.ex:101 #, elixir-autogen, elixir-format, fuzzy msgid "Please select a valid container" msgstr "" -#: lib/cannery/ammo/pack.ex:96 +#: lib/cannery/ammo/pack.ex:99 #, elixir-autogen, elixir-format, fuzzy msgid "Please select a valid type" msgstr "" diff --git a/priv/gettext/de/LC_MESSAGES/prompts.po b/priv/gettext/de/LC_MESSAGES/prompts.po index 2f2e6fa..339dcac 100644 --- a/priv/gettext/de/LC_MESSAGES/prompts.po +++ b/priv/gettext/de/LC_MESSAGES/prompts.po @@ -65,15 +65,15 @@ msgstr "" "Sind Sie sicher, dass sie %{email} löschen möchten? Dies kann nicht " "zurĂŒckgenommen werden!" -#: lib/cannery_web/live/container_live/index.html.heex:99 -#: lib/cannery_web/live/container_live/index.html.heex:157 +#: lib/cannery_web/live/container_live/index.html.heex:113 +#: lib/cannery_web/live/container_live/index.html.heex:171 #: lib/cannery_web/live/container_live/show.html.heex:45 #: lib/cannery_web/live/tag_live/index.html.heex:63 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete %{name}?" msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?" -#: lib/cannery_web/live/pack_live/index.html.heex:185 +#: lib/cannery_web/live/pack_live/index.html.heex:174 #: lib/cannery_web/live/pack_live/show.html.heex:69 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this ammo?" @@ -171,19 +171,14 @@ msgstr "FĂŒge hinzu..." msgid "Shots recorded successfully" msgstr "SchĂŒsse erfolgreich dokumentiert" -#: lib/cannery_web/live/range_live/index.html.heex:57 -#, elixir-autogen, elixir-format -msgid "Are you sure you want to unstage this ammo?" -msgstr "Sind sie sicher, dass Sie diese Munition demarkieren möchten?" - -#: lib/cannery_web/live/pack_live/show.ex:157 -#: lib/cannery_web/live/range_live/index.html.heex:189 +#: lib/cannery_web/live/pack_live/show.ex:147 +#: lib/cannery_web/live/range_live/index.html.heex:178 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this shot record?" msgstr "Sind sie sicher, dass sie die Schießkladde löschen möchten?" -#: lib/cannery_web/live/pack_live/show.ex:79 -#: lib/cannery_web/live/range_live/index.ex:98 +#: lib/cannery_web/live/pack_live/show.ex:69 +#: lib/cannery_web/live/range_live/index.ex:99 #, elixir-autogen, elixir-format msgid "Shot records deleted succesfully" msgstr "Schießkladde erfolgreich gelöscht" @@ -240,11 +235,6 @@ msgstr "Spracheinstellung gespeichert." msgid "Ammo deleted succesfully" msgstr "Munitionsgruppe erfolgreich gelöscht" -#: lib/cannery_web/live/range_live/index.ex:111 -#, elixir-autogen, elixir-format, fuzzy -msgid "Ammo unstaged succesfully" -msgstr "Munition erfolgreich demarkiert" - #: lib/cannery_web/live/pack_live/form_component.ex:141 #, elixir-autogen, elixir-format, fuzzy msgid "Ammo updated successfully" @@ -302,3 +292,8 @@ msgstr "Sind Sie sicher, dass sie die Einladung fĂŒr %{name} löschen möchten?" #, elixir-autogen, elixir-format, fuzzy msgid "Are you sure you want to make %{invite_name} unlimited?" msgstr "Sind Sie sicher, dass sie %{name} auf unbegrenzt setzen möchten?" + +#: lib/cannery_web/live/range_live/index.ex:114 +#, elixir-autogen, elixir-format +msgid "Container unstaged succesfully" +msgstr "" diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index ff49186..ea266aa 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -113,7 +113,7 @@ msgstr "" msgid "Count:" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:46 +#: lib/cannery_web/components/container_table_component.ex:50 #: lib/cannery_web/live/container_live/form_component.html.heex:30 #: lib/cannery_web/live/type_live/form_component.html.heex:43 #, elixir-autogen, elixir-format @@ -185,7 +185,7 @@ msgstr "" msgid "Keep me logged in for 60 days" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:47 +#: lib/cannery_web/components/container_table_component.ex:51 #: lib/cannery_web/components/move_pack_component.ex:66 #: lib/cannery_web/live/container_live/form_component.html.heex:49 #, elixir-autogen, elixir-format @@ -220,7 +220,7 @@ msgstr "" msgid "My cool ammo can" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:45 +#: lib/cannery_web/components/container_table_component.ex:49 #: lib/cannery_web/components/type_table_component.ex:152 #: lib/cannery_web/live/container_live/form_component.html.heex:21 #: lib/cannery_web/live/invite_live/form_component.html.heex:21 @@ -277,7 +277,7 @@ msgstr "" #: lib/cannery_web/components/add_shot_record_component.html.heex:38 #: lib/cannery_web/components/shot_record_table_component.ex:46 #: lib/cannery_web/live/pack_live/form_component.html.heex:75 -#: lib/cannery_web/live/pack_live/show.ex:90 +#: lib/cannery_web/live/pack_live/show.ex:80 #: lib/cannery_web/live/range_live/form_component.html.heex:30 #, elixir-autogen, elixir-format msgid "Notes" @@ -348,12 +348,12 @@ msgstr "" msgid "Steel" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:100 +#: lib/cannery_web/live/pack_live/show.html.heex:94 #, elixir-autogen, elixir-format msgid "Stored in" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:66 +#: lib/cannery_web/components/container_table_component.ex:73 #: lib/cannery_web/components/core_components/topbar.html.heex:28 #: lib/cannery_web/live/tag_live/index.ex:43 #: lib/cannery_web/live/tag_live/index.ex:53 @@ -383,7 +383,7 @@ msgstr "" msgid "Tracer" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:48 +#: lib/cannery_web/components/container_table_component.ex:52 #: lib/cannery_web/components/move_pack_component.ex:65 #: lib/cannery_web/components/pack_table_component.ex:108 #: lib/cannery_web/live/container_live/form_component.html.heex:40 @@ -413,15 +413,16 @@ msgstr "" msgid "Your data stays with you, period" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:60 +#: lib/cannery_web/live/container_live/show.html.heex:68 #, elixir-autogen, elixir-format msgid "No tags for this container" msgstr "" +#: lib/cannery_web/components/container_table_component.ex:77 #: lib/cannery_web/components/core_components/topbar.html.heex:48 #: lib/cannery_web/components/pack_table_component.ex:80 -#: lib/cannery_web/live/range_live/index.ex:75 -#: lib/cannery_web/live/range_live/index.ex:85 +#: lib/cannery_web/live/range_live/index.ex:76 +#: lib/cannery_web/live/range_live/index.ex:86 #, elixir-autogen, elixir-format msgid "Range" msgstr "" @@ -433,7 +434,7 @@ msgstr "" #: lib/cannery_web/components/add_shot_record_component.html.heex:49 #: lib/cannery_web/components/shot_record_table_component.ex:47 -#: lib/cannery_web/live/pack_live/show.ex:91 +#: lib/cannery_web/live/pack_live/show.ex:81 #: lib/cannery_web/live/range_live/form_component.html.heex:41 #, elixir-autogen, elixir-format msgid "Date" @@ -444,26 +445,21 @@ msgstr "" msgid "Shots fired" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:8 -#, elixir-autogen, elixir-format -msgid "No ammo staged" -msgstr "" - #: lib/cannery_web/components/add_shot_record_component.html.heex:3 #: lib/cannery_web/live/pack_live/index.ex:35 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:75 -#: lib/cannery_web/live/range_live/index.html.heex:159 +#: lib/cannery_web/live/range_live/index.html.heex:64 +#: lib/cannery_web/live/range_live/index.html.heex:148 #, elixir-autogen, elixir-format msgid "No shots recorded" msgstr "" #: lib/cannery_web/components/shot_record_table_component.ex:45 -#: lib/cannery_web/live/pack_live/show.ex:89 -#: lib/cannery_web/live/range_live/index.html.heex:89 +#: lib/cannery_web/live/pack_live/show.ex:79 +#: lib/cannery_web/live/range_live/index.html.heex:78 #, elixir-autogen, elixir-format msgid "Rounds shot" msgstr "" @@ -478,7 +474,7 @@ msgstr "" msgid "No other containers" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:80 +#: lib/cannery_web/live/range_live/index.html.heex:69 #, elixir-autogen, elixir-format msgid "Shot log" msgstr "" @@ -486,7 +482,7 @@ msgstr "" #: lib/cannery_web/components/core_components/pack_card.html.heex:42 #: lib/cannery_web/components/core_components/pack_card.html.heex:47 #: lib/cannery_web/components/pack_table_component.ex:181 -#: lib/cannery_web/components/pack_table_component.ex:264 +#: lib/cannery_web/components/pack_table_component.ex:263 #: lib/cannery_web/components/type_table_component.ex:273 #: lib/cannery_web/live/pack_live/show.html.heex:37 #: lib/cannery_web/live/pack_live/show.html.heex:42 @@ -559,13 +555,13 @@ msgid "Reconnecting..." msgstr "" #: lib/cannery_web/live/container_live/index.ex:28 -#: lib/cannery_web/live/container_live/show.ex:118 +#: lib/cannery_web/live/container_live/show.ex:130 #, elixir-autogen, elixir-format msgid "Edit %{name}" msgstr "" #: lib/cannery_web/live/container_live/index.ex:63 -#: lib/cannery_web/live/container_live/show.ex:119 +#: lib/cannery_web/live/container_live/show.ex:131 #, elixir-autogen, elixir-format msgid "Edit %{name} tags" msgstr "" @@ -578,7 +574,7 @@ msgid "Rounds:" msgstr "" #: lib/cannery_web/components/pack_table_component.ex:178 -#: lib/cannery_web/components/pack_table_component.ex:260 +#: lib/cannery_web/components/pack_table_component.ex:259 #: lib/cannery_web/components/type_table_component.ex:272 #: lib/cannery_web/live/type_live/show.html.heex:154 #, elixir-autogen, elixir-format @@ -610,7 +606,7 @@ msgstr "" msgid "Percentage left:" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:113 +#: lib/cannery_web/live/pack_live/show.html.heex:107 #, elixir-autogen, elixir-format msgid "Rounds used" msgstr "" @@ -641,8 +637,8 @@ msgid "Reset your password" msgstr "" #: lib/cannery_web/live/pack_live/show.ex:40 -#: lib/cannery_web/live/range_live/index.ex:51 -#: lib/cannery_web/live/range_live/index.ex:67 +#: lib/cannery_web/live/range_live/index.ex:52 +#: lib/cannery_web/live/range_live/index.ex:68 #, elixir-autogen, elixir-format msgid "Record Shots" msgstr "" @@ -700,7 +696,7 @@ msgstr "" msgid "Move Ammo" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:117 +#: lib/cannery_web/live/container_live/show.html.heex:125 #, elixir-autogen, elixir-format msgid "No ammo in this container" msgstr "" @@ -710,7 +706,7 @@ msgstr "" msgid "Show Ammo" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:105 +#: lib/cannery_web/live/pack_live/show.html.heex:99 #, elixir-autogen, elixir-format msgid "This ammo is not in a container" msgstr "" @@ -750,31 +746,31 @@ msgstr "" msgid "Show used" msgstr "" -#: lib/cannery_web/components/pack_table_component.ex:219 +#: lib/cannery_web/components/pack_table_component.ex:218 #: lib/cannery_web/live/pack_live/show.html.heex:19 #, elixir-autogen, elixir-format msgid "%{percentage}%" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:207 +#: lib/cannery_web/live/range_live/index.ex:215 #, elixir-autogen, elixir-format msgid "Rounds shot: %{count}" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:64 +#: lib/cannery_web/components/container_table_component.ex:68 #: lib/cannery_web/components/type_table_component.ex:122 #, elixir-autogen, elixir-format msgid "Packs" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:65 +#: lib/cannery_web/components/container_table_component.ex:69 #: lib/cannery_web/components/type_table_component.ex:143 #, elixir-autogen, elixir-format msgid "Rounds" msgstr "" #: lib/cannery_web/live/container_live/index.html.heex:40 -#: lib/cannery_web/live/container_live/show.html.heex:109 +#: lib/cannery_web/live/container_live/show.html.heex:117 #: lib/cannery_web/live/type_live/show.html.heex:170 #, elixir-autogen, elixir-format msgid "View as table" @@ -820,7 +816,7 @@ msgstr "" msgid "Used rounds:" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:91 +#: lib/cannery_web/live/range_live/index.html.heex:80 #, elixir-autogen, elixir-format msgid "Rounds shot chart" msgstr "" @@ -927,7 +923,7 @@ msgid "Average CPR" msgstr "" #: lib/cannery_web/components/core_components/pack_card.html.heex:17 -#: lib/cannery_web/components/pack_table_component.ex:268 +#: lib/cannery_web/components/pack_table_component.ex:267 #, elixir-autogen, elixir-format msgid "Empty" msgstr "" @@ -1009,7 +1005,7 @@ msgstr "" msgid "Search tags" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:135 +#: lib/cannery_web/live/range_live/index.html.heex:124 #, elixir-autogen, elixir-format msgid "Search shot records" msgstr "" @@ -1133,12 +1129,12 @@ msgstr "" msgid "Really great weather" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:67 +#: lib/cannery_web/components/container_table_component.ex:74 #: lib/cannery_web/components/move_pack_component.ex:67 #: lib/cannery_web/components/pack_table_component.ex:62 #: lib/cannery_web/components/shot_record_table_component.ex:48 #: lib/cannery_web/components/type_table_component.ex:99 -#: lib/cannery_web/live/pack_live/show.ex:92 +#: lib/cannery_web/live/pack_live/show.ex:82 #, elixir-autogen, elixir-format msgid "Actions" msgstr "" @@ -1164,9 +1160,9 @@ msgstr "" msgid "Close modal" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:97 +#: lib/cannery_web/live/container_live/show.html.heex:105 #: lib/cannery_web/live/pack_live/index.html.heex:58 -#: lib/cannery_web/live/range_live/index.html.heex:114 +#: lib/cannery_web/live/range_live/index.html.heex:103 #: lib/cannery_web/live/type_live/index.html.heex:37 #, elixir-autogen, elixir-format msgid "All" @@ -1247,10 +1243,10 @@ msgstr "" msgid "None specified" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:100 +#: lib/cannery_web/live/container_live/show.html.heex:108 #: lib/cannery_web/live/pack_live/form_component.html.heex:30 #: lib/cannery_web/live/pack_live/index.html.heex:61 -#: lib/cannery_web/live/range_live/index.html.heex:117 +#: lib/cannery_web/live/range_live/index.html.heex:106 #: lib/cannery_web/live/type_live/form_component.html.heex:28 #: lib/cannery_web/live/type_live/index.html.heex:40 #: lib/cannery_web/live/type_live/show.html.heex:56 @@ -1273,10 +1269,10 @@ msgstr "" msgid "Projectile" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:98 +#: lib/cannery_web/live/container_live/show.html.heex:106 #: lib/cannery_web/live/pack_live/form_component.html.heex:28 #: lib/cannery_web/live/pack_live/index.html.heex:59 -#: lib/cannery_web/live/range_live/index.html.heex:115 +#: lib/cannery_web/live/range_live/index.html.heex:104 #: lib/cannery_web/live/type_live/form_component.html.heex:26 #: lib/cannery_web/live/type_live/index.html.heex:38 #: lib/cannery_web/live/type_live/show.html.heex:54 @@ -1328,10 +1324,10 @@ msgstr "" msgid "Shot type:" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:99 +#: lib/cannery_web/live/container_live/show.html.heex:107 #: lib/cannery_web/live/pack_live/form_component.html.heex:29 #: lib/cannery_web/live/pack_live/index.html.heex:60 -#: lib/cannery_web/live/range_live/index.html.heex:116 +#: lib/cannery_web/live/range_live/index.html.heex:105 #: lib/cannery_web/live/type_live/form_component.html.heex:27 #: lib/cannery_web/live/type_live/index.html.heex:39 #: lib/cannery_web/live/type_live/show.html.heex:52 @@ -1373,10 +1369,10 @@ msgid "Wadding:" msgstr "" #: lib/cannery_web/components/type_table_component.ex:149 -#: lib/cannery_web/live/container_live/show.html.heex:91 +#: lib/cannery_web/live/container_live/show.html.heex:99 #: lib/cannery_web/live/pack_live/form_component.html.heex:22 #: lib/cannery_web/live/pack_live/index.html.heex:50 -#: lib/cannery_web/live/range_live/index.html.heex:106 +#: lib/cannery_web/live/range_live/index.html.heex:95 #: lib/cannery_web/live/type_live/form_component.html.heex:21 #: lib/cannery_web/live/type_live/index.html.heex:29 #: lib/cannery_web/live/type_live/show.html.heex:46 @@ -1396,7 +1392,7 @@ msgid "Used up!" msgstr "" #: lib/cannery_web/live/pack_live/show.ex:41 -#: lib/cannery_web/live/range_live/index.ex:59 +#: lib/cannery_web/live/range_live/index.ex:60 #, elixir-autogen, elixir-format msgid "Edit Shot Record" msgstr "" @@ -1435,7 +1431,12 @@ msgstr "" msgid "Any" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:149 +#: lib/cannery_web/live/range_live/index.html.heex:138 #, elixir-autogen, elixir-format msgid "Dates" msgstr "" + +#: lib/cannery_web/live/range_live/index.html.heex:8 +#, elixir-autogen, elixir-format +msgid "No containers staged" +msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/actions.po b/priv/gettext/en/LC_MESSAGES/actions.po index 2076fe3..b874bb7 100644 --- a/priv/gettext/en/LC_MESSAGES/actions.po +++ b/priv/gettext/en/LC_MESSAGES/actions.po @@ -131,7 +131,7 @@ msgstr "" msgid "Send instructions to reset password" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:65 +#: lib/cannery_web/live/container_live/show.html.heex:73 #, elixir-autogen, elixir-format msgid "Why not add one?" msgstr "" @@ -141,19 +141,14 @@ msgstr "" msgid "Add" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:17 -#, elixir-autogen, elixir-format -msgid "Stage ammo" -msgstr "" - #: lib/cannery_web/live/range_live/index.html.heex:13 #, elixir-autogen, elixir-format msgid "Why not get some ready to shoot?" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:127 -#: lib/cannery_web/live/pack_live/show.html.heex:90 -#: lib/cannery_web/live/range_live/index.html.heex:65 +#: lib/cannery_web/live/pack_live/index.html.heex:116 +#: lib/cannery_web/live/pack_live/show.html.heex:84 +#: lib/cannery_web/live/range_live/index.html.heex:54 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "" @@ -199,8 +194,8 @@ msgid "View in Catalog" msgstr "" #: lib/cannery_web/components/move_pack_component.ex:77 -#: lib/cannery_web/live/pack_live/index.html.heex:138 -#: lib/cannery_web/live/pack_live/show.html.heex:86 +#: lib/cannery_web/live/pack_live/index.html.heex:127 +#: lib/cannery_web/live/pack_live/show.html.heex:80 #, elixir-autogen, elixir-format msgid "Move ammo" msgstr "" @@ -210,14 +205,12 @@ msgstr "" msgid "Set Unlimited" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:82 -#: lib/cannery_web/live/range_live/index.html.heex:61 +#: lib/cannery_web/live/container_live/show.html.heex:59 #, elixir-autogen, elixir-format msgid "Stage for range" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:81 -#: lib/cannery_web/live/range_live/index.html.heex:60 +#: lib/cannery_web/live/container_live/show.html.heex:58 #, elixir-autogen, elixir-format msgid "Unstage from range" msgstr "" @@ -227,8 +220,8 @@ msgstr "" msgid "Export Data as JSON" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:87 -#: lib/cannery_web/live/container_live/index.html.heex:145 +#: lib/cannery_web/live/container_live/index.html.heex:101 +#: lib/cannery_web/live/container_live/index.html.heex:159 #, elixir-autogen, elixir-format msgid "Clone %{container_name}" msgstr "" @@ -238,8 +231,8 @@ msgstr "" msgid "Copy invite link for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:104 -#: lib/cannery_web/live/container_live/index.html.heex:162 +#: lib/cannery_web/live/container_live/index.html.heex:118 +#: lib/cannery_web/live/container_live/index.html.heex:176 #: lib/cannery_web/live/container_live/show.html.heex:48 #, elixir-autogen, elixir-format msgid "Delete %{container_name}" @@ -255,8 +248,8 @@ msgstr "" msgid "Delete invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:77 -#: lib/cannery_web/live/container_live/index.html.heex:135 +#: lib/cannery_web/live/container_live/index.html.heex:91 +#: lib/cannery_web/live/container_live/index.html.heex:149 #: lib/cannery_web/live/container_live/show.html.heex:35 #, elixir-autogen, elixir-format msgid "Edit %{container_name}" @@ -272,56 +265,56 @@ msgstr "" msgid "Edit invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:120 +#: lib/cannery_web/live/container_live/index.html.heex:69 #: lib/cannery_web/live/range_live/index.html.heex:35 #, elixir-autogen, elixir-format, fuzzy msgid "Stage" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:65 -#: lib/cannery_web/live/container_live/index.html.heex:124 +#: lib/cannery_web/live/container_live/index.html.heex:79 +#: lib/cannery_web/live/container_live/index.html.heex:138 #, elixir-autogen, elixir-format msgid "Tag %{container_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:119 +#: lib/cannery_web/live/container_live/index.html.heex:68 #: lib/cannery_web/live/range_live/index.html.heex:34 #, elixir-autogen, elixir-format msgid "Unstage" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:172 +#: lib/cannery_web/live/pack_live/index.html.heex:161 #, elixir-autogen, elixir-format, fuzzy msgid "Clone pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:187 +#: lib/cannery_web/live/pack_live/index.html.heex:176 #: lib/cannery_web/live/pack_live/show.html.heex:71 #, elixir-autogen, elixir-format, fuzzy msgid "Delete pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:160 +#: lib/cannery_web/live/pack_live/index.html.heex:149 #: lib/cannery_web/live/pack_live/show.html.heex:59 #, elixir-autogen, elixir-format, fuzzy msgid "Edit pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:139 -#: lib/cannery_web/live/pack_live/index.html.heex:148 +#: lib/cannery_web/live/container_live/show.html.heex:147 +#: lib/cannery_web/live/pack_live/index.html.heex:137 #: lib/cannery_web/live/type_live/show.html.heex:201 #, elixir-autogen, elixir-format, fuzzy msgid "View pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:159 -#: lib/cannery_web/live/range_live/index.html.heex:192 +#: lib/cannery_web/live/pack_live/show.ex:149 +#: lib/cannery_web/live/range_live/index.html.heex:181 #, elixir-autogen, elixir-format, fuzzy msgid "Delete shot record of %{shot_record_count} shots" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:144 -#: lib/cannery_web/live/range_live/index.html.heex:175 +#: lib/cannery_web/live/pack_live/show.ex:134 +#: lib/cannery_web/live/range_live/index.html.heex:164 #, elixir-autogen, elixir-format, fuzzy msgid "Edit shot record of %{shot_record_count} shots" msgstr "" @@ -357,3 +350,8 @@ msgstr "" #, elixir-autogen, elixir-format, fuzzy msgid "add a type first" msgstr "" + +#: lib/cannery_web/live/range_live/index.html.heex:17 +#, elixir-autogen, elixir-format +msgid "Stage containers" +msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index 2b62db1..8df797b 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -113,7 +113,7 @@ msgstr "" msgid "Count:" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:46 +#: lib/cannery_web/components/container_table_component.ex:50 #: lib/cannery_web/live/container_live/form_component.html.heex:30 #: lib/cannery_web/live/type_live/form_component.html.heex:43 #, elixir-autogen, elixir-format @@ -185,7 +185,7 @@ msgstr "" msgid "Keep me logged in for 60 days" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:47 +#: lib/cannery_web/components/container_table_component.ex:51 #: lib/cannery_web/components/move_pack_component.ex:66 #: lib/cannery_web/live/container_live/form_component.html.heex:49 #, elixir-autogen, elixir-format @@ -220,7 +220,7 @@ msgstr "" msgid "My cool ammo can" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:45 +#: lib/cannery_web/components/container_table_component.ex:49 #: lib/cannery_web/components/type_table_component.ex:152 #: lib/cannery_web/live/container_live/form_component.html.heex:21 #: lib/cannery_web/live/invite_live/form_component.html.heex:21 @@ -277,7 +277,7 @@ msgstr "" #: lib/cannery_web/components/add_shot_record_component.html.heex:38 #: lib/cannery_web/components/shot_record_table_component.ex:46 #: lib/cannery_web/live/pack_live/form_component.html.heex:75 -#: lib/cannery_web/live/pack_live/show.ex:90 +#: lib/cannery_web/live/pack_live/show.ex:80 #: lib/cannery_web/live/range_live/form_component.html.heex:30 #, elixir-autogen, elixir-format msgid "Notes" @@ -348,12 +348,12 @@ msgstr "" msgid "Steel" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:100 +#: lib/cannery_web/live/pack_live/show.html.heex:94 #, elixir-autogen, elixir-format msgid "Stored in" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:66 +#: lib/cannery_web/components/container_table_component.ex:73 #: lib/cannery_web/components/core_components/topbar.html.heex:28 #: lib/cannery_web/live/tag_live/index.ex:43 #: lib/cannery_web/live/tag_live/index.ex:53 @@ -383,7 +383,7 @@ msgstr "" msgid "Tracer" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:48 +#: lib/cannery_web/components/container_table_component.ex:52 #: lib/cannery_web/components/move_pack_component.ex:65 #: lib/cannery_web/components/pack_table_component.ex:108 #: lib/cannery_web/live/container_live/form_component.html.heex:40 @@ -413,15 +413,16 @@ msgstr "" msgid "Your data stays with you, period" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:60 +#: lib/cannery_web/live/container_live/show.html.heex:68 #, elixir-autogen, elixir-format msgid "No tags for this container" msgstr "" +#: lib/cannery_web/components/container_table_component.ex:77 #: lib/cannery_web/components/core_components/topbar.html.heex:48 #: lib/cannery_web/components/pack_table_component.ex:80 -#: lib/cannery_web/live/range_live/index.ex:75 -#: lib/cannery_web/live/range_live/index.ex:85 +#: lib/cannery_web/live/range_live/index.ex:76 +#: lib/cannery_web/live/range_live/index.ex:86 #, elixir-autogen, elixir-format msgid "Range" msgstr "" @@ -433,7 +434,7 @@ msgstr "" #: lib/cannery_web/components/add_shot_record_component.html.heex:49 #: lib/cannery_web/components/shot_record_table_component.ex:47 -#: lib/cannery_web/live/pack_live/show.ex:91 +#: lib/cannery_web/live/pack_live/show.ex:81 #: lib/cannery_web/live/range_live/form_component.html.heex:41 #, elixir-autogen, elixir-format msgid "Date" @@ -444,26 +445,21 @@ msgstr "" msgid "Shots fired" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:8 -#, elixir-autogen, elixir-format -msgid "No ammo staged" -msgstr "" - #: lib/cannery_web/components/add_shot_record_component.html.heex:3 #: lib/cannery_web/live/pack_live/index.ex:35 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:75 -#: lib/cannery_web/live/range_live/index.html.heex:159 +#: lib/cannery_web/live/range_live/index.html.heex:64 +#: lib/cannery_web/live/range_live/index.html.heex:148 #, elixir-autogen, elixir-format msgid "No shots recorded" msgstr "" #: lib/cannery_web/components/shot_record_table_component.ex:45 -#: lib/cannery_web/live/pack_live/show.ex:89 -#: lib/cannery_web/live/range_live/index.html.heex:89 +#: lib/cannery_web/live/pack_live/show.ex:79 +#: lib/cannery_web/live/range_live/index.html.heex:78 #, elixir-autogen, elixir-format msgid "Rounds shot" msgstr "" @@ -478,7 +474,7 @@ msgstr "" msgid "No other containers" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:80 +#: lib/cannery_web/live/range_live/index.html.heex:69 #, elixir-autogen, elixir-format msgid "Shot log" msgstr "" @@ -486,7 +482,7 @@ msgstr "" #: lib/cannery_web/components/core_components/pack_card.html.heex:42 #: lib/cannery_web/components/core_components/pack_card.html.heex:47 #: lib/cannery_web/components/pack_table_component.ex:181 -#: lib/cannery_web/components/pack_table_component.ex:264 +#: lib/cannery_web/components/pack_table_component.ex:263 #: lib/cannery_web/components/type_table_component.ex:273 #: lib/cannery_web/live/pack_live/show.html.heex:37 #: lib/cannery_web/live/pack_live/show.html.heex:42 @@ -559,13 +555,13 @@ msgid "Reconnecting..." msgstr "" #: lib/cannery_web/live/container_live/index.ex:28 -#: lib/cannery_web/live/container_live/show.ex:118 +#: lib/cannery_web/live/container_live/show.ex:130 #, elixir-autogen, elixir-format msgid "Edit %{name}" msgstr "" #: lib/cannery_web/live/container_live/index.ex:63 -#: lib/cannery_web/live/container_live/show.ex:119 +#: lib/cannery_web/live/container_live/show.ex:131 #, elixir-autogen, elixir-format msgid "Edit %{name} tags" msgstr "" @@ -578,7 +574,7 @@ msgid "Rounds:" msgstr "" #: lib/cannery_web/components/pack_table_component.ex:178 -#: lib/cannery_web/components/pack_table_component.ex:260 +#: lib/cannery_web/components/pack_table_component.ex:259 #: lib/cannery_web/components/type_table_component.ex:272 #: lib/cannery_web/live/type_live/show.html.heex:154 #, elixir-autogen, elixir-format @@ -610,7 +606,7 @@ msgstr "" msgid "Percentage left:" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:113 +#: lib/cannery_web/live/pack_live/show.html.heex:107 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds used" msgstr "" @@ -641,8 +637,8 @@ msgid "Reset your password" msgstr "" #: lib/cannery_web/live/pack_live/show.ex:40 -#: lib/cannery_web/live/range_live/index.ex:51 -#: lib/cannery_web/live/range_live/index.ex:67 +#: lib/cannery_web/live/range_live/index.ex:52 +#: lib/cannery_web/live/range_live/index.ex:68 #, elixir-autogen, elixir-format, fuzzy msgid "Record Shots" msgstr "" @@ -700,7 +696,7 @@ msgstr "" msgid "Move Ammo" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:117 +#: lib/cannery_web/live/container_live/show.html.heex:125 #, elixir-autogen, elixir-format, fuzzy msgid "No ammo in this container" msgstr "" @@ -710,7 +706,7 @@ msgstr "" msgid "Show Ammo" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:105 +#: lib/cannery_web/live/pack_live/show.html.heex:99 #, elixir-autogen, elixir-format, fuzzy msgid "This ammo is not in a container" msgstr "" @@ -750,31 +746,31 @@ msgstr "" msgid "Show used" msgstr "" -#: lib/cannery_web/components/pack_table_component.ex:219 +#: lib/cannery_web/components/pack_table_component.ex:218 #: lib/cannery_web/live/pack_live/show.html.heex:19 #, elixir-autogen, elixir-format msgid "%{percentage}%" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:207 +#: lib/cannery_web/live/range_live/index.ex:215 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds shot: %{count}" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:64 +#: lib/cannery_web/components/container_table_component.ex:68 #: lib/cannery_web/components/type_table_component.ex:122 #, elixir-autogen, elixir-format, fuzzy msgid "Packs" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:65 +#: lib/cannery_web/components/container_table_component.ex:69 #: lib/cannery_web/components/type_table_component.ex:143 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds" msgstr "" #: lib/cannery_web/live/container_live/index.html.heex:40 -#: lib/cannery_web/live/container_live/show.html.heex:109 +#: lib/cannery_web/live/container_live/show.html.heex:117 #: lib/cannery_web/live/type_live/show.html.heex:170 #, elixir-autogen, elixir-format msgid "View as table" @@ -820,7 +816,7 @@ msgstr "" msgid "Used rounds:" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:91 +#: lib/cannery_web/live/range_live/index.html.heex:80 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds shot chart" msgstr "" @@ -927,7 +923,7 @@ msgid "Average CPR" msgstr "" #: lib/cannery_web/components/core_components/pack_card.html.heex:17 -#: lib/cannery_web/components/pack_table_component.ex:268 +#: lib/cannery_web/components/pack_table_component.ex:267 #, elixir-autogen, elixir-format msgid "Empty" msgstr "" @@ -1009,7 +1005,7 @@ msgstr "" msgid "Search tags" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:135 +#: lib/cannery_web/live/range_live/index.html.heex:124 #, elixir-autogen, elixir-format msgid "Search shot records" msgstr "" @@ -1133,12 +1129,12 @@ msgstr "" msgid "Really great weather" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:67 +#: lib/cannery_web/components/container_table_component.ex:74 #: lib/cannery_web/components/move_pack_component.ex:67 #: lib/cannery_web/components/pack_table_component.ex:62 #: lib/cannery_web/components/shot_record_table_component.ex:48 #: lib/cannery_web/components/type_table_component.ex:99 -#: lib/cannery_web/live/pack_live/show.ex:92 +#: lib/cannery_web/live/pack_live/show.ex:82 #, elixir-autogen, elixir-format msgid "Actions" msgstr "" @@ -1164,9 +1160,9 @@ msgstr "" msgid "Close modal" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:97 +#: lib/cannery_web/live/container_live/show.html.heex:105 #: lib/cannery_web/live/pack_live/index.html.heex:58 -#: lib/cannery_web/live/range_live/index.html.heex:114 +#: lib/cannery_web/live/range_live/index.html.heex:103 #: lib/cannery_web/live/type_live/index.html.heex:37 #, elixir-autogen, elixir-format msgid "All" @@ -1247,10 +1243,10 @@ msgstr "" msgid "None specified" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:100 +#: lib/cannery_web/live/container_live/show.html.heex:108 #: lib/cannery_web/live/pack_live/form_component.html.heex:30 #: lib/cannery_web/live/pack_live/index.html.heex:61 -#: lib/cannery_web/live/range_live/index.html.heex:117 +#: lib/cannery_web/live/range_live/index.html.heex:106 #: lib/cannery_web/live/type_live/form_component.html.heex:28 #: lib/cannery_web/live/type_live/index.html.heex:40 #: lib/cannery_web/live/type_live/show.html.heex:56 @@ -1273,10 +1269,10 @@ msgstr "" msgid "Projectile" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:98 +#: lib/cannery_web/live/container_live/show.html.heex:106 #: lib/cannery_web/live/pack_live/form_component.html.heex:28 #: lib/cannery_web/live/pack_live/index.html.heex:59 -#: lib/cannery_web/live/range_live/index.html.heex:115 +#: lib/cannery_web/live/range_live/index.html.heex:104 #: lib/cannery_web/live/type_live/form_component.html.heex:26 #: lib/cannery_web/live/type_live/index.html.heex:38 #: lib/cannery_web/live/type_live/show.html.heex:54 @@ -1328,10 +1324,10 @@ msgstr "" msgid "Shot type:" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:99 +#: lib/cannery_web/live/container_live/show.html.heex:107 #: lib/cannery_web/live/pack_live/form_component.html.heex:29 #: lib/cannery_web/live/pack_live/index.html.heex:60 -#: lib/cannery_web/live/range_live/index.html.heex:116 +#: lib/cannery_web/live/range_live/index.html.heex:105 #: lib/cannery_web/live/type_live/form_component.html.heex:27 #: lib/cannery_web/live/type_live/index.html.heex:39 #: lib/cannery_web/live/type_live/show.html.heex:52 @@ -1373,10 +1369,10 @@ msgid "Wadding:" msgstr "" #: lib/cannery_web/components/type_table_component.ex:149 -#: lib/cannery_web/live/container_live/show.html.heex:91 +#: lib/cannery_web/live/container_live/show.html.heex:99 #: lib/cannery_web/live/pack_live/form_component.html.heex:22 #: lib/cannery_web/live/pack_live/index.html.heex:50 -#: lib/cannery_web/live/range_live/index.html.heex:106 +#: lib/cannery_web/live/range_live/index.html.heex:95 #: lib/cannery_web/live/type_live/form_component.html.heex:21 #: lib/cannery_web/live/type_live/index.html.heex:29 #: lib/cannery_web/live/type_live/show.html.heex:46 @@ -1396,7 +1392,7 @@ msgid "Used up!" msgstr "" #: lib/cannery_web/live/pack_live/show.ex:41 -#: lib/cannery_web/live/range_live/index.ex:59 +#: lib/cannery_web/live/range_live/index.ex:60 #, elixir-autogen, elixir-format, fuzzy msgid "Edit Shot Record" msgstr "" @@ -1435,7 +1431,12 @@ msgstr "" msgid "Any" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:149 +#: lib/cannery_web/live/range_live/index.html.heex:138 #, elixir-autogen, elixir-format, fuzzy msgid "Dates" msgstr "" + +#: lib/cannery_web/live/range_live/index.html.heex:8 +#, elixir-autogen, elixir-format, fuzzy +msgid "No containers staged" +msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/errors.po b/priv/gettext/en/LC_MESSAGES/errors.po index 0055251..fa993e6 100644 --- a/priv/gettext/en/LC_MESSAGES/errors.po +++ b/priv/gettext/en/LC_MESSAGES/errors.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Language: en\n" -#: lib/cannery/containers.ex:222 +#: lib/cannery/containers.ex:234 #, elixir-autogen, elixir-format msgid "Container must be empty before deleting" msgstr "" @@ -153,7 +153,7 @@ msgstr "" msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:94 +#: lib/cannery_web/live/range_live/index.html.heex:83 #, elixir-autogen, elixir-format msgid "Your browser does not support the canvas element." msgstr "" @@ -199,12 +199,12 @@ msgstr "" msgid "You must log in to access this page." msgstr "" -#: lib/cannery/ammo/pack.ex:98 +#: lib/cannery/ammo/pack.ex:101 #, elixir-autogen, elixir-format, fuzzy msgid "Please select a valid container" msgstr "" -#: lib/cannery/ammo/pack.ex:96 +#: lib/cannery/ammo/pack.ex:99 #, elixir-autogen, elixir-format, fuzzy msgid "Please select a valid type" msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/prompts.po b/priv/gettext/en/LC_MESSAGES/prompts.po index 66f2300..0fc7ca0 100644 --- a/priv/gettext/en/LC_MESSAGES/prompts.po +++ b/priv/gettext/en/LC_MESSAGES/prompts.po @@ -50,15 +50,15 @@ msgstr "" msgid "Are you sure you want to delete %{email}? This action is permanent!" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:99 -#: lib/cannery_web/live/container_live/index.html.heex:157 +#: lib/cannery_web/live/container_live/index.html.heex:113 +#: lib/cannery_web/live/container_live/index.html.heex:171 #: lib/cannery_web/live/container_live/show.html.heex:45 #: lib/cannery_web/live/tag_live/index.html.heex:63 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete %{name}?" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:185 +#: lib/cannery_web/live/pack_live/index.html.heex:174 #: lib/cannery_web/live/pack_live/show.html.heex:69 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this ammo?" @@ -150,19 +150,14 @@ msgstr "" msgid "Shots recorded successfully" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:57 -#, elixir-autogen, elixir-format -msgid "Are you sure you want to unstage this ammo?" -msgstr "" - -#: lib/cannery_web/live/pack_live/show.ex:157 -#: lib/cannery_web/live/range_live/index.html.heex:189 +#: lib/cannery_web/live/pack_live/show.ex:147 +#: lib/cannery_web/live/range_live/index.html.heex:178 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this shot record?" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:79 -#: lib/cannery_web/live/range_live/index.ex:98 +#: lib/cannery_web/live/pack_live/show.ex:69 +#: lib/cannery_web/live/range_live/index.ex:99 #, elixir-autogen, elixir-format msgid "Shot records deleted succesfully" msgstr "" @@ -219,11 +214,6 @@ msgstr "" msgid "Ammo deleted succesfully" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:111 -#, elixir-autogen, elixir-format, fuzzy -msgid "Ammo unstaged succesfully" -msgstr "" - #: lib/cannery_web/live/pack_live/form_component.ex:141 #, elixir-autogen, elixir-format, fuzzy msgid "Ammo updated successfully" @@ -281,3 +271,8 @@ msgstr "" #, elixir-autogen, elixir-format, fuzzy msgid "Are you sure you want to make %{invite_name} unlimited?" msgstr "" + +#: lib/cannery_web/live/range_live/index.ex:114 +#, elixir-autogen, elixir-format +msgid "Container unstaged succesfully" +msgstr "" diff --git a/priv/gettext/errors.pot b/priv/gettext/errors.pot index f065ba8..43b9575 100644 --- a/priv/gettext/errors.pot +++ b/priv/gettext/errors.pot @@ -10,7 +10,7 @@ msgid "" msgstr "" -#: lib/cannery/containers.ex:222 +#: lib/cannery/containers.ex:234 #, elixir-autogen, elixir-format msgid "Container must be empty before deleting" msgstr "" @@ -152,7 +152,7 @@ msgstr "" msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:94 +#: lib/cannery_web/live/range_live/index.html.heex:83 #, elixir-autogen, elixir-format msgid "Your browser does not support the canvas element." msgstr "" @@ -198,12 +198,12 @@ msgstr "" msgid "You must log in to access this page." msgstr "" -#: lib/cannery/ammo/pack.ex:98 +#: lib/cannery/ammo/pack.ex:101 #, elixir-autogen, elixir-format msgid "Please select a valid container" msgstr "" -#: lib/cannery/ammo/pack.ex:96 +#: lib/cannery/ammo/pack.ex:99 #, elixir-autogen, elixir-format msgid "Please select a valid type" msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/actions.po b/priv/gettext/es/LC_MESSAGES/actions.po index 15911e1..7438250 100644 --- a/priv/gettext/es/LC_MESSAGES/actions.po +++ b/priv/gettext/es/LC_MESSAGES/actions.po @@ -144,7 +144,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:65 +#: lib/cannery_web/live/container_live/show.html.heex:73 #, elixir-autogen, elixir-format msgid "Why not add one?" msgstr "ÂżPor quĂ© no añadir una?" @@ -154,19 +154,14 @@ msgstr "ÂżPor quĂ© no añadir una?" msgid "Add" msgstr "Añadir" -#: lib/cannery_web/live/range_live/index.html.heex:17 -#, elixir-autogen, elixir-format -msgid "Stage ammo" -msgstr "Preparar municiĂłn" - #: lib/cannery_web/live/range_live/index.html.heex:13 #, elixir-autogen, elixir-format msgid "Why not get some ready to shoot?" msgstr "ÂżPor quĂ© no preparar parte para disparar?" -#: lib/cannery_web/live/pack_live/index.html.heex:127 -#: lib/cannery_web/live/pack_live/show.html.heex:90 -#: lib/cannery_web/live/range_live/index.html.heex:65 +#: lib/cannery_web/live/pack_live/index.html.heex:116 +#: lib/cannery_web/live/pack_live/show.html.heex:84 +#: lib/cannery_web/live/range_live/index.html.heex:54 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "Tiros rĂ©cord" @@ -212,8 +207,8 @@ msgid "View in Catalog" msgstr "Ver en Catalogo" #: lib/cannery_web/components/move_pack_component.ex:77 -#: lib/cannery_web/live/pack_live/index.html.heex:138 -#: lib/cannery_web/live/pack_live/show.html.heex:86 +#: lib/cannery_web/live/pack_live/index.html.heex:127 +#: lib/cannery_web/live/pack_live/show.html.heex:80 #, elixir-autogen, elixir-format msgid "Move ammo" msgstr "Mover municiĂłn" @@ -223,14 +218,12 @@ msgstr "Mover municiĂłn" msgid "Set Unlimited" msgstr "Activar ilimitados" -#: lib/cannery_web/live/pack_live/show.html.heex:82 -#: lib/cannery_web/live/range_live/index.html.heex:61 +#: lib/cannery_web/live/container_live/show.html.heex:59 #, elixir-autogen, elixir-format msgid "Stage for range" msgstr "Preparar para el campo de tiro" -#: lib/cannery_web/live/pack_live/show.html.heex:81 -#: lib/cannery_web/live/range_live/index.html.heex:60 +#: lib/cannery_web/live/container_live/show.html.heex:58 #, elixir-autogen, elixir-format msgid "Unstage from range" msgstr "Desmontar del campo de tiro" @@ -240,8 +233,8 @@ msgstr "Desmontar del campo de tiro" msgid "Export Data as JSON" msgstr "Exportar datos como JSON" -#: lib/cannery_web/live/container_live/index.html.heex:87 -#: lib/cannery_web/live/container_live/index.html.heex:145 +#: lib/cannery_web/live/container_live/index.html.heex:101 +#: lib/cannery_web/live/container_live/index.html.heex:159 #, elixir-autogen, elixir-format msgid "Clone %{container_name}" msgstr "" @@ -251,8 +244,8 @@ msgstr "" msgid "Copy invite link for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:104 -#: lib/cannery_web/live/container_live/index.html.heex:162 +#: lib/cannery_web/live/container_live/index.html.heex:118 +#: lib/cannery_web/live/container_live/index.html.heex:176 #: lib/cannery_web/live/container_live/show.html.heex:48 #, elixir-autogen, elixir-format msgid "Delete %{container_name}" @@ -268,8 +261,8 @@ msgstr "" msgid "Delete invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:77 -#: lib/cannery_web/live/container_live/index.html.heex:135 +#: lib/cannery_web/live/container_live/index.html.heex:91 +#: lib/cannery_web/live/container_live/index.html.heex:149 #: lib/cannery_web/live/container_live/show.html.heex:35 #, elixir-autogen, elixir-format msgid "Edit %{container_name}" @@ -285,56 +278,56 @@ msgstr "" msgid "Edit invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:120 +#: lib/cannery_web/live/container_live/index.html.heex:69 #: lib/cannery_web/live/range_live/index.html.heex:35 #, elixir-autogen, elixir-format, fuzzy msgid "Stage" msgstr "Preparar municiĂłn" -#: lib/cannery_web/live/container_live/index.html.heex:65 -#: lib/cannery_web/live/container_live/index.html.heex:124 +#: lib/cannery_web/live/container_live/index.html.heex:79 +#: lib/cannery_web/live/container_live/index.html.heex:138 #, elixir-autogen, elixir-format msgid "Tag %{container_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:119 +#: lib/cannery_web/live/container_live/index.html.heex:68 #: lib/cannery_web/live/range_live/index.html.heex:34 #, elixir-autogen, elixir-format msgid "Unstage" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:172 +#: lib/cannery_web/live/pack_live/index.html.heex:161 #, elixir-autogen, elixir-format, fuzzy msgid "Clone pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:187 +#: lib/cannery_web/live/pack_live/index.html.heex:176 #: lib/cannery_web/live/pack_live/show.html.heex:71 #, elixir-autogen, elixir-format, fuzzy msgid "Delete pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:160 +#: lib/cannery_web/live/pack_live/index.html.heex:149 #: lib/cannery_web/live/pack_live/show.html.heex:59 #, elixir-autogen, elixir-format, fuzzy msgid "Edit pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:139 -#: lib/cannery_web/live/pack_live/index.html.heex:148 +#: lib/cannery_web/live/container_live/show.html.heex:147 +#: lib/cannery_web/live/pack_live/index.html.heex:137 #: lib/cannery_web/live/type_live/show.html.heex:201 #, elixir-autogen, elixir-format, fuzzy msgid "View pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:159 -#: lib/cannery_web/live/range_live/index.html.heex:192 +#: lib/cannery_web/live/pack_live/show.ex:149 +#: lib/cannery_web/live/range_live/index.html.heex:181 #, elixir-autogen, elixir-format, fuzzy msgid "Delete shot record of %{shot_record_count} shots" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:144 -#: lib/cannery_web/live/range_live/index.html.heex:175 +#: lib/cannery_web/live/pack_live/show.ex:134 +#: lib/cannery_web/live/range_live/index.html.heex:164 #, elixir-autogen, elixir-format, fuzzy msgid "Edit shot record of %{shot_record_count} shots" msgstr "" @@ -370,3 +363,8 @@ msgstr "" #, elixir-autogen, elixir-format, fuzzy msgid "add a type first" msgstr "añade primero un tipo de municiĂłn" + +#: lib/cannery_web/live/range_live/index.html.heex:17 +#, elixir-autogen, elixir-format +msgid "Stage containers" +msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index 98359b2..b1ce096 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -117,7 +117,7 @@ msgstr "Cantidad" msgid "Count:" msgstr "Cantidad:" -#: lib/cannery_web/components/container_table_component.ex:46 +#: lib/cannery_web/components/container_table_component.ex:50 #: lib/cannery_web/live/container_live/form_component.html.heex:30 #: lib/cannery_web/live/type_live/form_component.html.heex:43 #, elixir-autogen, elixir-format @@ -189,7 +189,7 @@ msgstr "Invitaciones" msgid "Keep me logged in for 60 days" msgstr "Mantener registrado durante 60 dĂ­as" -#: lib/cannery_web/components/container_table_component.ex:47 +#: lib/cannery_web/components/container_table_component.ex:51 #: lib/cannery_web/components/move_pack_component.ex:66 #: lib/cannery_web/live/container_live/form_component.html.heex:49 #, elixir-autogen, elixir-format @@ -224,7 +224,7 @@ msgstr "Lata de municiĂłn metĂĄlica con la pegatina de chica de anime" msgid "My cool ammo can" msgstr "Mi lata de municiĂłn guapa" -#: lib/cannery_web/components/container_table_component.ex:45 +#: lib/cannery_web/components/container_table_component.ex:49 #: lib/cannery_web/components/type_table_component.ex:152 #: lib/cannery_web/live/container_live/form_component.html.heex:21 #: lib/cannery_web/live/invite_live/form_component.html.heex:21 @@ -281,7 +281,7 @@ msgstr "Sin etiquetas" #: lib/cannery_web/components/add_shot_record_component.html.heex:38 #: lib/cannery_web/components/shot_record_table_component.ex:46 #: lib/cannery_web/live/pack_live/form_component.html.heex:75 -#: lib/cannery_web/live/pack_live/show.ex:90 +#: lib/cannery_web/live/pack_live/show.ex:80 #: lib/cannery_web/live/range_live/form_component.html.heex:30 #, elixir-autogen, elixir-format msgid "Notes" @@ -354,12 +354,12 @@ msgstr "Simple:" msgid "Steel" msgstr "Acero" -#: lib/cannery_web/live/pack_live/show.html.heex:100 +#: lib/cannery_web/live/pack_live/show.html.heex:94 #, elixir-autogen, elixir-format msgid "Stored in" msgstr "Guardado en" -#: lib/cannery_web/components/container_table_component.ex:66 +#: lib/cannery_web/components/container_table_component.ex:73 #: lib/cannery_web/components/core_components/topbar.html.heex:28 #: lib/cannery_web/live/tag_live/index.ex:43 #: lib/cannery_web/live/tag_live/index.ex:53 @@ -390,7 +390,7 @@ msgstr "La pĂĄgina de seguimiento de armas autogestionada" msgid "Tracer" msgstr "Trazadora" -#: lib/cannery_web/components/container_table_component.ex:48 +#: lib/cannery_web/components/container_table_component.ex:52 #: lib/cannery_web/components/move_pack_component.ex:65 #: lib/cannery_web/components/pack_table_component.ex:108 #: lib/cannery_web/live/container_live/form_component.html.heex:40 @@ -420,15 +420,16 @@ msgstr "Usos restantes" msgid "Your data stays with you, period" msgstr "Tus datos se quedan contigo, sin excepciones" -#: lib/cannery_web/live/container_live/show.html.heex:60 +#: lib/cannery_web/live/container_live/show.html.heex:68 #, elixir-autogen, elixir-format msgid "No tags for this container" msgstr "Contenedor sin etiquetas" +#: lib/cannery_web/components/container_table_component.ex:77 #: lib/cannery_web/components/core_components/topbar.html.heex:48 #: lib/cannery_web/components/pack_table_component.ex:80 -#: lib/cannery_web/live/range_live/index.ex:75 -#: lib/cannery_web/live/range_live/index.ex:85 +#: lib/cannery_web/live/range_live/index.ex:76 +#: lib/cannery_web/live/range_live/index.ex:86 #, elixir-autogen, elixir-format msgid "Range" msgstr "Campo de tiro" @@ -440,7 +441,7 @@ msgstr "DĂ­a de disparar" #: lib/cannery_web/components/add_shot_record_component.html.heex:49 #: lib/cannery_web/components/shot_record_table_component.ex:47 -#: lib/cannery_web/live/pack_live/show.ex:91 +#: lib/cannery_web/live/pack_live/show.ex:81 #: lib/cannery_web/live/range_live/form_component.html.heex:41 #, elixir-autogen, elixir-format msgid "Date" @@ -451,26 +452,21 @@ msgstr "Fecha" msgid "Shots fired" msgstr "Tiros disparados" -#: lib/cannery_web/live/range_live/index.html.heex:8 -#, elixir-autogen, elixir-format -msgid "No ammo staged" -msgstr "No hay municiĂłn preparada" - #: lib/cannery_web/components/add_shot_record_component.html.heex:3 #: lib/cannery_web/live/pack_live/index.ex:35 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "Tiros rĂ©cord" -#: lib/cannery_web/live/range_live/index.html.heex:75 -#: lib/cannery_web/live/range_live/index.html.heex:159 +#: lib/cannery_web/live/range_live/index.html.heex:64 +#: lib/cannery_web/live/range_live/index.html.heex:148 #, elixir-autogen, elixir-format msgid "No shots recorded" msgstr "No se han grabado tiros" #: lib/cannery_web/components/shot_record_table_component.ex:45 -#: lib/cannery_web/live/pack_live/show.ex:89 -#: lib/cannery_web/live/range_live/index.html.heex:89 +#: lib/cannery_web/live/pack_live/show.ex:79 +#: lib/cannery_web/live/range_live/index.html.heex:78 #, elixir-autogen, elixir-format msgid "Rounds shot" msgstr "Balas disparadas" @@ -485,7 +481,7 @@ msgstr "Mover municiĂłn" msgid "No other containers" msgstr "No hay otros contenedores" -#: lib/cannery_web/live/range_live/index.html.heex:80 +#: lib/cannery_web/live/range_live/index.html.heex:69 #, elixir-autogen, elixir-format msgid "Shot log" msgstr "Registro de tiros" @@ -493,7 +489,7 @@ msgstr "Registro de tiros" #: lib/cannery_web/components/core_components/pack_card.html.heex:42 #: lib/cannery_web/components/core_components/pack_card.html.heex:47 #: lib/cannery_web/components/pack_table_component.ex:181 -#: lib/cannery_web/components/pack_table_component.ex:264 +#: lib/cannery_web/components/pack_table_component.ex:263 #: lib/cannery_web/components/type_table_component.ex:273 #: lib/cannery_web/live/pack_live/show.html.heex:37 #: lib/cannery_web/live/pack_live/show.html.heex:42 @@ -566,13 +562,13 @@ msgid "Reconnecting..." msgstr "Reconectando..." #: lib/cannery_web/live/container_live/index.ex:28 -#: lib/cannery_web/live/container_live/show.ex:118 +#: lib/cannery_web/live/container_live/show.ex:130 #, elixir-autogen, elixir-format msgid "Edit %{name}" msgstr "Editar %{name}" #: lib/cannery_web/live/container_live/index.ex:63 -#: lib/cannery_web/live/container_live/show.ex:119 +#: lib/cannery_web/live/container_live/show.ex:131 #, elixir-autogen, elixir-format msgid "Edit %{name} tags" msgstr "Editar etiquetas de %{name}" @@ -585,7 +581,7 @@ msgid "Rounds:" msgstr "Balas:" #: lib/cannery_web/components/pack_table_component.ex:178 -#: lib/cannery_web/components/pack_table_component.ex:260 +#: lib/cannery_web/components/pack_table_component.ex:259 #: lib/cannery_web/components/type_table_component.ex:272 #: lib/cannery_web/live/type_live/show.html.heex:154 #, elixir-autogen, elixir-format @@ -617,7 +613,7 @@ msgstr "Cantidad original:" msgid "Percentage left:" msgstr "Pocentaje restante:" -#: lib/cannery_web/live/pack_live/show.html.heex:113 +#: lib/cannery_web/live/pack_live/show.html.heex:107 #, elixir-autogen, elixir-format msgid "Rounds used" msgstr "Balas usadas" @@ -648,8 +644,8 @@ msgid "Reset your password" msgstr "Reestablecer contraseña" #: lib/cannery_web/live/pack_live/show.ex:40 -#: lib/cannery_web/live/range_live/index.ex:51 -#: lib/cannery_web/live/range_live/index.ex:67 +#: lib/cannery_web/live/range_live/index.ex:52 +#: lib/cannery_web/live/range_live/index.ex:68 #, elixir-autogen, elixir-format msgid "Record Shots" msgstr "Tiros RĂ©cord" @@ -707,7 +703,7 @@ msgstr "Editar MuniciĂłn" msgid "Move Ammo" msgstr "Mover MuniciĂłn" -#: lib/cannery_web/live/container_live/show.html.heex:117 +#: lib/cannery_web/live/container_live/show.html.heex:125 #, elixir-autogen, elixir-format msgid "No ammo in this container" msgstr "No hay municiĂłn en este contenedor" @@ -717,7 +713,7 @@ msgstr "No hay municiĂłn en este contenedor" msgid "Show Ammo" msgstr "Mostrar MuniciĂłn" -#: lib/cannery_web/live/pack_live/show.html.heex:105 +#: lib/cannery_web/live/pack_live/show.html.heex:99 #, elixir-autogen, elixir-format msgid "This ammo is not in a container" msgstr "Esta municiĂłn no estĂĄ en un contenedor" @@ -758,31 +754,31 @@ msgstr "Contenedor:" msgid "Show used" msgstr "Mostrar usadas" -#: lib/cannery_web/components/pack_table_component.ex:219 +#: lib/cannery_web/components/pack_table_component.ex:218 #: lib/cannery_web/live/pack_live/show.html.heex:19 #, elixir-autogen, elixir-format msgid "%{percentage}%" msgstr "%{percentage}%" -#: lib/cannery_web/live/range_live/index.ex:207 +#: lib/cannery_web/live/range_live/index.ex:215 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds shot: %{count}" msgstr "Balas disparadas: %{count}" -#: lib/cannery_web/components/container_table_component.ex:64 +#: lib/cannery_web/components/container_table_component.ex:68 #: lib/cannery_web/components/type_table_component.ex:122 #, elixir-autogen, elixir-format, fuzzy msgid "Packs" msgstr "Paquetes" -#: lib/cannery_web/components/container_table_component.ex:65 +#: lib/cannery_web/components/container_table_component.ex:69 #: lib/cannery_web/components/type_table_component.ex:143 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds" msgstr "Balas" #: lib/cannery_web/live/container_live/index.html.heex:40 -#: lib/cannery_web/live/container_live/show.html.heex:109 +#: lib/cannery_web/live/container_live/show.html.heex:117 #: lib/cannery_web/live/type_live/show.html.heex:170 #, elixir-autogen, elixir-format msgid "View as table" @@ -828,7 +824,7 @@ msgstr "Balas usadas" msgid "Used rounds:" msgstr "Balas usadas:" -#: lib/cannery_web/live/range_live/index.html.heex:91 +#: lib/cannery_web/live/range_live/index.html.heex:80 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds shot chart" msgstr "Tabla de disparos" @@ -935,7 +931,7 @@ msgid "Average CPR" msgstr "" #: lib/cannery_web/components/core_components/pack_card.html.heex:17 -#: lib/cannery_web/components/pack_table_component.ex:268 +#: lib/cannery_web/components/pack_table_component.ex:267 #, elixir-autogen, elixir-format msgid "Empty" msgstr "Vacio" @@ -1017,7 +1013,7 @@ msgstr "" msgid "Search tags" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:135 +#: lib/cannery_web/live/range_live/index.html.heex:124 #, elixir-autogen, elixir-format msgid "Search shot records" msgstr "" @@ -1152,12 +1148,12 @@ msgstr "" msgid "Really great weather" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:67 +#: lib/cannery_web/components/container_table_component.ex:74 #: lib/cannery_web/components/move_pack_component.ex:67 #: lib/cannery_web/components/pack_table_component.ex:62 #: lib/cannery_web/components/shot_record_table_component.ex:48 #: lib/cannery_web/components/type_table_component.ex:99 -#: lib/cannery_web/live/pack_live/show.ex:92 +#: lib/cannery_web/live/pack_live/show.ex:82 #, elixir-autogen, elixir-format msgid "Actions" msgstr "" @@ -1183,9 +1179,9 @@ msgstr "" msgid "Close modal" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:97 +#: lib/cannery_web/live/container_live/show.html.heex:105 #: lib/cannery_web/live/pack_live/index.html.heex:58 -#: lib/cannery_web/live/range_live/index.html.heex:114 +#: lib/cannery_web/live/range_live/index.html.heex:103 #: lib/cannery_web/live/type_live/index.html.heex:37 #, elixir-autogen, elixir-format msgid "All" @@ -1266,10 +1262,10 @@ msgstr "Sin MuniciĂłn" msgid "None specified" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:100 +#: lib/cannery_web/live/container_live/show.html.heex:108 #: lib/cannery_web/live/pack_live/form_component.html.heex:30 #: lib/cannery_web/live/pack_live/index.html.heex:61 -#: lib/cannery_web/live/range_live/index.html.heex:117 +#: lib/cannery_web/live/range_live/index.html.heex:106 #: lib/cannery_web/live/type_live/form_component.html.heex:28 #: lib/cannery_web/live/type_live/index.html.heex:40 #: lib/cannery_web/live/type_live/show.html.heex:56 @@ -1292,10 +1288,10 @@ msgstr "Tipo de espoleta" msgid "Projectile" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:98 +#: lib/cannery_web/live/container_live/show.html.heex:106 #: lib/cannery_web/live/pack_live/form_component.html.heex:28 #: lib/cannery_web/live/pack_live/index.html.heex:59 -#: lib/cannery_web/live/range_live/index.html.heex:115 +#: lib/cannery_web/live/range_live/index.html.heex:104 #: lib/cannery_web/live/type_live/form_component.html.heex:26 #: lib/cannery_web/live/type_live/index.html.heex:38 #: lib/cannery_web/live/type_live/show.html.heex:54 @@ -1347,10 +1343,10 @@ msgstr "" msgid "Shot type:" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:99 +#: lib/cannery_web/live/container_live/show.html.heex:107 #: lib/cannery_web/live/pack_live/form_component.html.heex:29 #: lib/cannery_web/live/pack_live/index.html.heex:60 -#: lib/cannery_web/live/range_live/index.html.heex:116 +#: lib/cannery_web/live/range_live/index.html.heex:105 #: lib/cannery_web/live/type_live/form_component.html.heex:27 #: lib/cannery_web/live/type_live/index.html.heex:39 #: lib/cannery_web/live/type_live/show.html.heex:52 @@ -1392,10 +1388,10 @@ msgid "Wadding:" msgstr "" #: lib/cannery_web/components/type_table_component.ex:149 -#: lib/cannery_web/live/container_live/show.html.heex:91 +#: lib/cannery_web/live/container_live/show.html.heex:99 #: lib/cannery_web/live/pack_live/form_component.html.heex:22 #: lib/cannery_web/live/pack_live/index.html.heex:50 -#: lib/cannery_web/live/range_live/index.html.heex:106 +#: lib/cannery_web/live/range_live/index.html.heex:95 #: lib/cannery_web/live/type_live/form_component.html.heex:21 #: lib/cannery_web/live/type_live/index.html.heex:29 #: lib/cannery_web/live/type_live/show.html.heex:46 @@ -1415,7 +1411,7 @@ msgid "Used up!" msgstr "" #: lib/cannery_web/live/pack_live/show.ex:41 -#: lib/cannery_web/live/range_live/index.ex:59 +#: lib/cannery_web/live/range_live/index.ex:60 #, elixir-autogen, elixir-format, fuzzy msgid "Edit Shot Record" msgstr "Editar Tiros RĂ©cord" @@ -1454,7 +1450,12 @@ msgstr "" msgid "Any" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:149 +#: lib/cannery_web/live/range_live/index.html.heex:138 #, elixir-autogen, elixir-format, fuzzy msgid "Dates" msgstr "Fecha" + +#: lib/cannery_web/live/range_live/index.html.heex:8 +#, elixir-autogen, elixir-format, fuzzy +msgid "No containers staged" +msgstr "Sin contenedores" diff --git a/priv/gettext/es/LC_MESSAGES/errors.po b/priv/gettext/es/LC_MESSAGES/errors.po index f3a3c70..5074dc8 100644 --- a/priv/gettext/es/LC_MESSAGES/errors.po +++ b/priv/gettext/es/LC_MESSAGES/errors.po @@ -23,7 +23,7 @@ msgstr "" ## Run "mix gettext.extract" to bring this file up to ## date. Leave "msgstr"s empty as changing them here has no ## effect: edit them in PO (.po) files instead. -#: lib/cannery/containers.ex:222 +#: lib/cannery/containers.ex:234 #, elixir-autogen, elixir-format msgid "Container must be empty before deleting" msgstr "El contenedor debe estar vacĂ­o antes de ser borrado" @@ -168,7 +168,7 @@ msgstr "No se ha podido procesar el nĂșmero de copias" msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" msgstr "NĂșmero invĂĄlido de copias, debe ser entre 1 y %{max}. Fue %{multiplier" -#: lib/cannery_web/live/range_live/index.html.heex:94 +#: lib/cannery_web/live/range_live/index.html.heex:83 #, elixir-autogen, elixir-format msgid "Your browser does not support the canvas element." msgstr "Su navegador no es compatible con el elemento lienzo." @@ -214,12 +214,12 @@ msgstr "" msgid "You must log in to access this page." msgstr "" -#: lib/cannery/ammo/pack.ex:98 +#: lib/cannery/ammo/pack.ex:101 #, elixir-autogen, elixir-format, fuzzy msgid "Please select a valid container" msgstr "Por favor escoja un tipo de municiĂłn y un contenedor" -#: lib/cannery/ammo/pack.ex:96 +#: lib/cannery/ammo/pack.ex:99 #, elixir-autogen, elixir-format, fuzzy msgid "Please select a valid type" msgstr "Por favor escoja un usuario y tipo de municiĂłn valido" diff --git a/priv/gettext/es/LC_MESSAGES/prompts.po b/priv/gettext/es/LC_MESSAGES/prompts.po index 1111884..e5ba31c 100644 --- a/priv/gettext/es/LC_MESSAGES/prompts.po +++ b/priv/gettext/es/LC_MESSAGES/prompts.po @@ -65,15 +65,15 @@ msgstr "" msgid "Are you sure you want to delete %{email}? This action is permanent!" msgstr "EstĂĄ seguro que desea eliminar %{email}? Esta acciĂłn es permanente!" -#: lib/cannery_web/live/container_live/index.html.heex:99 -#: lib/cannery_web/live/container_live/index.html.heex:157 +#: lib/cannery_web/live/container_live/index.html.heex:113 +#: lib/cannery_web/live/container_live/index.html.heex:171 #: lib/cannery_web/live/container_live/show.html.heex:45 #: lib/cannery_web/live/tag_live/index.html.heex:63 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete %{name}?" msgstr "EstĂĄ seguro que desea eliminar %{name}?" -#: lib/cannery_web/live/pack_live/index.html.heex:185 +#: lib/cannery_web/live/pack_live/index.html.heex:174 #: lib/cannery_web/live/pack_live/show.html.heex:69 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this ammo?" @@ -170,19 +170,14 @@ msgstr "Añadiendo..." msgid "Shots recorded successfully" msgstr "Tiros registrados exitosamente" -#: lib/cannery_web/live/range_live/index.html.heex:57 -#, elixir-autogen, elixir-format -msgid "Are you sure you want to unstage this ammo?" -msgstr "EstĂĄ seguro que desea desmontar esta municiĂłn?" - -#: lib/cannery_web/live/pack_live/show.ex:157 -#: lib/cannery_web/live/range_live/index.html.heex:189 +#: lib/cannery_web/live/pack_live/show.ex:147 +#: lib/cannery_web/live/range_live/index.html.heex:178 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this shot record?" msgstr "ÂżEstĂĄ segure que quiere borrar este rĂ©cord de disparos?" -#: lib/cannery_web/live/pack_live/show.ex:79 -#: lib/cannery_web/live/range_live/index.ex:98 +#: lib/cannery_web/live/pack_live/show.ex:69 +#: lib/cannery_web/live/range_live/index.ex:99 #, elixir-autogen, elixir-format msgid "Shot records deleted succesfully" msgstr "RĂ©cord de disparos borrado exitosamente" @@ -239,11 +234,6 @@ msgstr "Idioma cambiado exitosamente." msgid "Ammo deleted succesfully" msgstr "MuniciĂłn borrada exitosamente" -#: lib/cannery_web/live/range_live/index.ex:111 -#, elixir-autogen, elixir-format, fuzzy -msgid "Ammo unstaged succesfully" -msgstr "MuniciĂłn descargada exitosamente" - #: lib/cannery_web/live/pack_live/form_component.ex:141 #, elixir-autogen, elixir-format msgid "Ammo updated successfully" @@ -303,3 +293,8 @@ msgstr "EstĂĄ seguro que quiere eliminar la invitaciĂłn para %{name}?" #, elixir-autogen, elixir-format, fuzzy msgid "Are you sure you want to make %{invite_name} unlimited?" msgstr "EstĂĄ seguro que desea hacer %{name} ilimitado?" + +#: lib/cannery_web/live/range_live/index.ex:114 +#, elixir-autogen, elixir-format +msgid "Container unstaged succesfully" +msgstr "" diff --git a/priv/gettext/fr/LC_MESSAGES/actions.po b/priv/gettext/fr/LC_MESSAGES/actions.po index d6fa318..f2319fe 100644 --- a/priv/gettext/fr/LC_MESSAGES/actions.po +++ b/priv/gettext/fr/LC_MESSAGES/actions.po @@ -144,7 +144,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:65 +#: lib/cannery_web/live/container_live/show.html.heex:73 #, elixir-autogen, elixir-format msgid "Why not add one?" msgstr "Pourquoi pas en ajouter un ?" @@ -154,19 +154,14 @@ msgstr "Pourquoi pas en ajouter un ?" msgid "Add" msgstr "Ajouter" -#: lib/cannery_web/live/range_live/index.html.heex:17 -#, elixir-autogen, elixir-format -msgid "Stage ammo" -msgstr "Munition prĂ©parĂ©e" - #: lib/cannery_web/live/range_live/index.html.heex:13 #, elixir-autogen, elixir-format msgid "Why not get some ready to shoot?" msgstr "Pourquoi pas en prĂ©parer pour tirer ?" -#: lib/cannery_web/live/pack_live/index.html.heex:127 -#: lib/cannery_web/live/pack_live/show.html.heex:90 -#: lib/cannery_web/live/range_live/index.html.heex:65 +#: lib/cannery_web/live/pack_live/index.html.heex:116 +#: lib/cannery_web/live/pack_live/show.html.heex:84 +#: lib/cannery_web/live/range_live/index.html.heex:54 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "Enregistrer des tirs" @@ -212,8 +207,8 @@ msgid "View in Catalog" msgstr "Voir en catalogue" #: lib/cannery_web/components/move_pack_component.ex:77 -#: lib/cannery_web/live/pack_live/index.html.heex:138 -#: lib/cannery_web/live/pack_live/show.html.heex:86 +#: lib/cannery_web/live/pack_live/index.html.heex:127 +#: lib/cannery_web/live/pack_live/show.html.heex:80 #, elixir-autogen, elixir-format msgid "Move ammo" msgstr "" @@ -223,14 +218,12 @@ msgstr "" msgid "Set Unlimited" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:82 -#: lib/cannery_web/live/range_live/index.html.heex:61 +#: lib/cannery_web/live/container_live/show.html.heex:59 #, elixir-autogen, elixir-format msgid "Stage for range" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:81 -#: lib/cannery_web/live/range_live/index.html.heex:60 +#: lib/cannery_web/live/container_live/show.html.heex:58 #, elixir-autogen, elixir-format msgid "Unstage from range" msgstr "" @@ -240,8 +233,8 @@ msgstr "" msgid "Export Data as JSON" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:87 -#: lib/cannery_web/live/container_live/index.html.heex:145 +#: lib/cannery_web/live/container_live/index.html.heex:101 +#: lib/cannery_web/live/container_live/index.html.heex:159 #, elixir-autogen, elixir-format msgid "Clone %{container_name}" msgstr "" @@ -251,8 +244,8 @@ msgstr "" msgid "Copy invite link for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:104 -#: lib/cannery_web/live/container_live/index.html.heex:162 +#: lib/cannery_web/live/container_live/index.html.heex:118 +#: lib/cannery_web/live/container_live/index.html.heex:176 #: lib/cannery_web/live/container_live/show.html.heex:48 #, elixir-autogen, elixir-format msgid "Delete %{container_name}" @@ -268,8 +261,8 @@ msgstr "" msgid "Delete invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:77 -#: lib/cannery_web/live/container_live/index.html.heex:135 +#: lib/cannery_web/live/container_live/index.html.heex:91 +#: lib/cannery_web/live/container_live/index.html.heex:149 #: lib/cannery_web/live/container_live/show.html.heex:35 #, elixir-autogen, elixir-format msgid "Edit %{container_name}" @@ -285,56 +278,56 @@ msgstr "" msgid "Edit invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:120 +#: lib/cannery_web/live/container_live/index.html.heex:69 #: lib/cannery_web/live/range_live/index.html.heex:35 #, elixir-autogen, elixir-format, fuzzy msgid "Stage" msgstr "Munition prĂ©parĂ©e" -#: lib/cannery_web/live/container_live/index.html.heex:65 -#: lib/cannery_web/live/container_live/index.html.heex:124 +#: lib/cannery_web/live/container_live/index.html.heex:79 +#: lib/cannery_web/live/container_live/index.html.heex:138 #, elixir-autogen, elixir-format msgid "Tag %{container_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:119 +#: lib/cannery_web/live/container_live/index.html.heex:68 #: lib/cannery_web/live/range_live/index.html.heex:34 #, elixir-autogen, elixir-format msgid "Unstage" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:172 +#: lib/cannery_web/live/pack_live/index.html.heex:161 #, elixir-autogen, elixir-format, fuzzy msgid "Clone pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:187 +#: lib/cannery_web/live/pack_live/index.html.heex:176 #: lib/cannery_web/live/pack_live/show.html.heex:71 #, elixir-autogen, elixir-format, fuzzy msgid "Delete pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:160 +#: lib/cannery_web/live/pack_live/index.html.heex:149 #: lib/cannery_web/live/pack_live/show.html.heex:59 #, elixir-autogen, elixir-format, fuzzy msgid "Edit pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:139 -#: lib/cannery_web/live/pack_live/index.html.heex:148 +#: lib/cannery_web/live/container_live/show.html.heex:147 +#: lib/cannery_web/live/pack_live/index.html.heex:137 #: lib/cannery_web/live/type_live/show.html.heex:201 #, elixir-autogen, elixir-format, fuzzy msgid "View pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:159 -#: lib/cannery_web/live/range_live/index.html.heex:192 +#: lib/cannery_web/live/pack_live/show.ex:149 +#: lib/cannery_web/live/range_live/index.html.heex:181 #, elixir-autogen, elixir-format, fuzzy msgid "Delete shot record of %{shot_record_count} shots" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:144 -#: lib/cannery_web/live/range_live/index.html.heex:175 +#: lib/cannery_web/live/pack_live/show.ex:134 +#: lib/cannery_web/live/range_live/index.html.heex:164 #, elixir-autogen, elixir-format, fuzzy msgid "Edit shot record of %{shot_record_count} shots" msgstr "" @@ -370,3 +363,8 @@ msgstr "" #, elixir-autogen, elixir-format, fuzzy msgid "add a type first" msgstr "Ajoutez d'abord un type de munitions" + +#: lib/cannery_web/live/range_live/index.html.heex:17 +#, elixir-autogen, elixir-format +msgid "Stage containers" +msgstr "" diff --git a/priv/gettext/fr/LC_MESSAGES/default.po b/priv/gettext/fr/LC_MESSAGES/default.po index a24096e..e32c650 100644 --- a/priv/gettext/fr/LC_MESSAGES/default.po +++ b/priv/gettext/fr/LC_MESSAGES/default.po @@ -117,7 +117,7 @@ msgstr "QuantitĂ©" msgid "Count:" msgstr "Quantité :" -#: lib/cannery_web/components/container_table_component.ex:46 +#: lib/cannery_web/components/container_table_component.ex:50 #: lib/cannery_web/live/container_live/form_component.html.heex:30 #: lib/cannery_web/live/type_live/form_component.html.heex:43 #, elixir-autogen, elixir-format @@ -189,7 +189,7 @@ msgstr "Invitations" msgid "Keep me logged in for 60 days" msgstr "Me garder authentifiĂ© durant 60 jours" -#: lib/cannery_web/components/container_table_component.ex:47 +#: lib/cannery_web/components/container_table_component.ex:51 #: lib/cannery_web/components/move_pack_component.ex:66 #: lib/cannery_web/live/container_live/form_component.html.heex:49 #, elixir-autogen, elixir-format @@ -224,7 +224,7 @@ msgstr "Boite de munition avec le sticker de fille d’animation" msgid "My cool ammo can" msgstr "Ma superbe boite de munition" -#: lib/cannery_web/components/container_table_component.ex:45 +#: lib/cannery_web/components/container_table_component.ex:49 #: lib/cannery_web/components/type_table_component.ex:152 #: lib/cannery_web/live/container_live/form_component.html.heex:21 #: lib/cannery_web/live/invite_live/form_component.html.heex:21 @@ -281,7 +281,7 @@ msgstr "Aucun tag" #: lib/cannery_web/components/add_shot_record_component.html.heex:38 #: lib/cannery_web/components/shot_record_table_component.ex:46 #: lib/cannery_web/live/pack_live/form_component.html.heex:75 -#: lib/cannery_web/live/pack_live/show.ex:90 +#: lib/cannery_web/live/pack_live/show.ex:80 #: lib/cannery_web/live/range_live/form_component.html.heex:30 #, elixir-autogen, elixir-format msgid "Notes" @@ -354,12 +354,12 @@ msgstr "Simple :" msgid "Steel" msgstr "Acier" -#: lib/cannery_web/live/pack_live/show.html.heex:100 +#: lib/cannery_web/live/pack_live/show.html.heex:94 #, elixir-autogen, elixir-format msgid "Stored in" msgstr "Est stockĂ© dans" -#: lib/cannery_web/components/container_table_component.ex:66 +#: lib/cannery_web/components/container_table_component.ex:73 #: lib/cannery_web/components/core_components/topbar.html.heex:28 #: lib/cannery_web/live/tag_live/index.ex:43 #: lib/cannery_web/live/tag_live/index.ex:53 @@ -391,7 +391,7 @@ msgstr "Le site web de suivi d’arme Ă  feux auto-hĂ©bergĂ©" msgid "Tracer" msgstr "Traceuse" -#: lib/cannery_web/components/container_table_component.ex:48 +#: lib/cannery_web/components/container_table_component.ex:52 #: lib/cannery_web/components/move_pack_component.ex:65 #: lib/cannery_web/components/pack_table_component.ex:108 #: lib/cannery_web/live/container_live/form_component.html.heex:40 @@ -421,15 +421,16 @@ msgstr "Utilisations restantes" 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:60 +#: lib/cannery_web/live/container_live/show.html.heex:68 #, elixir-autogen, elixir-format msgid "No tags for this container" msgstr "Aucun tag pour ce conteneur" +#: lib/cannery_web/components/container_table_component.ex:77 #: lib/cannery_web/components/core_components/topbar.html.heex:48 #: lib/cannery_web/components/pack_table_component.ex:80 -#: lib/cannery_web/live/range_live/index.ex:75 -#: lib/cannery_web/live/range_live/index.ex:85 +#: lib/cannery_web/live/range_live/index.ex:76 +#: lib/cannery_web/live/range_live/index.ex:86 #, elixir-autogen, elixir-format msgid "Range" msgstr "PortĂ©e" @@ -441,7 +442,7 @@ msgstr "JournĂ©e de stand" #: lib/cannery_web/components/add_shot_record_component.html.heex:49 #: lib/cannery_web/components/shot_record_table_component.ex:47 -#: lib/cannery_web/live/pack_live/show.ex:91 +#: lib/cannery_web/live/pack_live/show.ex:81 #: lib/cannery_web/live/range_live/form_component.html.heex:41 #, elixir-autogen, elixir-format msgid "Date" @@ -452,26 +453,21 @@ msgstr "Date" msgid "Shots fired" msgstr "Tirs rĂ©alisĂ©s" -#: lib/cannery_web/live/range_live/index.html.heex:8 -#, elixir-autogen, elixir-format -msgid "No ammo staged" -msgstr "Aucune munition sĂ©lectionnĂ©e" - #: lib/cannery_web/components/add_shot_record_component.html.heex:3 #: lib/cannery_web/live/pack_live/index.ex:35 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "Tirs enregistrĂ©s" -#: lib/cannery_web/live/range_live/index.html.heex:75 -#: lib/cannery_web/live/range_live/index.html.heex:159 +#: lib/cannery_web/live/range_live/index.html.heex:64 +#: lib/cannery_web/live/range_live/index.html.heex:148 #, elixir-autogen, elixir-format msgid "No shots recorded" msgstr "Aucun tir enregistrĂ©" #: lib/cannery_web/components/shot_record_table_component.ex:45 -#: lib/cannery_web/live/pack_live/show.ex:89 -#: lib/cannery_web/live/range_live/index.html.heex:89 +#: lib/cannery_web/live/pack_live/show.ex:79 +#: lib/cannery_web/live/range_live/index.html.heex:78 #, elixir-autogen, elixir-format msgid "Rounds shot" msgstr "Cartouches tirĂ©es" @@ -486,7 +482,7 @@ msgstr "DĂ©placer munition" msgid "No other containers" msgstr "Aucun autre conteneur" -#: lib/cannery_web/live/range_live/index.html.heex:80 +#: lib/cannery_web/live/range_live/index.html.heex:69 #, elixir-autogen, elixir-format msgid "Shot log" msgstr "ÉvĂšnements de tir" @@ -494,7 +490,7 @@ msgstr "ÉvĂšnements de tir" #: lib/cannery_web/components/core_components/pack_card.html.heex:42 #: lib/cannery_web/components/core_components/pack_card.html.heex:47 #: lib/cannery_web/components/pack_table_component.ex:181 -#: lib/cannery_web/components/pack_table_component.ex:264 +#: lib/cannery_web/components/pack_table_component.ex:263 #: lib/cannery_web/components/type_table_component.ex:273 #: lib/cannery_web/live/pack_live/show.html.heex:37 #: lib/cannery_web/live/pack_live/show.html.heex:42 @@ -567,13 +563,13 @@ msgid "Reconnecting..." msgstr "Reconnexion en cours
" #: lib/cannery_web/live/container_live/index.ex:28 -#: lib/cannery_web/live/container_live/show.ex:118 +#: lib/cannery_web/live/container_live/show.ex:130 #, elixir-autogen, elixir-format msgid "Edit %{name}" msgstr "Éditer %{name}" #: lib/cannery_web/live/container_live/index.ex:63 -#: lib/cannery_web/live/container_live/show.ex:119 +#: lib/cannery_web/live/container_live/show.ex:131 #, elixir-autogen, elixir-format msgid "Edit %{name} tags" msgstr "Éditer les tags de %{name}" @@ -586,7 +582,7 @@ msgid "Rounds:" msgstr "Cartouches :" #: lib/cannery_web/components/pack_table_component.ex:178 -#: lib/cannery_web/components/pack_table_component.ex:260 +#: lib/cannery_web/components/pack_table_component.ex:259 #: lib/cannery_web/components/type_table_component.ex:272 #: lib/cannery_web/live/type_live/show.html.heex:154 #, elixir-autogen, elixir-format @@ -618,7 +614,7 @@ msgstr "Nombre original :" msgid "Percentage left:" msgstr "Pourcentage restant :" -#: lib/cannery_web/live/pack_live/show.html.heex:113 +#: lib/cannery_web/live/pack_live/show.html.heex:107 #, elixir-autogen, elixir-format msgid "Rounds used" msgstr "Cartouches utilisĂ©es" @@ -649,8 +645,8 @@ msgid "Reset your password" msgstr "RĂ©initialiser votre mot de passe" #: lib/cannery_web/live/pack_live/show.ex:40 -#: lib/cannery_web/live/range_live/index.ex:51 -#: lib/cannery_web/live/range_live/index.ex:67 +#: lib/cannery_web/live/range_live/index.ex:52 +#: lib/cannery_web/live/range_live/index.ex:68 #, elixir-autogen, elixir-format msgid "Record Shots" msgstr "Enregistrer des tirs" @@ -708,7 +704,7 @@ msgstr "Éditer le type de munition" msgid "Move Ammo" msgstr "DĂ©placer munition" -#: lib/cannery_web/live/container_live/show.html.heex:117 +#: lib/cannery_web/live/container_live/show.html.heex:125 #, elixir-autogen, elixir-format, fuzzy msgid "No ammo in this container" msgstr "Aucun groupe de munition pour ce conteneur" @@ -718,7 +714,7 @@ msgstr "Aucun groupe de munition pour ce conteneur" msgid "Show Ammo" msgstr "Montrer le type de munition" -#: lib/cannery_web/live/pack_live/show.html.heex:105 +#: lib/cannery_web/live/pack_live/show.html.heex:99 #, elixir-autogen, elixir-format, fuzzy msgid "This ammo is not in a container" msgstr "Ce groupe de munition n’est pas dans un conteneur" @@ -759,31 +755,31 @@ msgstr "Conteneur" msgid "Show used" msgstr "" -#: lib/cannery_web/components/pack_table_component.ex:219 +#: lib/cannery_web/components/pack_table_component.ex:218 #: lib/cannery_web/live/pack_live/show.html.heex:19 #, elixir-autogen, elixir-format msgid "%{percentage}%" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:207 +#: lib/cannery_web/live/range_live/index.ex:215 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds shot: %{count}" msgstr "Cartouches tirĂ©es" -#: lib/cannery_web/components/container_table_component.ex:64 +#: lib/cannery_web/components/container_table_component.ex:68 #: lib/cannery_web/components/type_table_component.ex:122 #, elixir-autogen, elixir-format, fuzzy msgid "Packs" msgstr "Packages :" -#: lib/cannery_web/components/container_table_component.ex:65 +#: lib/cannery_web/components/container_table_component.ex:69 #: lib/cannery_web/components/type_table_component.ex:143 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds" msgstr "Cartouches :" #: lib/cannery_web/live/container_live/index.html.heex:40 -#: lib/cannery_web/live/container_live/show.html.heex:109 +#: lib/cannery_web/live/container_live/show.html.heex:117 #: lib/cannery_web/live/type_live/show.html.heex:170 #, elixir-autogen, elixir-format msgid "View as table" @@ -829,7 +825,7 @@ msgstr "" msgid "Used rounds:" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:91 +#: lib/cannery_web/live/range_live/index.html.heex:80 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds shot chart" msgstr "Cartouches tirĂ©es" @@ -936,7 +932,7 @@ msgid "Average CPR" msgstr "" #: lib/cannery_web/components/core_components/pack_card.html.heex:17 -#: lib/cannery_web/components/pack_table_component.ex:268 +#: lib/cannery_web/components/pack_table_component.ex:267 #, elixir-autogen, elixir-format msgid "Empty" msgstr "" @@ -1018,7 +1014,7 @@ msgstr "" msgid "Search tags" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:135 +#: lib/cannery_web/live/range_live/index.html.heex:124 #, elixir-autogen, elixir-format msgid "Search shot records" msgstr "" @@ -1153,12 +1149,12 @@ msgstr "" msgid "Really great weather" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:67 +#: lib/cannery_web/components/container_table_component.ex:74 #: lib/cannery_web/components/move_pack_component.ex:67 #: lib/cannery_web/components/pack_table_component.ex:62 #: lib/cannery_web/components/shot_record_table_component.ex:48 #: lib/cannery_web/components/type_table_component.ex:99 -#: lib/cannery_web/live/pack_live/show.ex:92 +#: lib/cannery_web/live/pack_live/show.ex:82 #, elixir-autogen, elixir-format msgid "Actions" msgstr "" @@ -1184,9 +1180,9 @@ msgstr "" msgid "Close modal" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:97 +#: lib/cannery_web/live/container_live/show.html.heex:105 #: lib/cannery_web/live/pack_live/index.html.heex:58 -#: lib/cannery_web/live/range_live/index.html.heex:114 +#: lib/cannery_web/live/range_live/index.html.heex:103 #: lib/cannery_web/live/type_live/index.html.heex:37 #, elixir-autogen, elixir-format msgid "All" @@ -1267,10 +1263,10 @@ msgstr "Aucune munition" msgid "None specified" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:100 +#: lib/cannery_web/live/container_live/show.html.heex:108 #: lib/cannery_web/live/pack_live/form_component.html.heex:30 #: lib/cannery_web/live/pack_live/index.html.heex:61 -#: lib/cannery_web/live/range_live/index.html.heex:117 +#: lib/cannery_web/live/range_live/index.html.heex:106 #: lib/cannery_web/live/type_live/form_component.html.heex:28 #: lib/cannery_web/live/type_live/index.html.heex:40 #: lib/cannery_web/live/type_live/show.html.heex:56 @@ -1293,10 +1289,10 @@ msgstr "Type d’amorce" msgid "Projectile" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:98 +#: lib/cannery_web/live/container_live/show.html.heex:106 #: lib/cannery_web/live/pack_live/form_component.html.heex:28 #: lib/cannery_web/live/pack_live/index.html.heex:59 -#: lib/cannery_web/live/range_live/index.html.heex:115 +#: lib/cannery_web/live/range_live/index.html.heex:104 #: lib/cannery_web/live/type_live/form_component.html.heex:26 #: lib/cannery_web/live/type_live/index.html.heex:38 #: lib/cannery_web/live/type_live/show.html.heex:54 @@ -1348,10 +1344,10 @@ msgstr "" msgid "Shot type:" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:99 +#: lib/cannery_web/live/container_live/show.html.heex:107 #: lib/cannery_web/live/pack_live/form_component.html.heex:29 #: lib/cannery_web/live/pack_live/index.html.heex:60 -#: lib/cannery_web/live/range_live/index.html.heex:116 +#: lib/cannery_web/live/range_live/index.html.heex:105 #: lib/cannery_web/live/type_live/form_component.html.heex:27 #: lib/cannery_web/live/type_live/index.html.heex:39 #: lib/cannery_web/live/type_live/show.html.heex:52 @@ -1393,10 +1389,10 @@ msgid "Wadding:" msgstr "" #: lib/cannery_web/components/type_table_component.ex:149 -#: lib/cannery_web/live/container_live/show.html.heex:91 +#: lib/cannery_web/live/container_live/show.html.heex:99 #: lib/cannery_web/live/pack_live/form_component.html.heex:22 #: lib/cannery_web/live/pack_live/index.html.heex:50 -#: lib/cannery_web/live/range_live/index.html.heex:106 +#: lib/cannery_web/live/range_live/index.html.heex:95 #: lib/cannery_web/live/type_live/form_component.html.heex:21 #: lib/cannery_web/live/type_live/index.html.heex:29 #: lib/cannery_web/live/type_live/show.html.heex:46 @@ -1416,7 +1412,7 @@ msgid "Used up!" msgstr "" #: lib/cannery_web/live/pack_live/show.ex:41 -#: lib/cannery_web/live/range_live/index.ex:59 +#: lib/cannery_web/live/range_live/index.ex:60 #, elixir-autogen, elixir-format, fuzzy msgid "Edit Shot Record" msgstr "Modifier les enregistrements de tir" @@ -1455,7 +1451,12 @@ msgstr "" msgid "Any" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:149 +#: lib/cannery_web/live/range_live/index.html.heex:138 #, elixir-autogen, elixir-format, fuzzy msgid "Dates" msgstr "Date" + +#: lib/cannery_web/live/range_live/index.html.heex:8 +#, elixir-autogen, elixir-format, fuzzy +msgid "No containers staged" +msgstr "Aucun conteneur" diff --git a/priv/gettext/fr/LC_MESSAGES/errors.po b/priv/gettext/fr/LC_MESSAGES/errors.po index 3605ee2..72c01c9 100644 --- a/priv/gettext/fr/LC_MESSAGES/errors.po +++ b/priv/gettext/fr/LC_MESSAGES/errors.po @@ -23,7 +23,7 @@ msgstr "" # # Run "mix gettext.extract" to bring this file up to # # date. Leave "msgstr"s empty as changing them here has no # # effect: edit them in PO (.po) files instead. -#: lib/cannery/containers.ex:222 +#: lib/cannery/containers.ex:234 #, elixir-autogen, elixir-format msgid "Container must be empty before deleting" msgstr "Le conteneur doit ĂȘtre vide pour ĂȘtre supprimĂ©" @@ -169,7 +169,7 @@ msgstr "Impossible d'analyser le nombre de copies" msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" msgstr "Nombre de copies invalide, doit ĂȘtre 1 et %{max}. ÉtĂ© %{multiplier}" -#: lib/cannery_web/live/range_live/index.html.heex:94 +#: lib/cannery_web/live/range_live/index.html.heex:83 #, elixir-autogen, elixir-format msgid "Your browser does not support the canvas element." msgstr "" @@ -215,12 +215,12 @@ msgstr "" msgid "You must log in to access this page." msgstr "" -#: lib/cannery/ammo/pack.ex:98 +#: lib/cannery/ammo/pack.ex:101 #, elixir-autogen, elixir-format, fuzzy msgid "Please select a valid container" msgstr "Veuillez choisir un type de munitions et un conteneur" -#: lib/cannery/ammo/pack.ex:96 +#: lib/cannery/ammo/pack.ex:99 #, elixir-autogen, elixir-format, fuzzy msgid "Please select a valid type" msgstr "Veuillez choisir un utilisateur valide et un groupe de munitions" diff --git a/priv/gettext/fr/LC_MESSAGES/prompts.po b/priv/gettext/fr/LC_MESSAGES/prompts.po index d49b4a0..5bee4d9 100644 --- a/priv/gettext/fr/LC_MESSAGES/prompts.po +++ b/priv/gettext/fr/LC_MESSAGES/prompts.po @@ -66,15 +66,15 @@ msgid "Are you sure you want to delete %{email}? This action is permanent!" msgstr "" "Êtes-vous certain·e de supprimer %{email} ? Cette action est dĂ©finitive !" -#: lib/cannery_web/live/container_live/index.html.heex:99 -#: lib/cannery_web/live/container_live/index.html.heex:157 +#: lib/cannery_web/live/container_live/index.html.heex:113 +#: lib/cannery_web/live/container_live/index.html.heex:171 #: lib/cannery_web/live/container_live/show.html.heex:45 #: lib/cannery_web/live/tag_live/index.html.heex:63 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete %{name}?" msgstr "Êtes-vous certain·e de supprimer %{name} ?" -#: lib/cannery_web/live/pack_live/index.html.heex:185 +#: lib/cannery_web/live/pack_live/index.html.heex:174 #: lib/cannery_web/live/pack_live/show.html.heex:69 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this ammo?" @@ -172,19 +172,14 @@ msgstr "Ajout en cours
" msgid "Shots recorded successfully" msgstr "Tirs enregistrĂ© avec succĂšs" -#: lib/cannery_web/live/range_live/index.html.heex:57 -#, elixir-autogen, elixir-format -msgid "Are you sure you want to unstage this ammo?" -msgstr "Êtes-vous certain·e de vouloir dĂ©sĂ©lectionner cette munition ?" - -#: lib/cannery_web/live/pack_live/show.ex:157 -#: lib/cannery_web/live/range_live/index.html.heex:189 +#: lib/cannery_web/live/pack_live/show.ex:147 +#: lib/cannery_web/live/range_live/index.html.heex:178 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this shot record?" msgstr "Êtes-vous certain·e de vouloir supprimer cet enregistrement de tir ?" -#: lib/cannery_web/live/pack_live/show.ex:79 -#: lib/cannery_web/live/range_live/index.ex:98 +#: lib/cannery_web/live/pack_live/show.ex:69 +#: lib/cannery_web/live/range_live/index.ex:99 #, elixir-autogen, elixir-format msgid "Shot records deleted succesfully" msgstr "Enregistrements de tir supprimĂ©s avec succĂšs" @@ -241,11 +236,6 @@ msgstr "Langue mise Ă  jour avec succĂšs." msgid "Ammo deleted succesfully" msgstr "Groupe de munition supprimĂ© avec succĂšs" -#: lib/cannery_web/live/range_live/index.ex:111 -#, elixir-autogen, elixir-format, fuzzy -msgid "Ammo unstaged succesfully" -msgstr "Groupe de munition dĂ©sĂ©lectionner avec succĂšs" - #: lib/cannery_web/live/pack_live/form_component.ex:141 #, elixir-autogen, elixir-format, fuzzy msgid "Ammo updated successfully" @@ -303,3 +293,8 @@ msgstr "Êtes-vous certain·e de supprimer l’invitation pour %{name} ?" #, elixir-autogen, elixir-format, fuzzy msgid "Are you sure you want to make %{invite_name} unlimited?" msgstr "Êtes-vous certain·e de vouloir rendre %{name} illimité ?" + +#: lib/cannery_web/live/range_live/index.ex:114 +#, elixir-autogen, elixir-format +msgid "Container unstaged succesfully" +msgstr "" diff --git a/priv/gettext/ga/LC_MESSAGES/actions.po b/priv/gettext/ga/LC_MESSAGES/actions.po index 8c60c4c..22dae39 100644 --- a/priv/gettext/ga/LC_MESSAGES/actions.po +++ b/priv/gettext/ga/LC_MESSAGES/actions.po @@ -142,7 +142,7 @@ msgstr "" msgid "Send instructions to reset password" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:65 +#: lib/cannery_web/live/container_live/show.html.heex:73 #, elixir-autogen, elixir-format msgid "Why not add one?" msgstr "" @@ -152,19 +152,14 @@ msgstr "" msgid "Add" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:17 -#, elixir-autogen, elixir-format -msgid "Stage ammo" -msgstr "" - #: lib/cannery_web/live/range_live/index.html.heex:13 #, elixir-autogen, elixir-format msgid "Why not get some ready to shoot?" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:127 -#: lib/cannery_web/live/pack_live/show.html.heex:90 -#: lib/cannery_web/live/range_live/index.html.heex:65 +#: lib/cannery_web/live/pack_live/index.html.heex:116 +#: lib/cannery_web/live/pack_live/show.html.heex:84 +#: lib/cannery_web/live/range_live/index.html.heex:54 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "" @@ -210,8 +205,8 @@ msgid "View in Catalog" msgstr "" #: lib/cannery_web/components/move_pack_component.ex:77 -#: lib/cannery_web/live/pack_live/index.html.heex:138 -#: lib/cannery_web/live/pack_live/show.html.heex:86 +#: lib/cannery_web/live/pack_live/index.html.heex:127 +#: lib/cannery_web/live/pack_live/show.html.heex:80 #, elixir-autogen, elixir-format msgid "Move ammo" msgstr "" @@ -221,14 +216,12 @@ msgstr "" msgid "Set Unlimited" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:82 -#: lib/cannery_web/live/range_live/index.html.heex:61 +#: lib/cannery_web/live/container_live/show.html.heex:59 #, elixir-autogen, elixir-format msgid "Stage for range" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:81 -#: lib/cannery_web/live/range_live/index.html.heex:60 +#: lib/cannery_web/live/container_live/show.html.heex:58 #, elixir-autogen, elixir-format msgid "Unstage from range" msgstr "" @@ -238,8 +231,8 @@ msgstr "" msgid "Export Data as JSON" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:87 -#: lib/cannery_web/live/container_live/index.html.heex:145 +#: lib/cannery_web/live/container_live/index.html.heex:101 +#: lib/cannery_web/live/container_live/index.html.heex:159 #, elixir-autogen, elixir-format msgid "Clone %{container_name}" msgstr "" @@ -249,8 +242,8 @@ msgstr "" msgid "Copy invite link for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:104 -#: lib/cannery_web/live/container_live/index.html.heex:162 +#: lib/cannery_web/live/container_live/index.html.heex:118 +#: lib/cannery_web/live/container_live/index.html.heex:176 #: lib/cannery_web/live/container_live/show.html.heex:48 #, elixir-autogen, elixir-format msgid "Delete %{container_name}" @@ -266,8 +259,8 @@ msgstr "" msgid "Delete invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:77 -#: lib/cannery_web/live/container_live/index.html.heex:135 +#: lib/cannery_web/live/container_live/index.html.heex:91 +#: lib/cannery_web/live/container_live/index.html.heex:149 #: lib/cannery_web/live/container_live/show.html.heex:35 #, elixir-autogen, elixir-format msgid "Edit %{container_name}" @@ -283,56 +276,56 @@ msgstr "" msgid "Edit invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:120 +#: lib/cannery_web/live/container_live/index.html.heex:69 #: lib/cannery_web/live/range_live/index.html.heex:35 #, elixir-autogen, elixir-format, fuzzy msgid "Stage" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:65 -#: lib/cannery_web/live/container_live/index.html.heex:124 +#: lib/cannery_web/live/container_live/index.html.heex:79 +#: lib/cannery_web/live/container_live/index.html.heex:138 #, elixir-autogen, elixir-format msgid "Tag %{container_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:119 +#: lib/cannery_web/live/container_live/index.html.heex:68 #: lib/cannery_web/live/range_live/index.html.heex:34 #, elixir-autogen, elixir-format msgid "Unstage" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:172 +#: lib/cannery_web/live/pack_live/index.html.heex:161 #, elixir-autogen, elixir-format, fuzzy msgid "Clone pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:187 +#: lib/cannery_web/live/pack_live/index.html.heex:176 #: lib/cannery_web/live/pack_live/show.html.heex:71 #, elixir-autogen, elixir-format, fuzzy msgid "Delete pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:160 +#: lib/cannery_web/live/pack_live/index.html.heex:149 #: lib/cannery_web/live/pack_live/show.html.heex:59 #, elixir-autogen, elixir-format, fuzzy msgid "Edit pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:139 -#: lib/cannery_web/live/pack_live/index.html.heex:148 +#: lib/cannery_web/live/container_live/show.html.heex:147 +#: lib/cannery_web/live/pack_live/index.html.heex:137 #: lib/cannery_web/live/type_live/show.html.heex:201 #, elixir-autogen, elixir-format, fuzzy msgid "View pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:159 -#: lib/cannery_web/live/range_live/index.html.heex:192 +#: lib/cannery_web/live/pack_live/show.ex:149 +#: lib/cannery_web/live/range_live/index.html.heex:181 #, elixir-autogen, elixir-format, fuzzy msgid "Delete shot record of %{shot_record_count} shots" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:144 -#: lib/cannery_web/live/range_live/index.html.heex:175 +#: lib/cannery_web/live/pack_live/show.ex:134 +#: lib/cannery_web/live/range_live/index.html.heex:164 #, elixir-autogen, elixir-format, fuzzy msgid "Edit shot record of %{shot_record_count} shots" msgstr "" @@ -368,3 +361,8 @@ msgstr "" #, elixir-autogen, elixir-format, fuzzy msgid "add a type first" msgstr "" + +#: lib/cannery_web/live/range_live/index.html.heex:17 +#, elixir-autogen, elixir-format +msgid "Stage containers" +msgstr "" diff --git a/priv/gettext/ga/LC_MESSAGES/default.po b/priv/gettext/ga/LC_MESSAGES/default.po index 943a5e3..829106c 100644 --- a/priv/gettext/ga/LC_MESSAGES/default.po +++ b/priv/gettext/ga/LC_MESSAGES/default.po @@ -115,7 +115,7 @@ msgstr "" msgid "Count:" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:46 +#: lib/cannery_web/components/container_table_component.ex:50 #: lib/cannery_web/live/container_live/form_component.html.heex:30 #: lib/cannery_web/live/type_live/form_component.html.heex:43 #, elixir-autogen, elixir-format @@ -187,7 +187,7 @@ msgstr "" msgid "Keep me logged in for 60 days" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:47 +#: lib/cannery_web/components/container_table_component.ex:51 #: lib/cannery_web/components/move_pack_component.ex:66 #: lib/cannery_web/live/container_live/form_component.html.heex:49 #, elixir-autogen, elixir-format @@ -222,7 +222,7 @@ msgstr "" msgid "My cool ammo can" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:45 +#: lib/cannery_web/components/container_table_component.ex:49 #: lib/cannery_web/components/type_table_component.ex:152 #: lib/cannery_web/live/container_live/form_component.html.heex:21 #: lib/cannery_web/live/invite_live/form_component.html.heex:21 @@ -279,7 +279,7 @@ msgstr "" #: lib/cannery_web/components/add_shot_record_component.html.heex:38 #: lib/cannery_web/components/shot_record_table_component.ex:46 #: lib/cannery_web/live/pack_live/form_component.html.heex:75 -#: lib/cannery_web/live/pack_live/show.ex:90 +#: lib/cannery_web/live/pack_live/show.ex:80 #: lib/cannery_web/live/range_live/form_component.html.heex:30 #, elixir-autogen, elixir-format msgid "Notes" @@ -350,12 +350,12 @@ msgstr "" msgid "Steel" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:100 +#: lib/cannery_web/live/pack_live/show.html.heex:94 #, elixir-autogen, elixir-format msgid "Stored in" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:66 +#: lib/cannery_web/components/container_table_component.ex:73 #: lib/cannery_web/components/core_components/topbar.html.heex:28 #: lib/cannery_web/live/tag_live/index.ex:43 #: lib/cannery_web/live/tag_live/index.ex:53 @@ -385,7 +385,7 @@ msgstr "" msgid "Tracer" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:48 +#: lib/cannery_web/components/container_table_component.ex:52 #: lib/cannery_web/components/move_pack_component.ex:65 #: lib/cannery_web/components/pack_table_component.ex:108 #: lib/cannery_web/live/container_live/form_component.html.heex:40 @@ -415,15 +415,16 @@ msgstr "" msgid "Your data stays with you, period" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:60 +#: lib/cannery_web/live/container_live/show.html.heex:68 #, elixir-autogen, elixir-format msgid "No tags for this container" msgstr "" +#: lib/cannery_web/components/container_table_component.ex:77 #: lib/cannery_web/components/core_components/topbar.html.heex:48 #: lib/cannery_web/components/pack_table_component.ex:80 -#: lib/cannery_web/live/range_live/index.ex:75 -#: lib/cannery_web/live/range_live/index.ex:85 +#: lib/cannery_web/live/range_live/index.ex:76 +#: lib/cannery_web/live/range_live/index.ex:86 #, elixir-autogen, elixir-format msgid "Range" msgstr "" @@ -435,7 +436,7 @@ msgstr "" #: lib/cannery_web/components/add_shot_record_component.html.heex:49 #: lib/cannery_web/components/shot_record_table_component.ex:47 -#: lib/cannery_web/live/pack_live/show.ex:91 +#: lib/cannery_web/live/pack_live/show.ex:81 #: lib/cannery_web/live/range_live/form_component.html.heex:41 #, elixir-autogen, elixir-format msgid "Date" @@ -446,26 +447,21 @@ msgstr "" msgid "Shots fired" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:8 -#, elixir-autogen, elixir-format -msgid "No ammo staged" -msgstr "" - #: lib/cannery_web/components/add_shot_record_component.html.heex:3 #: lib/cannery_web/live/pack_live/index.ex:35 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:75 -#: lib/cannery_web/live/range_live/index.html.heex:159 +#: lib/cannery_web/live/range_live/index.html.heex:64 +#: lib/cannery_web/live/range_live/index.html.heex:148 #, elixir-autogen, elixir-format msgid "No shots recorded" msgstr "" #: lib/cannery_web/components/shot_record_table_component.ex:45 -#: lib/cannery_web/live/pack_live/show.ex:89 -#: lib/cannery_web/live/range_live/index.html.heex:89 +#: lib/cannery_web/live/pack_live/show.ex:79 +#: lib/cannery_web/live/range_live/index.html.heex:78 #, elixir-autogen, elixir-format msgid "Rounds shot" msgstr "" @@ -480,7 +476,7 @@ msgstr "" msgid "No other containers" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:80 +#: lib/cannery_web/live/range_live/index.html.heex:69 #, elixir-autogen, elixir-format msgid "Shot log" msgstr "" @@ -488,7 +484,7 @@ msgstr "" #: lib/cannery_web/components/core_components/pack_card.html.heex:42 #: lib/cannery_web/components/core_components/pack_card.html.heex:47 #: lib/cannery_web/components/pack_table_component.ex:181 -#: lib/cannery_web/components/pack_table_component.ex:264 +#: lib/cannery_web/components/pack_table_component.ex:263 #: lib/cannery_web/components/type_table_component.ex:273 #: lib/cannery_web/live/pack_live/show.html.heex:37 #: lib/cannery_web/live/pack_live/show.html.heex:42 @@ -561,13 +557,13 @@ msgid "Reconnecting..." msgstr "" #: lib/cannery_web/live/container_live/index.ex:28 -#: lib/cannery_web/live/container_live/show.ex:118 +#: lib/cannery_web/live/container_live/show.ex:130 #, elixir-autogen, elixir-format msgid "Edit %{name}" msgstr "" #: lib/cannery_web/live/container_live/index.ex:63 -#: lib/cannery_web/live/container_live/show.ex:119 +#: lib/cannery_web/live/container_live/show.ex:131 #, elixir-autogen, elixir-format msgid "Edit %{name} tags" msgstr "" @@ -580,7 +576,7 @@ msgid "Rounds:" msgstr "" #: lib/cannery_web/components/pack_table_component.ex:178 -#: lib/cannery_web/components/pack_table_component.ex:260 +#: lib/cannery_web/components/pack_table_component.ex:259 #: lib/cannery_web/components/type_table_component.ex:272 #: lib/cannery_web/live/type_live/show.html.heex:154 #, elixir-autogen, elixir-format @@ -612,7 +608,7 @@ msgstr "" msgid "Percentage left:" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:113 +#: lib/cannery_web/live/pack_live/show.html.heex:107 #, elixir-autogen, elixir-format msgid "Rounds used" msgstr "" @@ -643,8 +639,8 @@ msgid "Reset your password" msgstr "" #: lib/cannery_web/live/pack_live/show.ex:40 -#: lib/cannery_web/live/range_live/index.ex:51 -#: lib/cannery_web/live/range_live/index.ex:67 +#: lib/cannery_web/live/range_live/index.ex:52 +#: lib/cannery_web/live/range_live/index.ex:68 #, elixir-autogen, elixir-format msgid "Record Shots" msgstr "" @@ -702,7 +698,7 @@ msgstr "" msgid "Move Ammo" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:117 +#: lib/cannery_web/live/container_live/show.html.heex:125 #, elixir-autogen, elixir-format msgid "No ammo in this container" msgstr "" @@ -712,7 +708,7 @@ msgstr "" msgid "Show Ammo" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:105 +#: lib/cannery_web/live/pack_live/show.html.heex:99 #, elixir-autogen, elixir-format msgid "This ammo is not in a container" msgstr "" @@ -752,31 +748,31 @@ msgstr "" msgid "Show used" msgstr "" -#: lib/cannery_web/components/pack_table_component.ex:219 +#: lib/cannery_web/components/pack_table_component.ex:218 #: lib/cannery_web/live/pack_live/show.html.heex:19 #, elixir-autogen, elixir-format msgid "%{percentage}%" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:207 +#: lib/cannery_web/live/range_live/index.ex:215 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds shot: %{count}" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:64 +#: lib/cannery_web/components/container_table_component.ex:68 #: lib/cannery_web/components/type_table_component.ex:122 #, elixir-autogen, elixir-format, fuzzy msgid "Packs" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:65 +#: lib/cannery_web/components/container_table_component.ex:69 #: lib/cannery_web/components/type_table_component.ex:143 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds" msgstr "" #: lib/cannery_web/live/container_live/index.html.heex:40 -#: lib/cannery_web/live/container_live/show.html.heex:109 +#: lib/cannery_web/live/container_live/show.html.heex:117 #: lib/cannery_web/live/type_live/show.html.heex:170 #, elixir-autogen, elixir-format msgid "View as table" @@ -822,7 +818,7 @@ msgstr "" msgid "Used rounds:" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:91 +#: lib/cannery_web/live/range_live/index.html.heex:80 #, elixir-autogen, elixir-format, fuzzy msgid "Rounds shot chart" msgstr "" @@ -929,7 +925,7 @@ msgid "Average CPR" msgstr "" #: lib/cannery_web/components/core_components/pack_card.html.heex:17 -#: lib/cannery_web/components/pack_table_component.ex:268 +#: lib/cannery_web/components/pack_table_component.ex:267 #, elixir-autogen, elixir-format msgid "Empty" msgstr "" @@ -1011,7 +1007,7 @@ msgstr "" msgid "Search tags" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:135 +#: lib/cannery_web/live/range_live/index.html.heex:124 #, elixir-autogen, elixir-format msgid "Search shot records" msgstr "" @@ -1144,12 +1140,12 @@ msgstr "" msgid "Really great weather" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:67 +#: lib/cannery_web/components/container_table_component.ex:74 #: lib/cannery_web/components/move_pack_component.ex:67 #: lib/cannery_web/components/pack_table_component.ex:62 #: lib/cannery_web/components/shot_record_table_component.ex:48 #: lib/cannery_web/components/type_table_component.ex:99 -#: lib/cannery_web/live/pack_live/show.ex:92 +#: lib/cannery_web/live/pack_live/show.ex:82 #, elixir-autogen, elixir-format msgid "Actions" msgstr "" @@ -1175,9 +1171,9 @@ msgstr "" msgid "Close modal" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:97 +#: lib/cannery_web/live/container_live/show.html.heex:105 #: lib/cannery_web/live/pack_live/index.html.heex:58 -#: lib/cannery_web/live/range_live/index.html.heex:114 +#: lib/cannery_web/live/range_live/index.html.heex:103 #: lib/cannery_web/live/type_live/index.html.heex:37 #, elixir-autogen, elixir-format msgid "All" @@ -1258,10 +1254,10 @@ msgstr "" msgid "None specified" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:100 +#: lib/cannery_web/live/container_live/show.html.heex:108 #: lib/cannery_web/live/pack_live/form_component.html.heex:30 #: lib/cannery_web/live/pack_live/index.html.heex:61 -#: lib/cannery_web/live/range_live/index.html.heex:117 +#: lib/cannery_web/live/range_live/index.html.heex:106 #: lib/cannery_web/live/type_live/form_component.html.heex:28 #: lib/cannery_web/live/type_live/index.html.heex:40 #: lib/cannery_web/live/type_live/show.html.heex:56 @@ -1284,10 +1280,10 @@ msgstr "" msgid "Projectile" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:98 +#: lib/cannery_web/live/container_live/show.html.heex:106 #: lib/cannery_web/live/pack_live/form_component.html.heex:28 #: lib/cannery_web/live/pack_live/index.html.heex:59 -#: lib/cannery_web/live/range_live/index.html.heex:115 +#: lib/cannery_web/live/range_live/index.html.heex:104 #: lib/cannery_web/live/type_live/form_component.html.heex:26 #: lib/cannery_web/live/type_live/index.html.heex:38 #: lib/cannery_web/live/type_live/show.html.heex:54 @@ -1339,10 +1335,10 @@ msgstr "" msgid "Shot type:" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:99 +#: lib/cannery_web/live/container_live/show.html.heex:107 #: lib/cannery_web/live/pack_live/form_component.html.heex:29 #: lib/cannery_web/live/pack_live/index.html.heex:60 -#: lib/cannery_web/live/range_live/index.html.heex:116 +#: lib/cannery_web/live/range_live/index.html.heex:105 #: lib/cannery_web/live/type_live/form_component.html.heex:27 #: lib/cannery_web/live/type_live/index.html.heex:39 #: lib/cannery_web/live/type_live/show.html.heex:52 @@ -1384,10 +1380,10 @@ msgid "Wadding:" msgstr "" #: lib/cannery_web/components/type_table_component.ex:149 -#: lib/cannery_web/live/container_live/show.html.heex:91 +#: lib/cannery_web/live/container_live/show.html.heex:99 #: lib/cannery_web/live/pack_live/form_component.html.heex:22 #: lib/cannery_web/live/pack_live/index.html.heex:50 -#: lib/cannery_web/live/range_live/index.html.heex:106 +#: lib/cannery_web/live/range_live/index.html.heex:95 #: lib/cannery_web/live/type_live/form_component.html.heex:21 #: lib/cannery_web/live/type_live/index.html.heex:29 #: lib/cannery_web/live/type_live/show.html.heex:46 @@ -1407,7 +1403,7 @@ msgid "Used up!" msgstr "" #: lib/cannery_web/live/pack_live/show.ex:41 -#: lib/cannery_web/live/range_live/index.ex:59 +#: lib/cannery_web/live/range_live/index.ex:60 #, elixir-autogen, elixir-format, fuzzy msgid "Edit Shot Record" msgstr "" @@ -1446,7 +1442,12 @@ msgstr "" msgid "Any" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:149 +#: lib/cannery_web/live/range_live/index.html.heex:138 #, elixir-autogen, elixir-format, fuzzy msgid "Dates" msgstr "" + +#: lib/cannery_web/live/range_live/index.html.heex:8 +#, elixir-autogen, elixir-format, fuzzy +msgid "No containers staged" +msgstr "" diff --git a/priv/gettext/ga/LC_MESSAGES/errors.po b/priv/gettext/ga/LC_MESSAGES/errors.po index d9ad623..effb9e8 100644 --- a/priv/gettext/ga/LC_MESSAGES/errors.po +++ b/priv/gettext/ga/LC_MESSAGES/errors.po @@ -24,7 +24,7 @@ msgstr "" ## Run "mix gettext.extract" to bring this file up to ## date. Leave "msgstr"s empty as changing them here has no ## effect: edit them in PO (.po) files instead. -#: lib/cannery/containers.ex:222 +#: lib/cannery/containers.ex:234 #, elixir-autogen, elixir-format msgid "Container must be empty before deleting" msgstr "Caithfidh an coimeĂĄdĂĄn a bheidh follamh roimh scriosadh" @@ -168,7 +168,7 @@ msgstr "" msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:94 +#: lib/cannery_web/live/range_live/index.html.heex:83 #, elixir-autogen, elixir-format msgid "Your browser does not support the canvas element." msgstr "" @@ -214,12 +214,12 @@ msgstr "" msgid "You must log in to access this page." msgstr "" -#: lib/cannery/ammo/pack.ex:98 +#: lib/cannery/ammo/pack.ex:101 #, elixir-autogen, elixir-format, fuzzy msgid "Please select a valid container" msgstr "" -#: lib/cannery/ammo/pack.ex:96 +#: lib/cannery/ammo/pack.ex:99 #, elixir-autogen, elixir-format, fuzzy msgid "Please select a valid type" msgstr "" diff --git a/priv/gettext/ga/LC_MESSAGES/prompts.po b/priv/gettext/ga/LC_MESSAGES/prompts.po index 24a861f..e279bec 100644 --- a/priv/gettext/ga/LC_MESSAGES/prompts.po +++ b/priv/gettext/ga/LC_MESSAGES/prompts.po @@ -61,15 +61,15 @@ msgstr "" msgid "Are you sure you want to delete %{email}? This action is permanent!" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:99 -#: lib/cannery_web/live/container_live/index.html.heex:157 +#: lib/cannery_web/live/container_live/index.html.heex:113 +#: lib/cannery_web/live/container_live/index.html.heex:171 #: lib/cannery_web/live/container_live/show.html.heex:45 #: lib/cannery_web/live/tag_live/index.html.heex:63 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete %{name}?" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:185 +#: lib/cannery_web/live/pack_live/index.html.heex:174 #: lib/cannery_web/live/pack_live/show.html.heex:69 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this ammo?" @@ -161,19 +161,14 @@ msgstr "" msgid "Shots recorded successfully" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:57 -#, elixir-autogen, elixir-format -msgid "Are you sure you want to unstage this ammo?" -msgstr "" - -#: lib/cannery_web/live/pack_live/show.ex:157 -#: lib/cannery_web/live/range_live/index.html.heex:189 +#: lib/cannery_web/live/pack_live/show.ex:147 +#: lib/cannery_web/live/range_live/index.html.heex:178 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this shot record?" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:79 -#: lib/cannery_web/live/range_live/index.ex:98 +#: lib/cannery_web/live/pack_live/show.ex:69 +#: lib/cannery_web/live/range_live/index.ex:99 #, elixir-autogen, elixir-format msgid "Shot records deleted succesfully" msgstr "" @@ -230,11 +225,6 @@ msgstr "" msgid "Ammo deleted succesfully" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:111 -#, elixir-autogen, elixir-format -msgid "Ammo unstaged succesfully" -msgstr "" - #: lib/cannery_web/live/pack_live/form_component.ex:141 #, elixir-autogen, elixir-format msgid "Ammo updated successfully" @@ -295,3 +285,8 @@ msgstr "" #, elixir-autogen, elixir-format, fuzzy msgid "Are you sure you want to make %{invite_name} unlimited?" msgstr "" + +#: lib/cannery_web/live/range_live/index.ex:114 +#, elixir-autogen, elixir-format +msgid "Container unstaged succesfully" +msgstr "" diff --git a/priv/gettext/it/LC_MESSAGES/actions.po b/priv/gettext/it/LC_MESSAGES/actions.po index 5077674..57f6169 100644 --- a/priv/gettext/it/LC_MESSAGES/actions.po +++ b/priv/gettext/it/LC_MESSAGES/actions.po @@ -142,7 +142,7 @@ msgstr "" msgid "Send instructions to reset password" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:65 +#: lib/cannery_web/live/container_live/show.html.heex:73 #, elixir-autogen, elixir-format msgid "Why not add one?" msgstr "" @@ -152,19 +152,14 @@ msgstr "" msgid "Add" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:17 -#, elixir-autogen, elixir-format -msgid "Stage ammo" -msgstr "" - #: lib/cannery_web/live/range_live/index.html.heex:13 #, elixir-autogen, elixir-format msgid "Why not get some ready to shoot?" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:127 -#: lib/cannery_web/live/pack_live/show.html.heex:90 -#: lib/cannery_web/live/range_live/index.html.heex:65 +#: lib/cannery_web/live/pack_live/index.html.heex:116 +#: lib/cannery_web/live/pack_live/show.html.heex:84 +#: lib/cannery_web/live/range_live/index.html.heex:54 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "" @@ -210,8 +205,8 @@ msgid "View in Catalog" msgstr "" #: lib/cannery_web/components/move_pack_component.ex:77 -#: lib/cannery_web/live/pack_live/index.html.heex:138 -#: lib/cannery_web/live/pack_live/show.html.heex:86 +#: lib/cannery_web/live/pack_live/index.html.heex:127 +#: lib/cannery_web/live/pack_live/show.html.heex:80 #, elixir-autogen, elixir-format msgid "Move ammo" msgstr "" @@ -221,14 +216,12 @@ msgstr "" msgid "Set Unlimited" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:82 -#: lib/cannery_web/live/range_live/index.html.heex:61 +#: lib/cannery_web/live/container_live/show.html.heex:59 #, elixir-autogen, elixir-format msgid "Stage for range" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:81 -#: lib/cannery_web/live/range_live/index.html.heex:60 +#: lib/cannery_web/live/container_live/show.html.heex:58 #, elixir-autogen, elixir-format msgid "Unstage from range" msgstr "" @@ -238,8 +231,8 @@ msgstr "" msgid "Export Data as JSON" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:87 -#: lib/cannery_web/live/container_live/index.html.heex:145 +#: lib/cannery_web/live/container_live/index.html.heex:101 +#: lib/cannery_web/live/container_live/index.html.heex:159 #, elixir-autogen, elixir-format msgid "Clone %{container_name}" msgstr "" @@ -249,8 +242,8 @@ msgstr "" msgid "Copy invite link for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:104 -#: lib/cannery_web/live/container_live/index.html.heex:162 +#: lib/cannery_web/live/container_live/index.html.heex:118 +#: lib/cannery_web/live/container_live/index.html.heex:176 #: lib/cannery_web/live/container_live/show.html.heex:48 #, elixir-autogen, elixir-format msgid "Delete %{container_name}" @@ -266,8 +259,8 @@ msgstr "" msgid "Delete invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:77 -#: lib/cannery_web/live/container_live/index.html.heex:135 +#: lib/cannery_web/live/container_live/index.html.heex:91 +#: lib/cannery_web/live/container_live/index.html.heex:149 #: lib/cannery_web/live/container_live/show.html.heex:35 #, elixir-autogen, elixir-format msgid "Edit %{container_name}" @@ -283,56 +276,56 @@ msgstr "" msgid "Edit invite for %{invite_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:120 +#: lib/cannery_web/live/container_live/index.html.heex:69 #: lib/cannery_web/live/range_live/index.html.heex:35 #, elixir-autogen, elixir-format msgid "Stage" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:65 -#: lib/cannery_web/live/container_live/index.html.heex:124 +#: lib/cannery_web/live/container_live/index.html.heex:79 +#: lib/cannery_web/live/container_live/index.html.heex:138 #, elixir-autogen, elixir-format msgid "Tag %{container_name}" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:119 +#: lib/cannery_web/live/container_live/index.html.heex:68 #: lib/cannery_web/live/range_live/index.html.heex:34 #, elixir-autogen, elixir-format msgid "Unstage" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:172 +#: lib/cannery_web/live/pack_live/index.html.heex:161 #, elixir-autogen, elixir-format msgid "Clone pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:187 +#: lib/cannery_web/live/pack_live/index.html.heex:176 #: lib/cannery_web/live/pack_live/show.html.heex:71 #, elixir-autogen, elixir-format msgid "Delete pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:160 +#: lib/cannery_web/live/pack_live/index.html.heex:149 #: lib/cannery_web/live/pack_live/show.html.heex:59 #, elixir-autogen, elixir-format msgid "Edit pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:139 -#: lib/cannery_web/live/pack_live/index.html.heex:148 +#: lib/cannery_web/live/container_live/show.html.heex:147 +#: lib/cannery_web/live/pack_live/index.html.heex:137 #: lib/cannery_web/live/type_live/show.html.heex:201 #, elixir-autogen, elixir-format msgid "View pack of %{pack_count} bullets" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:159 -#: lib/cannery_web/live/range_live/index.html.heex:192 +#: lib/cannery_web/live/pack_live/show.ex:149 +#: lib/cannery_web/live/range_live/index.html.heex:181 #, elixir-autogen, elixir-format msgid "Delete shot record of %{shot_record_count} shots" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:144 -#: lib/cannery_web/live/range_live/index.html.heex:175 +#: lib/cannery_web/live/pack_live/show.ex:134 +#: lib/cannery_web/live/range_live/index.html.heex:164 #, elixir-autogen, elixir-format msgid "Edit shot record of %{shot_record_count} shots" msgstr "" @@ -368,3 +361,8 @@ msgstr "" #, elixir-autogen, elixir-format msgid "add a type first" msgstr "" + +#: lib/cannery_web/live/range_live/index.html.heex:17 +#, elixir-autogen, elixir-format +msgid "Stage containers" +msgstr "" diff --git a/priv/gettext/it/LC_MESSAGES/default.po b/priv/gettext/it/LC_MESSAGES/default.po index c62df19..ced2f1b 100644 --- a/priv/gettext/it/LC_MESSAGES/default.po +++ b/priv/gettext/it/LC_MESSAGES/default.po @@ -124,7 +124,7 @@ msgstr "" msgid "Count:" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:46 +#: lib/cannery_web/components/container_table_component.ex:50 #: lib/cannery_web/live/container_live/form_component.html.heex:30 #: lib/cannery_web/live/type_live/form_component.html.heex:43 #, elixir-autogen, elixir-format @@ -196,7 +196,7 @@ msgstr "" msgid "Keep me logged in for 60 days" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:47 +#: lib/cannery_web/components/container_table_component.ex:51 #: lib/cannery_web/components/move_pack_component.ex:66 #: lib/cannery_web/live/container_live/form_component.html.heex:49 #, elixir-autogen, elixir-format @@ -231,7 +231,7 @@ msgstr "" msgid "My cool ammo can" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:45 +#: lib/cannery_web/components/container_table_component.ex:49 #: lib/cannery_web/components/type_table_component.ex:152 #: lib/cannery_web/live/container_live/form_component.html.heex:21 #: lib/cannery_web/live/invite_live/form_component.html.heex:21 @@ -288,7 +288,7 @@ msgstr "" #: lib/cannery_web/components/add_shot_record_component.html.heex:38 #: lib/cannery_web/components/shot_record_table_component.ex:46 #: lib/cannery_web/live/pack_live/form_component.html.heex:75 -#: lib/cannery_web/live/pack_live/show.ex:90 +#: lib/cannery_web/live/pack_live/show.ex:80 #: lib/cannery_web/live/range_live/form_component.html.heex:30 #, elixir-autogen, elixir-format msgid "Notes" @@ -359,12 +359,12 @@ msgstr "" msgid "Steel" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:100 +#: lib/cannery_web/live/pack_live/show.html.heex:94 #, elixir-autogen, elixir-format msgid "Stored in" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:66 +#: lib/cannery_web/components/container_table_component.ex:73 #: lib/cannery_web/components/core_components/topbar.html.heex:28 #: lib/cannery_web/live/tag_live/index.ex:43 #: lib/cannery_web/live/tag_live/index.ex:53 @@ -394,7 +394,7 @@ msgstr "" msgid "Tracer" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:48 +#: lib/cannery_web/components/container_table_component.ex:52 #: lib/cannery_web/components/move_pack_component.ex:65 #: lib/cannery_web/components/pack_table_component.ex:108 #: lib/cannery_web/live/container_live/form_component.html.heex:40 @@ -424,15 +424,16 @@ msgstr "" msgid "Your data stays with you, period" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:60 +#: lib/cannery_web/live/container_live/show.html.heex:68 #, elixir-autogen, elixir-format msgid "No tags for this container" msgstr "" +#: lib/cannery_web/components/container_table_component.ex:77 #: lib/cannery_web/components/core_components/topbar.html.heex:48 #: lib/cannery_web/components/pack_table_component.ex:80 -#: lib/cannery_web/live/range_live/index.ex:75 -#: lib/cannery_web/live/range_live/index.ex:85 +#: lib/cannery_web/live/range_live/index.ex:76 +#: lib/cannery_web/live/range_live/index.ex:86 #, elixir-autogen, elixir-format msgid "Range" msgstr "" @@ -444,7 +445,7 @@ msgstr "" #: lib/cannery_web/components/add_shot_record_component.html.heex:49 #: lib/cannery_web/components/shot_record_table_component.ex:47 -#: lib/cannery_web/live/pack_live/show.ex:91 +#: lib/cannery_web/live/pack_live/show.ex:81 #: lib/cannery_web/live/range_live/form_component.html.heex:41 #, elixir-autogen, elixir-format msgid "Date" @@ -455,26 +456,21 @@ msgstr "" msgid "Shots fired" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:8 -#, elixir-autogen, elixir-format -msgid "No ammo staged" -msgstr "" - #: lib/cannery_web/components/add_shot_record_component.html.heex:3 #: lib/cannery_web/live/pack_live/index.ex:35 #, elixir-autogen, elixir-format msgid "Record shots" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:75 -#: lib/cannery_web/live/range_live/index.html.heex:159 +#: lib/cannery_web/live/range_live/index.html.heex:64 +#: lib/cannery_web/live/range_live/index.html.heex:148 #, elixir-autogen, elixir-format msgid "No shots recorded" msgstr "" #: lib/cannery_web/components/shot_record_table_component.ex:45 -#: lib/cannery_web/live/pack_live/show.ex:89 -#: lib/cannery_web/live/range_live/index.html.heex:89 +#: lib/cannery_web/live/pack_live/show.ex:79 +#: lib/cannery_web/live/range_live/index.html.heex:78 #, elixir-autogen, elixir-format msgid "Rounds shot" msgstr "" @@ -489,7 +485,7 @@ msgstr "" msgid "No other containers" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:80 +#: lib/cannery_web/live/range_live/index.html.heex:69 #, elixir-autogen, elixir-format msgid "Shot log" msgstr "" @@ -497,7 +493,7 @@ msgstr "" #: lib/cannery_web/components/core_components/pack_card.html.heex:42 #: lib/cannery_web/components/core_components/pack_card.html.heex:47 #: lib/cannery_web/components/pack_table_component.ex:181 -#: lib/cannery_web/components/pack_table_component.ex:264 +#: lib/cannery_web/components/pack_table_component.ex:263 #: lib/cannery_web/components/type_table_component.ex:273 #: lib/cannery_web/live/pack_live/show.html.heex:37 #: lib/cannery_web/live/pack_live/show.html.heex:42 @@ -570,13 +566,13 @@ msgid "Reconnecting..." msgstr "" #: lib/cannery_web/live/container_live/index.ex:28 -#: lib/cannery_web/live/container_live/show.ex:118 +#: lib/cannery_web/live/container_live/show.ex:130 #, elixir-autogen, elixir-format msgid "Edit %{name}" msgstr "" #: lib/cannery_web/live/container_live/index.ex:63 -#: lib/cannery_web/live/container_live/show.ex:119 +#: lib/cannery_web/live/container_live/show.ex:131 #, elixir-autogen, elixir-format msgid "Edit %{name} tags" msgstr "" @@ -589,7 +585,7 @@ msgid "Rounds:" msgstr "" #: lib/cannery_web/components/pack_table_component.ex:178 -#: lib/cannery_web/components/pack_table_component.ex:260 +#: lib/cannery_web/components/pack_table_component.ex:259 #: lib/cannery_web/components/type_table_component.ex:272 #: lib/cannery_web/live/type_live/show.html.heex:154 #, elixir-autogen, elixir-format @@ -621,7 +617,7 @@ msgstr "" msgid "Percentage left:" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:113 +#: lib/cannery_web/live/pack_live/show.html.heex:107 #, elixir-autogen, elixir-format msgid "Rounds used" msgstr "" @@ -652,8 +648,8 @@ msgid "Reset your password" msgstr "" #: lib/cannery_web/live/pack_live/show.ex:40 -#: lib/cannery_web/live/range_live/index.ex:51 -#: lib/cannery_web/live/range_live/index.ex:67 +#: lib/cannery_web/live/range_live/index.ex:52 +#: lib/cannery_web/live/range_live/index.ex:68 #, elixir-autogen, elixir-format msgid "Record Shots" msgstr "" @@ -711,7 +707,7 @@ msgstr "" msgid "Move Ammo" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:117 +#: lib/cannery_web/live/container_live/show.html.heex:125 #, elixir-autogen, elixir-format msgid "No ammo in this container" msgstr "" @@ -721,7 +717,7 @@ msgstr "" msgid "Show Ammo" msgstr "" -#: lib/cannery_web/live/pack_live/show.html.heex:105 +#: lib/cannery_web/live/pack_live/show.html.heex:99 #, elixir-autogen, elixir-format msgid "This ammo is not in a container" msgstr "" @@ -761,31 +757,31 @@ msgstr "" msgid "Show used" msgstr "" -#: lib/cannery_web/components/pack_table_component.ex:219 +#: lib/cannery_web/components/pack_table_component.ex:218 #: lib/cannery_web/live/pack_live/show.html.heex:19 #, elixir-autogen, elixir-format msgid "%{percentage}%" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:207 +#: lib/cannery_web/live/range_live/index.ex:215 #, elixir-autogen, elixir-format msgid "Rounds shot: %{count}" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:64 +#: lib/cannery_web/components/container_table_component.ex:68 #: lib/cannery_web/components/type_table_component.ex:122 #, elixir-autogen, elixir-format msgid "Packs" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:65 +#: lib/cannery_web/components/container_table_component.ex:69 #: lib/cannery_web/components/type_table_component.ex:143 #, elixir-autogen, elixir-format msgid "Rounds" msgstr "" #: lib/cannery_web/live/container_live/index.html.heex:40 -#: lib/cannery_web/live/container_live/show.html.heex:109 +#: lib/cannery_web/live/container_live/show.html.heex:117 #: lib/cannery_web/live/type_live/show.html.heex:170 #, elixir-autogen, elixir-format msgid "View as table" @@ -831,7 +827,7 @@ msgstr "" msgid "Used rounds:" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:91 +#: lib/cannery_web/live/range_live/index.html.heex:80 #, elixir-autogen, elixir-format msgid "Rounds shot chart" msgstr "" @@ -938,7 +934,7 @@ msgid "Average CPR" msgstr "" #: lib/cannery_web/components/core_components/pack_card.html.heex:17 -#: lib/cannery_web/components/pack_table_component.ex:268 +#: lib/cannery_web/components/pack_table_component.ex:267 #, elixir-autogen, elixir-format msgid "Empty" msgstr "" @@ -1020,7 +1016,7 @@ msgstr "" msgid "Search tags" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:135 +#: lib/cannery_web/live/range_live/index.html.heex:124 #, elixir-autogen, elixir-format msgid "Search shot records" msgstr "" @@ -1144,12 +1140,12 @@ msgstr "" msgid "Really great weather" msgstr "" -#: lib/cannery_web/components/container_table_component.ex:67 +#: lib/cannery_web/components/container_table_component.ex:74 #: lib/cannery_web/components/move_pack_component.ex:67 #: lib/cannery_web/components/pack_table_component.ex:62 #: lib/cannery_web/components/shot_record_table_component.ex:48 #: lib/cannery_web/components/type_table_component.ex:99 -#: lib/cannery_web/live/pack_live/show.ex:92 +#: lib/cannery_web/live/pack_live/show.ex:82 #, elixir-autogen, elixir-format msgid "Actions" msgstr "" @@ -1175,9 +1171,9 @@ msgstr "" msgid "Close modal" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:97 +#: lib/cannery_web/live/container_live/show.html.heex:105 #: lib/cannery_web/live/pack_live/index.html.heex:58 -#: lib/cannery_web/live/range_live/index.html.heex:114 +#: lib/cannery_web/live/range_live/index.html.heex:103 #: lib/cannery_web/live/type_live/index.html.heex:37 #, elixir-autogen, elixir-format msgid "All" @@ -1258,10 +1254,10 @@ msgstr "" msgid "None specified" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:100 +#: lib/cannery_web/live/container_live/show.html.heex:108 #: lib/cannery_web/live/pack_live/form_component.html.heex:30 #: lib/cannery_web/live/pack_live/index.html.heex:61 -#: lib/cannery_web/live/range_live/index.html.heex:117 +#: lib/cannery_web/live/range_live/index.html.heex:106 #: lib/cannery_web/live/type_live/form_component.html.heex:28 #: lib/cannery_web/live/type_live/index.html.heex:40 #: lib/cannery_web/live/type_live/show.html.heex:56 @@ -1284,10 +1280,10 @@ msgstr "" msgid "Projectile" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:98 +#: lib/cannery_web/live/container_live/show.html.heex:106 #: lib/cannery_web/live/pack_live/form_component.html.heex:28 #: lib/cannery_web/live/pack_live/index.html.heex:59 -#: lib/cannery_web/live/range_live/index.html.heex:115 +#: lib/cannery_web/live/range_live/index.html.heex:104 #: lib/cannery_web/live/type_live/form_component.html.heex:26 #: lib/cannery_web/live/type_live/index.html.heex:38 #: lib/cannery_web/live/type_live/show.html.heex:54 @@ -1339,10 +1335,10 @@ msgstr "" msgid "Shot type:" msgstr "" -#: lib/cannery_web/live/container_live/show.html.heex:99 +#: lib/cannery_web/live/container_live/show.html.heex:107 #: lib/cannery_web/live/pack_live/form_component.html.heex:29 #: lib/cannery_web/live/pack_live/index.html.heex:60 -#: lib/cannery_web/live/range_live/index.html.heex:116 +#: lib/cannery_web/live/range_live/index.html.heex:105 #: lib/cannery_web/live/type_live/form_component.html.heex:27 #: lib/cannery_web/live/type_live/index.html.heex:39 #: lib/cannery_web/live/type_live/show.html.heex:52 @@ -1384,10 +1380,10 @@ msgid "Wadding:" msgstr "" #: lib/cannery_web/components/type_table_component.ex:149 -#: lib/cannery_web/live/container_live/show.html.heex:91 +#: lib/cannery_web/live/container_live/show.html.heex:99 #: lib/cannery_web/live/pack_live/form_component.html.heex:22 #: lib/cannery_web/live/pack_live/index.html.heex:50 -#: lib/cannery_web/live/range_live/index.html.heex:106 +#: lib/cannery_web/live/range_live/index.html.heex:95 #: lib/cannery_web/live/type_live/form_component.html.heex:21 #: lib/cannery_web/live/type_live/index.html.heex:29 #: lib/cannery_web/live/type_live/show.html.heex:46 @@ -1407,7 +1403,7 @@ msgid "Used up!" msgstr "" #: lib/cannery_web/live/pack_live/show.ex:41 -#: lib/cannery_web/live/range_live/index.ex:59 +#: lib/cannery_web/live/range_live/index.ex:60 #, elixir-autogen, elixir-format msgid "Edit Shot Record" msgstr "" @@ -1446,7 +1442,12 @@ msgstr "" msgid "Any" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:149 +#: lib/cannery_web/live/range_live/index.html.heex:138 #, elixir-autogen, elixir-format, fuzzy msgid "Dates" msgstr "" + +#: lib/cannery_web/live/range_live/index.html.heex:8 +#, elixir-autogen, elixir-format, fuzzy +msgid "No containers staged" +msgstr "" diff --git a/priv/gettext/it/LC_MESSAGES/errors.po b/priv/gettext/it/LC_MESSAGES/errors.po index a848dca..40cb105 100644 --- a/priv/gettext/it/LC_MESSAGES/errors.po +++ b/priv/gettext/it/LC_MESSAGES/errors.po @@ -21,7 +21,7 @@ msgstr "" ## Run "mix gettext.extract" to bring this file up to ## date. Leave "msgstr"s empty as changing them here has no ## effect: edit them in PO (.po) files instead. -#: lib/cannery/containers.ex:222 +#: lib/cannery/containers.ex:234 #, elixir-autogen, elixir-format msgid "Container must be empty before deleting" msgstr "" @@ -163,7 +163,7 @@ msgstr "" msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:94 +#: lib/cannery_web/live/range_live/index.html.heex:83 #, elixir-autogen, elixir-format msgid "Your browser does not support the canvas element." msgstr "" @@ -209,12 +209,12 @@ msgstr "" msgid "You must log in to access this page." msgstr "" -#: lib/cannery/ammo/pack.ex:98 +#: lib/cannery/ammo/pack.ex:101 #, elixir-autogen, elixir-format, fuzzy msgid "Please select a valid container" msgstr "" -#: lib/cannery/ammo/pack.ex:96 +#: lib/cannery/ammo/pack.ex:99 #, elixir-autogen, elixir-format, fuzzy msgid "Please select a valid type" msgstr "" diff --git a/priv/gettext/it/LC_MESSAGES/prompts.po b/priv/gettext/it/LC_MESSAGES/prompts.po index d236bd2..a4abac2 100644 --- a/priv/gettext/it/LC_MESSAGES/prompts.po +++ b/priv/gettext/it/LC_MESSAGES/prompts.po @@ -61,15 +61,15 @@ msgstr "" msgid "Are you sure you want to delete %{email}? This action is permanent!" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:99 -#: lib/cannery_web/live/container_live/index.html.heex:157 +#: lib/cannery_web/live/container_live/index.html.heex:113 +#: lib/cannery_web/live/container_live/index.html.heex:171 #: lib/cannery_web/live/container_live/show.html.heex:45 #: lib/cannery_web/live/tag_live/index.html.heex:63 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete %{name}?" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:185 +#: lib/cannery_web/live/pack_live/index.html.heex:174 #: lib/cannery_web/live/pack_live/show.html.heex:69 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this ammo?" @@ -161,19 +161,14 @@ msgstr "" msgid "Shots recorded successfully" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:57 -#, elixir-autogen, elixir-format -msgid "Are you sure you want to unstage this ammo?" -msgstr "" - -#: lib/cannery_web/live/pack_live/show.ex:157 -#: lib/cannery_web/live/range_live/index.html.heex:189 +#: lib/cannery_web/live/pack_live/show.ex:147 +#: lib/cannery_web/live/range_live/index.html.heex:178 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this shot record?" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:79 -#: lib/cannery_web/live/range_live/index.ex:98 +#: lib/cannery_web/live/pack_live/show.ex:69 +#: lib/cannery_web/live/range_live/index.ex:99 #, elixir-autogen, elixir-format msgid "Shot records deleted succesfully" msgstr "" @@ -230,11 +225,6 @@ msgstr "" msgid "Ammo deleted succesfully" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:111 -#, elixir-autogen, elixir-format -msgid "Ammo unstaged succesfully" -msgstr "" - #: lib/cannery_web/live/pack_live/form_component.ex:141 #, elixir-autogen, elixir-format msgid "Ammo updated successfully" @@ -292,3 +282,8 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Are you sure you want to make %{invite_name} unlimited?" msgstr "" + +#: lib/cannery_web/live/range_live/index.ex:114 +#, elixir-autogen, elixir-format +msgid "Container unstaged succesfully" +msgstr "" diff --git a/priv/gettext/prompts.pot b/priv/gettext/prompts.pot index 8f4e773..265298a 100644 --- a/priv/gettext/prompts.pot +++ b/priv/gettext/prompts.pot @@ -50,15 +50,15 @@ msgstr "" msgid "Are you sure you want to delete %{email}? This action is permanent!" msgstr "" -#: lib/cannery_web/live/container_live/index.html.heex:99 -#: lib/cannery_web/live/container_live/index.html.heex:157 +#: lib/cannery_web/live/container_live/index.html.heex:113 +#: lib/cannery_web/live/container_live/index.html.heex:171 #: lib/cannery_web/live/container_live/show.html.heex:45 #: lib/cannery_web/live/tag_live/index.html.heex:63 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete %{name}?" msgstr "" -#: lib/cannery_web/live/pack_live/index.html.heex:185 +#: lib/cannery_web/live/pack_live/index.html.heex:174 #: lib/cannery_web/live/pack_live/show.html.heex:69 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this ammo?" @@ -150,19 +150,14 @@ msgstr "" msgid "Shots recorded successfully" msgstr "" -#: lib/cannery_web/live/range_live/index.html.heex:57 -#, elixir-autogen, elixir-format -msgid "Are you sure you want to unstage this ammo?" -msgstr "" - -#: lib/cannery_web/live/pack_live/show.ex:157 -#: lib/cannery_web/live/range_live/index.html.heex:189 +#: lib/cannery_web/live/pack_live/show.ex:147 +#: lib/cannery_web/live/range_live/index.html.heex:178 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this shot record?" msgstr "" -#: lib/cannery_web/live/pack_live/show.ex:79 -#: lib/cannery_web/live/range_live/index.ex:98 +#: lib/cannery_web/live/pack_live/show.ex:69 +#: lib/cannery_web/live/range_live/index.ex:99 #, elixir-autogen, elixir-format msgid "Shot records deleted succesfully" msgstr "" @@ -219,11 +214,6 @@ msgstr "" msgid "Ammo deleted succesfully" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:111 -#, elixir-autogen, elixir-format -msgid "Ammo unstaged succesfully" -msgstr "" - #: lib/cannery_web/live/pack_live/form_component.ex:141 #, elixir-autogen, elixir-format msgid "Ammo updated successfully" @@ -281,3 +271,8 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Are you sure you want to make %{invite_name} unlimited?" msgstr "" + +#: lib/cannery_web/live/range_live/index.ex:114 +#, elixir-autogen, elixir-format +msgid "Container unstaged succesfully" +msgstr "" diff --git a/priv/repo/migrations/20250201041849_move_staged_to_containers.exs b/priv/repo/migrations/20250201041849_move_staged_to_containers.exs new file mode 100644 index 0000000..eec5b73 --- /dev/null +++ b/priv/repo/migrations/20250201041849_move_staged_to_containers.exs @@ -0,0 +1,13 @@ +defmodule Cannery.Repo.Migrations.MoveStagedToContainers do + use Ecto.Migration + + def change do + alter table(:packs) do + remove :staged + end + + alter table(:containers) do + add :staged, :boolean, default: false + end + end +end diff --git a/test/cannery/ammo_test.exs b/test/cannery/ammo_test.exs index 2d142a8..bf08f35 100644 --- a/test/cannery/ammo_test.exs +++ b/test/cannery/ammo_test.exs @@ -860,11 +860,13 @@ defmodule Cannery.AmmoTest do test "list_packs/2 returns all relevant packs including staged", %{ type: type, - container: container, pack: unstaged_pack, current_user: current_user } do - {1, [staged_pack]} = pack_fixture(%{staged: true}, type, container, current_user) + staged_container = + container_fixture(%{name: "fantastic container", staged: true}, current_user) + + {1, [staged_pack]} = pack_fixture(type, staged_container, current_user) assert Ammo.list_packs(current_user, staged: false) == [unstaged_pack] assert Ammo.list_packs(current_user, staged: true) == [staged_pack] diff --git a/test/cannery_web/controllers/export_controller_test.exs b/test/cannery_web/controllers/export_controller_test.exs index dd6df4e..f8b750a 100644 --- a/test/cannery_web/controllers/export_controller_test.exs +++ b/test/cannery_web/controllers/export_controller_test.exs @@ -50,7 +50,6 @@ defmodule CanneryWeb.ExportControllerTest do "notes" => pack.notes, "price_paid" => pack.price_paid, "lot_number" => pack.lot_number, - "staged" => pack.staged, "used_count" => ActivityLog.get_used_count(current_user, pack_id: pack.id), "original_count" => pack |> Ammo.get_original_count(current_user), "cpr" => pack |> Ammo.get_cpr(current_user), @@ -103,6 +102,7 @@ defmodule CanneryWeb.ExportControllerTest do "id" => container.id, "location" => container.location, "name" => container.name, + "staged" => container.staged, "tags" => [ %{ "id" => tag.id,