fix some gettexts

This commit is contained in:
2022-11-09 18:45:28 -05:00
parent 30da5bc4f7
commit 67304ae22e
20 changed files with 234 additions and 186 deletions

View File

@ -82,8 +82,8 @@
<div class="flex flex-wrap justify-center items-center text-primary-600">
<button type="button" class="mx-4 my-2 btn btn-primary" phx-click="toggle_staged">
<%= if @ammo_group.staged,
do: gettext("Unstage from range"),
else: gettext("Stage for range") %>
do: dgettext("actions", "Unstage from range"),
else: dgettext("actions", "Stage for range") %>
</button>
<.link

View File

@ -94,7 +94,7 @@
<div class="flex flex-col justify-center items-center">
<.toggle_button action="toggle_show_used" value={@show_used}>
<span class="title text-lg text-primary-600">
<%= gettext("Show used") %>
<%= dgettext("actions", "Show used") %>
</span>
</.toggle_button>
</div>

View File

@ -57,11 +57,11 @@
<%= if invite.disabled_at |> is_nil() do %>
<a href="#" class="btn btn-primary" phx-click="disable_invite" phx-value-id={invite.id}>
<%= gettext("Disable") %>
<%= dgettext("actions", "Disable") %>
</a>
<% else %>
<a href="#" class="btn btn-primary" phx-click="enable_invite" phx-value-id={invite.id}>
<%= gettext("Enable") %>
<%= dgettext("actions", "Enable") %>
</a>
<% end %>
@ -77,7 +77,7 @@
)
}
>
<%= gettext("Set Unlimited") %>
<%= dgettext("actions", "Set Unlimited") %>
</a>
<% end %>
</.invite_card>

View File

@ -27,8 +27,8 @@
data-confirm={"#{dgettext("prompts", "Are you sure you want to unstage this ammo?")}"}
>
<%= if ammo_group.staged,
do: gettext("Unstage from range"),
else: gettext("Stage for range") %>
do: dgettext("actions", "Unstage from range"),
else: dgettext("actions", "Stage for range") %>
</button>
<.link