fix changesets
Some checks failed
continuous-integration/drone/tag Build is failing
continuous-integration/drone/push Build is failing

This commit is contained in:
shibao 2024-07-28 13:17:33 -04:00
parent f25c151956
commit 56a49ed2e3
22 changed files with 165 additions and 172 deletions

View File

@ -1,5 +1,6 @@
# v0.9.11 # v0.9.11
- Fix an issue with emails not being able to be sent for real this time - Fix an issue with emails not being able to be sent for real this time
- Fix some dropdowns not filling in the correct data
- Add debounces to more fields - Add debounces to more fields
- Update deps - Update deps

View File

@ -33,7 +33,9 @@ defmodule CanneryWeb.Components.AddShotRecordComponent do
) do ) do
params = shot_record_params |> process_params(pack) params = shot_record_params |> process_params(pack)
changeset = %ShotRecord{} |> ShotRecord.create_changeset(current_user, pack, params) changeset =
%ShotRecord{}
|> ShotRecord.create_changeset(current_user, pack, params)
changeset = changeset =
case changeset |> Changeset.apply_action(:validate) do case changeset |> Changeset.apply_action(:validate) do

View File

@ -19,7 +19,7 @@ defmodule CanneryWeb.ContainerLive.FormComponent do
@impl true @impl true
def handle_event("validate", %{"container" => container_params}, socket) do def handle_event("validate", %{"container" => container_params}, socket) do
{:noreply, socket |> assign_changeset(container_params)} {:noreply, socket |> assign_changeset(container_params, :validate)}
end end
def handle_event( def handle_event(
@ -32,14 +32,9 @@ defmodule CanneryWeb.ContainerLive.FormComponent do
defp assign_changeset( defp assign_changeset(
%{assigns: %{action: action, container: container, current_user: user}} = socket, %{assigns: %{action: action, container: container, current_user: user}} = socket,
container_params container_params,
changeset_action \\ nil
) do ) do
changeset_action =
case action do
create when create in [:new, :clone] -> :insert
:edit -> :update
end
changeset = changeset =
case action do case action do
create when create in [:new, :clone] -> create when create in [:new, :clone] ->
@ -50,10 +45,14 @@ defmodule CanneryWeb.ContainerLive.FormComponent do
end end
changeset = changeset =
if changeset_action do
case changeset |> Changeset.apply_action(changeset_action) do case changeset |> Changeset.apply_action(changeset_action) do
{:ok, _data} -> changeset {:ok, _data} -> changeset
{:error, changeset} -> changeset {:error, changeset} -> changeset
end end
else
changeset
end
socket |> assign(:changeset, changeset) socket |> assign(:changeset, changeset)
end end

View File

@ -19,7 +19,7 @@ defmodule CanneryWeb.InviteLive.FormComponent do
@impl true @impl true
def handle_event("validate", %{"invite" => invite_params}, socket) do def handle_event("validate", %{"invite" => invite_params}, socket) do
{:noreply, socket |> assign_changeset(invite_params)} {:noreply, socket |> assign_changeset(invite_params, :validate)}
end end
def handle_event("save", %{"invite" => invite_params}, %{assigns: %{action: action}} = socket) do def handle_event("save", %{"invite" => invite_params}, %{assigns: %{action: action}} = socket) do
@ -28,14 +28,9 @@ defmodule CanneryWeb.InviteLive.FormComponent do
defp assign_changeset( defp assign_changeset(
%{assigns: %{action: action, current_user: user, invite: invite}} = socket, %{assigns: %{action: action, current_user: user, invite: invite}} = socket,
invite_params invite_params,
changeset_action \\ nil
) do ) do
changeset_action =
case action do
:new -> :insert
:edit -> :update
end
changeset = changeset =
case action do case action do
:new -> Invite.create_changeset(user, "example_token", invite_params) :new -> Invite.create_changeset(user, "example_token", invite_params)
@ -43,10 +38,14 @@ defmodule CanneryWeb.InviteLive.FormComponent do
end end
changeset = changeset =
if changeset_action do
case changeset |> Changeset.apply_action(changeset_action) do case changeset |> Changeset.apply_action(changeset_action) do
{:ok, _data} -> changeset {:ok, _data} -> changeset
{:error, changeset} -> changeset {:error, changeset} -> changeset
end end
else
changeset
end
socket |> assign(:changeset, changeset) socket |> assign(:changeset, changeset)
end end

View File

@ -22,24 +22,13 @@ defmodule CanneryWeb.PackLive.FormComponent do
@spec update(Socket.t()) :: {:ok, Socket.t()} @spec update(Socket.t()) :: {:ok, Socket.t()}
def update(%{assigns: %{current_user: current_user}} = socket) do def update(%{assigns: %{current_user: current_user}} = socket) do
%{assigns: %{types: types, containers: containers}} =
socket = socket =
socket socket
|> assign(:pack_create_limit, @pack_create_limit) |> assign(:pack_create_limit, @pack_create_limit)
|> assign(:types, Ammo.list_types(current_user)) |> assign(:types, Ammo.list_types(current_user))
|> assign_new(:containers, fn -> Containers.list_containers(current_user) end) |> assign_new(:containers, fn -> Containers.list_containers(current_user) end)
params = {:ok, socket |> assign_changeset(%{})}
if types |> List.first() |> is_nil(),
do: %{},
else: %{} |> Map.put("type_id", types |> List.first() |> Map.get(:id))
params =
if containers |> List.first() |> is_nil(),
do: params,
else: params |> Map.put("container_id", containers |> List.first() |> Map.get(:id))
{:ok, socket |> assign_changeset(params)}
end end
@impl true @impl true
@ -92,10 +81,14 @@ defmodule CanneryWeb.PackLive.FormComponent do
end end
changeset = changeset =
case changeset |> Changeset.apply_action(changeset_action || default_action) do if changeset_action do
case changeset |> Changeset.apply_action(changeset_action) do
{:ok, _data} -> changeset {:ok, _data} -> changeset
{:error, changeset} -> changeset {:error, changeset} -> changeset
end end
else
changeset
end
socket |> assign(:changeset, changeset) socket |> assign(:changeset, changeset)
end end

View File

@ -71,25 +71,26 @@ defmodule CanneryWeb.RangeLive.FormComponent do
} }
} = socket, } = socket,
shot_record_params, shot_record_params,
action \\ nil changeset_action \\ nil
) do ) do
default_action = changeset =
case live_action do case live_action do
:add_shot_record -> :insert :add_shot_record ->
editing when editing in [:edit, :edit_shot_record] -> :update shot_record |> ShotRecord.create_changeset(user, pack, shot_record_params)
editing when editing in [:edit, :edit_shot_record] ->
shot_record |> ShotRecord.update_changeset(user, shot_record_params)
end end
changeset = changeset =
case default_action do if changeset_action do
:insert -> shot_record |> ShotRecord.create_changeset(user, pack, shot_record_params) case changeset |> Changeset.apply_action(changeset_action) do
:update -> shot_record |> ShotRecord.update_changeset(user, shot_record_params)
end
changeset =
case changeset |> Changeset.apply_action(action || default_action) do
{:ok, _data} -> changeset {:ok, _data} -> changeset
{:error, changeset} -> changeset {:error, changeset} -> changeset
end end
else
changeset
end
socket |> assign(:changeset, changeset) socket |> assign(:changeset, changeset)
end end

