use better domain for gettexts
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
)
|
||||
}
|
||||
|
@ -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
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user