diff --git a/lib/cannery_web/live/ammo_group_live/index.ex b/lib/cannery_web/live/ammo_group_live/index.ex index e1588f7..da453e8 100644 --- a/lib/cannery_web/live/ammo_group_live/index.ex +++ b/lib/cannery_web/live/ammo_group_live/index.ex @@ -194,7 +194,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do end defp get_value_for_key(:remaining, ammo_group), - do: "#{ammo_group |> Ammo.get_percentage_remaining()}%" + do: gettext("%{percentage}%", percentage: ammo_group |> Ammo.get_percentage_remaining()) defp get_value_for_key(:actions, ammo_group) do assigns = %{ammo_group: ammo_group} 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 3ad4d5f..4d04408 100644 --- a/lib/cannery_web/live/ammo_group_live/show.html.heex +++ b/lib/cannery_web/live/ammo_group_live/show.html.heex @@ -16,7 +16,7 @@ <%= gettext("Percentage left:") %> - <%= "#{@ammo_group |> Ammo.get_percentage_remaining()}%" %> + <%= gettext("%{percentage}%", percentage: @ammo_group |> Ammo.get_percentage_remaining()) %> <%= if @ammo_group.notes do %> diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po index bf3f84c..c6ca18b 100644 --- a/priv/gettext/de/LC_MESSAGES/default.po +++ b/priv/gettext/de/LC_MESSAGES/default.po @@ -962,3 +962,9 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Used up on:" msgstr "" + +#: lib/cannery_web/live/ammo_group_live/index.ex:197 +#: lib/cannery_web/live/ammo_group_live/show.html.heex:19 +#, elixir-autogen, elixir-format +msgid "%{percentage}%" +msgstr "" diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index d221b53..7712805 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -945,3 +945,9 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Used up on:" msgstr "" + +#: lib/cannery_web/live/ammo_group_live/index.ex:197 +#: lib/cannery_web/live/ammo_group_live/show.html.heex:19 +#, elixir-autogen, elixir-format +msgid "%{percentage}%" +msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index f0ca45c..d4a1b32 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -946,3 +946,9 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Used up on:" msgstr "" + +#: lib/cannery_web/live/ammo_group_live/index.ex:197 +#: lib/cannery_web/live/ammo_group_live/show.html.heex:19 +#, elixir-autogen, elixir-format +msgid "%{percentage}%" +msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index 6d10758..f536f97 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -960,3 +960,9 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Used up on:" msgstr "" + +#: lib/cannery_web/live/ammo_group_live/index.ex:197 +#: lib/cannery_web/live/ammo_group_live/show.html.heex:19 +#, elixir-autogen, elixir-format +msgid "%{percentage}%" +msgstr "" diff --git a/priv/gettext/fr/LC_MESSAGES/default.po b/priv/gettext/fr/LC_MESSAGES/default.po index 0b5e238..8a7b9a8 100644 --- a/priv/gettext/fr/LC_MESSAGES/default.po +++ b/priv/gettext/fr/LC_MESSAGES/default.po @@ -965,3 +965,9 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Used up on:" msgstr "" + +#: lib/cannery_web/live/ammo_group_live/index.ex:197 +#: lib/cannery_web/live/ammo_group_live/show.html.heex:19 +#, elixir-autogen, elixir-format +msgid "%{percentage}%" +msgstr "" diff --git a/priv/gettext/ga/LC_MESSAGES/default.po b/priv/gettext/ga/LC_MESSAGES/default.po index 686c564..5c7258b 100644 --- a/priv/gettext/ga/LC_MESSAGES/default.po +++ b/priv/gettext/ga/LC_MESSAGES/default.po @@ -956,3 +956,9 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Used up on:" msgstr "" + +#: lib/cannery_web/live/ammo_group_live/index.ex:197 +#: lib/cannery_web/live/ammo_group_live/show.html.heex:19 +#, elixir-autogen, elixir-format +msgid "%{percentage}%" +msgstr ""