View File

@ -17,7 +17,7 @@ defmodule CanneryWeb.TagLive.FormComponent do
@impl true @impl true
def handle_event("validate", %{"tag" => tag_params}, socket) do def handle_event("validate", %{"tag" => tag_params}, socket) do
{:noreply, socket |> assign_changeset(tag_params)} {:noreply, socket |> assign_changeset(tag_params, :validate)}
end end
def handle_event("save", %{"tag" => tag_params}, %{assigns: %{action: action}} = socket) do def handle_event("save", %{"tag" => tag_params}, %{assigns: %{action: action}} = socket) do
@ -26,14 +26,9 @@ defmodule CanneryWeb.TagLive.FormComponent do
defp assign_changeset( defp assign_changeset(
%{assigns: %{action: action, current_user: user, tag: tag}} = socket, %{assigns: %{action: action, current_user: user, tag: tag}} = socket,
tag_params tag_params,
changeset_action \\ nil
) do ) do
changeset_action =
case action do
:new -> :insert
:edit -> :update
end
changeset = changeset =
case action do case action do
:new -> tag |> Tag.create_changeset(user, tag_params) :new -> tag |> Tag.create_changeset(user, tag_params)
@ -41,10 +36,14 @@ defmodule CanneryWeb.TagLive.FormComponent do
end end
changeset = changeset =
if changeset_action do
case changeset |> Changeset.apply_action(changeset_action) do case changeset |> Changeset.apply_action(changeset_action) do
{:ok, _data} -> changeset {:ok, _data} -> changeset
{:error, changeset} -> changeset {:error, changeset} -> changeset
end end
else
changeset
end
socket |> assign(:changeset, changeset) socket |> assign(:changeset, changeset)
end end

View File

