From a1efd7cc60e083edea8d3dc072b4a9e1792972c8 Mon Sep 17 00:00:00 2001 From: shibao Date: Fri, 1 Jul 2022 00:23:04 -0400 Subject: [PATCH] improve ammo group wording --- .../live/ammo_group_live/form_component.ex | 6 +- .../live/ammo_group_live/index.html.heex | 2 +- lib/cannery_web/live/ammo_group_live/show.ex | 8 +-- .../live/ammo_group_live/show.html.heex | 2 +- .../live/container_live/show.html.heex | 2 +- lib/cannery_web/live/range_live/index.ex | 2 +- priv/gettext/actions.pot | 6 +- priv/gettext/de/LC_MESSAGES/actions.po | 6 +- priv/gettext/de/LC_MESSAGES/default.po | 60 ++++++++++--------- priv/gettext/de/LC_MESSAGES/prompts.po | 40 +++++++------ priv/gettext/default.pot | 60 ++++++++++--------- priv/gettext/en/LC_MESSAGES/actions.po | 6 +- priv/gettext/en/LC_MESSAGES/default.po | 60 ++++++++++--------- priv/gettext/en/LC_MESSAGES/prompts.po | 40 +++++++------ priv/gettext/es/LC_MESSAGES/actions.po | 6 +- priv/gettext/es/LC_MESSAGES/default.po | 60 ++++++++++--------- priv/gettext/es/LC_MESSAGES/prompts.po | 40 +++++++------ priv/gettext/fr/LC_MESSAGES/actions.po | 6 +- priv/gettext/fr/LC_MESSAGES/default.po | 60 ++++++++++--------- priv/gettext/fr/LC_MESSAGES/prompts.po | 40 +++++++------ priv/gettext/prompts.pot | 40 +++++++------ .../cannery_web/live/ammo_group_live_test.exs | 28 ++++----- 22 files changed, 300 insertions(+), 280 deletions(-) diff --git a/lib/cannery_web/live/ammo_group_live/form_component.ex b/lib/cannery_web/live/ammo_group_live/form_component.ex index 213cef2a..2e79341f 100644 --- a/lib/cannery_web/live/ammo_group_live/form_component.ex +++ b/lib/cannery_web/live/ammo_group_live/form_component.ex @@ -85,7 +85,7 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do socket = case Ammo.update_ammo_group(ammo_group, ammo_group_params, current_user) do {:ok, _ammo_group} -> - prompt = dgettext("prompts", "Ammo group updated successfully") + prompt = dgettext("prompts", "Ammo updated successfully") socket |> put_flash(:info, prompt) |> push_redirect(to: return_to) {:error, %Changeset{} = changeset} -> @@ -146,8 +146,8 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do prompt = dngettext( "prompts", - "Ammo group created successfully", - "Ammo groups created successfully", + "Ammo added successfully", + "Ammo added successfully", count ) diff --git a/lib/cannery_web/live/ammo_group_live/index.html.heex b/lib/cannery_web/live/ammo_group_live/index.html.heex index d10ced30..831684ab 100644 --- a/lib/cannery_web/live/ammo_group_live/index.html.heex +++ b/lib/cannery_web/live/ammo_group_live/index.html.heex @@ -39,7 +39,7 @@ ) %> <% else %> - <%= live_patch(dgettext("actions", "New Ammo group"), + <%= live_patch(dgettext("actions", "Add Ammo"), to: Routes.ammo_group_index_path(Endpoint, :new), class: "btn btn-primary" ) %> diff --git a/lib/cannery_web/live/ammo_group_live/show.ex b/lib/cannery_web/live/ammo_group_live/show.ex index 58f2e1ed..6c8a7776 100644 --- a/lib/cannery_web/live/ammo_group_live/show.ex +++ b/lib/cannery_web/live/ammo_group_live/show.ex @@ -35,9 +35,9 @@ defmodule CanneryWeb.AmmoGroupLive.Show do defp page_title(:add_shot_group), do: gettext("Record Shots") defp page_title(:edit_shot_group), do: gettext("Edit Shot Records") - defp page_title(:move), do: gettext("Move Ammo group") - defp page_title(:show), do: gettext("Show Ammo group") - defp page_title(:edit), do: gettext("Edit Ammo group") + defp page_title(:move), do: gettext("Move Ammo") + defp page_title(:show), do: gettext("Show Ammo") + defp page_title(:edit), do: gettext("Edit Ammo") @impl true def handle_event( @@ -47,7 +47,7 @@ defmodule CanneryWeb.AmmoGroupLive.Show do ) do ammo_group |> Ammo.delete_ammo_group!(current_user) - prompt = dgettext("prompts", "Ammo group deleted succesfully") + prompt = dgettext("prompts", "Ammo deleted succesfully") redirect_to = Routes.ammo_group_index_path(socket, :index) {:noreply, socket |> put_flash(:info, prompt) |> push_redirect(to: redirect_to)} diff --git a/lib/cannery_web/live/ammo_group_live/show.html.heex b/lib/cannery_web/live/ammo_group_live/show.html.heex index de64360f..23c917fb 100644 --- a/lib/cannery_web/live/ammo_group_live/show.html.heex +++ b/lib/cannery_web/live/ammo_group_live/show.html.heex @@ -105,7 +105,7 @@ <.container_card container={@ammo_group.container} /> <% else %> - <%= gettext("This ammo group is not in a container") %> + <%= gettext("This ammo is not in a 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 55d6c5b7..43935798 100644 --- a/lib/cannery_web/live/container_live/show.html.heex +++ b/lib/cannery_web/live/container_live/show.html.heex @@ -75,7 +75,7 @@
<%= if @container.ammo_groups |> Enum.empty?() do %>

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

<% else %>
diff --git a/lib/cannery_web/live/range_live/index.ex b/lib/cannery_web/live/range_live/index.ex index ff711b7a..f9cda6fc 100644 --- a/lib/cannery_web/live/range_live/index.ex +++ b/lib/cannery_web/live/range_live/index.ex @@ -65,7 +65,7 @@ defmodule CanneryWeb.RangeLive.Index do {:ok, _ammo_group} = ammo_group |> Ammo.update_ammo_group(%{"staged" => !ammo_group.staged}, current_user) - prompt = dgettext("prompts", "Ammo group unstaged succesfully") + prompt = dgettext("prompts", "Ammo unstaged succesfully") {:noreply, socket |> put_flash(:info, prompt) |> display_shot_groups()} end diff --git a/priv/gettext/actions.pot b/priv/gettext/actions.pot index 106e2772..d0041811 100644 --- a/priv/gettext/actions.pot +++ b/priv/gettext/actions.pot @@ -12,6 +12,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:44 +#: lib/cannery_web/live/ammo_group_live/index.html.heex:42 msgid "Add Ammo" msgstr "" @@ -80,11 +81,6 @@ msgstr "" msgid "Make your first tag!" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.html.heex:42 -msgid "New Ammo group" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/index.html.heex:17 msgid "New Ammo type" diff --git a/priv/gettext/de/LC_MESSAGES/actions.po b/priv/gettext/de/LC_MESSAGES/actions.po index b3a5e01e..34833a77 100644 --- a/priv/gettext/de/LC_MESSAGES/actions.po +++ b/priv/gettext/de/LC_MESSAGES/actions.po @@ -25,6 +25,7 @@ msgstr "" ## effect: edit them in PO (.po) files instead. #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:44 +#: lib/cannery_web/live/ammo_group_live/index.html.heex:42 msgid "Add Ammo" msgstr "Munition hinzufügen" @@ -93,11 +94,6 @@ msgstr "Einloggen" msgid "Make your first tag!" msgstr "Erstellen Sie ihren ersten Tag!" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.html.heex:42 -msgid "New Ammo group" -msgstr "Neue Munitionsgruppe" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/index.html.heex:17 msgid "New Ammo type" diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po index 40077719..6d814b92 100644 --- a/priv/gettext/de/LC_MESSAGES/default.po +++ b/priv/gettext/de/LC_MESSAGES/default.po @@ -46,7 +46,7 @@ msgid "Admins:" msgstr "Admins:" #, elixir-autogen, elixir-format -#: lib/cannery_web/components/topbar.ex:50 +#: lib/cannery_web/components/topbar.ex:56 #: lib/cannery_web/live/ammo_group_live/index.html.heex:3 #: lib/cannery_web/live/range_live/index.ex:80 msgid "Ammo" @@ -173,7 +173,6 @@ msgstr "Einfache Anwendung:" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:38 -#: lib/cannery_web/live/ammo_group_live/show.ex:40 msgid "Edit Ammo group" msgstr "Munitionsgruppe bearbeiten" @@ -266,11 +265,6 @@ msgstr "Standort:" msgid "Magazine, Clip, Ammo Box, etc" msgstr "Magazin, Ladestreifen, Munitionskiste usw." -#, elixir-autogen, elixir-format -#: lib/cannery_web/components/topbar.ex:56 -msgid "Manage" -msgstr "Verwalten" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148 #: lib/cannery_web/live/ammo_type_live/index.ex:73 @@ -332,11 +326,6 @@ msgstr "Keine Munitionsarten" msgid "No ammo for this type" msgstr "Keine Munition dieser Art" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/container_live/show.html.heex:78 -msgid "No ammo groups in this container" -msgstr "Keine Munitionsgruppe in diesem Behälter" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/container_live/index.html.heex:8 msgid "No containers" @@ -426,11 +415,6 @@ msgstr "Unbegrenzt setzen" msgid "Settings" msgstr "Einstellungen" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/show.ex:39 -msgid "Show Ammo group" -msgstr "Munitionsgruppen anzeigen" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/show.ex:44 msgid "Show Ammo type" @@ -473,11 +457,6 @@ msgstr "Textfarbe" msgid "The self-hosted firearm tracker website" msgstr "Die selbst-gehostete Website zur Verwaltung von Schusswaffen" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/show.html.heex:108 -msgid "This ammo group is not in a container" -msgstr "Diese Munitionsgruppe ist nicht in einem Behälter" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132 #: lib/cannery_web/live/ammo_type_live/index.ex:69 @@ -572,11 +551,6 @@ msgstr "Für Schießplatz deselektieren" msgid "Record shots" msgstr "Schüsse dokumentieren" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_type_live/index.html.heex:3 -msgid "Ammo Types" -msgstr "Munitionsarten" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:49 msgid "Ammo groups" @@ -622,7 +596,6 @@ msgstr "Schießkladde" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:32 -#: lib/cannery_web/live/ammo_group_live/show.ex:38 msgid "Move Ammo group" msgstr "Munitionsgruppe verschieben" @@ -907,3 +880,34 @@ msgstr "Sende Bugs oder Erweiterungsvorschläge" #: lib/cannery_web/live/home_live.ex:147 msgid "View the source code" msgstr "Quellcode ansehen" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/components/topbar.ex:50 +#: lib/cannery_web/live/ammo_type_live/index.html.heex:3 +msgid "Catalog" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:40 +msgid "Edit Ammo" +msgstr "Munitionstyp bearbeiten" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:38 +msgid "Move Ammo" +msgstr "Munition verschieben" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/container_live/show.html.heex:78 +msgid "No ammo in this container" +msgstr "Keine Munitionsgruppe in diesem Behälter" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:39 +msgid "Show Ammo" +msgstr "Zeige Munitionsarten" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.html.heex:108 +msgid "This ammo is not in a container" +msgstr "Diese Munitionsgruppe ist nicht in einem Behälter" diff --git a/priv/gettext/de/LC_MESSAGES/prompts.po b/priv/gettext/de/LC_MESSAGES/prompts.po index ace0fa82..26ccc8e5 100644 --- a/priv/gettext/de/LC_MESSAGES/prompts.po +++ b/priv/gettext/de/LC_MESSAGES/prompts.po @@ -76,15 +76,9 @@ msgstr "Eine Mail zum Bestätigen ihre Mailadresse wurde Ihnen zugesandt." #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:56 -#: lib/cannery_web/live/ammo_group_live/show.ex:50 msgid "Ammo group deleted succesfully" msgstr "Munitionsgruppe erfolgreich gelöscht" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/form_component.ex:88 -msgid "Ammo group updated successfully" -msgstr "Munitionsgruppe erfolgreich aktualisiert" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/invite_live/index.html.heex:102 #: lib/cannery_web/live/invite_live/index.html.heex:131 @@ -220,11 +214,6 @@ msgstr "Schüsse erfolgreich dokumentiert" msgid "Are you sure you want to unstage this ammo?" msgstr "Sind sie sicher, dass Sie diese Munition demarkieren möchten?" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/range_live/index.ex:68 -msgid "Ammo group unstaged succesfully" -msgstr "Munition erfolgreich demarkiert" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/show.ex:130 #: lib/cannery_web/live/range_live/index.ex:128 @@ -273,13 +262,6 @@ msgstr "Sie müssen" msgid "Creating..." msgstr "Erstellen..." -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/form_component.ex:147 -msgid "Ammo group created successfully" -msgid_plural "Ammo groups created successfully" -msgstr[0] "Munitionsgruppe erfolgreich erstellt" -msgstr[1] "Munitionsgruppen erfolgreich erstellt" - #, elixir-autogen, elixir-format #: lib/cannery_web/templates/user_settings/edit.html.heex:136 msgid "Are you sure you want to change your language?" @@ -289,3 +271,25 @@ msgstr "Möchten Sie die Sprache wechseln?" #: lib/cannery_web/controllers/user_settings_controller.ex:65 msgid "Language updated successfully." msgstr "Spracheinstellung gespeichert." + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:50 +msgid "Ammo deleted succesfully" +msgstr "Munitionsgruppe erfolgreich gelöscht" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/range_live/index.ex:68 +msgid "Ammo unstaged succesfully" +msgstr "Munition erfolgreich demarkiert" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/form_component.ex:88 +msgid "Ammo updated successfully" +msgstr "Munitionsgruppe erfolgreich aktualisiert" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/form_component.ex:147 +msgid "Ammo added successfully" +msgid_plural "Ammo added successfully" +msgstr[0] "Munitionsgruppe erfolgreich aktualisiert" +msgstr[1] "Munitionsgruppe erfolgreich aktualisiert" diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 9b77b062..c44a98a0 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -31,7 +31,7 @@ msgid "Admins:" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/components/topbar.ex:50 +#: lib/cannery_web/components/topbar.ex:56 #: lib/cannery_web/live/ammo_group_live/index.html.heex:3 #: lib/cannery_web/live/range_live/index.ex:80 msgid "Ammo" @@ -158,7 +158,6 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:38 -#: lib/cannery_web/live/ammo_group_live/show.ex:40 msgid "Edit Ammo group" msgstr "" @@ -251,11 +250,6 @@ msgstr "" msgid "Magazine, Clip, Ammo Box, etc" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/components/topbar.ex:56 -msgid "Manage" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148 #: lib/cannery_web/live/ammo_type_live/index.ex:73 @@ -317,11 +311,6 @@ msgstr "" msgid "No ammo for this type" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/container_live/show.html.heex:78 -msgid "No ammo groups in this container" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/container_live/index.html.heex:8 msgid "No containers" @@ -409,11 +398,6 @@ msgstr "" msgid "Settings" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/show.ex:39 -msgid "Show Ammo group" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/show.ex:44 msgid "Show Ammo type" @@ -456,11 +440,6 @@ msgstr "" msgid "The self-hosted firearm tracker website" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/show.html.heex:108 -msgid "This ammo group is not in a container" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132 #: lib/cannery_web/live/ammo_type_live/index.ex:69 @@ -555,11 +534,6 @@ msgstr "" msgid "Record shots" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_type_live/index.html.heex:3 -msgid "Ammo Types" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:49 msgid "Ammo groups" @@ -605,7 +579,6 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:32 -#: lib/cannery_web/live/ammo_group_live/show.ex:38 msgid "Move Ammo group" msgstr "" @@ -890,3 +863,34 @@ msgstr "" #: lib/cannery_web/live/home_live.ex:147 msgid "View the source code" msgstr "" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/components/topbar.ex:50 +#: lib/cannery_web/live/ammo_type_live/index.html.heex:3 +msgid "Catalog" +msgstr "" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/live/ammo_group_live/show.ex:40 +msgid "Edit Ammo" +msgstr "" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/live/ammo_group_live/show.ex:38 +msgid "Move Ammo" +msgstr "" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/live/container_live/show.html.heex:78 +msgid "No ammo in this container" +msgstr "" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/live/ammo_group_live/show.ex:39 +msgid "Show Ammo" +msgstr "" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/live/ammo_group_live/show.html.heex:108 +msgid "This ammo is not in a container" +msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/actions.po b/priv/gettext/en/LC_MESSAGES/actions.po index 745fc22c..625025f4 100644 --- a/priv/gettext/en/LC_MESSAGES/actions.po +++ b/priv/gettext/en/LC_MESSAGES/actions.po @@ -13,6 +13,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:44 +#: lib/cannery_web/live/ammo_group_live/index.html.heex:42 msgid "Add Ammo" msgstr "" @@ -81,11 +82,6 @@ msgstr "" msgid "Make your first tag!" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.html.heex:42 -msgid "New Ammo group" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/index.html.heex:17 msgid "New Ammo type" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index dd06454e..29c7759c 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -32,7 +32,7 @@ msgid "Admins:" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/components/topbar.ex:50 +#: lib/cannery_web/components/topbar.ex:56 #: lib/cannery_web/live/ammo_group_live/index.html.heex:3 #: lib/cannery_web/live/range_live/index.ex:80 msgid "Ammo" @@ -159,7 +159,6 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:38 -#: lib/cannery_web/live/ammo_group_live/show.ex:40 msgid "Edit Ammo group" msgstr "" @@ -252,11 +251,6 @@ msgstr "" msgid "Magazine, Clip, Ammo Box, etc" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/components/topbar.ex:56 -msgid "Manage" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148 #: lib/cannery_web/live/ammo_type_live/index.ex:73 @@ -318,11 +312,6 @@ msgstr "" msgid "No ammo for this type" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/container_live/show.html.heex:78 -msgid "No ammo groups in this container" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/container_live/index.html.heex:8 msgid "No containers" @@ -410,11 +399,6 @@ msgstr "" msgid "Settings" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/show.ex:39 -msgid "Show Ammo group" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/show.ex:44 msgid "Show Ammo type" @@ -457,11 +441,6 @@ msgstr "" msgid "The self-hosted firearm tracker website" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/show.html.heex:108 -msgid "This ammo group is not in a container" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132 #: lib/cannery_web/live/ammo_type_live/index.ex:69 @@ -556,11 +535,6 @@ msgstr "" msgid "Record shots" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_type_live/index.html.heex:3 -msgid "Ammo Types" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:49 msgid "Ammo groups" @@ -606,7 +580,6 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:32 -#: lib/cannery_web/live/ammo_group_live/show.ex:38 msgid "Move Ammo group" msgstr "" @@ -891,3 +864,34 @@ msgstr "" #: lib/cannery_web/live/home_live.ex:147 msgid "View the source code" msgstr "" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/components/topbar.ex:50 +#: lib/cannery_web/live/ammo_type_live/index.html.heex:3 +msgid "Catalog" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:40 +msgid "Edit Ammo" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:38 +msgid "Move Ammo" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/container_live/show.html.heex:78 +msgid "No ammo in this container" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:39 +msgid "Show Ammo" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.html.heex:108 +msgid "This ammo is not in a container" +msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/prompts.po b/priv/gettext/en/LC_MESSAGES/prompts.po index 59926be5..ba314a0e 100644 --- a/priv/gettext/en/LC_MESSAGES/prompts.po +++ b/priv/gettext/en/LC_MESSAGES/prompts.po @@ -64,15 +64,9 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:56 -#: lib/cannery_web/live/ammo_group_live/show.ex:50 msgid "Ammo group deleted succesfully" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/form_component.ex:88 -msgid "Ammo group updated successfully" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/invite_live/index.html.heex:102 #: lib/cannery_web/live/invite_live/index.html.heex:131 @@ -200,11 +194,6 @@ msgstr "" msgid "Are you sure you want to unstage this ammo?" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/range_live/index.ex:68 -msgid "Ammo group unstaged succesfully" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/show.ex:130 #: lib/cannery_web/live/range_live/index.ex:128 @@ -253,13 +242,6 @@ msgstr "" msgid "Creating..." msgstr "" -#, elixir-autogen, elixir-format, fuzzy -#: lib/cannery_web/live/ammo_group_live/form_component.ex:147 -msgid "Ammo group created successfully" -msgid_plural "Ammo groups created successfully" -msgstr[0] "" -msgstr[1] "" - #, elixir-autogen, elixir-format #: lib/cannery_web/templates/user_settings/edit.html.heex:136 msgid "Are you sure you want to change your language?" @@ -269,3 +251,25 @@ msgstr "" #: lib/cannery_web/controllers/user_settings_controller.ex:65 msgid "Language updated successfully." msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:50 +msgid "Ammo deleted succesfully" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/range_live/index.ex:68 +msgid "Ammo unstaged succesfully" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/form_component.ex:88 +msgid "Ammo updated successfully" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/form_component.ex:147 +msgid "Ammo added successfully" +msgid_plural "Ammo added successfully" +msgstr[0] "" +msgstr[1] "" diff --git a/priv/gettext/es/LC_MESSAGES/actions.po b/priv/gettext/es/LC_MESSAGES/actions.po index 105d044e..e700ac51 100644 --- a/priv/gettext/es/LC_MESSAGES/actions.po +++ b/priv/gettext/es/LC_MESSAGES/actions.po @@ -23,6 +23,7 @@ msgstr "" ## effect: edit them in PO (.po) files instead. #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:44 +#: lib/cannery_web/live/ammo_group_live/index.html.heex:42 msgid "Add Ammo" msgstr "" @@ -91,11 +92,6 @@ msgstr "" msgid "Make your first tag!" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.html.heex:42 -msgid "New Ammo group" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/index.html.heex:17 msgid "New Ammo type" diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index 138220d1..d034d6a8 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -42,7 +42,7 @@ msgid "Admins:" msgstr "" #, elixir-autogen, elixir-format -#: lib/cannery_web/components/topbar.ex:50 +#: lib/cannery_web/components/topbar.ex:56 #: lib/cannery_web/live/ammo_group_live/index.html.heex:3 #: lib/cannery_web/live/range_live/index.ex:80 msgid "Ammo" @@ -169,7 +169,6 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:38 -#: lib/cannery_web/live/ammo_group_live/show.ex:40 msgid "Edit Ammo group" msgstr "" @@ -262,11 +261,6 @@ msgstr "" msgid "Magazine, Clip, Ammo Box, etc" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/components/topbar.ex:56 -msgid "Manage" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148 #: lib/cannery_web/live/ammo_type_live/index.ex:73 @@ -328,11 +322,6 @@ msgstr "" msgid "No ammo for this type" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/container_live/show.html.heex:78 -msgid "No ammo groups in this container" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/container_live/index.html.heex:8 msgid "No containers" @@ -420,11 +409,6 @@ msgstr "" msgid "Settings" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/show.ex:39 -msgid "Show Ammo group" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/show.ex:44 msgid "Show Ammo type" @@ -467,11 +451,6 @@ msgstr "" msgid "The self-hosted firearm tracker website" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/show.html.heex:108 -msgid "This ammo group is not in a container" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132 #: lib/cannery_web/live/ammo_type_live/index.ex:69 @@ -566,11 +545,6 @@ msgstr "" msgid "Record shots" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_type_live/index.html.heex:3 -msgid "Ammo Types" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:49 msgid "Ammo groups" @@ -616,7 +590,6 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:32 -#: lib/cannery_web/live/ammo_group_live/show.ex:38 msgid "Move Ammo group" msgstr "" @@ -901,3 +874,34 @@ msgstr "" #: lib/cannery_web/live/home_live.ex:147 msgid "View the source code" msgstr "" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/components/topbar.ex:50 +#: lib/cannery_web/live/ammo_type_live/index.html.heex:3 +msgid "Catalog" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:40 +msgid "Edit Ammo" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:38 +msgid "Move Ammo" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/container_live/show.html.heex:78 +msgid "No ammo in this container" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:39 +msgid "Show Ammo" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.html.heex:108 +msgid "This ammo is not in a container" +msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/prompts.po b/priv/gettext/es/LC_MESSAGES/prompts.po index ca90f0b5..5ffea52e 100644 --- a/priv/gettext/es/LC_MESSAGES/prompts.po +++ b/priv/gettext/es/LC_MESSAGES/prompts.po @@ -74,15 +74,9 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:56 -#: lib/cannery_web/live/ammo_group_live/show.ex:50 msgid "Ammo group deleted succesfully" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/form_component.ex:88 -msgid "Ammo group updated successfully" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/invite_live/index.html.heex:102 #: lib/cannery_web/live/invite_live/index.html.heex:131 @@ -210,11 +204,6 @@ msgstr "" msgid "Are you sure you want to unstage this ammo?" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/range_live/index.ex:68 -msgid "Ammo group unstaged succesfully" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/show.ex:130 #: lib/cannery_web/live/range_live/index.ex:128 @@ -263,13 +252,6 @@ msgstr "" msgid "Creating..." msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/form_component.ex:147 -msgid "Ammo group created successfully" -msgid_plural "Ammo groups created successfully" -msgstr[0] "" -msgstr[1] "" - #, elixir-autogen, elixir-format #: lib/cannery_web/templates/user_settings/edit.html.heex:136 msgid "Are you sure you want to change your language?" @@ -279,3 +261,25 @@ msgstr "" #: lib/cannery_web/controllers/user_settings_controller.ex:65 msgid "Language updated successfully." msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:50 +msgid "Ammo deleted succesfully" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/range_live/index.ex:68 +msgid "Ammo unstaged succesfully" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/form_component.ex:88 +msgid "Ammo updated successfully" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/form_component.ex:147 +msgid "Ammo added successfully" +msgid_plural "Ammo added successfully" +msgstr[0] "" +msgstr[1] "" diff --git a/priv/gettext/fr/LC_MESSAGES/actions.po b/priv/gettext/fr/LC_MESSAGES/actions.po index 8a92f3fe..4914def6 100644 --- a/priv/gettext/fr/LC_MESSAGES/actions.po +++ b/priv/gettext/fr/LC_MESSAGES/actions.po @@ -25,6 +25,7 @@ msgstr "" ## effect: edit them in PO (.po) files instead. #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:44 +#: lib/cannery_web/live/ammo_group_live/index.html.heex:42 msgid "Add Ammo" msgstr "ajouter munition" @@ -93,11 +94,6 @@ msgstr "Se connecter" msgid "Make your first tag!" msgstr "Faîtes votre premier tag !" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/index.html.heex:42 -msgid "New Ammo group" -msgstr "Nouveau groupe de munition" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/index.html.heex:17 msgid "New Ammo type" diff --git a/priv/gettext/fr/LC_MESSAGES/default.po b/priv/gettext/fr/LC_MESSAGES/default.po index 411cee50..086c3283 100644 --- a/priv/gettext/fr/LC_MESSAGES/default.po +++ b/priv/gettext/fr/LC_MESSAGES/default.po @@ -46,7 +46,7 @@ msgid "Admins:" msgstr "Administrateur·ices :" #, elixir-autogen, elixir-format -#: lib/cannery_web/components/topbar.ex:50 +#: lib/cannery_web/components/topbar.ex:56 #: lib/cannery_web/live/ammo_group_live/index.html.heex:3 #: lib/cannery_web/live/range_live/index.ex:80 msgid "Ammo" @@ -173,7 +173,6 @@ msgstr "Simple à utiliser :" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:38 -#: lib/cannery_web/live/ammo_group_live/show.ex:40 msgid "Edit Ammo group" msgstr "Éditer le groupe de munition" @@ -266,11 +265,6 @@ msgstr "Localisation :" msgid "Magazine, Clip, Ammo Box, etc" msgstr "Chargeur, lame-chargeur, boite de munition, etc." -#, elixir-autogen, elixir-format -#: lib/cannery_web/components/topbar.ex:56 -msgid "Manage" -msgstr "Gérer" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148 #: lib/cannery_web/live/ammo_type_live/index.ex:73 @@ -332,11 +326,6 @@ msgstr "Aucun type de munition" msgid "No ammo for this type" msgstr "Aucune munition pour ce type" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/container_live/show.html.heex:78 -msgid "No ammo groups in this container" -msgstr "Aucun groupe de munition pour ce conteneur" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/container_live/index.html.heex:8 msgid "No containers" @@ -426,11 +415,6 @@ msgstr "Mettre illimité" msgid "Settings" msgstr "Paramètres" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/show.ex:39 -msgid "Show Ammo group" -msgstr "Montrer le groupe de munition" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/show.ex:44 msgid "Show Ammo type" @@ -475,11 +459,6 @@ msgstr "Couleur du texte" msgid "The self-hosted firearm tracker website" msgstr "Le site web de suivi d’arme à feux auto-hébergé" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/show.html.heex:108 -msgid "This ammo group is not in a container" -msgstr "Ce groupe de munition n’est pas dans un conteneur" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132 #: lib/cannery_web/live/ammo_type_live/index.ex:69 @@ -574,11 +553,6 @@ msgstr "Désélectionner pour le stand" msgid "Record shots" msgstr "Tirs enregistrés" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_type_live/index.html.heex:3 -msgid "Ammo Types" -msgstr "Types de munition" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:49 msgid "Ammo groups" @@ -624,7 +598,6 @@ msgstr "Enregistrements de tir" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:32 -#: lib/cannery_web/live/ammo_group_live/show.ex:38 msgid "Move Ammo group" msgstr "Déplacer le groupe de munition" @@ -909,3 +882,34 @@ msgstr "Remonter des bugs ou une demande de fonctionnalité" #: lib/cannery_web/live/home_live.ex:147 msgid "View the source code" msgstr "Voir le code source" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/components/topbar.ex:50 +#: lib/cannery_web/live/ammo_type_live/index.html.heex:3 +msgid "Catalog" +msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:40 +msgid "Edit Ammo" +msgstr "Éditer le type de munition" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:38 +msgid "Move Ammo" +msgstr "Déplacer munition" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/container_live/show.html.heex:78 +msgid "No ammo in this container" +msgstr "Aucun groupe de munition pour ce conteneur" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:39 +msgid "Show Ammo" +msgstr "Montrer le type de munition" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.html.heex:108 +msgid "This ammo is not in a container" +msgstr "Ce groupe de munition n’est pas dans un conteneur" diff --git a/priv/gettext/fr/LC_MESSAGES/prompts.po b/priv/gettext/fr/LC_MESSAGES/prompts.po index 892dabf2..522848f3 100644 --- a/priv/gettext/fr/LC_MESSAGES/prompts.po +++ b/priv/gettext/fr/LC_MESSAGES/prompts.po @@ -78,15 +78,9 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:56 -#: lib/cannery_web/live/ammo_group_live/show.ex:50 msgid "Ammo group deleted succesfully" msgstr "Groupe de munition supprimé avec succès" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/form_component.ex:88 -msgid "Ammo group updated successfully" -msgstr "Groupe de munition mis à jour avec succès" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/invite_live/index.html.heex:102 #: lib/cannery_web/live/invite_live/index.html.heex:131 @@ -221,11 +215,6 @@ msgstr "Tirs enregistré avec succès" msgid "Are you sure you want to unstage this ammo?" msgstr "Êtes-vous certain·e de vouloir désélectionner cette munition ?" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/range_live/index.ex:68 -msgid "Ammo group unstaged succesfully" -msgstr "Groupe de munition désélectionner avec succès" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/show.ex:130 #: lib/cannery_web/live/range_live/index.ex:128 @@ -274,13 +263,6 @@ msgstr "Vous aurez besoin de" msgid "Creating..." msgstr "Création en cours…" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/form_component.ex:147 -msgid "Ammo group created successfully" -msgid_plural "Ammo groups created successfully" -msgstr[0] "Groupe de munition créé avec succès" -msgstr[1] "Groupes de munitions créé avec succès" - #, elixir-autogen, elixir-format #: lib/cannery_web/templates/user_settings/edit.html.heex:136 msgid "Are you sure you want to change your language?" @@ -290,3 +272,25 @@ msgstr "Êtes-vous certain·e de vouloir changer votre langue ?" #: lib/cannery_web/controllers/user_settings_controller.ex:65 msgid "Language updated successfully." msgstr "Langue mise à jour avec succès." + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/show.ex:50 +msgid "Ammo deleted succesfully" +msgstr "Groupe de munition supprimé avec succès" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/range_live/index.ex:68 +msgid "Ammo unstaged succesfully" +msgstr "Groupe de munition désélectionner avec succès" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/form_component.ex:88 +msgid "Ammo updated successfully" +msgstr "Groupe de munition mis à jour avec succès" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_group_live/form_component.ex:147 +msgid "Ammo added successfully" +msgid_plural "Ammo added successfully" +msgstr[0] "Groupe de munition mis à jour avec succès" +msgstr[1] "Groupe de munition mis à jour avec succès" diff --git a/priv/gettext/prompts.pot b/priv/gettext/prompts.pot index 5e69e09c..ae454945 100644 --- a/priv/gettext/prompts.pot +++ b/priv/gettext/prompts.pot @@ -63,15 +63,9 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/index.ex:56 -#: lib/cannery_web/live/ammo_group_live/show.ex:50 msgid "Ammo group deleted succesfully" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/form_component.ex:88 -msgid "Ammo group updated successfully" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/invite_live/index.html.heex:102 #: lib/cannery_web/live/invite_live/index.html.heex:131 @@ -199,11 +193,6 @@ msgstr "" msgid "Are you sure you want to unstage this ammo?" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/range_live/index.ex:68 -msgid "Ammo group unstaged succesfully" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/live/ammo_group_live/show.ex:130 #: lib/cannery_web/live/range_live/index.ex:128 @@ -252,13 +241,6 @@ msgstr "" msgid "Creating..." msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_group_live/form_component.ex:147 -msgid "Ammo group created successfully" -msgid_plural "Ammo groups created successfully" -msgstr[0] "" -msgstr[1] "" - #, elixir-autogen, elixir-format #: lib/cannery_web/templates/user_settings/edit.html.heex:136 msgid "Are you sure you want to change your language?" @@ -268,3 +250,25 @@ msgstr "" #: lib/cannery_web/controllers/user_settings_controller.ex:65 msgid "Language updated successfully." msgstr "" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/live/ammo_group_live/show.ex:50 +msgid "Ammo deleted succesfully" +msgstr "" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/live/range_live/index.ex:68 +msgid "Ammo unstaged succesfully" +msgstr "" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/live/ammo_group_live/form_component.ex:88 +msgid "Ammo updated successfully" +msgstr "" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/live/ammo_group_live/form_component.ex:147 +msgid "Ammo added successfully" +msgid_plural "Ammo added successfully" +msgstr[0] "" +msgstr[1] "" diff --git a/test/cannery_web/live/ammo_group_live_test.exs b/test/cannery_web/live/ammo_group_live_test.exs index b3de49ae..2a53b2f0 100644 --- a/test/cannery_web/live/ammo_group_live_test.exs +++ b/test/cannery_web/live/ammo_group_live_test.exs @@ -35,15 +35,15 @@ defmodule CanneryWeb.AmmoGroupLiveTest do {:ok, _index_live, html} = live(conn, Routes.ammo_group_index_path(conn, :index)) ammo_group = ammo_group |> Repo.preload(:ammo_type) - assert html =~ gettext("Ammo groups") + assert html =~ gettext("Ammo") assert html =~ ammo_group.ammo_type.name end test "saves a single new ammo_group", %{conn: conn} do {:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index)) - assert index_live |> element("a", dgettext("actions", "New Ammo group")) |> render_click() =~ - gettext("New Ammo group") + assert index_live |> element("a", dgettext("actions", "Add Ammo")) |> render_click() =~ + gettext("Add Ammo") assert_patch(index_live, Routes.ammo_group_index_path(conn, :new)) @@ -57,7 +57,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do |> render_submit() |> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index)) - assert html =~ dgettext("prompts", "Ammo group created successfully") + assert html =~ dgettext("prompts", "Ammo added successfully") assert html =~ "42" end @@ -66,8 +66,8 @@ defmodule CanneryWeb.AmmoGroupLiveTest do {:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index)) - assert index_live |> element("a", dgettext("actions", "New Ammo group")) |> render_click() =~ - gettext("New Ammo group") + assert index_live |> element("a", dgettext("actions", "Add Ammo")) |> render_click() =~ + gettext("Add Ammo") assert_patch(index_live, Routes.ammo_group_index_path(conn, :new)) @@ -83,15 +83,15 @@ defmodule CanneryWeb.AmmoGroupLiveTest do |> render_submit() |> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index)) - assert html =~ dgettext("prompts", "Ammo groups created successfully") + assert html =~ dgettext("prompts", "Ammo added successfully") assert Ammo.list_ammo_groups(current_user) |> Enum.count() == multiplier + 1 end test "does not save invalid number of new ammo_groups", %{conn: conn} do {:ok, index_live, _html} = live(conn, Routes.ammo_group_index_path(conn, :index)) - assert index_live |> element("a", dgettext("actions", "New Ammo group")) |> render_click() =~ - gettext("New Ammo group") + assert index_live |> element("a", dgettext("actions", "Add Ammo")) |> render_click() =~ + gettext("Add Ammo") assert_patch(index_live, Routes.ammo_group_index_path(conn, :new)) @@ -150,7 +150,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do assert index_live |> element("[data-qa=\"edit-#{ammo_group.id}\"]") |> render_click() =~ - gettext("Edit Ammo group") + gettext("Edit Ammo") assert_patch(index_live, Routes.ammo_group_index_path(conn, :edit, ammo_group)) @@ -164,7 +164,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do |> render_submit() |> follow_redirect(conn, Routes.ammo_group_index_path(conn, :index)) - assert html =~ dgettext("prompts", "Ammo group updated successfully") + assert html =~ dgettext("prompts", "Ammo updated successfully") assert html =~ "43" end @@ -186,7 +186,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do {:ok, _show_live, html} = live(conn, Routes.ammo_group_show_path(conn, :show, ammo_group)) ammo_group = ammo_group |> Repo.preload(:ammo_type) - assert html =~ gettext("Show Ammo group") + assert html =~ gettext("Show Ammo") assert html =~ ammo_group.ammo_type.name end @@ -196,7 +196,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do assert show_live |> element("[data-qa=\"edit\"]") |> render_click() =~ - gettext("Edit Ammo group") + gettext("Edit Ammo") assert_patch(show_live, Routes.ammo_group_show_path(conn, :edit, ammo_group)) @@ -210,7 +210,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do |> render_submit() |> follow_redirect(conn, Routes.ammo_group_show_path(conn, :show, ammo_group)) - assert html =~ dgettext("prompts", "Ammo group updated successfully") + assert html =~ dgettext("prompts", "Ammo updated successfully") assert html =~ "some updated notes" end