Compare commits
44 Commits
0.3.0
...
119f2af6bb
Author | SHA1 | Date | |
---|---|---|---|
119f2af6bb | |||
9db6b2c316 | |||
22281486e0 | |||
1b7546aede | |||
e153893a5b | |||
2f7c17aad3 | |||
664c65d136 | |||
ef76eb002d | |||
5b40ac4137 | |||
ed20cdd858 | |||
1e0ec82f3e | |||
d07ac801aa | |||
420e7c2d71 | |||
40877d1ac0 | |||
1dd30e6a5b | |||
eedaf33e25 | |||
b0a100cd6c | |||
6455e2710d | |||
6523b28aa2 | |||
bad1a23dfe | |||
e0ddefe1d7 | |||
5d6ecba9f7 | |||
a2d1ff9b89 | |||
34288a0070 | |||
f9b08222e1 | |||
c0179f48bd | |||
8bb4aab49c | |||
9f2cc54738 | |||
0309e9d714 | |||
af4af84515 | |||
ec6946068e | |||
f120e54c3e | |||
3d115c6383 | |||
1d4622a285 | |||
d9e7948bb0 | |||
da8c788992 | |||
bd20820361 | |||
d0ee81093a | |||
6080fdbe64 | |||
f42aaf9099 | |||
a6aa6f3386 | |||
8405513337 | |||
d0857eccc1 | |||
4c9e707181 |
14
.credo.exs
14
.credo.exs
@ -157,17 +157,17 @@
|
||||
#
|
||||
# Controversial and experimental checks (opt-in, just replace `false` with `[]`)
|
||||
#
|
||||
{Credo.Check.Consistency.MultiAliasImportRequireUse, false},
|
||||
{Credo.Check.Consistency.UnusedVariableNames, false},
|
||||
{Credo.Check.Consistency.MultiAliasImportRequireUse, []},
|
||||
{Credo.Check.Consistency.UnusedVariableNames, [force: :meaningful]},
|
||||
{Credo.Check.Design.DuplicatedCode, false},
|
||||
{Credo.Check.Readability.AliasAs, false},
|
||||
{Credo.Check.Readability.BlockPipe, false},
|
||||
{Credo.Check.Readability.ImplTrue, false},
|
||||
{Credo.Check.Readability.MultiAlias, false},
|
||||
{Credo.Check.Readability.SeparateAliasRequire, false},
|
||||
{Credo.Check.Readability.SeparateAliasRequire, []},
|
||||
{Credo.Check.Readability.SinglePipe, false},
|
||||
{Credo.Check.Readability.Specs, false},
|
||||
{Credo.Check.Readability.StrictModuleLayout, false},
|
||||
{Credo.Check.Readability.StrictModuleLayout, []},
|
||||
{Credo.Check.Readability.WithCustomTaggedTuple, false},
|
||||
{Credo.Check.Refactor.ABCSize, false},
|
||||
{Credo.Check.Refactor.AppendSingleItem, false},
|
||||
@ -176,9 +176,9 @@
|
||||
{Credo.Check.Refactor.NegatedIsNil, false},
|
||||
{Credo.Check.Refactor.PipeChainStart, false},
|
||||
{Credo.Check.Refactor.VariableRebinding, false},
|
||||
{Credo.Check.Warning.LeakyEnvironment, false},
|
||||
{Credo.Check.Warning.MapGetUnsafePass, false},
|
||||
{Credo.Check.Warning.UnsafeToAtom, false}
|
||||
{Credo.Check.Warning.LeakyEnvironment, []},
|
||||
{Credo.Check.Warning.MapGetUnsafePass, []},
|
||||
{Credo.Check.Warning.UnsafeToAtom, []}
|
||||
|
||||
#
|
||||
# Custom checks can be created using `mix credo.gen.check`.
|
||||
|
@ -77,7 +77,7 @@ services:
|
||||
volumes:
|
||||
- name: cache
|
||||
host:
|
||||
path: /tmp/drone-cache
|
||||
path: /run/media/default/ssdsrv/gitea/drone-cache
|
||||
- name: docker_sock
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
11
CHANGELOG.md
11
CHANGELOG.md
@ -1,3 +1,14 @@
|
||||
# v0.4.1
|
||||
- Fix button and tag text wrapping
|
||||
- Code quality fixes
|
||||
|
||||
# v0.4.0
|
||||
- Make tables sortable
|
||||
- Add link to changelog from version number
|
||||
- Fix some elements flashing with black background
|
||||
- Fix bug with moving ammo group to new container
|
||||
- Fix bug with no error showing up for create ammo group form
|
||||
|
||||
# v0.3.0
|
||||
- Fix ammo type counts not showing when count is 0
|
||||
- Add prompt to create first container before first ammo group
|
||||
|
@ -25,6 +25,7 @@
|
||||
}
|
||||
|
||||
.btn {
|
||||
@apply inline-block break-all min-w-4;
|
||||
@apply focus:outline-none px-4 py-2 rounded-lg;
|
||||
@apply shadow-sm focus:shadow-lg;
|
||||
@apply transition-all duration-300 ease-in-out;
|
||||
@ -51,6 +52,7 @@
|
||||
}
|
||||
|
||||
.link {
|
||||
@apply inline-block break-all min-w-4;
|
||||
@apply hover:underline;
|
||||
@apply transition-colors duration-500 ease-in-out;
|
||||
}
|
||||
|
@ -2,7 +2,10 @@
|
||||
// update. https://github.com/phoenixframework/phoenix_live_view/issues/1011
|
||||
|
||||
export default {
|
||||
attrs () { return this.el.getAttribute('data-attrs').split(', ') },
|
||||
attrs () {
|
||||
const attrs = this.el.getAttribute('data-attrs')
|
||||
if (attrs) { return attrs.split(', ') } else { return [] }
|
||||
},
|
||||
beforeUpdate () { this.prevAttrs = this.attrs().map(name => [name, this.el.getAttribute(name)]) },
|
||||
updated () { this.prevAttrs.forEach(([name, val]) => this.el.setAttribute(name, val)) }
|
||||
}
|
||||
|
@ -28,6 +28,20 @@ module.exports = {
|
||||
128: '32rem',
|
||||
192: '48rem',
|
||||
256: '64rem'
|
||||
},
|
||||
minWidth: {
|
||||
4: '1rem',
|
||||
8: '2rem',
|
||||
12: '3rem',
|
||||
16: '4rem',
|
||||
20: '8rem'
|
||||
},
|
||||
maxWidth: {
|
||||
4: '1rem',
|
||||
8: '2rem',
|
||||
12: '3rem',
|
||||
16: '4rem',
|
||||
20: '8rem'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -196,7 +196,7 @@ defmodule Cannery.Accounts do
|
||||
{:ok, _} <- Repo.transaction(user_email_multi(user, email, context)) do
|
||||
:ok
|
||||
else
|
||||
_ -> :error
|
||||
_error_tuple -> :error
|
||||
end
|
||||
end
|
||||
|
||||
@ -265,7 +265,7 @@ defmodule Cannery.Accounts do
|
||||
|> Repo.transaction()
|
||||
|> case do
|
||||
{:ok, %{user: user}} -> {:ok, user}
|
||||
{:error, :user, changeset, _} -> {:error, changeset}
|
||||
{:error, :user, changeset, _changes_so_far} -> {:error, changeset}
|
||||
end
|
||||
end
|
||||
|
||||
@ -372,7 +372,7 @@ defmodule Cannery.Accounts do
|
||||
{:ok, %{user: user}} <- Repo.transaction(confirm_user_multi(user)) do
|
||||
{:ok, user}
|
||||
else
|
||||
_ -> :error
|
||||
_error_tuple -> :error
|
||||
end
|
||||
end
|
||||
|
||||
@ -420,7 +420,7 @@ defmodule Cannery.Accounts do
|
||||
%User{} = user <- Repo.one(query) do
|
||||
user
|
||||
else
|
||||
_ -> nil
|
||||
_error_tuple -> nil
|
||||
end
|
||||
end
|
||||
|
||||
@ -444,7 +444,7 @@ defmodule Cannery.Accounts do
|
||||
|> Repo.transaction()
|
||||
|> case do
|
||||
{:ok, %{user: user}} -> {:ok, user}
|
||||
{:error, :user, changeset, _} -> {:error, changeset}
|
||||
{:error, :user, changeset, _changes_so_far} -> {:error, changeset}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -171,7 +171,7 @@ defmodule Cannery.Accounts.User do
|
||||
Bcrypt.verify_pass(password, hashed_password)
|
||||
end
|
||||
|
||||
def valid_password?(_, _) do
|
||||
def valid_password?(_invalid_user, _invalid_password) do
|
||||
Bcrypt.no_user_verify()
|
||||
false
|
||||
end
|
||||
|
@ -6,7 +6,7 @@ defmodule Cannery.Ammo do
|
||||
import Ecto.Query, warn: false
|
||||
alias Cannery.{Accounts.User, Containers, Repo}
|
||||
alias Cannery.Ammo.{AmmoGroup, AmmoType}
|
||||
alias Ecto.{Changeset, Multi}
|
||||
alias Ecto.Changeset
|
||||
|
||||
@ammo_group_create_limit 10_000
|
||||
|
||||
@ -308,7 +308,7 @@ defmodule Cannery.Ammo do
|
||||
def get_used_count(%AmmoGroup{} = ammo_group) do
|
||||
ammo_group
|
||||
|> Repo.preload(:shot_groups)
|
||||
|> Map.get(:shot_groups)
|
||||
|> Map.fetch!(:shot_groups)
|
||||
|> Enum.map(fn %{count: count} -> count end)
|
||||
|> Enum.sum()
|
||||
end
|
||||
@ -342,7 +342,7 @@ defmodule Cannery.Ammo do
|
||||
"""
|
||||
@spec create_ammo_groups(attrs :: map(), multiplier :: non_neg_integer(), User.t()) ::
|
||||
{:ok, {count :: non_neg_integer(), [AmmoGroup.t()] | nil}}
|
||||
| {:error, Changeset.t(AmmoGroup.new_ammo_group()) | nil}
|
||||
| {:error, Changeset.t(AmmoGroup.new_ammo_group())}
|
||||
def create_ammo_groups(
|
||||
%{"ammo_type_id" => ammo_type_id, "container_id" => container_id} = attrs,
|
||||
multiplier,
|
||||
@ -361,9 +361,8 @@ defmodule Cannery.Ammo do
|
||||
end)
|
||||
|
||||
if changesets |> Enum.all?(fn %{valid?: valid} -> valid end) do
|
||||
Multi.new()
|
||||
|> Multi.insert_all(
|
||||
:create_ammo_groups,
|
||||
{count, inserted_ammo_groups} =
|
||||
Repo.insert_all(
|
||||
AmmoGroup,
|
||||
changesets
|
||||
|> Enum.map(fn changeset ->
|
||||
@ -373,14 +372,13 @@ defmodule Cannery.Ammo do
|
||||
end),
|
||||
returning: true
|
||||
)
|
||||
|> Repo.transaction()
|
||||
|> case do
|
||||
{:ok, %{create_ammo_groups: {count, ammo_groups}}} -> {:ok, {count, ammo_groups}}
|
||||
{:error, :create_ammo_groups, changeset, _changes_so_far} -> {:error, changeset}
|
||||
{:error, _other_transaction, _value, _changes_so_far} -> {:error, nil}
|
||||
end
|
||||
|
||||
{:ok, {count, inserted_ammo_groups}}
|
||||
else
|
||||
{:error, changesets |> List.first()}
|
||||
changesets
|
||||
|> Enum.reject(fn %{valid?: valid} -> valid end)
|
||||
|> List.first()
|
||||
|> Changeset.apply_action(:insert)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -215,7 +215,7 @@ defmodule Cannery.Containers do
|
||||
def get_container_rounds!(%Container{} = container) do
|
||||
container
|
||||
|> Repo.preload(:ammo_groups)
|
||||
|> Map.get(:ammo_groups)
|
||||
|> Map.fetch!(:ammo_groups)
|
||||
|> Enum.map(fn %{count: count} -> count end)
|
||||
|> Enum.sum()
|
||||
end
|
||||
|
@ -9,7 +9,7 @@ defmodule Cannery.Release do
|
||||
|
||||
def rollback(repo, version) do
|
||||
load_app()
|
||||
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :down, to: version))
|
||||
{:ok, _fun, _opts} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :down, to: version))
|
||||
end
|
||||
|
||||
defp load_app do
|
||||
@ -20,7 +20,7 @@ defmodule Cannery.Release do
|
||||
load_app()
|
||||
|
||||
for repo <- Application.fetch_env!(@app, :ecto_repos) do
|
||||
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true))
|
||||
{:ok, _fun, _opts} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -6,11 +6,11 @@ defmodule Cannery.Repo.Migrator do
|
||||
use GenServer
|
||||
require Logger
|
||||
|
||||
def start_link(_) do
|
||||
def start_link(_opts) do
|
||||
GenServer.start_link(__MODULE__, [], [])
|
||||
end
|
||||
|
||||
def init(_) do
|
||||
def init(_opts) do
|
||||
migrate!()
|
||||
{:ok, nil}
|
||||
end
|
||||
|
@ -71,6 +71,7 @@ defmodule CanneryWeb do
|
||||
quote do
|
||||
use Phoenix.Router
|
||||
|
||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||
import Plug.Conn
|
||||
import Phoenix.Controller
|
||||
import Phoenix.LiveView.Router
|
||||
@ -79,7 +80,9 @@ defmodule CanneryWeb do
|
||||
|
||||
def channel do
|
||||
quote do
|
||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||
use Phoenix.Channel
|
||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||
import CanneryWeb.Gettext
|
||||
end
|
||||
end
|
||||
@ -87,14 +90,18 @@ defmodule CanneryWeb do
|
||||
defp view_helpers do
|
||||
quote do
|
||||
# Use all HTML functionality (forms, tags, etc)
|
||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||
use Phoenix.HTML
|
||||
|
||||
# Import LiveView and .heex helpers (live_render, live_patch, <.form>, etc)
|
||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||
import Phoenix.LiveView.Helpers
|
||||
|
||||
# Import basic rendering functionality (render, render_layout, etc)
|
||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||
import Phoenix.View
|
||||
|
||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||
import CanneryWeb.{ErrorHelpers, Gettext, LiveHelpers, ViewHelpers}
|
||||
alias CanneryWeb.Router.Helpers, as: Routes
|
||||
end
|
||||
|
@ -14,11 +14,11 @@ defmodule CanneryWeb.Components.ContainerCard do
|
||||
~H"""
|
||||
<div
|
||||
id={"container-#{@container.id}"}
|
||||
class="mx-4 my-2 px-8 py-4 flex flex-col justify-center items-center space-y-4
|
||||
class="overflow-hidden max-w-full mx-4 my-2 px-8 py-4 flex flex-col justify-center items-center space-y-4
|
||||
border border-gray-400 rounded-lg shadow-lg hover:shadow-md
|
||||
transition-all duration-300 ease-in-out"
|
||||
>
|
||||
<div class="mb-4 flex flex-col justify-center items-center space-y-2">
|
||||
<div class="max-w-full mb-4 flex flex-col justify-center items-center space-y-2">
|
||||
<%= live_redirect to: Routes.container_show_path(Endpoint, :show, @container),
|
||||
class: "link" do %>
|
||||
<h1 class="px-4 py-2 rounded-lg title text-xl">
|
||||
|
@ -4,7 +4,8 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do
|
||||
"""
|
||||
|
||||
use CanneryWeb, :live_component
|
||||
alias Cannery.{Accounts.User, Ammo, Ammo.AmmoGroup, Containers}
|
||||
alias Cannery.{Accounts.User, Ammo, Ammo.AmmoGroup, Containers, Containers.Container}
|
||||
alias CanneryWeb.Endpoint
|
||||
alias Phoenix.LiveView.Socket
|
||||
|
||||
@impl true
|
||||
@ -27,7 +28,12 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do
|
||||
Containers.list_containers(current_user)
|
||||
|> Enum.reject(fn %{id: id} -> id == container_id end)
|
||||
|
||||
{:ok, socket |> assign(assigns) |> assign(changeset: changeset, containers: containers)}
|
||||
socket =
|
||||
socket
|
||||
|> assign(assigns)
|
||||
|> assign(changeset: changeset, containers: containers)
|
||||
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
@impl true
|
||||
@ -54,4 +60,76 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do
|
||||
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def render(%{containers: containers} = assigns) do
|
||||
columns = [
|
||||
%{label: gettext("Container"), key: "name"},
|
||||
%{label: gettext("Type"), key: "type"},
|
||||
%{label: gettext("Location"), key: "location"},
|
||||
%{label: nil, key: "actions", sortable: false}
|
||||
]
|
||||
|
||||
rows = containers |> get_rows_for_containers(assigns, columns)
|
||||
|
||||
assigns = assigns |> Map.merge(%{columns: columns, rows: rows})
|
||||
|
||||
~H"""
|
||||
<div class="w-full flex flex-col space-y-8 justify-center items-center">
|
||||
<h2 class="mb-8 text-center title text-xl text-primary-600">
|
||||
<%= gettext("Move ammo") %>
|
||||
</h2>
|
||||
|
||||
<%= if @containers |> Enum.empty?() do %>
|
||||
<h2 class="title text-xl text-primary-600">
|
||||
<%= gettext("No other containers") %>
|
||||
<%= display_emoji("😔") %>
|
||||
</h2>
|
||||
|
||||
<%= live_patch(dgettext("actions", "Add another container!"),
|
||||
to: Routes.container_index_path(Endpoint, :new),
|
||||
class: "btn btn-primary"
|
||||
) %>
|
||||
<% else %>
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id="move_ammo_group_table"
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
/>
|
||||
<% end %>
|
||||
</div>
|
||||
"""
|
||||
end
|
||||
|
||||
@spec get_rows_for_containers([Container.t()], map(), [map()]) :: [map()]
|
||||
defp get_rows_for_containers(containers, assigns, columns) do
|
||||
containers
|
||||
|> Enum.map(fn container ->
|
||||
columns
|
||||
|> Enum.into(%{}, fn %{key: key} -> {key, get_row_value_by_key(key, container, assigns)} end)
|
||||
end)
|
||||
end
|
||||
|
||||
@spec get_row_value_by_key(String.t(), Container.t(), map()) :: any()
|
||||
defp get_row_value_by_key("actions", container, assigns) do
|
||||
assigns = assigns |> Map.put(:container, container)
|
||||
|
||||
~H"""
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary"
|
||||
phx-click="move"
|
||||
phx-target={@myself}
|
||||
phx-value-container_id={container.id}
|
||||
>
|
||||
<%= dgettext("actions", "Select") %>
|
||||
</button>
|
||||
</div>
|
||||
"""
|
||||
end
|
||||
|
||||
defp get_row_value_by_key(key, container, _assigns),
|
||||
do: container |> Map.get(key |> String.to_existing_atom())
|
||||
end
|
||||
|
@ -1,70 +0,0 @@
|
||||
<div class="w-full flex flex-col space-y-8 justify-center items-center">
|
||||
<h2 class="mb-8 text-center title text-xl text-primary-600">
|
||||
<%= gettext("Move ammo") %>
|
||||
</h2>
|
||||
|
||||
<%= if @containers |> Enum.empty?() do %>
|
||||
<h2 class="title text-xl text-primary-600">
|
||||
<%= gettext("No other containers") %>
|
||||
<%= display_emoji("😔") %>
|
||||
</h2>
|
||||
|
||||
<%= live_patch(dgettext("actions", "Add another container!"),
|
||||
to: Routes.container_index_path(Endpoint, :new),
|
||||
class: "btn btn-primary"
|
||||
) %>
|
||||
<% else %>
|
||||
<div class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-black">
|
||||
<table class="min-w-full table-auto text-center bg-white">
|
||||
<thead class="border-b border-primary-600">
|
||||
<tr>
|
||||
<th class="p-2">
|
||||
<%= gettext("Container") %>
|
||||
</th>
|
||||
|
||||
<th class="p-2">
|
||||
<%= gettext("Type") %>
|
||||
</th>
|
||||
|
||||
<th class="p-2">
|
||||
<%= gettext("Location") %>
|
||||
</th>
|
||||
|
||||
<th class="p-2"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="containers">
|
||||
<%= for container <- @containers do %>
|
||||
<tr id={"container-#{container.id}"}>
|
||||
<td class="p-2">
|
||||
<%= container.name %>
|
||||
</td>
|
||||
|
||||
<td class="p-2">
|
||||
<%= container.type %>
|
||||
</td>
|
||||
|
||||
<td class="p-2">
|
||||
<%= container.location %>
|
||||
</td>
|
||||
|
||||
<td class="p-2">
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary"
|
||||
phx-click="move"
|
||||
phx-target={@myself}
|
||||
phx-value-container_id={container.id}
|
||||
>
|
||||
<%= dgettext("actions", "Select") %>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
87
lib/cannery_web/components/table_component.ex
Normal file
87
lib/cannery_web/components/table_component.ex
Normal file
@ -0,0 +1,87 @@
|
||||
defmodule CanneryWeb.Components.TableComponent do
|
||||
@moduledoc """
|
||||
Livecomponent that presents a resortable table
|
||||
|
||||
It takes the following required assigns:
|
||||
- `:columns`: An array of maps containing the following keys
|
||||
- `:label`: A gettext'd or otherwise user-facing string label for the
|
||||
column. Can be nil
|
||||
- `:key`: A string key used for sorting
|
||||
- `:class`: Extra classes to be applied to the column element, if desired.
|
||||
Optional
|
||||
- `:sortable`: If false, will prevent the user from sorting with it.
|
||||
Optional
|
||||
- `:values`: An array of maps containing data for each row. Each map is
|
||||
string-keyed with the associated column key to the following values:
|
||||
- A single element, like string, integer or Phoenix.LiveView.Rendered
|
||||
object, like returned from the ~H sigil
|
||||
- A tuple, containing a custom value used for sorting, and the displayed
|
||||
content.
|
||||
"""
|
||||
|
||||
use CanneryWeb, :live_component
|
||||
alias Phoenix.LiveView.Socket
|
||||
|
||||
@impl true
|
||||
@spec update(
|
||||
%{
|
||||
required(:columns) =>
|
||||
list(%{
|
||||
required(:label) => String.t() | nil,
|
||||
required(:key) => String.t() | nil,
|
||||
optional(:class) => String.t(),
|
||||
optional(:sortable) => false
|
||||
}),
|
||||
required(:rows) =>
|
||||
list(%{
|
||||
(key :: String.t()) => any() | {custom_sort_value :: String.t(), value :: any()}
|
||||
}),
|
||||
optional(any()) => any()
|
||||
},
|
||||
Socket.t()
|
||||
) :: {:ok, Socket.t()}
|
||||
def update(%{columns: columns, rows: rows} = assigns, socket) do
|
||||
initial_key = columns |> List.first() |> Map.get(:key)
|
||||
rows = rows |> Enum.sort_by(fn row -> row |> Map.get(initial_key) end, :asc)
|
||||
|
||||
socket =
|
||||
socket
|
||||
|> assign(assigns)
|
||||
|> assign(columns: columns, rows: rows, last_sort_key: initial_key, sort_mode: :asc)
|
||||
|
||||
{:ok, socket}
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_event(
|
||||
"sort_by",
|
||||
%{"sort-key" => key},
|
||||
%{assigns: %{rows: rows, last_sort_key: key, sort_mode: sort_mode}} = socket
|
||||
) do
|
||||
sort_mode = if sort_mode == :asc, do: :desc, else: :asc
|
||||
rows = rows |> sort_by_custom_sort_value_or_value(key, sort_mode)
|
||||
{:noreply, socket |> assign(sort_mode: sort_mode, rows: rows)}
|
||||
end
|
||||
|
||||
def handle_event(
|
||||
"sort_by",
|
||||
%{"sort-key" => key},
|
||||
%{assigns: %{rows: rows}} = socket
|
||||
) do
|
||||
rows = rows |> sort_by_custom_sort_value_or_value(key, :asc)
|
||||
{:noreply, socket |> assign(last_sort_key: key, sort_mode: :asc, rows: rows)}
|
||||
end
|
||||
|
||||
defp sort_by_custom_sort_value_or_value(rows, key, sort_mode) do
|
||||
rows
|
||||
|> Enum.sort_by(
|
||||
fn row ->
|
||||
case row |> Map.get(key) do
|
||||
{custom_sort_key, _value} -> custom_sort_key
|
||||
value -> value
|
||||
end
|
||||
end,
|
||||
sort_mode
|
||||
)
|
||||
end
|
||||
end
|
52
lib/cannery_web/components/table_component.html.heex
Normal file
52
lib/cannery_web/components/table_component.html.heex
Normal file
@ -0,0 +1,52 @@
|
||||
<div class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-black">
|
||||
<table class="min-w-full table-auto text-center bg-white">
|
||||
<thead class="border-b border-primary-600">
|
||||
<tr>
|
||||
<%= for %{key: key, label: label} = column <- @columns do %>
|
||||
<%= if column |> Map.get(:sortable, true) do %>
|
||||
<th class={"p-2 #{column[:class]}"}>
|
||||
<span
|
||||
class="cursor-pointer"
|
||||
phx-click="sort_by"
|
||||
phx-value-sort-key={key}
|
||||
phx-target={@myself}
|
||||
>
|
||||
<span class="underline"><%= label %></span>
|
||||
<%= if @last_sort_key == key do %>
|
||||
<%= case @sort_mode do %>
|
||||
<% :asc -> %>
|
||||
<i class="fas fa-sm fa-chevron-down"></i>
|
||||
<% :desc -> %>
|
||||
<i class="fas fa-sm fa-chevron-up"></i>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<i class="fas fa-sm fa-chevron-up opacity-0"></i>
|
||||
<% end %>
|
||||
</span>
|
||||
</th>
|
||||
<% else %>
|
||||
<th class={"p-2 #{column[:class]}"}>
|
||||
<%= label %>
|
||||
</th>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for values <- @rows do %>
|
||||
<tr>
|
||||
<%= for %{key: key} = value <- @columns do %>
|
||||
<td class={"p-2 #{value[:class]}"}>
|
||||
<%= case values |> Map.get(key) do %>
|
||||
<% {_custom_sort_value, value} -> %>
|
||||
<%= value %>
|
||||
<% value -> %>
|
||||
<%= value %>
|
||||
<% end %>
|
||||
</td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
@ -22,7 +22,7 @@ defmodule CanneryWeb.Components.TagCard do
|
||||
def simple_tag_card(assigns) do
|
||||
~H"""
|
||||
<h1
|
||||
class="mx-2 my-1 px-4 py-2 rounded-lg title text-xl"
|
||||
class="inline-block break-all mx-2 my-1 px-4 py-2 rounded-lg title text-xl"
|
||||
style={"color: #{@tag.text_color}; background-color: #{@tag.bg_color}"}
|
||||
>
|
||||
<%= @tag.name %>
|
||||
|
@ -36,10 +36,23 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do
|
||||
def handle_event(
|
||||
"validate",
|
||||
%{"ammo_group" => ammo_group_params},
|
||||
%{assigns: %{ammo_group: ammo_group}} = socket
|
||||
%{assigns: %{action: action, ammo_group: ammo_group}} = socket
|
||||
) do
|
||||
socket = socket |> assign(:changeset, ammo_group |> Ammo.change_ammo_group(ammo_group_params))
|
||||
{:noreply, socket}
|
||||
changeset_action =
|
||||
case action do
|
||||
:new -> :insert
|
||||
:edit -> :update
|
||||
end
|
||||
|
||||
changeset = ammo_group |> Ammo.change_ammo_group(ammo_group_params)
|
||||
|
||||
changeset =
|
||||
case changeset |> Changeset.apply_action(changeset_action) do
|
||||
{:ok, _data} -> changeset
|
||||
{:error, changeset} -> changeset
|
||||
end
|
||||
|
||||
{:noreply, socket |> assign(:changeset, changeset)}
|
||||
end
|
||||
|
||||
def handle_event(
|
||||
@ -142,9 +155,6 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do
|
||||
|
||||
{:error, %Changeset{} = changeset} ->
|
||||
socket |> assign(changeset: changeset)
|
||||
|
||||
{:error, nil} ->
|
||||
socket
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -75,6 +75,120 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
||||
defp display_ammo_groups(%{assigns: %{current_user: current_user}} = socket) do
|
||||
ammo_groups = Ammo.list_ammo_groups(current_user) |> Repo.preload([:ammo_type, :container])
|
||||
containers = Containers.list_containers(current_user)
|
||||
socket |> assign(ammo_groups: ammo_groups, containers: containers)
|
||||
|
||||
columns = [
|
||||
%{label: gettext("Ammo type"), key: "ammo_type"},
|
||||
%{label: gettext("Count"), key: "count"},
|
||||
%{label: gettext("Price paid"), key: "price_paid"},
|
||||
%{label: gettext("% left"), key: "remaining"},
|
||||
%{label: gettext("Range"), key: "range"},
|
||||
%{label: gettext("Container"), key: "container"},
|
||||
%{label: nil, key: "actions", sortable: false}
|
||||
]
|
||||
|
||||
rows =
|
||||
ammo_groups
|
||||
|> Enum.map(fn ammo_group -> ammo_group |> get_row_data_for_ammo_group(columns) end)
|
||||
|
||||
socket
|
||||
|> assign(ammo_groups: ammo_groups, containers: containers, columns: columns, rows: rows)
|
||||
end
|
||||
|
||||
@spec get_row_data_for_ammo_group(AmmoGroup.t(), [map()]) :: [map()]
|
||||
defp get_row_data_for_ammo_group(ammo_group, columns) do
|
||||
ammo_group = ammo_group |> Repo.preload([:ammo_type, :container])
|
||||
|
||||
columns
|
||||
|> Enum.into(%{}, fn %{key: key} -> {key, get_value_for_key(key, ammo_group)} end)
|
||||
end
|
||||
|
||||
@spec get_value_for_key(String.t(), AmmoGroup.t()) :: any()
|
||||
defp get_value_for_key("ammo_type", %{ammo_type: ammo_type}) do
|
||||
{ammo_type.name,
|
||||
live_patch(ammo_type.name,
|
||||
to: Routes.ammo_type_show_path(Endpoint, :show, ammo_type),
|
||||
class: "link"
|
||||
)}
|
||||
end
|
||||
|
||||
defp get_value_for_key("price_paid", %{price_paid: nil}), do: {"a", nil}
|
||||
|
||||
defp get_value_for_key("price_paid", %{price_paid: price_paid}),
|
||||
do: gettext("$%{amount}", amount: price_paid |> :erlang.float_to_binary(decimals: 2))
|
||||
|
||||
defp get_value_for_key("range", %{staged: staged} = ammo_group) do
|
||||
assigns = %{ammo_group: ammo_group}
|
||||
|
||||
{staged,
|
||||
~H"""
|
||||
<div class="min-w-20 py-2 px-4 h-full flex flex-col justify-center items-center">
|
||||
<button
|
||||
type="button"
|
||||
class="mx-2 my-1 btn btn-primary"
|
||||
phx-click="toggle_staged"
|
||||
phx-value-ammo_group_id={ammo_group.id}
|
||||
>
|
||||
<%= if ammo_group.staged, do: gettext("Unstage"), else: gettext("Stage") %>
|
||||
</button>
|
||||
|
||||
<%= live_patch(dgettext("actions", "Record shots"),
|
||||
to: Routes.ammo_group_index_path(Endpoint, :add_shot_group, ammo_group),
|
||||
class: "mx-2 my-1 btn btn-primary"
|
||||
) %>
|
||||
</div>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key("remaining", ammo_group),
|
||||
do: "#{ammo_group |> Ammo.get_percentage_remaining()}%"
|
||||
|
||||
defp get_value_for_key("actions", ammo_group) do
|
||||
assigns = %{ammo_group: ammo_group}
|
||||
|
||||
~H"""
|
||||
<div class="py-2 px-4 h-full space-x-4 flex justify-center items-center">
|
||||
<%= live_redirect to: Routes.ammo_group_show_path(Endpoint, :show, ammo_group),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "view-#{ammo_group.id}"] do %>
|
||||
<i class="fa-fw fa-lg fas fa-eye"></i>
|
||||
<% end %>
|
||||
|
||||
<%= live_patch to: Routes.ammo_group_index_path(Endpoint, :edit, ammo_group),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "edit-#{ammo_group.id}"] do %>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
<% end %>
|
||||
|
||||
<%= link to: "#",
|
||||
class: "text-primary-600 link",
|
||||
phx_click: "delete",
|
||||
phx_value_id: ammo_group.id,
|
||||
data: [
|
||||
confirm: dgettext("prompts", "Are you sure you want to delete this ammo?"),
|
||||
qa: "delete-#{ammo_group.id}"
|
||||
] do %>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
<% end %>
|
||||
</div>
|
||||
"""
|
||||
end
|
||||
|
||||
defp get_value_for_key("container", %{container: nil}), do: {nil, nil}
|
||||
|
||||
defp get_value_for_key("container", %{container: %{name: container_name}} = ammo_group) do
|
||||
assigns = %{ammo_group: ammo_group}
|
||||
|
||||
{container_name,
|
||||
~H"""
|
||||
<div class="min-w-20 py-2 px-4 h-full space-x-4 flex justify-center items-center">
|
||||
<%= live_patch(@ammo_group.container.name,
|
||||
to: Routes.ammo_group_index_path(Endpoint, :move, @ammo_group),
|
||||
class: "btn btn-primary"
|
||||
) %>
|
||||
</div>
|
||||
"""}
|
||||
end
|
||||
|
||||
defp get_value_for_key(key, ammo_group),
|
||||
do: ammo_group |> Map.get(key |> String.to_existing_atom())
|
||||
end
|
||||
|
@ -45,116 +45,13 @@
|
||||
) %>
|
||||
<% end %>
|
||||
|
||||
<div class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-black">
|
||||
<table class="min-w-full table-auto text-center bg-white">
|
||||
<thead class="border-b border-primary-600">
|
||||
<tr>
|
||||
<th class="p-2">
|
||||
<%= gettext("Ammo type") %>
|
||||
</th>
|
||||
<th class="p-2">
|
||||
<%= gettext("Count") %>
|
||||
</th>
|
||||
<th class="p-2">
|
||||
<%= gettext("Price paid") %>
|
||||
</th>
|
||||
<th class="p-2">
|
||||
<%= gettext("% left") %>
|
||||
</th>
|
||||
<th class="p-2">
|
||||
<%= gettext("Range") %>
|
||||
</th>
|
||||
<th class="p-2">
|
||||
<%= gettext("Container") %>
|
||||
</th>
|
||||
|
||||
<th class="p-2"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="ammo_groups">
|
||||
<%= for ammo_group <- @ammo_groups do %>
|
||||
<tr id={"ammo_group-#{ammo_group.id}"}>
|
||||
<td class="p-2">
|
||||
<%= live_patch(ammo_group.ammo_type.name,
|
||||
to: Routes.ammo_type_show_path(Endpoint, :show, ammo_group.ammo_type),
|
||||
class: "link"
|
||||
) %>
|
||||
</td>
|
||||
|
||||
<td class="p-2">
|
||||
<%= ammo_group.count %>
|
||||
</td>
|
||||
|
||||
<td class="p-2">
|
||||
<%= if ammo_group.price_paid do %>
|
||||
<%= gettext("$%{amount}",
|
||||
amount: ammo_group.price_paid |> :erlang.float_to_binary(decimals: 2)
|
||||
) %>
|
||||
<% end %>
|
||||
</td>
|
||||
|
||||
<td class="p-2">
|
||||
<%= "#{ammo_group |> Ammo.get_percentage_remaining()}%" %>
|
||||
</td>
|
||||
|
||||
<td class="p-2">
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary"
|
||||
phx-click="toggle_staged"
|
||||
phx-value-ammo_group_id={ammo_group.id}
|
||||
>
|
||||
<%= if ammo_group.staged, do: gettext("Unstage"), else: gettext("Stage") %>
|
||||
</button>
|
||||
|
||||
<%= live_patch(dgettext("actions", "Record shots"),
|
||||
to: Routes.ammo_group_index_path(Endpoint, :add_shot_group, ammo_group),
|
||||
class: "btn btn-primary"
|
||||
) %>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td class="p-2">
|
||||
<%= if ammo_group.container do %>
|
||||
<%= live_patch(ammo_group.container.name,
|
||||
to: Routes.ammo_group_index_path(Endpoint, :move, ammo_group),
|
||||
class: "btn btn-primary"
|
||||
) %>
|
||||
<% end %>
|
||||
</td>
|
||||
|
||||
<td class="p-2">
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<%= live_redirect to: Routes.ammo_group_show_path(Endpoint, :show, ammo_group),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "view-#{ammo_group.id}"] do %>
|
||||
<i class="fa-fw fa-lg fas fa-eye"></i>
|
||||
<% end %>
|
||||
|
||||
<%= live_patch to: Routes.ammo_group_index_path(Endpoint, :edit, ammo_group),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "edit-#{ammo_group.id}"] do %>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
<% end %>
|
||||
|
||||
<%= link to: "#",
|
||||
class: "text-primary-600 link",
|
||||
phx_click: "delete",
|
||||
phx_value_id: ammo_group.id,
|
||||
data: [
|
||||
confirm: dgettext("prompts", "Are you sure you want to delete this ammo?"),
|
||||
qa: "delete-#{ammo_group.id}"
|
||||
] do %>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
<% end %>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id="ammo_groups_index_table"
|
||||
action={@live_action}
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
/>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@ -197,4 +94,5 @@
|
||||
/>
|
||||
</.modal>
|
||||
<% true -> %>
|
||||
<%= nil %>
|
||||
<% end %>
|
||||
|
@ -5,7 +5,7 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
|
||||
|
||||
use CanneryWeb, :live_view
|
||||
import CanneryWeb.Components.ContainerCard
|
||||
alias Cannery.{ActivityLog, Ammo, Ammo.AmmoGroup, Repo}
|
||||
alias Cannery.{ActivityLog, ActivityLog.ShotGroup, Ammo, Ammo.AmmoGroup, Repo}
|
||||
alias CanneryWeb.Endpoint
|
||||
alias Phoenix.LiveView.Socket
|
||||
|
||||
@ -44,7 +44,7 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
|
||||
@impl true
|
||||
def handle_event(
|
||||
"delete",
|
||||
_,
|
||||
_params,
|
||||
%{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket
|
||||
) do
|
||||
ammo_group |> Ammo.delete_ammo_group!(current_user)
|
||||
@ -58,7 +58,7 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
|
||||
@impl true
|
||||
def handle_event(
|
||||
"toggle_staged",
|
||||
_,
|
||||
_params,
|
||||
%{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket
|
||||
) do
|
||||
{:ok, ammo_group} =
|
||||
@ -84,9 +84,64 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
|
||||
@spec display_ammo_group(Socket.t(), AmmoGroup.t() | AmmoGroup.id()) :: Socket.t()
|
||||
defp display_ammo_group(socket, %AmmoGroup{} = ammo_group) do
|
||||
ammo_group = ammo_group |> Repo.preload([:container, :ammo_type, :shot_groups], force: true)
|
||||
socket |> assign(:ammo_group, ammo_group)
|
||||
|
||||
columns = [
|
||||
%{label: gettext("Rounds shot"), key: "count"},
|
||||
%{label: gettext("Notes"), key: "notes"},
|
||||
%{label: gettext("Date"), key: "date"},
|
||||
%{label: nil, key: "actions", sortable: false}
|
||||
]
|
||||
|
||||
rows =
|
||||
ammo_group.shot_groups
|
||||
|> Enum.map(fn shot_group ->
|
||||
ammo_group |> get_table_row_for_shot_group(shot_group, columns)
|
||||
end)
|
||||
|
||||
socket |> assign(ammo_group: ammo_group, columns: columns, rows: rows)
|
||||
end
|
||||
|
||||
defp display_ammo_group(%{assigns: %{current_user: current_user}} = socket, id),
|
||||
do: display_ammo_group(socket, Ammo.get_ammo_group!(id, current_user))
|
||||
|
||||
@spec get_table_row_for_shot_group(AmmoGroup.t(), ShotGroup.t(), [map()]) :: [map()]
|
||||
defp get_table_row_for_shot_group(ammo_group, %{date: date} = shot_group, columns) do
|
||||
assigns = %{ammo_group: ammo_group, shot_group: shot_group}
|
||||
|
||||
columns
|
||||
|> Enum.into(%{}, fn %{key: key} ->
|
||||
value =
|
||||
case key do
|
||||
"date" ->
|
||||
{date, date |> display_date()}
|
||||
|
||||
"actions" ->
|
||||
~H"""
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<%= live_patch to: Routes.ammo_group_show_path(Endpoint, :edit_shot_group, @ammo_group, shot_group),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "edit-#{shot_group.id}"] do %>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
<% end %>
|
||||
|
||||
<%= link to: "#",
|
||||
class: "text-primary-600 link",
|
||||
phx_click: "delete_shot_group",
|
||||
phx_value_id: shot_group.id,
|
||||
data: [
|
||||
confirm: dgettext("prompts", "Are you sure you want to delete this shot record?"),
|
||||
qa: "delete-#{shot_group.id}"
|
||||
] do %>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
<% end %>
|
||||
</div>
|
||||
"""
|
||||
|
||||
key ->
|
||||
shot_group |> Map.get(key |> String.to_existing_atom())
|
||||
end
|
||||
|
||||
{key, value}
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
@ -111,63 +111,12 @@
|
||||
<%= gettext("Rounds used") %>
|
||||
</h1>
|
||||
|
||||
<div class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-black">
|
||||
<table class="min-w-full table-auto text-center bg-white">
|
||||
<thead class="border-b border-primary-600">
|
||||
<tr>
|
||||
<th class="p-2">
|
||||
<%= gettext("Rounds shot") %>
|
||||
</th>
|
||||
<th class="p-2">
|
||||
<%= gettext("Notes") %>
|
||||
</th>
|
||||
<th class="p-2">
|
||||
<%= gettext("Date") %>
|
||||
</th>
|
||||
|
||||
<th class="p-2"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="shot_groups">
|
||||
<%= for shot_group <- @ammo_group.shot_groups do %>
|
||||
<tr id={"shot_group-#{shot_group.id}"}>
|
||||
<td class="p-2">
|
||||
<%= shot_group.count %>
|
||||
</td>
|
||||
|
||||
<td class="p-2">
|
||||
<%= shot_group.notes %>
|
||||
</td>
|
||||
|
||||
<td class="p-2">
|
||||
<%= shot_group.date |> display_date() %>
|
||||
</td>
|
||||
|
||||
<td class="p-2 w-full h-full space-x-2 flex justify-center items-center">
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<%= live_patch to: Routes.ammo_group_show_path(Endpoint, :edit_shot_group, @ammo_group, shot_group),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "edit-#{shot_group.id}"] do %>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
<% end %>
|
||||
|
||||
<%= link to: "#",
|
||||
class: "text-primary-600 link",
|
||||
phx_click: "delete_shot_group",
|
||||
phx_value_id: shot_group.id,
|
||||
data: [
|
||||
confirm: dgettext("prompts", "Are you sure you want to delete this shot record?"),
|
||||
qa: "delete-#{shot_group.id}"
|
||||
] do %>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
<% end %>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id="ammo_group_shot_groups_table"
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
/>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
@ -31,7 +31,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
end
|
||||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket |> assign(:page_title, gettext("Listing Ammo types")) |> assign(:ammo_type, nil)
|
||||
socket |> assign(:page_title, gettext("Ammo types")) |> assign(:ammo_type, nil)
|
||||
end
|
||||
|
||||
@impl true
|
||||
@ -46,37 +46,103 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
defp list_ammo_types(%{assigns: %{current_user: current_user}} = socket) do
|
||||
ammo_types = Ammo.list_ammo_types(current_user)
|
||||
|
||||
columns_to_display =
|
||||
columns =
|
||||
[
|
||||
{gettext("Name"), :name, :string},
|
||||
{gettext("Bullet type"), :bullet_type, :string},
|
||||
{gettext("Bullet core"), :bullet_core, :string},
|
||||
{gettext("Cartridge"), :cartridge, :string},
|
||||
{gettext("Caliber"), :caliber, :string},
|
||||
{gettext("Case material"), :case_material, :string},
|
||||
{gettext("Jacket type"), :jacket_type, :string},
|
||||
{gettext("Muzzle velocity"), :muzzle_velocity, :string},
|
||||
{gettext("Powder type"), :powder_type, :string},
|
||||
{gettext("Powder grains per charge"), :powder_grains_per_charge, :string},
|
||||
{gettext("Grains"), :grains, :string},
|
||||
{gettext("Pressure"), :pressure, :string},
|
||||
{gettext("Primer type"), :primer_type, :string},
|
||||
{gettext("Firing type"), :firing_type, :string},
|
||||
{gettext("Tracer"), :tracer, :boolean},
|
||||
{gettext("Incendiary"), :incendiary, :boolean},
|
||||
{gettext("Blank"), :blank, :boolean},
|
||||
{gettext("Corrosive"), :corrosive, :boolean},
|
||||
{gettext("Manufacturer"), :manufacturer, :string},
|
||||
{gettext("UPC"), :upc, :string}
|
||||
%{label: gettext("Name"), key: "name", type: :string},
|
||||
%{label: gettext("Bullet type"), key: "bullet_type", type: :string},
|
||||
%{label: gettext("Bullet core"), key: "bullet_core", type: :string},
|
||||
%{label: gettext("Cartridge"), key: "cartridge", type: :string},
|
||||
%{label: gettext("Caliber"), key: "caliber", type: :string},
|
||||
%{label: gettext("Case material"), key: "case_material", type: :string},
|
||||
%{label: gettext("Jacket type"), key: "jacket_type", type: :string},
|
||||
%{label: gettext("Muzzle velocity"), key: "muzzle_velocity", type: :string},
|
||||
%{label: gettext("Powder type"), key: "powder_type", type: :string},
|
||||
%{
|
||||
label: gettext("Powder grains per charge"),
|
||||
key: "powder_grains_per_charge",
|
||||
type: :string
|
||||
},
|
||||
%{label: gettext("Grains"), key: "grains", type: :string},
|
||||
%{label: gettext("Pressure"), key: "pressure", type: :string},
|
||||
%{label: gettext("Primer type"), key: "primer_type", type: :string},
|
||||
%{label: gettext("Firing type"), key: "firing_type", type: :string},
|
||||
%{label: gettext("Tracer"), key: "tracer", type: :boolean},
|
||||
%{label: gettext("Incendiary"), key: "incendiary", type: :boolean},
|
||||
%{label: gettext("Blank"), key: "blank", type: :boolean},
|
||||
%{label: gettext("Corrosive"), key: "corrosive", type: :boolean},
|
||||
%{label: gettext("Manufacturer"), key: "manufacturer", type: :string},
|
||||
%{label: gettext("UPC"), key: "upc", type: :string}
|
||||
]
|
||||
|> Enum.filter(fn {_label, field, type} ->
|
||||
|> Enum.filter(fn %{key: key, type: type} ->
|
||||
# remove columns if all values match defaults
|
||||
default_value = if type == :boolean, do: false, else: nil
|
||||
|
||||
ammo_types
|
||||
|> Enum.any?(fn ammo_type -> not (ammo_type |> Map.get(field) == default_value) end)
|
||||
|> Enum.any?(fn ammo_type ->
|
||||
not (ammo_type |> Map.get(key |> String.to_existing_atom()) == default_value)
|
||||
end)
|
||||
end)
|
||||
|> Kernel.++([
|
||||
%{label: gettext("Total # of rounds"), key: "round_count", type: :round_count},
|
||||
%{label: nil, key: "actions", type: :actions, sortable: false}
|
||||
])
|
||||
|
||||
socket |> assign(ammo_types: ammo_types, columns_to_display: columns_to_display)
|
||||
rows =
|
||||
ammo_types
|
||||
|> Enum.map(fn ammo_type -> ammo_type |> get_ammo_type_values(columns, current_user) end)
|
||||
|
||||
socket |> assign(columns: columns, rows: rows)
|
||||
end
|
||||
|
||||
defp get_ammo_type_values(ammo_type, columns, current_user) do
|
||||
assigns = %{ammo_type: ammo_type}
|
||||
|
||||
columns
|
||||
|> Enum.into(%{}, fn %{key: key, type: type} ->
|
||||
value =
|
||||
case type do
|
||||
:boolean ->
|
||||
ammo_type |> Map.get(key |> String.to_existing_atom()) |> humanize()
|
||||
|
||||
:round_count ->
|
||||
ammo_type |> Ammo.get_round_count_for_ammo_type(current_user)
|
||||
|
||||
:actions ->
|
||||
~H"""
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<%= live_redirect to: Routes.ammo_type_show_path(Endpoint, :show, ammo_type),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "view-#{ammo_type.id}"] do %>
|
||||
<i class="fa-fw fa-lg fas fa-eye"></i>
|
||||
<% end %>
|
||||
|
||||
<%= live_patch to: Routes.ammo_type_index_path(Endpoint, :edit, ammo_type),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "edit-#{ammo_type.id}"] do %>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
<% end %>
|
||||
|
||||
<%= link to: "#",
|
||||
class: "text-primary-600 link",
|
||||
phx_click: "delete",
|
||||
phx_value_id: ammo_type.id,
|
||||
data: [
|
||||
confirm: dgettext("prompts", "Are you sure you want to delete this ammo?"),
|
||||
qa: "delete-#{ammo_type.id}"
|
||||
] do %>
|
||||
<i class="fa-lg fas fa-trash"></i>
|
||||
<% end %>
|
||||
</div>
|
||||
"""
|
||||
|
||||
nil ->
|
||||
nil
|
||||
|
||||
_other ->
|
||||
ammo_type |> Map.get(key |> String.to_existing_atom())
|
||||
end
|
||||
|
||||
{key, value}
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
@ -3,7 +3,7 @@
|
||||
<%= gettext("Ammo Types") %>
|
||||
</h1>
|
||||
|
||||
<%= if @ammo_types |> Enum.empty?() do %>
|
||||
<%= if @rows |> Enum.empty?() do %>
|
||||
<h2 class="title text-xl text-primary-600">
|
||||
<%= gettext("No Ammo Types") %>
|
||||
<%= display_emoji("😔") %>
|
||||
@ -19,71 +19,13 @@
|
||||
class: "btn btn-primary"
|
||||
) %>
|
||||
|
||||
<div class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-black">
|
||||
<table class="min-w-full table-auto text-center bg-white">
|
||||
<thead class="border-b border-primary-600">
|
||||
<tr>
|
||||
<%= for {field_name, _field, _type} <- @columns_to_display do %>
|
||||
<th class="p-2">
|
||||
<%= field_name %>
|
||||
</th>
|
||||
<% end %>
|
||||
<th class="p-2">
|
||||
<%= gettext("Total # of rounds") %>
|
||||
</th>
|
||||
|
||||
<th class="p-2"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= for ammo_type <- @ammo_types do %>
|
||||
<tr id={"ammo_type-#{ammo_type.id}"}>
|
||||
<%= for {_label, field, type} <- @columns_to_display do %>
|
||||
<td class="p-2">
|
||||
<%= case type do %>
|
||||
<% :boolean -> %>
|
||||
<%= ammo_type |> Map.get(field) |> humanize() %>
|
||||
<% _other -> %>
|
||||
<%= ammo_type |> Map.get(field) %>
|
||||
<% end %>
|
||||
</td>
|
||||
<% end %>
|
||||
|
||||
<td class="p-2">
|
||||
<%= ammo_type |> Ammo.get_round_count_for_ammo_type(@current_user) %>
|
||||
</td>
|
||||
|
||||
<td class="p-2">
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<%= live_redirect to: Routes.ammo_type_show_path(Endpoint, :show, ammo_type),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "view-#{ammo_type.id}"] do %>
|
||||
<i class="fa-fw fa-lg fas fa-eye"></i>
|
||||
<% end %>
|
||||
|
||||
<%= live_patch to: Routes.ammo_type_index_path(Endpoint, :edit, ammo_type),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "edit-#{ammo_type.id}"] do %>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
<% end %>
|
||||
|
||||
<%= link to: "#",
|
||||
class: "text-primary-600 link",
|
||||
phx_click: "delete",
|
||||
phx_value_id: ammo_type.id,
|
||||
data: [
|
||||
confirm: dgettext("prompts", "Are you sure you want to delete this ammo?"),
|
||||
qa: "delete-#{ammo_type.id}"
|
||||
] do %>
|
||||
<i class="fa-lg fas fa-trash"></i>
|
||||
<% end %>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id="ammo_types_index_table"
|
||||
action={@live_action}
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
/>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
@ -14,7 +14,7 @@ defmodule CanneryWeb.AmmoTypeLive.Show do
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_params(%{"id" => id}, _, %{assigns: %{current_user: current_user}} = socket) do
|
||||
def handle_params(%{"id" => id}, _params, %{assigns: %{current_user: current_user}} = socket) do
|
||||
ammo_type = Ammo.get_ammo_type!(id, current_user)
|
||||
|
||||
socket =
|
||||
@ -32,7 +32,7 @@ defmodule CanneryWeb.AmmoTypeLive.Show do
|
||||
@impl true
|
||||
def handle_event(
|
||||
"delete",
|
||||
_,
|
||||
_params,
|
||||
%{assigns: %{ammo_type: ammo_type, current_user: current_user}} = socket
|
||||
) do
|
||||
%{name: ammo_type_name} = ammo_type |> Ammo.delete_ammo_type!(current_user)
|
||||
|
@ -35,7 +35,7 @@ defmodule CanneryWeb.ContainerLive.Index do
|
||||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket
|
||||
|> assign(:page_title, gettext("Listing Containers"))
|
||||
|> assign(:page_title, gettext("Containers"))
|
||||
|> assign(:container, nil)
|
||||
|> display_containers()
|
||||
end
|
||||
|
@ -20,7 +20,7 @@
|
||||
) %>
|
||||
<% end %>
|
||||
|
||||
<div class="flex flex-row flex-wrap justify-center items-center">
|
||||
<div class="max-w-full flex flex-row flex-wrap justify-center items-center">
|
||||
<%= for container <- @containers do %>
|
||||
<.container_card container={container}>
|
||||
<:tag_actions>
|
||||
|
@ -18,7 +18,7 @@ defmodule CanneryWeb.ContainerLive.Show do
|
||||
@impl true
|
||||
def handle_params(
|
||||
%{"id" => id},
|
||||
_,
|
||||
_session,
|
||||
%{assigns: %{current_user: current_user}} = socket
|
||||
) do
|
||||
{:noreply, socket |> render_container(id, current_user)}
|
||||
@ -53,7 +53,7 @@ defmodule CanneryWeb.ContainerLive.Show do
|
||||
@impl true
|
||||
def handle_event(
|
||||
"delete_container",
|
||||
_,
|
||||
_params,
|
||||
%{assigns: %{container: container, current_user: current_user}} = socket
|
||||
) do
|
||||
socket =
|
||||
|
@ -29,7 +29,7 @@ defmodule CanneryWeb.HomeLive do
|
||||
%{^query => vsn} ->
|
||||
{:noreply, redirect(socket, external: "https://hexdocs.pm/#{query}/#{vsn}")}
|
||||
|
||||
_ ->
|
||||
_no_query ->
|
||||
{:noreply,
|
||||
socket
|
||||
|> put_flash(:error, "No dependencies found matching \"#{query}\"")
|
||||
@ -127,11 +127,15 @@ defmodule CanneryWeb.HomeLive do
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li class="flex flex-row justify-center space-x-2">
|
||||
<li class="flex flex-row justify-center items-center space-x-2">
|
||||
<b>Version:</b>
|
||||
<p>
|
||||
0.3.0
|
||||
</p>
|
||||
<%= link class: "flex flex-row justify-center items-center space-x-2 hover:underline",
|
||||
to: "https://gitea.bubbletea.dev/shibao/cannery/src/branch/stable/CHANGELOG.md",
|
||||
target: "_blank",
|
||||
rel: "noopener noreferrer" do %>
|
||||
<p>0.4.1</p>
|
||||
<i class="fas fa-md fa-info-circle"></i>
|
||||
<% end %>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -40,7 +40,7 @@ defmodule CanneryWeb.InviteLive.Index do
|
||||
end
|
||||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket |> assign(page_title: gettext("Listing Invites"), invite: nil)
|
||||
socket |> assign(page_title: gettext("Invites"), invite: nil)
|
||||
end
|
||||
|
||||
@impl true
|
||||
@ -119,7 +119,7 @@ defmodule CanneryWeb.InviteLive.Index do
|
||||
end
|
||||
|
||||
@impl true
|
||||
def handle_event("copy_to_clipboard", _, socket) do
|
||||
def handle_event("copy_to_clipboard", _params, socket) do
|
||||
prompt = dgettext("prompts", "Copied to clipboard")
|
||||
{:noreply, socket |> put_flash(:info, prompt)}
|
||||
end
|
||||
|
@ -77,6 +77,69 @@ defmodule CanneryWeb.RangeLive.Index do
|
||||
ActivityLog.list_shot_groups(current_user) |> Repo.preload(ammo_group: :ammo_type)
|
||||
|
||||
ammo_groups = Ammo.list_staged_ammo_groups(current_user)
|
||||
socket |> assign(shot_groups: shot_groups, ammo_groups: ammo_groups)
|
||||
|
||||
columns = [
|
||||
%{label: gettext("Ammo"), key: "name"},
|
||||
%{label: gettext("Rounds shot"), key: "count"},
|
||||
%{label: gettext("Notes"), key: "notes"},
|
||||
%{label: gettext("Date"), key: "date"},
|
||||
%{label: nil, key: "actions", sortable: false}
|
||||
]
|
||||
|
||||
rows =
|
||||
shot_groups
|
||||
|> Enum.map(fn shot_group -> shot_group |> get_row_data_for_shot_group(columns) end)
|
||||
|
||||
socket
|
||||
|> assign(ammo_groups: ammo_groups, columns: columns, rows: rows, shot_groups: shot_groups)
|
||||
end
|
||||
|
||||
@spec get_row_data_for_shot_group(ShotGroup.t(), [map()]) :: [map()]
|
||||
defp get_row_data_for_shot_group(%{date: date} = shot_group, columns) do
|
||||
shot_group = shot_group |> Repo.preload(ammo_group: :ammo_type)
|
||||
assigns = %{shot_group: shot_group}
|
||||
|
||||
columns
|
||||
|> Enum.into(%{}, fn %{key: key} ->
|
||||
value =
|
||||
case key do
|
||||
"name" ->
|
||||
{shot_group.ammo_group.ammo_type.name,
|
||||
live_patch(shot_group.ammo_group.ammo_type.name,
|
||||
to: Routes.ammo_group_show_path(Endpoint, :show, shot_group.ammo_group),
|
||||
class: "link"
|
||||
)}
|
||||
|
||||
"date" ->
|
||||
date |> display_date()
|
||||
|
||||
"actions" ->
|
||||
~H"""
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<%= live_patch to: Routes.range_index_path(Endpoint, :edit, shot_group),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "edit-#{shot_group.id}"] do %>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
<% end %>
|
||||
|
||||
<%= link to: "#",
|
||||
class: "text-primary-600 link",
|
||||
phx_click: "delete",
|
||||
phx_value_id: shot_group.id,
|
||||
data: [
|
||||
confirm: dgettext("prompts", "Are you sure you want to delete this shot record?"),
|
||||
qa: "delete-#{shot_group.id}"
|
||||
] do %>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
<% end %>
|
||||
</div>
|
||||
"""
|
||||
|
||||
key ->
|
||||
shot_group |> Map.get(key |> String.to_existing_atom())
|
||||
end
|
||||
|
||||
{key, value}
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
@ -53,70 +53,12 @@
|
||||
<%= gettext("Shot log") %>
|
||||
</h1>
|
||||
|
||||
<div class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-black">
|
||||
<table class="min-w-full table-auto text-center bg-white">
|
||||
<thead class="border-b border-primary-600">
|
||||
<tr>
|
||||
<th class="p-2">
|
||||
<%= gettext("Ammo") %>
|
||||
</th>
|
||||
<th class="p-2">
|
||||
<%= gettext("Rounds shot") %>
|
||||
</th>
|
||||
<th class="p-2">
|
||||
<%= gettext("Notes") %>
|
||||
</th>
|
||||
<th class="p-2">
|
||||
<%= gettext("Date") %>
|
||||
</th>
|
||||
|
||||
<th class="p-2"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="shot_groups">
|
||||
<%= for shot_group <- @shot_groups do %>
|
||||
<tr id={"shot_group-#{shot_group.id}"}>
|
||||
<td class="p-2">
|
||||
<%= live_patch(shot_group.ammo_group.ammo_type.name,
|
||||
to: Routes.ammo_group_show_path(Endpoint, :show, shot_group.ammo_group),
|
||||
class: "link"
|
||||
) %>
|
||||
</td>
|
||||
<td class="p-2">
|
||||
<%= shot_group.count %>
|
||||
</td>
|
||||
<td class="p-2">
|
||||
<%= shot_group.notes %>
|
||||
</td>
|
||||
<td class="p-2">
|
||||
<%= shot_group.date |> display_date() %>
|
||||
</td>
|
||||
|
||||
<td class="p-2 w-full h-full space-x-2 flex justify-center items-center">
|
||||
<div class="px-4 py-2 space-x-4 flex justify-center items-center">
|
||||
<%= live_patch to: Routes.range_index_path(Endpoint, :edit, shot_group),
|
||||
class: "text-primary-600 link",
|
||||
data: [qa: "edit-#{shot_group.id}"] do %>
|
||||
<i class="fa-fw fa-lg fas fa-edit"></i>
|
||||
<% end %>
|
||||
|
||||
<%= link to: "#",
|
||||
class: "text-primary-600 link",
|
||||
phx_click: "delete",
|
||||
phx_value_id: shot_group.id,
|
||||
data: [
|
||||
confirm: dgettext("prompts", "Are you sure you want to delete this shot record?"),
|
||||
qa: "delete-#{shot_group.id}"
|
||||
] do %>
|
||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||
<% end %>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<.live_component
|
||||
module={CanneryWeb.Components.TableComponent}
|
||||
id="shot_groups_index_table"
|
||||
columns={@columns}
|
||||
rows={@rows}
|
||||
/>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
@ -31,7 +31,7 @@ defmodule CanneryWeb.TagLive.Index do
|
||||
end
|
||||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket |> assign(:page_title, gettext("Listing Tags")) |> assign(:tag, nil)
|
||||
socket |> assign(:page_title, gettext("Tags")) |> assign(:tag, nil)
|
||||
end
|
||||
|
||||
@impl true
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="m-0 p-0 w-full h-full">
|
||||
<html lang="en" class="m-0 p-0 w-full h-full bg-white">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
@ -17,7 +17,7 @@
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="m-0 p-0 w-full h-full">
|
||||
<body class="m-0 p-0 w-full h-full bg-white">
|
||||
<%= @inner_content %>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -2,7 +2,6 @@ defmodule CanneryWeb.EmailView do
|
||||
@moduledoc """
|
||||
A view for email-related helper functions
|
||||
"""
|
||||
alias CanneryWeb.{Endpoint, HomeLive}
|
||||
|
||||
use CanneryWeb, :view
|
||||
alias CanneryWeb.{Endpoint, HomeLive}
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ defmodule CanneryWeb.ErrorView do
|
||||
case error_path do
|
||||
"404.html" -> dgettext("errors", "Not found")
|
||||
"401.html" -> dgettext("errors", "Unauthorized")
|
||||
_ -> dgettext("errors", "Internal Server Error")
|
||||
_other_template -> dgettext("errors", "Internal Server Error")
|
||||
end
|
||||
|
||||
render("error.html", %{error_string: error_string})
|
||||
|
@ -7,6 +7,8 @@ defmodule CanneryWeb.ViewHelpers do
|
||||
|
||||
import Phoenix.LiveView.Helpers
|
||||
|
||||
@id_length 16
|
||||
|
||||
@doc """
|
||||
Returns a <time> element that renders the naivedatetime in the user's local
|
||||
timezone with Alpine.js
|
||||
@ -16,11 +18,12 @@ defmodule CanneryWeb.ViewHelpers do
|
||||
|
||||
def display_datetime(datetime) do
|
||||
assigns = %{
|
||||
id: :crypto.strong_rand_bytes(@id_length) |> Base.url_encode64(),
|
||||
datetime: datetime |> DateTime.from_naive!("Etc/UTC") |> DateTime.to_iso8601(:extended)
|
||||
}
|
||||
|
||||
~H"""
|
||||
<time datetime={@datetime} x-data={"{
|
||||
<time id={@id} datetime={@datetime} x-data={"{
|
||||
date:
|
||||
Intl.DateTimeFormat([], {dateStyle: 'short', timeStyle: 'long'})
|
||||
.format(new Date(\"#{@datetime}\"))
|
||||
@ -38,10 +41,13 @@ defmodule CanneryWeb.ViewHelpers do
|
||||
def display_date(nil), do: ""
|
||||
|
||||
def display_date(date) do
|
||||
assigns = %{date: date |> Date.to_iso8601(:extended)}
|
||||
assigns = %{
|
||||
id: :crypto.strong_rand_bytes(@id_length) |> Base.url_encode64(),
|
||||
date: date |> Date.to_iso8601(:extended)
|
||||
}
|
||||
|
||||
~H"""
|
||||
<time datetime={@date} x-data={"{
|
||||
<time id={@id} datetime={@date} x-data={"{
|
||||
date:
|
||||
Intl.DateTimeFormat([], {timeZone: 'Etc/UTC', dateStyle: 'short'}).format(new Date(\"#{@date}\"))
|
||||
}"} x-text="date">
|
||||
|
2
mix.exs
2
mix.exs
@ -4,7 +4,7 @@ defmodule Cannery.MixProject do
|
||||
def project do
|
||||
[
|
||||
app: :cannery,
|
||||
version: "0.3.0",
|
||||
version: "0.4.1",
|
||||
elixir: "~> 1.12",
|
||||
elixirc_paths: elixirc_paths(Mix.env()),
|
||||
compilers: [:gettext] ++ Mix.compilers(),
|
||||
|
@ -160,7 +160,7 @@ msgid "Why not get some ready to shoot?"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:134
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:36
|
||||
msgid "Record shots"
|
||||
@ -172,7 +172,7 @@ msgid "Ammo Details"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:12
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:89
|
||||
msgid "Add another container!"
|
||||
msgstr ""
|
||||
|
||||
@ -182,7 +182,7 @@ msgid "Move containers"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:60
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:127
|
||||
msgid "Select"
|
||||
msgstr ""
|
||||
|
||||
|
216
priv/gettext/de/LC_MESSAGES/actions.po
Normal file
216
priv/gettext/de/LC_MESSAGES/actions.po
Normal file
@ -0,0 +1,216 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-04-19 19:32+0000\n"
|
||||
"PO-Revision-Date: 2022-04-19 21:32+0000\n"
|
||||
"Last-Translator: shibao <shibao@bubbletea.dev>\n"
|
||||
"Language-Team: German <https://weblate.bubbletea.dev/projects/cannery/"
|
||||
"actions/de/>\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.11.2\n"
|
||||
|
||||
## This file is a PO Template file.
|
||||
##
|
||||
## "msgid"s here are often extracted from source code.
|
||||
## Add new translations manually only if they're dynamic
|
||||
## translations that can't be statically extracted.
|
||||
##
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add Ammo"
|
||||
msgstr "Munition hinzufügen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:24
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add your first box!"
|
||||
msgstr "Fügen Sie ihre erste Box hinzu!"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:12
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add your first container!"
|
||||
msgstr "Fügen Sie ihren ersten Behälter hinzu!"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:12
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add your first type!"
|
||||
msgstr "Fügen Sie ihre erste Munitionsart hinzu!"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:16
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Change email"
|
||||
msgstr "Mailadresse ändern"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:60
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:101
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Change password"
|
||||
msgstr "Passwort ändern"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:17
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Create Invite"
|
||||
msgstr "Einladung erstellen"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:108
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Delete User"
|
||||
msgstr "Benutzer löschen"
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:43
|
||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Forgot your password?"
|
||||
msgstr "Passwort vergessen?"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:12
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite someone new!"
|
||||
msgstr "Laden Sie jemanden ein!"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:108
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:39
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
|
||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:30
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:3
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Log in"
|
||||
msgstr "Einloggen"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:14
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Make your first tag!"
|
||||
msgstr "Erstellen Sie ihren ersten Tag!"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo group"
|
||||
msgstr "Neue Munitionsgruppe"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:17
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr "Neue Munitionsart"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:17
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr "Neuer Behälter"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:19
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Tag"
|
||||
msgstr "Neuer Tag"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:101
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:25
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:3
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:33
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:43
|
||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:25
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register"
|
||||
msgstr "Registrieren"
|
||||
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:16
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Resend confirmation instructions"
|
||||
msgstr "Bestätigungsmail erneut senden"
|
||||
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Reset password"
|
||||
msgstr "Passwort zurücksetzen"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:46
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:28
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:40
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Save"
|
||||
msgstr "Speichern"
|
||||
|
||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:16
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Send instructions to reset password"
|
||||
msgstr "Anleitung zum Passwort zurücksetzen zusenden"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:53
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Why not add one?"
|
||||
msgstr "Warum fügen Sie keine hinzu?"
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:52
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add"
|
||||
msgstr "Hinzufügen"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:17
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage ammo"
|
||||
msgstr "Munition markieren"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:12
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Why not get some ready to shoot?"
|
||||
msgstr "Warum nicht einige für den Schießstand auswählen?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:134
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record shots"
|
||||
msgstr "Schüsse dokumentieren"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:50
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo Details"
|
||||
msgstr "Munitionsdetails"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:89
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Add another container!"
|
||||
msgstr "Einen weiteren Behälter hinzufügen!"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move containers"
|
||||
msgstr "Behälter verschieben"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:127
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Select"
|
||||
msgstr "Markieren"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Copy to clipboard"
|
||||
msgstr "In die Zwischenablage kopieren"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "add a container first"
|
||||
msgstr "Zuerst einen Behälter hinzufügen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Create"
|
||||
msgstr "Erstellen"
|
846
priv/gettext/de/LC_MESSAGES/default.po
Normal file
846
priv/gettext/de/LC_MESSAGES/default.po
Normal file
@ -0,0 +1,846 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-04-19 19:32+0000\n"
|
||||
"PO-Revision-Date: 2022-04-19 21:32+0000\n"
|
||||
"Last-Translator: shibao <shibao@bubbletea.dev>\n"
|
||||
"Language-Team: German <https://weblate.bubbletea.dev/projects/cannery/"
|
||||
"default/de/>\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.11.2\n"
|
||||
|
||||
## This file is a PO Template file.
|
||||
##
|
||||
## "msgid"s here are often extracted from source code.
|
||||
## Add new translations manually only if they're dynamic
|
||||
## translations that can't be statically extracted.
|
||||
##
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/home_live.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
|
||||
msgstr ""
|
||||
"Mit %{name} können Sie ihren Munitionsbestand vor und nach dem Schießen "
|
||||
"leicht im Auge behalten"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Access from any internet-capable device"
|
||||
msgstr "Zugriff von jedem Internet-fähigen Gerät"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:90
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Admins"
|
||||
msgstr "Admins"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:99
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Admins:"
|
||||
msgstr "Admins:"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:52
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
|
||||
#: lib/cannery_web/live/range_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo"
|
||||
msgstr "Munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo type"
|
||||
msgstr "Munitionsarten"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Average Price paid"
|
||||
msgstr "Durchschnittlicher Kaufpreis"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:54
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Background color"
|
||||
msgstr "Hintergrundfarbe"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:71
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Blank"
|
||||
msgstr "Knallpatrone"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Brass"
|
||||
msgstr "Messing"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:53
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet core"
|
||||
msgstr "Projektilkern"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:52
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bullet type"
|
||||
msgstr "Patronenart"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:55
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:43
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Caliber"
|
||||
msgstr "Kaliber"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:54
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:42
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Cartridge"
|
||||
msgstr "Patrone"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Case material"
|
||||
msgstr "Gehäusematerial"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container"
|
||||
msgstr "Behälter"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:46
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Containers"
|
||||
msgstr "Behälter"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Corrosive"
|
||||
msgstr "Korrosiv"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:81
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count"
|
||||
msgstr "Anzahl"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:29
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count:"
|
||||
msgstr "Anzahl:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Description"
|
||||
msgstr "Beschreibung"
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:31
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Description:"
|
||||
msgstr "Beschreibung:"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:59
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Disable"
|
||||
msgstr "Deaktivieren"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:60
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Easy to Use:"
|
||||
msgstr "Einfache Anwendung:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:42
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo group"
|
||||
msgstr "Munitionsgruppe bearbeiten"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Ammo type"
|
||||
msgstr "Munitionstyp bearbeiten"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Invite"
|
||||
msgstr "Einladung bearbeiten"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.ex:23
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Tag"
|
||||
msgstr "Tag bearbeiten"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Enable"
|
||||
msgstr "Aktivieren"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Example bullet type abbreviations"
|
||||
msgstr "Beispiel Munitionstyp Abkürzungen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "FMJ"
|
||||
msgstr "VM"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Grains"
|
||||
msgstr "Körner"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Incendiary"
|
||||
msgstr "Brandmunition"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:94
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Instance Information"
|
||||
msgstr "Instanzinformationen"
|
||||
|
||||
#: lib/cannery_web/components/invite_card.ex:27
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite Disabled"
|
||||
msgstr "Einladung deaktiviert"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:125
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invite Only"
|
||||
msgstr "Nur mit Einladung"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:71
|
||||
#: lib/cannery_web/live/invite_live/index.ex:43
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invites"
|
||||
msgstr "Einladungen"
|
||||
|
||||
#: lib/cannery_web/templates/user_session/new.html.heex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Keep me logged in for 60 days"
|
||||
msgstr "Für 60 Tage eingeloggt bleiben"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Location"
|
||||
msgstr "Standort"
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:43
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:20
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Location:"
|
||||
msgstr "Standort:"
|
||||
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Magazine, Clip, Ammo Box, etc"
|
||||
msgstr "Magazin, Ladestreifen, Munitionskiste usw."
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:58
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manage"
|
||||
msgstr "Verwalten"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:57
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Manufacturer"
|
||||
msgstr "Hersteller"
|
||||
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Metal ammo can with the anime girl sticker"
|
||||
msgstr "Metallene Munitionskiste mit Anime-Girl-Sticker"
|
||||
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:23
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "My cool ammo can"
|
||||
msgstr "Meine coole Munitionskiste"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:51
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:20
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:50
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Name"
|
||||
msgstr "Name"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Ammo type"
|
||||
msgstr "Neuer Munitionstyp"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Container"
|
||||
msgstr "Neuer Behälter"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Invite"
|
||||
msgstr "Neue Einladung"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.ex:29
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Tag"
|
||||
msgstr "Neuer Tag"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No Ammo"
|
||||
msgstr "Keine Munition"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No Ammo Types"
|
||||
msgstr "Keine Munitionsarten"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:114
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo for this type"
|
||||
msgstr "Keine Munition dieser Art"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo groups in this container"
|
||||
msgstr "Keine Munitionsgruppe in diesem Behälter"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No containers"
|
||||
msgstr "Kein Behälter"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No invites"
|
||||
msgstr "Keine Einladung"
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:30
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No tags"
|
||||
msgstr "Keine Tags"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:90
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
#: lib/cannery_web/live/range_live/index.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes"
|
||||
msgstr "Bemerkungen"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:35
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Notes:"
|
||||
msgstr "Bemerkungen:"
|
||||
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:46
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "On the bookshelf"
|
||||
msgstr "Auf dem Bücherregal"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Pressure"
|
||||
msgstr "Druck"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid"
|
||||
msgstr "Kaufpreis"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:42
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Price paid:"
|
||||
msgstr "Kaufpreis:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Primer type"
|
||||
msgstr "Zündertyp"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:124
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Public Signups"
|
||||
msgstr "Öffentliche Registrierung"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:72
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Secure:"
|
||||
msgstr "Sicher:"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Self-host your own instance, or use an instance from someone you trust."
|
||||
msgstr ""
|
||||
"Hosten Sie Ihre eigene Instanz oder verwenden Sie eine Instanz, der Sie "
|
||||
"vertrauen."
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:79
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Set Unlimited"
|
||||
msgstr "Unbegrenzt setzen"
|
||||
|
||||
#: lib/cannery_web/controllers/user_settings_controller.ex:10
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Settings"
|
||||
msgstr "Einstellungen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:41
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show Ammo group"
|
||||
msgstr "Munitionsgruppen anzeigen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:46
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show Ammo type"
|
||||
msgstr "Zeige Munitionsarten"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Simple:"
|
||||
msgstr "Einfach:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Steel"
|
||||
msgstr "Stahl"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:98
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stored in"
|
||||
msgstr "Gelagert in"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:40
|
||||
#: lib/cannery_web/live/tag_live/index.ex:34
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tags"
|
||||
msgstr "Tags"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:6
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tags can be added to your containers to help you organize"
|
||||
msgstr "Tags können zur besseren Ordnung einem Behälter hinzugefügt werden"
|
||||
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:60
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Text color"
|
||||
msgstr "Textfarbe"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:51
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "The self-hosted firearm tracker website"
|
||||
msgstr "Die selbst-gehostete Website zur Verwaltung von Schusswaffen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "This ammo group is not in a container"
|
||||
msgstr "Diese Munitionsgruppe ist nicht in einem Behälter"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tracer"
|
||||
msgstr "Leuchtspur"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Type"
|
||||
msgstr "Art"
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:37
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:14
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Type:"
|
||||
msgstr "Art:"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:119
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Users"
|
||||
msgstr "Benutzer"
|
||||
|
||||
#: lib/cannery_web/components/invite_card.ex:22
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Uses Left:"
|
||||
msgstr "Verbleibende Nutzung:"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:24
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Uses left"
|
||||
msgstr "Verbleibende Nutzung"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Welcome to %{name}"
|
||||
msgstr "Willkommen %{name}"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:76
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your data stays with you, period"
|
||||
msgstr "Ihre Daten bleiben bei Ihnen, Punkt"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:49
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No tags for this container"
|
||||
msgstr "Keine Tags für diesen Behälter"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:64
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:84
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Range"
|
||||
msgstr "Schießplatz"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Range day"
|
||||
msgstr "Range Day"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:91
|
||||
#: lib/cannery_web/live/range_live/index.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date"
|
||||
msgstr "Datum"
|
||||
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:21
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shots fired"
|
||||
msgstr "Schüsse abgegeben"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No ammo staged"
|
||||
msgstr "Keine Munition selektiert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:77
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage for range"
|
||||
msgstr "Für Schießplatz selektieren"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:76
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage from range"
|
||||
msgstr "Für Schießplatz deselektieren"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:3
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:26
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record shots"
|
||||
msgstr "Schüsse dokumentieren"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo Types"
|
||||
msgstr "Munitionsarten"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:49
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo groups"
|
||||
msgstr "Munitionsgruppen"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:38
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Date (UTC)"
|
||||
msgstr "Zeit (UTC)"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:39
|
||||
#: lib/cannery_web/live/range_live/index.ex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit Shot Records"
|
||||
msgstr "Schießkladde editieren"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New Shot Records"
|
||||
msgstr "Neue Schießkladde"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:48
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No shots recorded"
|
||||
msgstr "Keine Schüsse dokumentiert"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:21
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds left"
|
||||
msgstr "Patronen verbleibend"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:89
|
||||
#: lib/cannery_web/live/range_live/index.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds shot"
|
||||
msgstr "Patronen abgefeuert"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:46
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot Records"
|
||||
msgstr "Schießkladde"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:32
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move Ammo group"
|
||||
msgstr "Munitionsgruppe verschieben"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Move ammo"
|
||||
msgstr "Munition verschieben"
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No other containers"
|
||||
msgstr "Kein weiterer Behälter"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:53
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot log"
|
||||
msgstr "Schießkladde"
|
||||
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:43
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:117
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:32
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:39
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:98
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "$%{amount}"
|
||||
msgstr "$%{amount}"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:75
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Bimetal"
|
||||
msgstr "Bimetall"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:57
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:45
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Jacket type"
|
||||
msgstr "Patronenhülse"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:79
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:58
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:46
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Muzzle velocity"
|
||||
msgstr "Mündungsgeschwindigkeit"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder grains per charge"
|
||||
msgstr "Pulverkörner pro Ladung"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:89
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:59
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Powder type"
|
||||
msgstr "Pulverart"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:58
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "UPC"
|
||||
msgstr "UPC"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:80
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Confirm new password"
|
||||
msgstr "Passwort bestätigen"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:33
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:89
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Current password"
|
||||
msgstr "Derzeitiges Passwort"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "New password"
|
||||
msgstr "Neues Passwort"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:131
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Stage"
|
||||
msgstr "Markiert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:131
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unstage"
|
||||
msgstr "Demarkiert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Firing type"
|
||||
msgstr "Patronenhülsenform"
|
||||
|
||||
#: lib/cannery_web/templates/layout/live.html.heex:50
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Reconnecting..."
|
||||
msgstr "Neu verbinden..."
|
||||
|
||||
#: lib/cannery_web/templates/layout/live.html.heex:37
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Loading..."
|
||||
msgstr "Lädt..."
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:29
|
||||
#: lib/cannery_web/live/container_live/show.ex:97
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name}"
|
||||
msgstr "%{name} bearbeiten"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:48
|
||||
#: lib/cannery_web/live/container_live/show.ex:98
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Edit %{name} tags"
|
||||
msgstr "Editiere %{name} Tags"
|
||||
|
||||
#: lib/cannery_web/components/container_card.ex:50
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds:"
|
||||
msgstr "Patronen:"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:96
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Show %{name}"
|
||||
msgstr "Zeige %{name}"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:104
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "No cost information"
|
||||
msgstr "Keine Preisinformationen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "% left"
|
||||
msgstr "% verbleibend"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Current value:"
|
||||
msgstr "Derzeitiger Wert:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:31
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Original cost:"
|
||||
msgstr "Originalpreis:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:13
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Original count:"
|
||||
msgstr "Ursprüngliche Anzahl:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:18
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Percentage left:"
|
||||
msgstr "Prozent verbleibend:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Rounds used"
|
||||
msgstr "Patronen verbraucht"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:77
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Current # of rounds:"
|
||||
msgstr "Derzeitige # an Patronen:"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total # of rounds"
|
||||
msgstr "Summe aller Patronen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:85
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Total rounds shot:"
|
||||
msgstr "Summe abgegebener Schüsse:"
|
||||
|
||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Confirm your account"
|
||||
msgstr "Bestätigen Sie ihr Nutzerkonto"
|
||||
|
||||
#: lib/cannery_web/controllers/user_reset_password_controller.ex:9
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Forgot your password?"
|
||||
msgstr "Passwort vergessen?"
|
||||
|
||||
#: lib/cannery_web/controllers/user_session_controller.ex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Log in"
|
||||
msgstr "Einloggen"
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:35
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register"
|
||||
msgstr "Registrieren"
|
||||
|
||||
#: lib/cannery_web/controllers/user_reset_password_controller.ex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Reset your password"
|
||||
msgstr "Passwort zurücksetzen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:38
|
||||
#: lib/cannery_web/live/range_live/index.ex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Record Shots"
|
||||
msgstr "Schüsse dokumentieren"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:58
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Copies"
|
||||
msgstr "Kopien"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo types"
|
||||
msgstr "Munitionsart"
|
121
priv/gettext/de/LC_MESSAGES/emails.po
Normal file
121
priv/gettext/de/LC_MESSAGES/emails.po
Normal file
@ -0,0 +1,121 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-04-19 19:32+0000\n"
|
||||
"PO-Revision-Date: 2022-04-19 21:44+0000\n"
|
||||
"Last-Translator: Kaia Estra <kaia@fedora.email>\n"
|
||||
"Language-Team: German <https://weblate.bubbletea.dev/projects/cannery/emails/"
|
||||
"de/>\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.11.2\n"
|
||||
|
||||
## This file is a PO Template file.
|
||||
##
|
||||
## "msgid"s here are often extracted from source code.
|
||||
## Add new translations manually only if they're dynamic
|
||||
## translations that can't be statically extracted.
|
||||
##
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery/accounts/email.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Confirm your %{name} account"
|
||||
msgstr "Bestätigen Sie ihr %{name} Nutzerkonto"
|
||||
|
||||
#: lib/cannery_web/templates/email/confirm_email.html.eex:3
|
||||
#: lib/cannery_web/templates/email/confirm_email.txt.eex:2
|
||||
#: lib/cannery_web/templates/email/reset_password.html.eex:3
|
||||
#: lib/cannery_web/templates/email/reset_password.txt.eex:2
|
||||
#: lib/cannery_web/templates/email/update_email.html.eex:3
|
||||
#: lib/cannery_web/templates/email/update_email.txt.eex:2
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Hi %{email},"
|
||||
msgstr "Hallo %{email},"
|
||||
|
||||
#: lib/cannery_web/templates/email/confirm_email.txt.eex:10
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "If you didn't create an account at %{url}, please ignore this."
|
||||
msgstr ""
|
||||
"Falls Sie dieses Nutzerkonto bei %{url} nicht erstellt haben, ignorieren Sie "
|
||||
"diese Nachricht bitte."
|
||||
|
||||
#: lib/cannery_web/templates/email/reset_password.txt.eex:8
|
||||
#: lib/cannery_web/templates/email/update_email.txt.eex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "If you didn't request this change from %{url}, please ignore this."
|
||||
msgstr ""
|
||||
"Falls Sie diese Änderung von %{url} nicht angefordert haben, ignorieren Sie "
|
||||
"bitte diese Nachricht."
|
||||
|
||||
#: lib/cannery/accounts/email.ex:37
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Reset your %{name} password"
|
||||
msgstr "Passwort für %{name} zurücksetzen"
|
||||
|
||||
#: lib/cannery/accounts/email.ex:44
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Update your %{name} email"
|
||||
msgstr "Aktualisieren Sie %{name} Mailadresse"
|
||||
|
||||
#: lib/cannery_web/templates/email/confirm_email.html.eex:9
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Welcome to %{name}!"
|
||||
msgstr "Willkommen %{name}!"
|
||||
|
||||
#: lib/cannery_web/templates/email/confirm_email.txt.eex:4
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Welcome to %{name}%!"
|
||||
msgstr "Willkommen %{name}%!"
|
||||
|
||||
#: lib/cannery_web/templates/email/update_email.html.eex:8
|
||||
#: lib/cannery_web/templates/email/update_email.txt.eex:4
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "You can change your email by visiting the URL below:"
|
||||
msgstr "Sie können Ihre Mailadresse unter folgender URL ändern:"
|
||||
|
||||
#: lib/cannery_web/templates/email/confirm_email.html.eex:14
|
||||
#: lib/cannery_web/templates/email/confirm_email.txt.eex:6
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "You can confirm your account by visiting the URL below:"
|
||||
msgstr "Sie können Ihr Nutzerkonto unter folgender URL bestätigen:"
|
||||
|
||||
#: lib/cannery_web/templates/email/reset_password.html.eex:8
|
||||
#: lib/cannery_web/templates/email/reset_password.txt.eex:4
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "You can reset your password by visiting the URL below:"
|
||||
msgstr "Sie können ihr Passwort unter folgender URL zurücksetzen:"
|
||||
|
||||
#: lib/cannery_web/templates/email/confirm_email.html.eex:22
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "If you didn't create an account at %{name}, please ignore this."
|
||||
msgstr ""
|
||||
"Falls SIe dieses Nutzerkonto unter %{name}, nicht erstellt haben, ignorieren "
|
||||
"Sie diese Nachricht bitte."
|
||||
|
||||
#: lib/cannery_web/templates/email/reset_password.html.eex:16
|
||||
#: lib/cannery_web/templates/email/update_email.html.eex:16
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "If you didn't request this change from %{name}, please ignore this."
|
||||
msgstr ""
|
||||
"Falls Sie die Änderung von %{name} nicht angefragt haben, ignorieren Sie "
|
||||
"diese Nachricht bitte."
|
||||
|
||||
#: lib/cannery_web/templates/layout/email.txt.eex:9
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "This email was sent from %{name} at %{url}, the self-hosted firearm tracker website."
|
||||
msgstr ""
|
||||
"Diese Nachricht wurde von %{name} unter %{url} gesandt, einem selbst-"
|
||||
"gehosteten Schusswaffenmanager."
|
||||
|
||||
#: lib/cannery_web/templates/layout/email.html.heex:17
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "This email was sent from %{name}, the self-hosted firearm tracker website."
|
||||
msgstr ""
|
||||
"Diese Nachricht wurde von %{name} gesandt, einem selbst-gehosteten "
|
||||
"Schusswaffenmanager."
|
187
priv/gettext/de/LC_MESSAGES/errors.po
Normal file
187
priv/gettext/de/LC_MESSAGES/errors.po
Normal file
@ -0,0 +1,187 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-04-19 19:32+0000\n"
|
||||
"PO-Revision-Date: 2022-04-19 21:32+0000\n"
|
||||
"Last-Translator: shibao <shibao@bubbletea.dev>\n"
|
||||
"Language-Team: German <https://weblate.bubbletea.dev/projects/cannery/errors/"
|
||||
"de/>\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.11.2\n"
|
||||
|
||||
## This file is a PO Template file.
|
||||
##
|
||||
## "msgid"s here are often extracted from source code.
|
||||
## Add new translations manually only if they're dynamic
|
||||
## translations that can't be statically extracted.
|
||||
##
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery/containers.ex:122
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Container must be empty before deleting"
|
||||
msgstr "Behälter muss vor dem Löschen leer sein"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:71
|
||||
#: lib/cannery_web/live/container_live/show.ex:73
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not delete %{name}: %{error}"
|
||||
msgstr "Konnte %{name} nicht löschen: %{error}"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:59
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not find that container"
|
||||
msgstr "Konnte Behälter nicht finden"
|
||||
|
||||
#: lib/cannery_web/controllers/user_settings_controller.ex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Email change link is invalid or it has expired."
|
||||
msgstr "Mailadressenänderungs-Link ist ungültig oder abgelaufen."
|
||||
|
||||
#: lib/cannery_web/templates/error/error.html.heex:8
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Error"
|
||||
msgstr "Fehler"
|
||||
|
||||
#: lib/cannery_web/templates/error/error.html.heex:29
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Go back home"
|
||||
msgstr "Zur Hauptseite zurückkehren"
|
||||
|
||||
#: lib/cannery_web/views/error_view.ex:11
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Internal Server Error"
|
||||
msgstr "Interner Serverfehler"
|
||||
|
||||
#: lib/cannery_web/controllers/user_session_controller.ex:17
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid email or password"
|
||||
msgstr "Ungültige Mailadresse oder Passwort"
|
||||
|
||||
#: lib/cannery_web/views/error_view.ex:9
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Not found"
|
||||
msgstr "Nicht gefunden"
|
||||
|
||||
#: lib/cannery_web/templates/user_registration/new.html.heex:16
|
||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:16
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:22
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:66
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Oops, something went wrong! Please check the errors below."
|
||||
msgstr "Oops, etwas ist schiefgegangen. Bitte beachten Sie den Fehler unten."
|
||||
|
||||
#: lib/cannery_web/controllers/user_reset_password_controller.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Reset password link is invalid or it has expired."
|
||||
msgstr "Link zum Passwort zurücksetzen ist ungültig oder abgelaufen."
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:25
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, public registration is disabled"
|
||||
msgstr "Entschuldigung, aber öffentliche Registrierung ist deaktiviert"
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:15
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:46
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Sorry, this invite was not found or expired"
|
||||
msgstr ""
|
||||
"Entschuldigung, aber diese Einladung wurde nicht gefunden oder ist abgelaufen"
|
||||
|
||||
#: lib/cannery_web/controllers/user_settings_controller.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unable to delete user"
|
||||
msgstr "Dieser Nutzer konnte nicht gelöscht werden"
|
||||
|
||||
#: lib/cannery_web/views/error_view.ex:10
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Unauthorized"
|
||||
msgstr "Unbefugt"
|
||||
|
||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:54
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "User confirmation link is invalid or it has expired."
|
||||
msgstr "Nutzerkonto Bestätigungslink ist ungültig oder abgelaufen."
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:20
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "You are not authorized to view this page"
|
||||
msgstr "Sie sind nicht berechtigt, diese Seite aufzurufen"
|
||||
|
||||
#: lib/cannery_web/controllers/user_auth.ex:177
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "You are not authorized to view this page."
|
||||
msgstr "Sie sind nicht berechtigt, diese Seite aufzurufen."
|
||||
|
||||
#: lib/cannery/accounts/user.ex:128
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "did not change"
|
||||
msgstr "hat sich nicht geändert"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:149
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "does not match password"
|
||||
msgstr "Passwort stimmt nicht überein"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:186
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "is not valid"
|
||||
msgstr "ist nicht gültig"
|
||||
|
||||
#: lib/cannery/accounts/user.ex:82
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "must have the @ sign and no spaces"
|
||||
msgstr "Muss ein @ Zeichen und keine Leerzeichen haben"
|
||||
|
||||
#: lib/cannery/tags.ex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tag not found"
|
||||
msgstr "Tag nicht gefunden"
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:30
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tag could not be added"
|
||||
msgstr "Tag konnte nicht hinzugefügt werden"
|
||||
|
||||
#: lib/cannery/activity_log.ex:125
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be at least 1"
|
||||
msgstr "Anzahl muss mindestens 1 sein"
|
||||
|
||||
#: lib/cannery/activity_log.ex:73
|
||||
#: lib/cannery/activity_log.ex:120
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Count must be less than %{count}"
|
||||
msgstr "Anzahl muss weniger als %{count} betragen"
|
||||
|
||||
#: lib/cannery_web/controllers/user_auth.ex:39
|
||||
#: lib/cannery_web/controllers/user_auth.ex:161
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "You must confirm your account and log in to access this page."
|
||||
msgstr ""
|
||||
"Sie müssen ihr Nutzerkonto bestätigen und einloggen, um diese Seite "
|
||||
"anzuzeigen."
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:52
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Tag could not be removed"
|
||||
msgstr "Tag konnte nicht gelöscht werden"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:126
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Could not parse number of copies"
|
||||
msgstr "Konnte die Anzahl der Kopien nicht verstehen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr ""
|
||||
"Ungültige Nummer an Kopien. Muss zwischen 1 and %{max} liegen. War "
|
||||
"%{multiplier}"
|
281
priv/gettext/de/LC_MESSAGES/prompts.po
Normal file
281
priv/gettext/de/LC_MESSAGES/prompts.po
Normal file
@ -0,0 +1,281 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-04-19 19:32+0000\n"
|
||||
"PO-Revision-Date: 2022-04-19 21:32+0000\n"
|
||||
"Last-Translator: Kaia Estra <kaia@fedora.email>\n"
|
||||
"Language-Team: German <https://weblate.bubbletea.dev/projects/cannery/"
|
||||
"prompts/de/>\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.11.2\n"
|
||||
|
||||
## This file is a PO Template file.
|
||||
##
|
||||
## "msgid"s here are often extracted from source code.
|
||||
## Add new translations manually only if they're dynamic
|
||||
## translations that can't be statically extracted.
|
||||
##
|
||||
## Run "mix gettext.extract" to bring this file up to
|
||||
## date. Leave "msgstr"s empty as changing them here has no
|
||||
## effect: edit them in PO (.po) files instead.
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:64
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:65
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:59
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:101
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} created successfully"
|
||||
msgstr "%{name} erfolgreich erstellt"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:41
|
||||
#: lib/cannery_web/live/ammo_type_live/show.ex:40
|
||||
#: lib/cannery_web/live/invite_live/index.ex:55
|
||||
#: lib/cannery_web/live/invite_live/index.ex:135
|
||||
#: lib/cannery_web/live/tag_live/index.ex:40
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} deleted succesfully"
|
||||
msgstr "%{name} erfolgreich gelöscht"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:111
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} disabled succesfully"
|
||||
msgstr "%{name} erfolgreich deaktiviert"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:89
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} enabled succesfully"
|
||||
msgstr "%{name} erfolgreich aktiviert"
|
||||
|
||||
#: lib/cannery_web/live/container_live/index.ex:64
|
||||
#: lib/cannery_web/live/container_live/show.ex:63
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} has been deleted"
|
||||
msgstr "%{name} wurde gelöscht"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:69
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} updated succesfully"
|
||||
msgstr "%{name} erfolgreich aktualisiert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.ex:46
|
||||
#: lib/cannery_web/live/container_live/form_component.ex:47
|
||||
#: lib/cannery_web/live/invite_live/form_component.ex:41
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:83
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} updated successfully"
|
||||
msgstr "%{name} erfolgreich aktualisiert"
|
||||
|
||||
#: lib/cannery_web/controllers/user_settings_controller.ex:28
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "A link to confirm your email change has been sent to the new address."
|
||||
msgstr "Eine Mail zum Bestätigen ihre Mailadresse wurde Ihnen zugesandt."
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:52
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group deleted succesfully"
|
||||
msgstr "Munitionsgruppe erfolgreich gelöscht"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:88
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group updated successfully"
|
||||
msgstr "Munitionsgruppe erfolgreich aktualisiert"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:102
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:131
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||
msgstr ""
|
||||
"Sind Sie sicher, dass sie %{email} löschen möchten? Dies kann nicht "
|
||||
"zurückgenommen werden!"
|
||||
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:29
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:46
|
||||
#: lib/cannery_web/live/container_live/show.html.heex:37
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete %{name}?"
|
||||
msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:49
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr "Sind Sie sicher, dass sie die Einladung für %{name} löschen möchten?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:167
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:130
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr "Sind Sie sicher, dass sie diese Munition löschen möchten?"
|
||||
|
||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:112
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete your account?"
|
||||
msgstr "Sind Sie sicher, dass sie Ihren Account löschen möchten?"
|
||||
|
||||
#: lib/cannery_web/components/topbar.ex:86
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to log out?"
|
||||
msgstr "Wirklich ausloggen?"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:74
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to make %{name} unlimited?"
|
||||
msgstr "Sind Sie sicher, dass sie %{name} auf unbegrenzt setzen möchten?"
|
||||
|
||||
#: lib/cannery_web/controllers/user_settings_controller.ex:60
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Email changed successfully."
|
||||
msgstr "Mailadresse erfolgreich geändert."
|
||||
|
||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:23
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "If your email is in our system and it has not been confirmed yet, you will receive an email with instructions shortly."
|
||||
msgstr ""
|
||||
"Falls Ihre Mailadresse bereits in unserer Datenbank ist und noch nicht "
|
||||
"bestätigt wurde, erhalten Sie gleich eine Mail mit Anweisungen."
|
||||
|
||||
#: lib/cannery_web/controllers/user_reset_password_controller.ex:24
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "If your email is in our system, you will receive instructions to reset your password shortly."
|
||||
msgstr ""
|
||||
"Falls Ihre Mailadresse bereits in unserer Datenbank ist, erhalten Sie gleich "
|
||||
"eine Mail mit Anweisungen zum Ändern ihres Passworts."
|
||||
|
||||
#: lib/cannery_web/controllers/user_session_controller.ex:23
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Logged out successfully."
|
||||
msgstr "Erfolgreich ausgeloggt."
|
||||
|
||||
#: lib/cannery_web/controllers/user_reset_password_controller.ex:46
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Password reset successfully."
|
||||
msgstr "Passwort erfolgreich zurückgesetzt."
|
||||
|
||||
#: lib/cannery_web/controllers/user_settings_controller.ex:47
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Password updated successfully."
|
||||
msgstr "Passwort erfolgreich geändert."
|
||||
|
||||
#: lib/cannery_web/controllers/user_registration_controller.ex:74
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Please check your email to verify your account"
|
||||
msgstr "Bitte überprüfen Sie ihre Mailbox und bestätigen Sie das Nutzerkonto"
|
||||
|
||||
#: lib/cannery_web/live/home_live.ex:103
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Register to setup %{name}"
|
||||
msgstr "Registrieren Sie sich, um %{name} zu bearbeiten"
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:30
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:42
|
||||
#: lib/cannery_web/live/tag_live/form_component.ex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Saving..."
|
||||
msgstr "Speichere..."
|
||||
|
||||
#: lib/cannery_web/controllers/user_settings_controller.ex:78
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Your account has been deleted"
|
||||
msgstr "Ihr Nutzerkonto wurde gelöscht"
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:16
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to remove the %{tag_name} tag from %{container_name}?"
|
||||
msgstr ""
|
||||
"Sind Sie sicher, dass sie %{tag_name} Tag von %{container_name} entfernen "
|
||||
"wollen?"
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:36
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} added successfully"
|
||||
msgstr "%{name} erfolgreich hinzugefügt"
|
||||
|
||||
#: lib/cannery_web/live/container_live/show.ex:39
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{tag_name} has been removed from %{container_name}"
|
||||
msgstr "%{tag_name} wurde von %{container_name} entfernt"
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:54
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Adding..."
|
||||
msgstr "Füge hinzu..."
|
||||
|
||||
#: lib/cannery_web/components/add_shot_group_component.ex:68
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shots recorded successfully"
|
||||
msgstr "Schüsse erfolgreich dokumentiert"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:29
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to unstage this ammo?"
|
||||
msgstr "Sind sie sicher, dass Sie diese Munition demarkieren möchten?"
|
||||
|
||||
#: lib/cannery_web/live/range_live/index.ex:70
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group unstaged succesfully"
|
||||
msgstr "Munition erfolgreich demarkiert"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:130
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr "Sind sie sicher, dass sie die Schießkladde löschen möchten?"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:80
|
||||
#: lib/cannery_web/live/range_live/index.ex:56
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot records deleted succesfully"
|
||||
msgstr "Schießkladde erfolgreich gelöscht"
|
||||
|
||||
#: lib/cannery_web/live/range_live/form_component.ex:55
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Shot records updated successfully"
|
||||
msgstr "Schießkladde erfolgreich aktualisiert"
|
||||
|
||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:38
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{email} confirmed successfully."
|
||||
msgstr "%{email} erfolgreich bestätigt."
|
||||
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:53
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo moved to %{name} successfully"
|
||||
msgstr "Munition erfolgreich zu %{name} verschoben"
|
||||
|
||||
#: lib/cannery_web/live/invite_live/index.ex:123
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Copied to clipboard"
|
||||
msgstr "Der Zwischenablage hinzugefügt"
|
||||
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:58
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "%{name} removed successfully"
|
||||
msgstr "%{name} erfolgreich entfernt"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:15
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:33
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "You'll need to"
|
||||
msgstr "Sie müssen"
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:67
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Creating..."
|
||||
msgstr "Erstellen..."
|
||||
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:147
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Ammo group created successfully"
|
||||
msgid_plural "Ammo groups created successfully"
|
||||
msgstr[0] "Munitionsgruppe erfolgreich erstellt"
|
||||
msgstr[1] "Munitionsgruppen erfolgreich erstellt"
|
@ -33,13 +33,13 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/topbar.ex:52
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:61
|
||||
#: lib/cannery_web/live/range_live/index.ex:82
|
||||
msgid "Ammo"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:80
|
||||
msgid "Ammo type"
|
||||
msgstr ""
|
||||
|
||||
@ -55,7 +55,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:71
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||
msgid "Blank"
|
||||
msgstr ""
|
||||
@ -101,28 +101,29 @@ msgid "Case material"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:22
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:68
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:85
|
||||
msgid "Container"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/topbar.ex:46
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
msgid "Containers"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||
msgid "Corrosive"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:56
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:81
|
||||
msgid "Count"
|
||||
msgstr ""
|
||||
|
||||
@ -193,14 +194,14 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||
msgid "Grains"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||
msgid "Incendiary"
|
||||
msgstr ""
|
||||
@ -222,6 +223,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/topbar.ex:71
|
||||
#: lib/cannery_web/live/invite_live/index.ex:43
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:3
|
||||
msgid "Invites"
|
||||
msgstr ""
|
||||
@ -232,27 +234,7 @@ msgid "Keep me logged in for 60 days"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||
msgid "Listing Ammo types"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
msgid "Listing Containers"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/invite_live/index.ex:43
|
||||
msgid "Listing Invites"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/tag_live/index.ex:34
|
||||
msgid "Listing Tags"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:30
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
msgid "Location"
|
||||
msgstr ""
|
||||
@ -275,7 +257,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:57
|
||||
msgid "Manufacturer"
|
||||
msgstr ""
|
||||
@ -358,9 +340,9 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:122
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:90
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||
#: lib/cannery_web/live/range_live/index.ex:84
|
||||
msgid "Notes"
|
||||
msgstr ""
|
||||
|
||||
@ -377,14 +359,14 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||
msgid "Pressure"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:59
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:82
|
||||
msgid "Price paid"
|
||||
msgstr ""
|
||||
|
||||
@ -395,7 +377,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||
msgid "Primer type"
|
||||
msgstr ""
|
||||
@ -453,6 +435,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/topbar.ex:40
|
||||
#: lib/cannery_web/live/tag_live/index.ex:34
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
msgid "Tags"
|
||||
msgstr ""
|
||||
@ -479,13 +462,13 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||
msgid "Tracer"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:26
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
@ -528,7 +511,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/topbar.ex:64
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:84
|
||||
msgid "Range"
|
||||
msgstr ""
|
||||
|
||||
@ -538,8 +521,8 @@ msgid "Range day"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:125
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:70
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:91
|
||||
#: lib/cannery_web/live/range_live/index.ex:85
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
@ -609,8 +592,8 @@ msgid "Rounds left"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:119
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:89
|
||||
#: lib/cannery_web/live/range_live/index.ex:83
|
||||
msgid "Rounds shot"
|
||||
msgstr ""
|
||||
|
||||
@ -626,12 +609,12 @@ msgid "Move Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:3
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
||||
msgid "Move ammo"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:8
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:85
|
||||
msgid "No other containers"
|
||||
msgstr ""
|
||||
|
||||
@ -642,7 +625,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:43
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:90
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:117
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:32
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:39
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:98
|
||||
@ -670,7 +653,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||
msgid "Powder grains per charge"
|
||||
msgstr ""
|
||||
@ -684,7 +667,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:58
|
||||
msgid "UPC"
|
||||
msgstr ""
|
||||
@ -706,18 +689,18 @@ msgid "New password"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:108
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:131
|
||||
msgid "Stage"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:108
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:131
|
||||
msgid "Unstage"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||
msgid "Firing type"
|
||||
msgstr ""
|
||||
@ -760,7 +743,7 @@ msgid "No cost information"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:62
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:83
|
||||
msgid "% left"
|
||||
msgstr ""
|
||||
|
||||
@ -795,7 +778,7 @@ msgid "Current # of rounds:"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:32
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:86
|
||||
msgid "Total # of rounds"
|
||||
msgstr ""
|
||||
|
||||
@ -839,3 +822,8 @@ msgstr ""
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:58
|
||||
msgid "Copies"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||
msgid "Ammo types"
|
||||
msgstr ""
|
||||
|
@ -125,8 +125,8 @@ msgid "Reset password"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:42
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:54
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:46
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:28
|
||||
@ -161,7 +161,7 @@ msgid "Why not get some ready to shoot?"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:133
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:36
|
||||
msgid "Record shots"
|
||||
@ -173,7 +173,7 @@ msgid "Ammo Details"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:12
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:89
|
||||
msgid "Add another container!"
|
||||
msgstr ""
|
||||
|
||||
@ -183,7 +183,7 @@ msgid "Move containers"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:60
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:127
|
||||
msgid "Select"
|
||||
msgstr ""
|
||||
|
||||
@ -197,3 +197,8 @@ msgstr ""
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
||||
msgid "add a container first"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||
msgid "Create"
|
||||
msgstr ""
|
||||
|
@ -34,13 +34,13 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/topbar.ex:52
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:61
|
||||
#: lib/cannery_web/live/range_live/index.ex:82
|
||||
msgid "Ammo"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:53
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:80
|
||||
msgid "Ammo type"
|
||||
msgstr ""
|
||||
|
||||
@ -56,7 +56,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:140
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:71
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||
msgid "Blank"
|
||||
msgstr ""
|
||||
@ -102,28 +102,29 @@ msgid "Case material"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:22
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:67
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:68
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:85
|
||||
msgid "Container"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/topbar.ex:46
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||
msgid "Containers"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:144
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:72
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||
msgid "Corrosive"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:56
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:81
|
||||
msgid "Count"
|
||||
msgstr ""
|
||||
|
||||
@ -194,14 +195,14 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||
msgid "Grains"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:136
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||
msgid "Incendiary"
|
||||
msgstr ""
|
||||
@ -223,6 +224,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/topbar.ex:71
|
||||
#: lib/cannery_web/live/invite_live/index.ex:43
|
||||
#: lib/cannery_web/live/invite_live/index.html.heex:3
|
||||
msgid "Invites"
|
||||
msgstr ""
|
||||
@ -233,27 +235,7 @@ msgid "Keep me logged in for 60 days"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||
msgid "Listing Ammo types"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/container_live/index.ex:38
|
||||
msgid "Listing Containers"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/invite_live/index.ex:43
|
||||
msgid "Listing Invites"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/tag_live/index.ex:34
|
||||
msgid "Listing Tags"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:30
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||
msgid "Location"
|
||||
msgstr ""
|
||||
@ -276,7 +258,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:148
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:73
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:57
|
||||
msgid "Manufacturer"
|
||||
msgstr ""
|
||||
@ -359,9 +341,9 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:30
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:122
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:90
|
||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:67
|
||||
#: lib/cannery_web/live/range_live/index.ex:84
|
||||
msgid "Notes"
|
||||
msgstr ""
|
||||
|
||||
@ -378,14 +360,14 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:111
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:62
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||
msgid "Pressure"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:59
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:82
|
||||
msgid "Price paid"
|
||||
msgstr ""
|
||||
|
||||
@ -396,7 +378,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:118
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:63
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:67
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||
msgid "Primer type"
|
||||
msgstr ""
|
||||
@ -454,6 +436,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/topbar.ex:40
|
||||
#: lib/cannery_web/live/tag_live/index.ex:34
|
||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||
msgid "Tags"
|
||||
msgstr ""
|
||||
@ -480,13 +463,13 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:132
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:65
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:69
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||
msgid "Tracer"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:26
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||
msgid "Type"
|
||||
msgstr ""
|
||||
@ -529,7 +512,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/topbar.ex:64
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:65
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:84
|
||||
msgid "Range"
|
||||
msgstr ""
|
||||
|
||||
@ -539,8 +522,8 @@ msgid "Range day"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:125
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:70
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:91
|
||||
#: lib/cannery_web/live/range_live/index.ex:85
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
@ -610,8 +593,8 @@ msgid "Rounds left"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:119
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:89
|
||||
#: lib/cannery_web/live/range_live/index.ex:83
|
||||
msgid "Rounds shot"
|
||||
msgstr ""
|
||||
|
||||
@ -627,12 +610,12 @@ msgid "Move Ammo group"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:3
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
||||
msgid "Move ammo"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.html.heex:8
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:85
|
||||
msgid "No other containers"
|
||||
msgstr ""
|
||||
|
||||
@ -643,7 +626,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/ammo_group_card.ex:43
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:90
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:117
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:32
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:39
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:98
|
||||
@ -671,7 +654,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:93
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:60
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:61
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||
msgid "Powder grains per charge"
|
||||
msgstr ""
|
||||
@ -685,7 +668,7 @@ msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:152
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:70
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:58
|
||||
msgid "UPC"
|
||||
msgstr ""
|
||||
@ -707,18 +690,18 @@ msgid "New password"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:108
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:130
|
||||
msgid "Stage"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:108
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:130
|
||||
msgid "Unstage"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:125
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:64
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:68
|
||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||
msgid "Firing type"
|
||||
msgstr ""
|
||||
@ -761,7 +744,7 @@ msgid "No cost information"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:62
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:83
|
||||
msgid "% left"
|
||||
msgstr ""
|
||||
|
||||
@ -796,7 +779,7 @@ msgid "Current # of rounds:"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:32
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:86
|
||||
msgid "Total # of rounds"
|
||||
msgstr ""
|
||||
|
||||
@ -835,3 +818,13 @@ msgstr ""
|
||||
#: lib/cannery_web/live/range_live/index.ex:28
|
||||
msgid "Record Shots"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:58
|
||||
msgid "Copies"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||
msgid "Ammo types"
|
||||
msgstr ""
|
||||
|
@ -158,3 +158,13 @@ msgstr ""
|
||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:52
|
||||
msgid "Tag could not be removed"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:113
|
||||
msgid "Could not parse number of copies"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:98
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr ""
|
||||
|
@ -62,11 +62,6 @@ msgstr ""
|
||||
msgid "A link to confirm your email change has been sent to the new address."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:90
|
||||
msgid "Ammo group created successfully"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:52
|
||||
@ -74,7 +69,7 @@ msgid "Ammo group deleted succesfully"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:72
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:75
|
||||
msgid "Ammo group updated successfully"
|
||||
msgstr ""
|
||||
|
||||
@ -98,9 +93,9 @@ msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:146
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:165
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:75
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:130
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr ""
|
||||
|
||||
@ -160,8 +155,8 @@ msgid "Register to setup %{name}"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:44
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:55
|
||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:48
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:30
|
||||
@ -211,8 +206,8 @@ msgid "Ammo group unstaged succesfully"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:159
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:108
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:130
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr ""
|
||||
|
||||
@ -233,7 +228,7 @@ msgid "%{email} confirmed successfully."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:47
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:53
|
||||
msgid "Ammo moved to %{name} successfully"
|
||||
msgstr ""
|
||||
|
||||
@ -252,3 +247,15 @@ msgstr ""
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:33
|
||||
msgid "You'll need to"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:67
|
||||
msgid "Creating..."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:134
|
||||
msgid "Ammo group created successfully"
|
||||
msgid_plural "Ammo groups created successfully"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
@ -159,11 +159,11 @@ msgid "Tag could not be removed"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:113
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:126
|
||||
msgid "Could not parse number of copies"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:98
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:111
|
||||
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||
msgstr ""
|
||||
|
@ -68,7 +68,7 @@ msgid "Ammo group deleted succesfully"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:75
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:88
|
||||
msgid "Ammo group updated successfully"
|
||||
msgstr ""
|
||||
|
||||
@ -92,9 +92,9 @@ msgid "Are you sure you want to delete the invite for %{name}?"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:146
|
||||
#: lib/cannery_web/live/ammo_group_live/index.ex:167
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:66
|
||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:75
|
||||
#: lib/cannery_web/live/ammo_type_live/index.ex:130
|
||||
msgid "Are you sure you want to delete this ammo?"
|
||||
msgstr ""
|
||||
|
||||
@ -205,8 +205,8 @@ msgid "Ammo group unstaged succesfully"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:159
|
||||
#: lib/cannery_web/live/range_live/index.html.heex:108
|
||||
#: lib/cannery_web/live/ammo_group_live/show.ex:132
|
||||
#: lib/cannery_web/live/range_live/index.ex:130
|
||||
msgid "Are you sure you want to delete this shot record?"
|
||||
msgstr ""
|
||||
|
||||
@ -227,7 +227,7 @@ msgid "%{email} confirmed successfully."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:47
|
||||
#: lib/cannery_web/components/move_ammo_group_component.ex:53
|
||||
msgid "Ammo moved to %{name} successfully"
|
||||
msgstr ""
|
||||
|
||||
@ -253,7 +253,7 @@ msgid "Creating..."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-autogen, elixir-format
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:134
|
||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:147
|
||||
msgid "Ammo group created successfully"
|
||||
msgid_plural "Ammo groups created successfully"
|
||||
msgstr[0] ""
|
||||
|
10
priv/i18n/de.tbx
Normal file
10
priv/i18n/de.tbx
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE martif PUBLIC "ISO 12200:1999A//DTD MARTIF core (DXFcdV04)//EN" "TBXcdv04.dtd">
|
||||
<martif type="TBX">
|
||||
<martifHeader>
|
||||
<fileDesc>
|
||||
<sourceDesc><p>Translate Toolkit</p></sourceDesc>
|
||||
</fileDesc>
|
||||
</martifHeader>
|
||||
<text><body></body></text>
|
||||
</martif>
|
@ -304,9 +304,9 @@ defmodule Cannery.AccountsTest do
|
||||
end
|
||||
|
||||
test "deletes all tokens for the given user", %{user: user} do
|
||||
_ = Accounts.generate_user_session_token(user)
|
||||
_token = Accounts.generate_user_session_token(user)
|
||||
|
||||
{:ok, _} =
|
||||
{:ok, _user} =
|
||||
Accounts.update_user_password(user, valid_user_password(), %{
|
||||
"password" => "new valid password"
|
||||
})
|
||||
@ -501,8 +501,8 @@ defmodule Cannery.AccountsTest do
|
||||
end
|
||||
|
||||
test "deletes all tokens for the given user", %{user: user} do
|
||||
_ = Accounts.generate_user_session_token(user)
|
||||
{:ok, _} = Accounts.reset_user_password(user, %{"password" => "new valid password"})
|
||||
_token = Accounts.generate_user_session_token(user)
|
||||
{:ok, _user} = Accounts.reset_user_password(user, %{"password" => "new valid password"})
|
||||
refute Repo.get_by(UserToken, user_id: user.id)
|
||||
end
|
||||
end
|
||||
|
@ -116,7 +116,7 @@ defmodule CanneryWeb.UserAuthTest do
|
||||
end
|
||||
|
||||
test "does not authenticate if data is missing", %{conn: conn, current_user: current_user} do
|
||||
_ = Accounts.generate_user_session_token(current_user)
|
||||
_token = Accounts.generate_user_session_token(current_user)
|
||||
conn = UserAuth.fetch_current_user(conn, [])
|
||||
refute get_session(conn, :user_token)
|
||||
refute conn.assigns.current_user
|
||||
|
@ -5,8 +5,7 @@ defmodule CanneryWeb.UserConfirmationControllerTest do
|
||||
|
||||
use CanneryWeb.ConnCase, async: true
|
||||
import CanneryWeb.Gettext
|
||||
alias Cannery.Accounts
|
||||
alias Cannery.Repo
|
||||
alias Cannery.{Accounts, Repo}
|
||||
|
||||
@moduletag :user_confirmation_controller_test
|
||||
|
||||
|
@ -51,7 +51,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
# |> form("#ammo_group-form", ammo_group: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#ammo_group-form", ammo_group: @create_attrs)
|
||||
|> render_submit()
|
||||
@ -75,7 +75,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
# |> form("#ammo_group-form", ammo_group: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#ammo_group-form",
|
||||
ammo_group: @create_attrs |> Map.put("multiplier", to_string(multiplier))
|
||||
@ -135,7 +135,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
# |> form("#shot_group-form", shot_group: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "is invalid")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#shot-group-form", shot_group: @shot_group_create_attrs)
|
||||
|> render_submit()
|
||||
@ -158,7 +158,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
# |> form("#ammo_group-form", ammo_group: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#ammo_group-form", ammo_group: @update_attrs)
|
||||
|> render_submit()
|
||||
@ -204,7 +204,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
# |> form("#ammo_group-form", ammo_group: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
show_live
|
||||
|> form("#ammo_group-form", ammo_group: @update_attrs)
|
||||
|> render_submit()
|
||||
@ -226,7 +226,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
# |> form("#shot_group-form", shot_group: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "is invalid")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#shot-group-form", shot_group: @shot_group_create_attrs)
|
||||
|> render_submit()
|
||||
@ -251,7 +251,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
|
||||
# |> form("#shot_group-form", shot_group: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "is invalid")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#shot-group-form", shot_group: @shot_group_update_attrs)
|
||||
|> render_submit()
|
||||
|
@ -62,7 +62,7 @@ defmodule CanneryWeb.AmmoTypeLiveTest do
|
||||
# |> form("#ammo_type-form", ammo_type: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#ammo_type-form", ammo_type: @create_attrs)
|
||||
|> render_submit()
|
||||
@ -86,7 +86,7 @@ defmodule CanneryWeb.AmmoTypeLiveTest do
|
||||
# |> form("#ammo_type-form", ammo_type: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#ammo_type-form", ammo_type: @update_attrs)
|
||||
|> render_submit()
|
||||
@ -128,7 +128,7 @@ defmodule CanneryWeb.AmmoTypeLiveTest do
|
||||
# |> form("#ammo_type-form", ammo_type: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
show_live
|
||||
|> form("#ammo_type-form", ammo_type: @update_attrs)
|
||||
|> render_submit()
|
||||
|
@ -52,7 +52,7 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
# |> form("#container-form", container: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#container-form", container: @create_attrs)
|
||||
|> render_submit()
|
||||
@ -78,7 +78,7 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
# |> form("#container-form", container: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#container-form", container: @update_attrs)
|
||||
|> render_submit()
|
||||
@ -123,7 +123,7 @@ defmodule CanneryWeb.ContainerLiveTest do
|
||||
# |> form("#container-form", container: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
show_live
|
||||
|> form("#container-form", container: @update_attrs)
|
||||
|> render_submit()
|
||||
|
@ -40,7 +40,7 @@ defmodule CanneryWeb.InviteLiveTest do
|
||||
# |> form("#invite-form", invite: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#invite-form", invite: @create_attrs)
|
||||
|> render_submit()
|
||||
@ -63,7 +63,7 @@ defmodule CanneryWeb.InviteLiveTest do
|
||||
# |> form("#invite-form", invite: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#invite-form", invite: @update_attrs)
|
||||
|> render_submit()
|
||||
|
@ -49,7 +49,7 @@ defmodule CanneryWeb.RangeLiveTest do
|
||||
# |> form("#shot_group-form", shot_group: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "is invalid")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#shot-group-form", shot_group: @create_attrs)
|
||||
|> render_submit()
|
||||
@ -71,7 +71,7 @@ defmodule CanneryWeb.RangeLiveTest do
|
||||
# |> form("#shot_group-form", shot_group: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "is invalid")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#shot-group-form", shot_group: @update_attrs)
|
||||
|> render_submit()
|
||||
|
@ -53,7 +53,7 @@ defmodule CanneryWeb.TagLiveTest do
|
||||
# |> form("#tag-form", tag: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#tag-form", tag: @create_attrs)
|
||||
|> render_submit()
|
||||
@ -75,7 +75,7 @@ defmodule CanneryWeb.TagLiveTest do
|
||||
# |> form("#tag-form", tag: @invalid_attrs)
|
||||
# |> render_change() =~ dgettext("errors", "can't be blank")
|
||||
|
||||
{:ok, _, html} =
|
||||
{:ok, _view, html} =
|
||||
index_live
|
||||
|> form("#tag-form", tag: @update_attrs)
|
||||
|> render_submit()
|
||||
|
@ -5,12 +5,11 @@ defmodule CanneryWeb.ErrorViewTest do
|
||||
|
||||
use CanneryWeb.ConnCase, async: true
|
||||
import CanneryWeb.Gettext
|
||||
|
||||
@moduletag :error_view_test
|
||||
|
||||
# Bring render/3 and render_to_string/3 for testing custom views
|
||||
import Phoenix.View
|
||||
|
||||
@moduletag :error_view_test
|
||||
|
||||
test "renders 404.html" do
|
||||
assert render_to_string(CanneryWeb.ErrorView, "404.html", []) =~
|
||||
dgettext("errors", "Not found")
|
||||
|
@ -25,6 +25,7 @@ defmodule CanneryWeb.ConnCase do
|
||||
# Import conveniences for testing with connections
|
||||
import Plug.Conn
|
||||
import Phoenix.ConnTest
|
||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||
import Cannery.Fixtures
|
||||
import CanneryWeb.ConnCase
|
||||
|
||||
|
@ -22,10 +22,8 @@ defmodule Cannery.DataCase do
|
||||
alias Cannery.Repo
|
||||
|
||||
import Ecto
|
||||
import Ecto.Changeset
|
||||
import Ecto.Query
|
||||
import Cannery.DataCase
|
||||
import Cannery.Fixtures
|
||||
import Ecto.{Changeset, Query}
|
||||
import Cannery.{DataCase, Fixtures}
|
||||
end
|
||||
end
|
||||
|
||||
@ -45,7 +43,7 @@ defmodule Cannery.DataCase do
|
||||
"""
|
||||
def errors_on(changeset) do
|
||||
Ecto.Changeset.traverse_errors(changeset, fn {message, opts} ->
|
||||
Regex.replace(~r"%{(\w+)}", message, fn _, key ->
|
||||
Regex.replace(~r"%{(\w+)}", message, fn _content, key ->
|
||||
opts |> Keyword.get(String.to_existing_atom(key), key) |> to_string()
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user