@ -19,7 +19,7 @@ defmodule CanneryWeb.TypeLive.FormComponent do
@impl true @impl true
def handle_event("validate", %{"type" => type_params}, socket) do def handle_event("validate", %{"type" => type_params}, socket) do
{:noreply, socket |> assign_changeset(type_params)} {:noreply, socket |> assign_changeset(type_params, :validate)}
end end
def handle_event( def handle_event(
@ -32,14 +32,9 @@ defmodule CanneryWeb.TypeLive.FormComponent do
defp assign_changeset( defp assign_changeset(
%{assigns: %{action: action, type: type, current_user: user}} = socket, %{assigns: %{action: action, type: type, current_user: user}} = socket,
type_params type_params,
changeset_action \\ nil
) do ) do
changeset_action =
case action do
create when create in [:new, :clone] -> :insert
:edit -> :update
end
changeset = changeset =
case action do case action do
create when create in [:new, :clone] -> create when create in [:new, :clone] ->
@ -50,10 +45,14 @@ defmodule CanneryWeb.TypeLive.FormComponent do
end end
changeset = changeset =
if changeset_action do
case changeset |> Changeset.apply_action(changeset_action) do case changeset |> Changeset.apply_action(changeset_action) do
{:ok, _data} -> changeset {:ok, _data} -> changeset
{:error, changeset} -> changeset {:error, changeset} -> changeset
end end
else
changeset
end
socket |> assign(changeset: changeset) socket |> assign(changeset: changeset)
end end

View File

@ -158,12 +158,12 @@ msgstr ""
msgid "Tag could not be removed" msgid "Tag could not be removed"
msgstr "Tag konnte nicht gelöscht werden" msgstr "Tag konnte nicht gelöscht werden"
#: lib/cannery_web/live/pack_live/form_component.ex:141 #: lib/cannery_web/live/pack_live/form_component.ex:152
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Could not parse number of copies" msgid "Could not parse number of copies"
msgstr "Konnte die Anzahl der Kopien nicht verstehen" msgstr "Konnte die Anzahl der Kopien nicht verstehen"
#: lib/cannery_web/live/pack_live/form_component.ex:131 #: lib/cannery_web/live/pack_live/form_component.ex:142
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
msgstr "" msgstr ""

View File

@ -23,10 +23,10 @@ msgstr ""
## Run "mix gettext.extract" to bring this file up to ## Run "mix gettext.extract" to bring this file up to
## date. Leave "msgstr"s empty as changing them here has no ## date. Leave "msgstr"s empty as changing them here has no
## effect: edit them in PO (.po) files instead. ## effect: edit them in PO (.po) files instead.
#: lib/cannery_web/live/container_live/form_component.ex:77 #: lib/cannery_web/live/container_live/form_component.ex:88
#: lib/cannery_web/live/invite_live/form_component.ex:68 #: lib/cannery_web/live/invite_live/form_component.ex:79
#: lib/cannery_web/live/tag_live/form_component.ex:66 #: lib/cannery_web/live/tag_live/form_component.ex:77
#: lib/cannery_web/live/type_live/form_component.ex:76 #: lib/cannery_web/live/type_live/form_component.ex:87
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} created successfully" msgid "%{name} created successfully"
msgstr "%{name} erfolgreich erstellt" msgstr "%{name} erfolgreich erstellt"
@ -44,10 +44,10 @@ msgstr "%{name} erfolgreich gelöscht"
msgid "%{name} has been deleted" msgid "%{name} has been deleted"
msgstr "%{name} wurde gelöscht" msgstr "%{name} wurde gelöscht"
#: lib/cannery_web/live/container_live/form_component.ex:58 #: lib/cannery_web/live/container_live/form_component.ex:69
#: lib/cannery_web/live/invite_live/form_component.ex:50 #: lib/cannery_web/live/invite_live/form_component.ex:61
#: lib/cannery_web/live/tag_live/form_component.ex:48 #: lib/cannery_web/live/tag_live/form_component.ex:59
#: lib/cannery_web/live/type_live/form_component.ex:57 #: lib/cannery_web/live/type_live/form_component.ex:68
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} updated successfully" msgid "%{name} updated successfully"
msgstr "%{name} erfolgreich aktualisiert" msgstr "%{name} erfolgreich aktualisiert"
@ -166,7 +166,7 @@ msgstr "%{tag_name} wurde von %{container_name} entfernt"
msgid "Adding..." msgid "Adding..."
msgstr "Füge hinzu..." msgstr "Füge hinzu..."
#: lib/cannery_web/components/add_shot_record_component.ex:54 #: lib/cannery_web/components/add_shot_record_component.ex:62
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shots recorded successfully" msgid "Shots recorded successfully"
msgstr "Schüsse erfolgreich dokumentiert" msgstr "Schüsse erfolgreich dokumentiert"
@ -188,7 +188,7 @@ msgstr "Sind sie sicher, dass sie die Schießkladde löschen möchten?"
msgid "Shot records deleted succesfully" msgid "Shot records deleted succesfully"
msgstr "Schießkladde erfolgreich gelöscht" msgstr "Schießkladde erfolgreich gelöscht"
#: lib/cannery_web/live/range_live/form_component.ex:53 #: lib/cannery_web/live/range_live/form_component.ex:54
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shot records updated successfully" msgid "Shot records updated successfully"
msgstr "Schießkladde erfolgreich aktualisiert" msgstr "Schießkladde erfolgreich aktualisiert"
@ -245,12 +245,12 @@ msgstr "Munitionsgruppe erfolgreich gelöscht"
msgid "Ammo unstaged succesfully" msgid "Ammo unstaged succesfully"
msgstr "Munition erfolgreich demarkiert" msgstr "Munition erfolgreich demarkiert"
#: lib/cannery_web/live/pack_live/form_component.ex:107 #: lib/cannery_web/live/pack_live/form_component.ex:118
#, elixir-autogen, elixir-format, fuzzy #, elixir-autogen, elixir-format, fuzzy
msgid "Ammo updated successfully" msgid "Ammo updated successfully"
msgstr "Munitionsgruppe erfolgreich aktualisiert" msgstr "Munitionsgruppe erfolgreich aktualisiert"
#: lib/cannery_web/live/pack_live/form_component.ex:166 #: lib/cannery_web/live/pack_live/form_component.ex:177
#, elixir-autogen, elixir-format, fuzzy #, elixir-autogen, elixir-format, fuzzy
msgid "Ammo added successfully" msgid "Ammo added successfully"
msgid_plural "Ammo added successfully" msgid_plural "Ammo added successfully"

