forked from shibao/cannery
		
	fix gettext for percentages
This commit is contained in:
		| @@ -194,7 +194,7 @@ defmodule CanneryWeb.AmmoGroupLive.Index do | |||||||
|   end |   end | ||||||
|  |  | ||||||
|   defp get_value_for_key(:remaining, ammo_group), |   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 |   defp get_value_for_key(:actions, ammo_group) do | ||||||
|     assigns = %{ammo_group: ammo_group} |     assigns = %{ammo_group: ammo_group} | ||||||
|   | |||||||
| @@ -16,7 +16,7 @@ | |||||||
|  |  | ||||||
|     <span class="rounded-lg title text-lg"> |     <span class="rounded-lg title text-lg"> | ||||||
|       <%= gettext("Percentage left:") %> |       <%= gettext("Percentage left:") %> | ||||||
|       <%= "#{@ammo_group |> Ammo.get_percentage_remaining()}%" %> |       <%= gettext("%{percentage}%", percentage: @ammo_group |> Ammo.get_percentage_remaining()) %> | ||||||
|     </span> |     </span> | ||||||
|  |  | ||||||
|     <%= if @ammo_group.notes do %> |     <%= if @ammo_group.notes do %> | ||||||
|   | |||||||
| @@ -962,3 +962,9 @@ msgstr "" | |||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Used up on:" | msgid "Used up on:" | ||||||
| msgstr "" | 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 "" | ||||||
|   | |||||||
| @@ -945,3 +945,9 @@ msgstr "" | |||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Used up on:" | msgid "Used up on:" | ||||||
| msgstr "" | 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 "" | ||||||
|   | |||||||
| @@ -946,3 +946,9 @@ msgstr "" | |||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Used up on:" | msgid "Used up on:" | ||||||
| msgstr "" | 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 "" | ||||||
|   | |||||||
| @@ -960,3 +960,9 @@ msgstr "" | |||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Used up on:" | msgid "Used up on:" | ||||||
| msgstr "" | 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 "" | ||||||
|   | |||||||
| @@ -965,3 +965,9 @@ msgstr "" | |||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Used up on:" | msgid "Used up on:" | ||||||
| msgstr "" | 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 "" | ||||||
|   | |||||||
| @@ -956,3 +956,9 @@ msgstr "" | |||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "Used up on:" | msgid "Used up on:" | ||||||
| msgstr "" | 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 "" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user