use better domain for gettexts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-03-17 21:00:24 -04:00
parent a53b352cf7
commit a01d97e360
28 changed files with 923 additions and 837 deletions

View File

@ -90,7 +90,9 @@
phx-click="toggle_staged"
phx-value-ammo_group_id={ammo_group.id}
>
<%= if ammo_group.staged, do: gettext("Unstage"), else: gettext("Stage") %>
<%= if ammo_group.staged,
do: dgettext("actions", "Unstage"),
else: dgettext("actions", "Stage") %>
</button>
<.link

View File

@ -127,7 +127,9 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
patch={Routes.ammo_group_show_path(Endpoint, :edit_shot_group, @ammo_group, @shot_group)}
class="text-primary-600 link"
aria-label={
gettext("Edit shot group of %{shot_group_count} shots", shot_group_count: @shot_group.count)
dgettext("actions", "Edit shot group of %{shot_group_count} shots",
shot_group_count: @shot_group.count
)
}
>
<i class="fa-fw fa-lg fas fa-edit"></i>
@ -140,7 +142,7 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
phx-value-id={@shot_group.id}
data-confirm={dgettext("prompts", "Are you sure you want to delete this shot record?")}
aria-label={
gettext("Delete shot record of %{shot_group_count} shots",
dgettext("actions", "Delete shot record of %{shot_group_count} shots",
shot_group_count: @shot_group.count
)
}

View File

@ -63,7 +63,7 @@
patch={Routes.ammo_group_show_path(Endpoint, :edit, @ammo_group)}
class="mx-4 my-2 text-primary-600 link"
aria-label={
gettext("Edit ammo group of %{ammo_group_count} bullets",
dgettext("actions", "Edit ammo group of %{ammo_group_count} bullets",
ammo_group_count: @ammo_group.count
)
}