View File

@ -143,12 +143,12 @@ msgstr ""
msgid "Tag could not be removed" msgid "Tag could not be removed"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:141 #: lib/cannery_web/live/pack_live/form_component.ex:152
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Could not parse number of copies" msgid "Could not parse number of copies"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:131 #: lib/cannery_web/live/pack_live/form_component.ex:142
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
msgstr "" msgstr ""

View File

@ -10,10 +10,10 @@ msgid ""
msgstr "" msgstr ""
"Language: en\n" "Language: en\n"
#: lib/cannery_web/live/container_live/form_component.ex:77 #: lib/cannery_web/live/container_live/form_component.ex:88
#: lib/cannery_web/live/invite_live/form_component.ex:68 #: lib/cannery_web/live/invite_live/form_component.ex:79
#: lib/cannery_web/live/tag_live/form_component.ex:66 #: lib/cannery_web/live/tag_live/form_component.ex:77
#: lib/cannery_web/live/type_live/form_component.ex:76 #: lib/cannery_web/live/type_live/form_component.ex:87
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} created successfully" msgid "%{name} created successfully"
msgstr "" msgstr ""
@ -31,10 +31,10 @@ msgstr ""
msgid "%{name} has been deleted" msgid "%{name} has been deleted"
msgstr "" msgstr ""
#: lib/cannery_web/live/container_live/form_component.ex:58 #: lib/cannery_web/live/container_live/form_component.ex:69
#: lib/cannery_web/live/invite_live/form_component.ex:50 #: lib/cannery_web/live/invite_live/form_component.ex:61
#: lib/cannery_web/live/tag_live/form_component.ex:48 #: lib/cannery_web/live/tag_live/form_component.ex:59
#: lib/cannery_web/live/type_live/form_component.ex:57 #: lib/cannery_web/live/type_live/form_component.ex:68
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} updated successfully" msgid "%{name} updated successfully"
msgstr "" msgstr ""
@ -145,7 +145,7 @@ msgstr ""
msgid "Adding..." msgid "Adding..."
msgstr "" msgstr ""
#: lib/cannery_web/components/add_shot_record_component.ex:54 #: lib/cannery_web/components/add_shot_record_component.ex:62
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shots recorded successfully" msgid "Shots recorded successfully"
msgstr "" msgstr ""
@ -167,7 +167,7 @@ msgstr ""
msgid "Shot records deleted succesfully" msgid "Shot records deleted succesfully"
msgstr "" msgstr ""
#: lib/cannery_web/live/range_live/form_component.ex:53 #: lib/cannery_web/live/range_live/form_component.ex:54
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shot records updated successfully" msgid "Shot records updated successfully"
msgstr "" msgstr ""
@ -224,12 +224,12 @@ msgstr ""
msgid "Ammo unstaged succesfully" msgid "Ammo unstaged succesfully"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:107 #: lib/cannery_web/live/pack_live/form_component.ex:118
#, elixir-autogen, elixir-format, fuzzy #, elixir-autogen, elixir-format, fuzzy
msgid "Ammo updated successfully" msgid "Ammo updated successfully"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:166 #: lib/cannery_web/live/pack_live/form_component.ex:177
#, elixir-autogen, elixir-format, fuzzy #, elixir-autogen, elixir-format, fuzzy
msgid "Ammo added successfully" msgid "Ammo added successfully"
msgid_plural "Ammo added successfully" msgid_plural "Ammo added successfully"

View File

@ -142,12 +142,12 @@ msgstr ""
msgid "Tag could not be removed" msgid "Tag could not be removed"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:141 #: lib/cannery_web/live/pack_live/form_component.ex:152
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Could not parse number of copies" msgid "Could not parse number of copies"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:131 #: lib/cannery_web/live/pack_live/form_component.ex:142
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
msgstr "" msgstr ""

View File

@ -158,12 +158,12 @@ msgstr "Debe confirmar su cuenta e iniciar sesión para acceder a esta página."
msgid "Tag could not be removed" msgid "Tag could not be removed"
msgstr "La etiqueta no pudo ser eliminada" msgstr "La etiqueta no pudo ser eliminada"
#: lib/cannery_web/live/pack_live/form_component.ex:141 #: lib/cannery_web/live/pack_live/form_component.ex:152
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Could not parse number of copies" msgid "Could not parse number of copies"
msgstr "No se ha podido procesar el número de copias" msgstr "No se ha podido procesar el número de copias"
#: lib/cannery_web/live/pack_live/form_component.ex:131 #: lib/cannery_web/live/pack_live/form_component.ex:142
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" 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" msgstr "Número inválido de copias, debe ser entre 1 y %{max}. Fue %{multiplier"

View File

@ -23,10 +23,10 @@ msgstr ""
## Run "mix gettext.extract" to bring this file up to ## Run "mix gettext.extract" to bring this file up to
## date. Leave "msgstr"s empty as changing them here has no ## date. Leave "msgstr"s empty as changing them here has no
## effect: edit them in PO (.po) files instead. ## effect: edit them in PO (.po) files instead.
#: lib/cannery_web/live/container_live/form_component.ex:77 #: lib/cannery_web/live/container_live/form_component.ex:88
#: lib/cannery_web/live/invite_live/form_component.ex:68 #: lib/cannery_web/live/invite_live/form_component.ex:79
#: lib/cannery_web/live/tag_live/form_component.ex:66 #: lib/cannery_web/live/tag_live/form_component.ex:77
#: lib/cannery_web/live/type_live/form_component.ex:76 #: lib/cannery_web/live/type_live/form_component.ex:87
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} created successfully" msgid "%{name} created successfully"
msgstr "%{name} creado exitosamente" msgstr "%{name} creado exitosamente"
@ -44,10 +44,10 @@ msgstr "%{name} borrado exitosamente"
msgid "%{name} has been deleted" msgid "%{name} has been deleted"
msgstr "%{name} ha sido borrado" msgstr "%{name} ha sido borrado"
#: lib/cannery_web/live/container_live/form_component.ex:58 #: lib/cannery_web/live/container_live/form_component.ex:69
#: lib/cannery_web/live/invite_live/form_component.ex:50 #: lib/cannery_web/live/invite_live/form_component.ex:61
#: lib/cannery_web/live/tag_live/form_component.ex:48 #: lib/cannery_web/live/tag_live/form_component.ex:59
#: lib/cannery_web/live/type_live/form_component.ex:57 #: lib/cannery_web/live/type_live/form_component.ex:68
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} updated successfully" msgid "%{name} updated successfully"
msgstr "%{name} actualizado exitosamente" msgstr "%{name} actualizado exitosamente"
@ -165,7 +165,7 @@ msgstr "se ha removido %{tag_name} de %{container_name}"
msgid "Adding..." msgid "Adding..."
msgstr "Añadiendo..." msgstr "Añadiendo..."
#: lib/cannery_web/components/add_shot_record_component.ex:54 #: lib/cannery_web/components/add_shot_record_component.ex:62
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shots recorded successfully" msgid "Shots recorded successfully"
msgstr "Tiros registrados exitosamente" msgstr "Tiros registrados exitosamente"
@ -187,7 +187,7 @@ msgstr "¿Está segure que quiere borrar este récord de disparos?"
msgid "Shot records deleted succesfully" msgid "Shot records deleted succesfully"
msgstr "Récord de disparos borrado exitosamente" msgstr "Récord de disparos borrado exitosamente"
#: lib/cannery_web/live/range_live/form_component.ex:53 #: lib/cannery_web/live/range_live/form_component.ex:54
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shot records updated successfully" msgid "Shot records updated successfully"
msgstr "Récord de disparos actualizado exitosamente" msgstr "Récord de disparos actualizado exitosamente"
@ -244,12 +244,12 @@ msgstr "Munición borrada exitosamente"
msgid "Ammo unstaged succesfully" msgid "Ammo unstaged succesfully"
msgstr "Munición descargada exitosamente" msgstr "Munición descargada exitosamente"
#: lib/cannery_web/live/pack_live/form_component.ex:107 #: lib/cannery_web/live/pack_live/form_component.ex:118
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Ammo updated successfully" msgid "Ammo updated successfully"
msgstr "Munición actualizada exitosamente" msgstr "Munición actualizada exitosamente"
#: lib/cannery_web/live/pack_live/form_component.ex:166 #: lib/cannery_web/live/pack_live/form_component.ex:177
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Ammo added successfully" msgid "Ammo added successfully"
msgid_plural "Ammo added successfully" msgid_plural "Ammo added successfully"

View File

@ -159,12 +159,12 @@ msgstr ""
msgid "Tag could not be removed" msgid "Tag could not be removed"
msgstr "Le tag na pas pu être retiré" msgstr "Le tag na pas pu être retiré"
#: lib/cannery_web/live/pack_live/form_component.ex:141 #: lib/cannery_web/live/pack_live/form_component.ex:152
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Could not parse number of copies" msgid "Could not parse number of copies"
msgstr "Impossible d'analyser le nombre de copies" msgstr "Impossible d'analyser le nombre de copies"
#: lib/cannery_web/live/pack_live/form_component.ex:131 #: lib/cannery_web/live/pack_live/form_component.ex:142
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" 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}" msgstr "Nombre de copies invalide, doit être 1 et %{max}. Été %{multiplier}"

View File

@ -23,10 +23,10 @@ msgstr ""
## Run "mix gettext.extract" to bring this file up to ## Run "mix gettext.extract" to bring this file up to
## date. Leave "msgstr"s empty as changing them here has no ## date. Leave "msgstr"s empty as changing them here has no
## effect: edit them in PO (.po) files instead. ## effect: edit them in PO (.po) files instead.
#: lib/cannery_web/live/container_live/form_component.ex:77 #: lib/cannery_web/live/container_live/form_component.ex:88
#: lib/cannery_web/live/invite_live/form_component.ex:68 #: lib/cannery_web/live/invite_live/form_component.ex:79
#: lib/cannery_web/live/tag_live/form_component.ex:66 #: lib/cannery_web/live/tag_live/form_component.ex:77
#: lib/cannery_web/live/type_live/form_component.ex:76 #: lib/cannery_web/live/type_live/form_component.ex:87
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} created successfully" msgid "%{name} created successfully"
msgstr "%{name} créé· avec succès" msgstr "%{name} créé· avec succès"
@ -44,10 +44,10 @@ msgstr "%{name} supprimé· avec succès"
msgid "%{name} has been deleted" msgid "%{name} has been deleted"
msgstr "%{name} a été supprimé·e" msgstr "%{name} a été supprimé·e"
#: lib/cannery_web/live/container_live/form_component.ex:58 #: lib/cannery_web/live/container_live/form_component.ex:69
#: lib/cannery_web/live/invite_live/form_component.ex:50 #: lib/cannery_web/live/invite_live/form_component.ex:61
#: lib/cannery_web/live/tag_live/form_component.ex:48 #: lib/cannery_web/live/tag_live/form_component.ex:59
#: lib/cannery_web/live/type_live/form_component.ex:57 #: lib/cannery_web/live/type_live/form_component.ex:68
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} updated successfully" msgid "%{name} updated successfully"
msgstr "%{name} mis à jour avec succès" msgstr "%{name} mis à jour avec succès"
@ -167,7 +167,7 @@ msgstr "%{tag_name} a été retiré de %{container_name}"
msgid "Adding..." msgid "Adding..."
msgstr "Ajout en cours…" msgstr "Ajout en cours…"
#: lib/cannery_web/components/add_shot_record_component.ex:54 #: lib/cannery_web/components/add_shot_record_component.ex:62
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shots recorded successfully" msgid "Shots recorded successfully"
msgstr "Tirs enregistré avec succès" msgstr "Tirs enregistré avec succès"
@ -189,7 +189,7 @@ msgstr "Êtes-vous certain·e de vouloir supprimer cet enregistrement de tir?
msgid "Shot records deleted succesfully" msgid "Shot records deleted succesfully"
msgstr "Enregistrements de tir supprimés avec succès" msgstr "Enregistrements de tir supprimés avec succès"
#: lib/cannery_web/live/range_live/form_component.ex:53 #: lib/cannery_web/live/range_live/form_component.ex:54
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shot records updated successfully" msgid "Shot records updated successfully"
msgstr "Enregistrements de tir mis à jour avec succès" msgstr "Enregistrements de tir mis à jour avec succès"
@ -246,12 +246,12 @@ msgstr "Groupe de munition supprimé avec succès"
msgid "Ammo unstaged succesfully" msgid "Ammo unstaged succesfully"
msgstr "Groupe de munition désélectionner avec succès" msgstr "Groupe de munition désélectionner avec succès"
#: lib/cannery_web/live/pack_live/form_component.ex:107 #: lib/cannery_web/live/pack_live/form_component.ex:118
#, elixir-autogen, elixir-format, fuzzy #, elixir-autogen, elixir-format, fuzzy
msgid "Ammo updated successfully" msgid "Ammo updated successfully"
msgstr "Groupe de munition mis à jour avec succès" msgstr "Groupe de munition mis à jour avec succès"
#: lib/cannery_web/live/pack_live/form_component.ex:166 #: lib/cannery_web/live/pack_live/form_component.ex:177
#, elixir-autogen, elixir-format, fuzzy #, elixir-autogen, elixir-format, fuzzy
msgid "Ammo added successfully" msgid "Ammo added successfully"
msgid_plural "Ammo added successfully" msgid_plural "Ammo added successfully"

View File

@ -158,12 +158,12 @@ msgstr ""
msgid "Tag could not be removed" msgid "Tag could not be removed"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:141 #: lib/cannery_web/live/pack_live/form_component.ex:152
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Could not parse number of copies" msgid "Could not parse number of copies"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:131 #: lib/cannery_web/live/pack_live/form_component.ex:142
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
msgstr "" msgstr ""

View File

@ -21,10 +21,10 @@ msgstr ""
## Run "mix gettext.extract" to bring this file up to ## Run "mix gettext.extract" to bring this file up to
## date. Leave "msgstr"s empty as changing them here has no ## date. Leave "msgstr"s empty as changing them here has no
## effect: edit them in PO (.po) files instead. ## effect: edit them in PO (.po) files instead.
#: lib/cannery_web/live/container_live/form_component.ex:77 #: lib/cannery_web/live/container_live/form_component.ex:88
#: lib/cannery_web/live/invite_live/form_component.ex:68 #: lib/cannery_web/live/invite_live/form_component.ex:79
#: lib/cannery_web/live/tag_live/form_component.ex:66 #: lib/cannery_web/live/tag_live/form_component.ex:77
#: lib/cannery_web/live/type_live/form_component.ex:76 #: lib/cannery_web/live/type_live/form_component.ex:87
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} created successfully" msgid "%{name} created successfully"
msgstr "" msgstr ""
@ -42,10 +42,10 @@ msgstr ""
msgid "%{name} has been deleted" msgid "%{name} has been deleted"
msgstr "" msgstr ""
#: lib/cannery_web/live/container_live/form_component.ex:58 #: lib/cannery_web/live/container_live/form_component.ex:69
#: lib/cannery_web/live/invite_live/form_component.ex:50 #: lib/cannery_web/live/invite_live/form_component.ex:61
#: lib/cannery_web/live/tag_live/form_component.ex:48 #: lib/cannery_web/live/tag_live/form_component.ex:59
#: lib/cannery_web/live/type_live/form_component.ex:57 #: lib/cannery_web/live/type_live/form_component.ex:68
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} updated successfully" msgid "%{name} updated successfully"
msgstr "" msgstr ""
@ -156,7 +156,7 @@ msgstr ""
msgid "Adding..." msgid "Adding..."
msgstr "" msgstr ""
#: lib/cannery_web/components/add_shot_record_component.ex:54 #: lib/cannery_web/components/add_shot_record_component.ex:62
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shots recorded successfully" msgid "Shots recorded successfully"
msgstr "" msgstr ""
@ -178,7 +178,7 @@ msgstr ""
msgid "Shot records deleted succesfully" msgid "Shot records deleted succesfully"
msgstr "" msgstr ""
#: lib/cannery_web/live/range_live/form_component.ex:53 #: lib/cannery_web/live/range_live/form_component.ex:54
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shot records updated successfully" msgid "Shot records updated successfully"
msgstr "" msgstr ""
@ -235,12 +235,12 @@ msgstr ""
msgid "Ammo unstaged succesfully" msgid "Ammo unstaged succesfully"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:107 #: lib/cannery_web/live/pack_live/form_component.ex:118
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Ammo updated successfully" msgid "Ammo updated successfully"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:166 #: lib/cannery_web/live/pack_live/form_component.ex:177
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Ammo added successfully" msgid "Ammo added successfully"
msgid_plural "Ammo added successfully" msgid_plural "Ammo added successfully"

View File

@ -153,12 +153,12 @@ msgstr ""
msgid "Tag could not be removed" msgid "Tag could not be removed"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:141 #: lib/cannery_web/live/pack_live/form_component.ex:152
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Could not parse number of copies" msgid "Could not parse number of copies"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:131 #: lib/cannery_web/live/pack_live/form_component.ex:142
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}" msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
msgstr "" msgstr ""

View File

@ -21,10 +21,10 @@ msgstr ""
## Run "mix gettext.extract" to bring this file up to ## Run "mix gettext.extract" to bring this file up to
## date. Leave "msgstr"s empty as changing them here has no ## date. Leave "msgstr"s empty as changing them here has no
## effect: edit them in PO (.po) files instead. ## effect: edit them in PO (.po) files instead.
#: lib/cannery_web/live/container_live/form_component.ex:77 #: lib/cannery_web/live/container_live/form_component.ex:88
#: lib/cannery_web/live/invite_live/form_component.ex:68 #: lib/cannery_web/live/invite_live/form_component.ex:79
#: lib/cannery_web/live/tag_live/form_component.ex:66 #: lib/cannery_web/live/tag_live/form_component.ex:77
#: lib/cannery_web/live/type_live/form_component.ex:76 #: lib/cannery_web/live/type_live/form_component.ex:87
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} created successfully" msgid "%{name} created successfully"
msgstr "" msgstr ""
@ -42,10 +42,10 @@ msgstr ""
msgid "%{name} has been deleted" msgid "%{name} has been deleted"
msgstr "" msgstr ""
#: lib/cannery_web/live/container_live/form_component.ex:58 #: lib/cannery_web/live/container_live/form_component.ex:69
#: lib/cannery_web/live/invite_live/form_component.ex:50 #: lib/cannery_web/live/invite_live/form_component.ex:61
#: lib/cannery_web/live/tag_live/form_component.ex:48 #: lib/cannery_web/live/tag_live/form_component.ex:59
#: lib/cannery_web/live/type_live/form_component.ex:57 #: lib/cannery_web/live/type_live/form_component.ex:68
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} updated successfully" msgid "%{name} updated successfully"
msgstr "" msgstr ""
@ -156,7 +156,7 @@ msgstr ""
msgid "Adding..." msgid "Adding..."
msgstr "" msgstr ""
#: lib/cannery_web/components/add_shot_record_component.ex:54 #: lib/cannery_web/components/add_shot_record_component.ex:62
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shots recorded successfully" msgid "Shots recorded successfully"
msgstr "" msgstr ""
@ -178,7 +178,7 @@ msgstr ""
msgid "Shot records deleted succesfully" msgid "Shot records deleted succesfully"
msgstr "" msgstr ""
#: lib/cannery_web/live/range_live/form_component.ex:53 #: lib/cannery_web/live/range_live/form_component.ex:54
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shot records updated successfully" msgid "Shot records updated successfully"
msgstr "" msgstr ""
@ -235,12 +235,12 @@ msgstr ""
msgid "Ammo unstaged succesfully" msgid "Ammo unstaged succesfully"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:107 #: lib/cannery_web/live/pack_live/form_component.ex:118
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Ammo updated successfully" msgid "Ammo updated successfully"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:166 #: lib/cannery_web/live/pack_live/form_component.ex:177
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Ammo added successfully" msgid "Ammo added successfully"
msgid_plural "Ammo added successfully" msgid_plural "Ammo added successfully"

View File

@ -10,10 +10,10 @@
msgid "" msgid ""
msgstr "" msgstr ""
#: lib/cannery_web/live/container_live/form_component.ex:77 #: lib/cannery_web/live/container_live/form_component.ex:88
#: lib/cannery_web/live/invite_live/form_component.ex:68 #: lib/cannery_web/live/invite_live/form_component.ex:79
#: lib/cannery_web/live/tag_live/form_component.ex:66 #: lib/cannery_web/live/tag_live/form_component.ex:77
#: lib/cannery_web/live/type_live/form_component.ex:76 #: lib/cannery_web/live/type_live/form_component.ex:87
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} created successfully" msgid "%{name} created successfully"
msgstr "" msgstr ""
@ -31,10 +31,10 @@ msgstr ""
msgid "%{name} has been deleted" msgid "%{name} has been deleted"
msgstr "" msgstr ""
#: lib/cannery_web/live/container_live/form_component.ex:58 #: lib/cannery_web/live/container_live/form_component.ex:69
#: lib/cannery_web/live/invite_live/form_component.ex:50 #: lib/cannery_web/live/invite_live/form_component.ex:61
#: lib/cannery_web/live/tag_live/form_component.ex:48 #: lib/cannery_web/live/tag_live/form_component.ex:59
#: lib/cannery_web/live/type_live/form_component.ex:57 #: lib/cannery_web/live/type_live/form_component.ex:68
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "%{name} updated successfully" msgid "%{name} updated successfully"
msgstr "" msgstr ""
@ -145,7 +145,7 @@ msgstr ""
msgid "Adding..." msgid "Adding..."
msgstr "" msgstr ""
#: lib/cannery_web/components/add_shot_record_component.ex:54 #: lib/cannery_web/components/add_shot_record_component.ex:62
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shots recorded successfully" msgid "Shots recorded successfully"
msgstr "" msgstr ""
@ -167,7 +167,7 @@ msgstr ""
msgid "Shot records deleted succesfully" msgid "Shot records deleted succesfully"
msgstr "" msgstr ""
#: lib/cannery_web/live/range_live/form_component.ex:53 #: lib/cannery_web/live/range_live/form_component.ex:54
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Shot records updated successfully" msgid "Shot records updated successfully"
msgstr "" msgstr ""
@ -224,12 +224,12 @@ msgstr ""
msgid "Ammo unstaged succesfully" msgid "Ammo unstaged succesfully"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:107 #: lib/cannery_web/live/pack_live/form_component.ex:118
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Ammo updated successfully" msgid "Ammo updated successfully"
msgstr "" msgstr ""
#: lib/cannery_web/live/pack_live/form_component.ex:166 #: lib/cannery_web/live/pack_live/form_component.ex:177
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Ammo added successfully" msgid "Ammo added successfully"
msgid_plural "Ammo added successfully" msgid_plural "Ammo added successfully"