Compare commits
99 Commits
Author | SHA1 | Date | |
---|---|---|---|
d086c4c813 | |||
f49fe21da5 | |||
717c898d48 | |||
085411132d | |||
c8a6a9d81e | |||
a0389db9ef | |||
e6e4db7410 | |||
78542a533a | |||
46665dce88 | |||
4b420f313c | |||
42b4d0758f | |||
901c2a948f | |||
6fe5a29ebd | |||
ce7223597c | |||
4791a2849e | |||
7edc9642d4 | |||
2ae0c3133c | |||
f284773f68 | |||
d35a81ef39 | |||
4c3ebaec53 | |||
a13a57c6ee | |||
8c7b9f9a9b | |||
7b7604f48f | |||
b1b52b9edc | |||
3fcea8e679 | |||
98ec324a2c | |||
0868789811 | |||
87c62f9ef8 | |||
0919ee2a72 | |||
0b910af077 | |||
cb81eb4116 | |||
b1d7cfe591 | |||
1431b92e42 | |||
c555022ea7 | |||
0917aff37b | |||
7f9e6f9eff | |||
9e754fe630 | |||
45d905b384 | |||
3297130890 | |||
d27b54386d | |||
ebf32c49bf | |||
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 | |||
e6a4fbcfb5 | |||
a6b2c6181e | |||
d79d0fa179 | |||
46387e8d7a | |||
dccea1b9de | |||
5ca21c64fd | |||
9773ccc6ff | |||
9cd2bc574b | |||
ee28de1178 | |||
91cf9d0eb5 | |||
3ce8eda712 | |||
1a78e88b34 | |||
968abd04ee | |||
dc209fa192 |
14
.credo.exs
14
.credo.exs
@ -157,17 +157,17 @@
|
|||||||
#
|
#
|
||||||
# Controversial and experimental checks (opt-in, just replace `false` with `[]`)
|
# Controversial and experimental checks (opt-in, just replace `false` with `[]`)
|
||||||
#
|
#
|
||||||
{Credo.Check.Consistency.MultiAliasImportRequireUse, false},
|
{Credo.Check.Consistency.MultiAliasImportRequireUse, []},
|
||||||
{Credo.Check.Consistency.UnusedVariableNames, false},
|
{Credo.Check.Consistency.UnusedVariableNames, [force: :meaningful]},
|
||||||
{Credo.Check.Design.DuplicatedCode, false},
|
{Credo.Check.Design.DuplicatedCode, false},
|
||||||
{Credo.Check.Readability.AliasAs, false},
|
{Credo.Check.Readability.AliasAs, false},
|
||||||
{Credo.Check.Readability.BlockPipe, false},
|
{Credo.Check.Readability.BlockPipe, false},
|
||||||
{Credo.Check.Readability.ImplTrue, false},
|
{Credo.Check.Readability.ImplTrue, false},
|
||||||
{Credo.Check.Readability.MultiAlias, false},
|
{Credo.Check.Readability.MultiAlias, false},
|
||||||
{Credo.Check.Readability.SeparateAliasRequire, false},
|
{Credo.Check.Readability.SeparateAliasRequire, []},
|
||||||
{Credo.Check.Readability.SinglePipe, false},
|
{Credo.Check.Readability.SinglePipe, false},
|
||||||
{Credo.Check.Readability.Specs, false},
|
{Credo.Check.Readability.Specs, false},
|
||||||
{Credo.Check.Readability.StrictModuleLayout, false},
|
{Credo.Check.Readability.StrictModuleLayout, []},
|
||||||
{Credo.Check.Readability.WithCustomTaggedTuple, false},
|
{Credo.Check.Readability.WithCustomTaggedTuple, false},
|
||||||
{Credo.Check.Refactor.ABCSize, false},
|
{Credo.Check.Refactor.ABCSize, false},
|
||||||
{Credo.Check.Refactor.AppendSingleItem, false},
|
{Credo.Check.Refactor.AppendSingleItem, false},
|
||||||
@ -176,9 +176,9 @@
|
|||||||
{Credo.Check.Refactor.NegatedIsNil, false},
|
{Credo.Check.Refactor.NegatedIsNil, false},
|
||||||
{Credo.Check.Refactor.PipeChainStart, false},
|
{Credo.Check.Refactor.PipeChainStart, false},
|
||||||
{Credo.Check.Refactor.VariableRebinding, false},
|
{Credo.Check.Refactor.VariableRebinding, false},
|
||||||
{Credo.Check.Warning.LeakyEnvironment, false},
|
{Credo.Check.Warning.LeakyEnvironment, []},
|
||||||
{Credo.Check.Warning.MapGetUnsafePass, false},
|
{Credo.Check.Warning.MapGetUnsafePass, []},
|
||||||
{Credo.Check.Warning.UnsafeToAtom, false}
|
{Credo.Check.Warning.UnsafeToAtom, []}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Custom checks can be created using `mix credo.gen.check`.
|
# Custom checks can be created using `mix credo.gen.check`.
|
||||||
|
10
.drone.yml
10
.drone.yml
@ -16,15 +16,19 @@ steps:
|
|||||||
- assets/node_modules/
|
- assets/node_modules/
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: bitwalker/alpine-elixir-phoenix:1.13
|
image: elixir:1.13.4-alpine
|
||||||
environment:
|
environment:
|
||||||
TEST_DATABASE_URL: ecto://postgres:postgres@database/cannery_test
|
TEST_DATABASE_URL: ecto://postgres:postgres@database/cannery_test
|
||||||
HOST: testing.example.tld
|
HOST: testing.example.tld
|
||||||
commands:
|
commands:
|
||||||
|
- apk add --no-cache build-base npm git python3
|
||||||
- mix local.rebar --force
|
- mix local.rebar --force
|
||||||
- mix local.hex --force
|
- mix local.hex --force
|
||||||
- mix deps.get
|
- mix deps.get
|
||||||
- npm install --prefix assets
|
- mix deps.compile
|
||||||
|
- npm --prefix ./assets ci --progress=false --no-audit --loglevel=error
|
||||||
|
- npm run --prefix ./assets deploy
|
||||||
|
- mix do phx.digest, gettext.extract
|
||||||
- mix test
|
- mix test
|
||||||
|
|
||||||
- name: build and publish stable
|
- name: build and publish stable
|
||||||
@ -77,7 +81,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
host:
|
host:
|
||||||
path: /tmp/drone-cache
|
path: /run/media/default/ssdsrv/gitea/drone-cache
|
||||||
- name: docker_sock
|
- name: docker_sock
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
import_deps: [:ecto, :phoenix],
|
import_deps: [:ecto, :phoenix],
|
||||||
inputs: ["*.{heex,ex,exs}", "priv/*/seeds.exs", "{config,lib,test}/**/*.{heex,ex,exs}"],
|
inputs: ["*.{heex,ex,exs}", "priv/*/seeds.exs", "{config,lib,test}/**/*.{heex,ex,exs}"],
|
||||||
subdirectories: ["priv/*/migrations"],
|
subdirectories: ["priv/*/migrations"],
|
||||||
plugins: [HeexFormatter]
|
plugins: [Phoenix.LiveView.HTMLFormatter]
|
||||||
]
|
]
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
elixir 1.13.2-otp-24
|
elixir 1.13.4-otp-24
|
||||||
erlang 24.2
|
erlang 24.2
|
||||||
nodejs 16.13.2
|
nodejs 16.13.2
|
||||||
|
43
CHANGELOG.md
43
CHANGELOG.md
@ -1,3 +1,46 @@
|
|||||||
|
# v0.5.2
|
||||||
|
- Add "Added on" date to ammo groups
|
||||||
|
- Add "Added on" date to ammo types
|
||||||
|
- Add "Registered on" date to user information
|
||||||
|
- Add language in user settings. The `LOCALE` environment variable will continue
|
||||||
|
to set the default locale for the application.
|
||||||
|
- Add involvement links to home page
|
||||||
|
- Fix button text-wrapping
|
||||||
|
- Update dependencies
|
||||||
|
|
||||||
|
# v0.5.1
|
||||||
|
- Add French translation: Thank you [duponin](https://udongein.xyz/users/duponin)!
|
||||||
|
|
||||||
|
# v0.5.0
|
||||||
|
- Add German translation: Thank you [Kaia](https://shitposter.club/users/kaia)!
|
||||||
|
- Fix not being able to edit ammo group when fully used up
|
||||||
|
- Fix bug with average price per round calculation
|
||||||
|
- Show average price per round on ammo type table
|
||||||
|
- Use Elixir v1.13.4
|
||||||
|
|
||||||
|
# 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
|
||||||
|
- Edit and delete shot groups from ammo group show page
|
||||||
|
- Use today's date when adding new shot groups
|
||||||
|
- Create multiple ammo groups at one time
|
||||||
|
|
||||||
|
# v0.2.3
|
||||||
|
- Fix modals with overflowing forms
|
||||||
|
- Fix grids having uneven margins in phone mode
|
||||||
|
- Add page titles to registration and setting pages
|
||||||
|
|
||||||
# v0.2.2
|
# v0.2.2
|
||||||
- Fix loading and reconnecting pages not being fixed
|
- Fix loading and reconnecting pages not being fixed
|
||||||
- Fix closing modal in some cases not triggering a page reload
|
- Fix closing modal in some cases not triggering a page reload
|
||||||
|
@ -63,8 +63,7 @@ And as always, thank you!
|
|||||||
[`phx_gen_auth`](https://hexdocs.pm/phx_gen_auth/).
|
[`phx_gen_auth`](https://hexdocs.pm/phx_gen_auth/).
|
||||||
- `Dockerfile` and example `docker-compose.yml`
|
- `Dockerfile` and example `docker-compose.yml`
|
||||||
- Automatic migrations in `MIX_ENV=prod` or Docker image
|
- Automatic migrations in `MIX_ENV=prod` or Docker image
|
||||||
- JS linting with [standard.js](https://standardjs.com), HEEx linting with
|
- JS linting with [standard.js](https://standardjs.com)
|
||||||
[heex_formatter](https://github.com/feliperenan/heex_formatter)
|
|
||||||
|
|
||||||
## Docs
|
## Docs
|
||||||
|
|
||||||
@ -109,7 +108,8 @@ In `dev` mode, Cannery will listen for these environment variables at runtime.
|
|||||||
Defaults to `false`.
|
Defaults to `false`.
|
||||||
- `POOL_SIZE`: Controls the pool size to use with PostgreSQL. Defaults to `10`.
|
- `POOL_SIZE`: Controls the pool size to use with PostgreSQL. Defaults to `10`.
|
||||||
- `REGISTRATION`: Controls if user sign-up should be invite only or set to public. Set to `public` to enable public registration. Defaults to `invite`.
|
- `REGISTRATION`: Controls if user sign-up should be invite only or set to public. Set to `public` to enable public registration. Defaults to `invite`.
|
||||||
- `LOCALE`: Sets a custom locale. Defaults to `en_US`.
|
- `LOCALE`: Sets a custom default locale. Defaults to `en_US`.
|
||||||
|
- Available options: `en_US`, `de`, and `fr`
|
||||||
|
|
||||||
## `MIX_ENV=test`
|
## `MIX_ENV=test`
|
||||||
|
|
||||||
@ -141,3 +141,5 @@ In `prod` mode (or in the Docker container), Cannery will listen for the same en
|
|||||||
Thank you so much for your contributions!
|
Thank you so much for your contributions!
|
||||||
|
|
||||||
- shibao (https://misskey.bubbletea.dev/@shibao)
|
- shibao (https://misskey.bubbletea.dev/@shibao)
|
||||||
|
- kaia (https://shitposter.club/users/kaia)
|
||||||
|
- duponin (https://udongein.xyz/users/duponin)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM elixir:1.13-alpine AS build
|
FROM elixir:1.13.4-alpine AS build
|
||||||
|
|
||||||
# install build dependencies
|
# install build dependencies
|
||||||
RUN apk add --no-cache build-base npm git python3
|
RUN apk add --no-cache build-base npm git python3
|
||||||
|
@ -63,7 +63,8 @@ You can use the following environment variables to configure Cannery in
|
|||||||
with `docker run -it shibaobun/cannery mix phx.gen.secret` and set for server to start.
|
with `docker run -it shibaobun/cannery mix phx.gen.secret` and set for server to start.
|
||||||
- `REGISTRATION`: Controls if user sign-up should be invite only or set to
|
- `REGISTRATION`: Controls if user sign-up should be invite only or set to
|
||||||
public. Set to `public` to enable public registration. Defaults to `invite`.
|
public. Set to `public` to enable public registration. Defaults to `invite`.
|
||||||
- `LOCALE`: Sets a custom locale. Defaults to `en_US`.
|
- `LOCALE`: Sets a custom default locale. Defaults to `en_US`
|
||||||
|
- Available options: `en_US`, `de`, and `fr`
|
||||||
- `SMTP_HOST`: The url for your SMTP email provider. Must be set
|
- `SMTP_HOST`: The url for your SMTP email provider. Must be set
|
||||||
- `SMTP_PORT`: The port for your SMTP relay. Defaults to `587`.
|
- `SMTP_PORT`: The port for your SMTP relay. Defaults to `587`.
|
||||||
- `SMTP_USERNAME`: The username for your SMTP relay. Must be set!
|
- `SMTP_USERNAME`: The username for your SMTP relay. Must be set!
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
|
@apply inline-block break-words min-w-4;
|
||||||
@apply focus:outline-none px-4 py-2 rounded-lg;
|
@apply focus:outline-none px-4 py-2 rounded-lg;
|
||||||
@apply shadow-sm focus:shadow-lg;
|
@apply shadow-sm focus:shadow-lg;
|
||||||
@apply transition-all duration-300 ease-in-out;
|
@apply transition-all duration-300 ease-in-out;
|
||||||
@ -51,6 +52,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.link {
|
.link {
|
||||||
|
@apply inline-block break-all min-w-4;
|
||||||
@apply hover:underline;
|
@apply hover:underline;
|
||||||
@apply transition-colors duration-500 ease-in-out;
|
@apply transition-colors duration-500 ease-in-out;
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,10 @@
|
|||||||
// update. https://github.com/phoenixframework/phoenix_live_view/issues/1011
|
// update. https://github.com/phoenixframework/phoenix_live_view/issues/1011
|
||||||
|
|
||||||
export default {
|
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)]) },
|
beforeUpdate () { this.prevAttrs = this.attrs().map(name => [name, this.el.getAttribute(name)]) },
|
||||||
updated () { this.prevAttrs.forEach(([name, val]) => this.el.setAttribute(name, val)) }
|
updated () { this.prevAttrs.forEach(([name, val]) => this.el.setAttribute(name, val)) }
|
||||||
}
|
}
|
||||||
|
11731
assets/package-lock.json
generated
11731
assets/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -9,36 +9,33 @@
|
|||||||
"test": "standard"
|
"test": "standard"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^5.15.4",
|
"@fortawesome/fontawesome-free": "^6.1.1",
|
||||||
"alpinejs": "^3.9.0",
|
"alpinejs": "^3.10.2",
|
||||||
"phoenix": "file:../deps/phoenix",
|
"phoenix": "file:../deps/phoenix",
|
||||||
"phoenix_html": "file:../deps/phoenix_html",
|
"phoenix_html": "file:../deps/phoenix_html",
|
||||||
"phoenix_live_view": "file:../deps/phoenix_live_view",
|
"phoenix_live_view": "file:../deps/phoenix_live_view",
|
||||||
"topbar": "^0.1.4"
|
"topbar": "^1.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.15.0",
|
"@babel/core": "^7.17.10",
|
||||||
"@babel/preset-env": "^7.15.0",
|
"@babel/preset-env": "^7.17.10",
|
||||||
"autoprefixer": "^10.2.6",
|
"autoprefixer": "^10.4.7",
|
||||||
"babel-loader": "^8.2.2",
|
"babel-loader": "^8.2.5",
|
||||||
"copy-webpack-plugin": "^9.0.0",
|
"copy-webpack-plugin": "^10.2.4",
|
||||||
"css-loader": "^5.2.7",
|
"css-loader": "^6.7.1",
|
||||||
"css-minimizer-webpack-plugin": "^3.0.1",
|
"css-minimizer-webpack-plugin": "^3.4.1",
|
||||||
"file-loader": "^6.2.0",
|
"file-loader": "^6.2.0",
|
||||||
"hard-source-webpack-plugin": "^0.13.1",
|
"mini-css-extract-plugin": "^2.6.0",
|
||||||
"mini-css-extract-plugin": "^1.6.0",
|
"postcss": "^8.4.13",
|
||||||
"node-sass": "^7.0.1",
|
"postcss-import": "^14.1.0",
|
||||||
"postcss": "^8.3.6",
|
"postcss-loader": "^6.2.1",
|
||||||
"postcss-import": "^14.0.2",
|
"postcss-preset-env": "^7.5.0",
|
||||||
"postcss-loader": "^6.1.1",
|
"sass-loader": "^12.6.0",
|
||||||
"postcss-preset-env": "^7.3.1",
|
"standard": "^17.0.0",
|
||||||
"sass-loader": "^12.1.0",
|
"tailwindcss": "^3.0.24",
|
||||||
"standard": "^16.0.4",
|
"terser-webpack-plugin": "^5.3.1",
|
||||||
"style-loader": "^3.2.1",
|
"webpack": "^5.72.0",
|
||||||
"tailwindcss": "^2.2.7",
|
"webpack-cli": "^4.9.2",
|
||||||
"terser-webpack-plugin": "^5.1.3",
|
"webpack-dev-server": "^4.9.0"
|
||||||
"webpack": "^5.67.0",
|
|
||||||
"webpack-cli": "^4.8.0",
|
|
||||||
"webpack-dev-server": "^4.7.4"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,24 +1,18 @@
|
|||||||
const colors = require('tailwindcss/colors')
|
const colors = require('tailwindcss/colors')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
purge: [
|
content: [
|
||||||
'../lib/**/*.ex',
|
'../lib/**/*.{ex,heex,leex,eex}',
|
||||||
'../lib/**/*.heex',
|
|
||||||
'../lib/**/*.leex',
|
|
||||||
'../lib/**/*.eex',
|
|
||||||
'./js/**/*.js'
|
'./js/**/*.js'
|
||||||
],
|
],
|
||||||
darkMode: 'media',
|
|
||||||
theme: {
|
theme: {
|
||||||
colors: {
|
colors: {
|
||||||
transparent: 'transparent',
|
transparent: 'transparent',
|
||||||
current: 'currentColor',
|
current: 'currentColor',
|
||||||
|
|
||||||
primary: colors.gray,
|
primary: colors.gray,
|
||||||
|
|
||||||
black: colors.black,
|
black: colors.black,
|
||||||
white: colors.white,
|
white: colors.white,
|
||||||
gray: colors.trueGray,
|
gray: colors.neutral,
|
||||||
indigo: colors.indigo,
|
indigo: colors.indigo,
|
||||||
red: colors.rose,
|
red: colors.rose,
|
||||||
yellow: colors.amber
|
yellow: colors.amber
|
||||||
@ -28,14 +22,22 @@ module.exports = {
|
|||||||
128: '32rem',
|
128: '32rem',
|
||||||
192: '48rem',
|
192: '48rem',
|
||||||
256: '64rem'
|
256: '64rem'
|
||||||
|
},
|
||||||
|
minWidth: {
|
||||||
|
4: '1rem',
|
||||||
|
8: '2rem',
|
||||||
|
12: '3rem',
|
||||||
|
16: '4rem',
|
||||||
|
20: '8rem'
|
||||||
|
},
|
||||||
|
maxWidth: {
|
||||||
|
4: '1rem',
|
||||||
|
8: '2rem',
|
||||||
|
12: '3rem',
|
||||||
|
16: '4rem',
|
||||||
|
20: '8rem'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
variants: {
|
|
||||||
extend: {
|
|
||||||
backgroundColor: ['active'],
|
|
||||||
borderColor: ['active']
|
|
||||||
}
|
|
||||||
},
|
|
||||||
plugins: []
|
plugins: []
|
||||||
}
|
}
|
||||||
|
@ -44,19 +44,14 @@ module.exports = (env, options) => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(woff(2)?|ttf|eot|svg|otf)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
test: /\.(woff(2)?|ttf|eot|svg|otf)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
|
||||||
loader: 'file-loader',
|
type: 'asset/resource',
|
||||||
options: {
|
generator: { filename: 'fonts/[name][ext]' }
|
||||||
name: '[name].[ext]?[hash]',
|
|
||||||
outputPath: '../fonts'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new MiniCssExtractPlugin({ filename: '../css/app.css' }),
|
new MiniCssExtractPlugin({ filename: '../css/app.css' }),
|
||||||
new CopyWebpackPlugin({
|
new CopyWebpackPlugin({ patterns: [{ from: 'static/', to: '../' }] })
|
||||||
patterns: [{ from: 'static/', to: '../' }]
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,8 @@ end
|
|||||||
|
|
||||||
config :cannery, CanneryWeb.ViewHelpers, shibao_mode: System.get_env("SHIBAO_MODE") == "true"
|
config :cannery, CanneryWeb.ViewHelpers, shibao_mode: System.get_env("SHIBAO_MODE") == "true"
|
||||||
|
|
||||||
# Set locale
|
# Set default locale
|
||||||
Gettext.put_locale(System.get_env("LOCALE") || "en_US")
|
config :gettext, :default_locale, System.get_env("LOCALE") || "en_US"
|
||||||
|
|
||||||
maybe_ipv6 = if System.get_env("ECTO_IPV6") == "true", do: [:inet6], else: []
|
maybe_ipv6 = if System.get_env("ECTO_IPV6") == "true", do: [:inet6], else: []
|
||||||
|
|
||||||
|
@ -196,7 +196,7 @@ defmodule Cannery.Accounts do
|
|||||||
{:ok, _} <- Repo.transaction(user_email_multi(user, email, context)) do
|
{:ok, _} <- Repo.transaction(user_email_multi(user, email, context)) do
|
||||||
:ok
|
:ok
|
||||||
else
|
else
|
||||||
_ -> :error
|
_error_tuple -> :error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -265,10 +265,39 @@ defmodule Cannery.Accounts do
|
|||||||
|> Repo.transaction()
|
|> Repo.transaction()
|
||||||
|> case do
|
|> case do
|
||||||
{:ok, %{user: user}} -> {:ok, user}
|
{:ok, %{user: user}} -> {:ok, user}
|
||||||
{:error, :user, changeset, _} -> {:error, changeset}
|
{:error, :user, changeset, _changes_so_far} -> {:error, changeset}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Returns an `%Changeset{}` for changing the user locale.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
iex> change_user_locale(user)
|
||||||
|
%Changeset{data: %User{}}
|
||||||
|
|
||||||
|
"""
|
||||||
|
@spec change_user_locale(User.t()) :: Changeset.t(User.t())
|
||||||
|
def change_user_locale(%{locale: locale} = user), do: User.locale_changeset(user, locale)
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Updates the user locale.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
iex> update_user_locale(user, "valid locale")
|
||||||
|
{:ok, %User{}}
|
||||||
|
|
||||||
|
iex> update_user_password(user, "invalid locale")
|
||||||
|
{:error, %Changeset{}}
|
||||||
|
|
||||||
|
"""
|
||||||
|
@spec update_user_locale(User.t(), locale :: String.t()) ::
|
||||||
|
{:ok, User.t()} | {:error, Changeset.t(User.t())}
|
||||||
|
def update_user_locale(user, locale),
|
||||||
|
do: user |> User.locale_changeset(locale) |> Repo.update()
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Deletes a user. must be performed by an admin or the same user!
|
Deletes a user. must be performed by an admin or the same user!
|
||||||
|
|
||||||
@ -372,7 +401,7 @@ defmodule Cannery.Accounts do
|
|||||||
{:ok, %{user: user}} <- Repo.transaction(confirm_user_multi(user)) do
|
{:ok, %{user: user}} <- Repo.transaction(confirm_user_multi(user)) do
|
||||||
{:ok, user}
|
{:ok, user}
|
||||||
else
|
else
|
||||||
_ -> :error
|
_error_tuple -> :error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -420,7 +449,7 @@ defmodule Cannery.Accounts do
|
|||||||
%User{} = user <- Repo.one(query) do
|
%User{} = user <- Repo.one(query) do
|
||||||
user
|
user
|
||||||
else
|
else
|
||||||
_ -> nil
|
_error_tuple -> nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -444,7 +473,7 @@ defmodule Cannery.Accounts do
|
|||||||
|> Repo.transaction()
|
|> Repo.transaction()
|
||||||
|> case do
|
|> case do
|
||||||
{:ok, %{user: user}} -> {:ok, user}
|
{:ok, %{user: user}} -> {:ok, user}
|
||||||
{:error, :user, changeset, _} -> {:error, changeset}
|
{:error, :user, changeset, _changes_so_far} -> {:error, changeset}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -18,6 +18,7 @@ defmodule Cannery.Accounts.User do
|
|||||||
field :hashed_password, :string
|
field :hashed_password, :string
|
||||||
field :confirmed_at, :naive_datetime
|
field :confirmed_at, :naive_datetime
|
||||||
field :role, Ecto.Enum, values: [:admin, :user], default: :user
|
field :role, Ecto.Enum, values: [:admin, :user], default: :user
|
||||||
|
field :locale, :string
|
||||||
|
|
||||||
has_many :invites, Invite, on_delete: :delete_all
|
has_many :invites, Invite, on_delete: :delete_all
|
||||||
|
|
||||||
@ -31,6 +32,7 @@ defmodule Cannery.Accounts.User do
|
|||||||
hashed_password: String.t(),
|
hashed_password: String.t(),
|
||||||
confirmed_at: NaiveDateTime.t(),
|
confirmed_at: NaiveDateTime.t(),
|
||||||
role: atom(),
|
role: atom(),
|
||||||
|
locale: String.t() | nil,
|
||||||
invites: [Invite.t()],
|
invites: [Invite.t()],
|
||||||
inserted_at: NaiveDateTime.t(),
|
inserted_at: NaiveDateTime.t(),
|
||||||
updated_at: NaiveDateTime.t()
|
updated_at: NaiveDateTime.t()
|
||||||
@ -60,7 +62,7 @@ defmodule Cannery.Accounts.User do
|
|||||||
Changeset.t(t() | new_user())
|
Changeset.t(t() | new_user())
|
||||||
def registration_changeset(user, attrs, opts \\ []) do
|
def registration_changeset(user, attrs, opts \\ []) do
|
||||||
user
|
user
|
||||||
|> cast(attrs, [:email, :password, :role])
|
|> cast(attrs, [:email, :password, :role, :locale])
|
||||||
|> validate_email()
|
|> validate_email()
|
||||||
|> validate_password(opts)
|
|> validate_password(opts)
|
||||||
end
|
end
|
||||||
@ -171,7 +173,7 @@ defmodule Cannery.Accounts.User do
|
|||||||
Bcrypt.verify_pass(password, hashed_password)
|
Bcrypt.verify_pass(password, hashed_password)
|
||||||
end
|
end
|
||||||
|
|
||||||
def valid_password?(_, _) do
|
def valid_password?(_invalid_user, _invalid_password) do
|
||||||
Bcrypt.no_user_verify()
|
Bcrypt.no_user_verify()
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
@ -185,4 +187,14 @@ defmodule Cannery.Accounts.User do
|
|||||||
do: changeset,
|
do: changeset,
|
||||||
else: changeset |> add_error(:current_password, dgettext("errors", "is not valid"))
|
else: changeset |> add_error(:current_password, dgettext("errors", "is not valid"))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
A changeset for changing the user's locale
|
||||||
|
"""
|
||||||
|
@spec locale_changeset(t() | Changeset.t(t()), locale :: String.t() | nil) :: Changeset.t(t())
|
||||||
|
def locale_changeset(user_or_changeset, locale) do
|
||||||
|
user_or_changeset
|
||||||
|
|> cast(%{"locale" => locale}, [:locale])
|
||||||
|
|> validate_required(:locale)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -5,9 +5,12 @@ defmodule Cannery.Ammo do
|
|||||||
|
|
||||||
import Ecto.Query, warn: false
|
import Ecto.Query, warn: false
|
||||||
alias Cannery.{Accounts.User, Containers, Repo}
|
alias Cannery.{Accounts.User, Containers, Repo}
|
||||||
|
alias Cannery.ActivityLog.ShotGroup
|
||||||
alias Cannery.Ammo.{AmmoGroup, AmmoType}
|
alias Cannery.Ammo.{AmmoGroup, AmmoType}
|
||||||
alias Ecto.Changeset
|
alias Ecto.Changeset
|
||||||
|
|
||||||
|
@ammo_group_create_limit 10_000
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Returns the list of ammo_types.
|
Returns the list of ammo_types.
|
||||||
|
|
||||||
@ -42,28 +45,31 @@ defmodule Cannery.Ammo do
|
|||||||
@doc """
|
@doc """
|
||||||
Gets the average cost of a single ammo type
|
Gets the average cost of a single ammo type
|
||||||
|
|
||||||
Raises `Ecto.NoResultsError` if the Ammo type does not exist.
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> get_ammo_type!(123, %User{id: 123})
|
iex> get_average_cost_for_ammo_type!(%AmmoType{id: 123}, %User{id: 123})
|
||||||
%AmmoType{}
|
1.50
|
||||||
|
|
||||||
iex> get_ammo_type!(456, %User{id: 123})
|
|
||||||
** (Ecto.NoResultsError)
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec get_average_cost_for_ammo_type!(AmmoType.t(), User.t()) :: float()
|
@spec get_average_cost_for_ammo_type!(AmmoType.t(), User.t()) :: float() | nil
|
||||||
def get_average_cost_for_ammo_type!(
|
def get_average_cost_for_ammo_type!(
|
||||||
%AmmoType{id: ammo_type_id, user_id: user_id},
|
%AmmoType{id: ammo_type_id, user_id: user_id},
|
||||||
%User{id: user_id}
|
%User{id: user_id}
|
||||||
) do
|
) do
|
||||||
|
sg_total_query =
|
||||||
|
from sg in ShotGroup,
|
||||||
|
where: not (sg.count |> is_nil()),
|
||||||
|
group_by: sg.ammo_group_id,
|
||||||
|
select: %{ammo_group_id: sg.ammo_group_id, total: sum(sg.count)}
|
||||||
|
|
||||||
Repo.one!(
|
Repo.one!(
|
||||||
from ag in AmmoGroup,
|
from ag in AmmoGroup,
|
||||||
left_join: sg in assoc(ag, :shot_groups),
|
as: :ammo_group,
|
||||||
|
left_join: sg_query in subquery(sg_total_query),
|
||||||
|
on: ag.id == sg_query.ammo_group_id,
|
||||||
where: ag.ammo_type_id == ^ammo_type_id,
|
where: ag.ammo_type_id == ^ammo_type_id,
|
||||||
where: not (ag.price_paid |> is_nil()),
|
where: not (ag.price_paid |> is_nil()),
|
||||||
select: sum(ag.price_paid) / (sum(ag.count) + sum(sg.count))
|
select: sum(ag.price_paid) / sum(ag.count + coalesce(sg_query.total, 0))
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -90,7 +96,7 @@ defmodule Cannery.Ammo do
|
|||||||
from ag in AmmoGroup,
|
from ag in AmmoGroup,
|
||||||
where: ag.ammo_type_id == ^ammo_type_id,
|
where: ag.ammo_type_id == ^ammo_type_id,
|
||||||
select: sum(ag.count)
|
select: sum(ag.count)
|
||||||
)
|
) || 0
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
@ -117,7 +123,7 @@ defmodule Cannery.Ammo do
|
|||||||
left_join: sg in assoc(ag, :shot_groups),
|
left_join: sg in assoc(ag, :shot_groups),
|
||||||
where: ag.ammo_type_id == ^ammo_type_id,
|
where: ag.ammo_type_id == ^ammo_type_id,
|
||||||
select: sum(sg.count)
|
select: sum(sg.count)
|
||||||
)
|
) || 0
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
@ -306,7 +312,7 @@ defmodule Cannery.Ammo do
|
|||||||
def get_used_count(%AmmoGroup{} = ammo_group) do
|
def get_used_count(%AmmoGroup{} = ammo_group) do
|
||||||
ammo_group
|
ammo_group
|
||||||
|> Repo.preload(:shot_groups)
|
|> Repo.preload(:shot_groups)
|
||||||
|> Map.get(:shot_groups)
|
|> Map.fetch!(:shot_groups)
|
||||||
|> Enum.map(fn %{count: count} -> count end)
|
|> Enum.map(fn %{count: count} -> count end)
|
||||||
|> Enum.sum()
|
|> Enum.sum()
|
||||||
end
|
end
|
||||||
@ -327,36 +333,61 @@ defmodule Cannery.Ammo do
|
|||||||
end
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Creates a ammo_group.
|
Creates multiple ammo_groups at once.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
iex> create_ammo_group(%{field: value}, %User{id: 123})
|
iex> create_ammo_groups(%{field: value}, 3, %User{id: 123})
|
||||||
{:ok, %AmmoGroup{}}
|
{:ok, {3, [%AmmoGroup{}]}}
|
||||||
|
|
||||||
iex> create_ammo_group(%{field: bad_value}, %User{id: 123})
|
iex> create_ammo_groups(%{field: bad_value}, 3, %User{id: 123})
|
||||||
{:error, %Changeset{}}
|
{:error, %Changeset{}}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@spec create_ammo_group(attrs :: map(), User.t()) ::
|
@spec create_ammo_groups(attrs :: map(), multiplier :: non_neg_integer(), User.t()) ::
|
||||||
{:ok, AmmoGroup.t()} | {:error, Changeset.t(AmmoGroup.new_ammo_group())}
|
{:ok, {count :: non_neg_integer(), [AmmoGroup.t()] | nil}}
|
||||||
def create_ammo_group(
|
| {:error, Changeset.t(AmmoGroup.new_ammo_group())}
|
||||||
|
def create_ammo_groups(
|
||||||
%{"ammo_type_id" => ammo_type_id, "container_id" => container_id} = attrs,
|
%{"ammo_type_id" => ammo_type_id, "container_id" => container_id} = attrs,
|
||||||
|
multiplier,
|
||||||
%User{id: user_id} = user
|
%User{id: user_id} = user
|
||||||
) do
|
)
|
||||||
|
when multiplier >= 1 and multiplier <= @ammo_group_create_limit do
|
||||||
# validate ammo type and container ids belong to user
|
# validate ammo type and container ids belong to user
|
||||||
_valid_ammo_type = get_ammo_type!(ammo_type_id, user)
|
_valid_ammo_type = get_ammo_type!(ammo_type_id, user)
|
||||||
_valid_container = Containers.get_container!(container_id, user)
|
_valid_container = Containers.get_container!(container_id, user)
|
||||||
|
|
||||||
%AmmoGroup{}
|
now = NaiveDateTime.utc_now() |> NaiveDateTime.truncate(:second)
|
||||||
|> AmmoGroup.create_changeset(attrs |> Map.put("user_id", user_id))
|
|
||||||
|> Repo.insert()
|
changesets =
|
||||||
|
Enum.map(1..multiplier, fn _count ->
|
||||||
|
%AmmoGroup{} |> AmmoGroup.create_changeset(attrs |> Map.put("user_id", user_id))
|
||||||
|
end)
|
||||||
|
|
||||||
|
if changesets |> Enum.all?(fn %{valid?: valid} -> valid end) do
|
||||||
|
{count, inserted_ammo_groups} =
|
||||||
|
Repo.insert_all(
|
||||||
|
AmmoGroup,
|
||||||
|
changesets
|
||||||
|
|> Enum.map(fn changeset ->
|
||||||
|
changeset
|
||||||
|
|> Map.get(:changes)
|
||||||
|
|> Map.merge(%{inserted_at: now, updated_at: now})
|
||||||
|
end),
|
||||||
|
returning: true
|
||||||
|
)
|
||||||
|
|
||||||
|
{:ok, {count, inserted_ammo_groups}}
|
||||||
|
else
|
||||||
|
changesets
|
||||||
|
|> Enum.reject(fn %{valid?: valid} -> valid end)
|
||||||
|
|> List.first()
|
||||||
|
|> Changeset.apply_action(:insert)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_ammo_group(invalid_attrs, _user) do
|
def create_ammo_groups(invalid_attrs, _multiplier, _user) do
|
||||||
%AmmoGroup{}
|
{:error, %AmmoGroup{} |> AmmoGroup.create_changeset(invalid_attrs)}
|
||||||
|> AmmoGroup.create_changeset(invalid_attrs |> Map.put("user_id", "-1"))
|
|
||||||
|> Repo.insert()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
|
@ -62,7 +62,7 @@ defmodule Cannery.Ammo.AmmoGroup do
|
|||||||
def update_changeset(ammo_group, attrs) do
|
def update_changeset(ammo_group, attrs) do
|
||||||
ammo_group
|
ammo_group
|
||||||
|> cast(attrs, [:count, :price_paid, :notes, :staged, :ammo_type_id, :container_id])
|
|> cast(attrs, [:count, :price_paid, :notes, :staged, :ammo_type_id, :container_id])
|
||||||
|> validate_number(:count, greater_than: 0)
|
|> validate_number(:count, greater_than_or_equal_to: 0)
|
||||||
|> validate_required([:count, :staged, :ammo_type_id, :container_id, :user_id])
|
|> validate_required([:count, :staged, :ammo_type_id, :container_id, :user_id])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -31,10 +31,10 @@ defmodule Cannery.Ammo.AmmoType do
|
|||||||
field :pressure, :string
|
field :pressure, :string
|
||||||
field :primer_type, :string
|
field :primer_type, :string
|
||||||
field :firing_type, :string
|
field :firing_type, :string
|
||||||
field :tracer, :boolean, null: false, default: false
|
field :tracer, :boolean, default: false
|
||||||
field :incendiary, :boolean, null: false, default: false
|
field :incendiary, :boolean, default: false
|
||||||
field :blank, :boolean, null: false, default: false
|
field :blank, :boolean, default: false
|
||||||
field :corrosive, :boolean, null: false, default: false
|
field :corrosive, :boolean, default: false
|
||||||
|
|
||||||
field :manufacturer, :string
|
field :manufacturer, :string
|
||||||
field :upc, :string
|
field :upc, :string
|
||||||
|
@ -215,7 +215,7 @@ defmodule Cannery.Containers do
|
|||||||
def get_container_rounds!(%Container{} = container) do
|
def get_container_rounds!(%Container{} = container) do
|
||||||
container
|
container
|
||||||
|> Repo.preload(:ammo_groups)
|
|> Repo.preload(:ammo_groups)
|
||||||
|> Map.get(:ammo_groups)
|
|> Map.fetch!(:ammo_groups)
|
||||||
|> Enum.map(fn %{count: count} -> count end)
|
|> Enum.map(fn %{count: count} -> count end)
|
||||||
|> Enum.sum()
|
|> Enum.sum()
|
||||||
end
|
end
|
||||||
|
@ -9,7 +9,7 @@ defmodule Cannery.Release do
|
|||||||
|
|
||||||
def rollback(repo, version) do
|
def rollback(repo, version) do
|
||||||
load_app()
|
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
|
end
|
||||||
|
|
||||||
defp load_app do
|
defp load_app do
|
||||||
@ -20,7 +20,7 @@ defmodule Cannery.Release do
|
|||||||
load_app()
|
load_app()
|
||||||
|
|
||||||
for repo <- Application.fetch_env!(@app, :ecto_repos) do
|
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
|
end
|
||||||
end
|
end
|
||||||
|
@ -6,11 +6,11 @@ defmodule Cannery.Repo.Migrator do
|
|||||||
use GenServer
|
use GenServer
|
||||||
require Logger
|
require Logger
|
||||||
|
|
||||||
def start_link(_) do
|
def start_link(_opts) do
|
||||||
GenServer.start_link(__MODULE__, [], [])
|
GenServer.start_link(__MODULE__, [], [])
|
||||||
end
|
end
|
||||||
|
|
||||||
def init(_) do
|
def init(_opts) do
|
||||||
migrate!()
|
migrate!()
|
||||||
{:ok, nil}
|
{:ok, nil}
|
||||||
end
|
end
|
||||||
|
@ -47,6 +47,7 @@ defmodule CanneryWeb do
|
|||||||
use Phoenix.LiveView,
|
use Phoenix.LiveView,
|
||||||
layout: {CanneryWeb.LayoutView, "live.html"}
|
layout: {CanneryWeb.LayoutView, "live.html"}
|
||||||
|
|
||||||
|
on_mount CanneryWeb.InitAssigns
|
||||||
unquote(view_helpers())
|
unquote(view_helpers())
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -71,6 +72,7 @@ defmodule CanneryWeb do
|
|||||||
quote do
|
quote do
|
||||||
use Phoenix.Router
|
use Phoenix.Router
|
||||||
|
|
||||||
|
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||||
import Plug.Conn
|
import Plug.Conn
|
||||||
import Phoenix.Controller
|
import Phoenix.Controller
|
||||||
import Phoenix.LiveView.Router
|
import Phoenix.LiveView.Router
|
||||||
@ -79,7 +81,9 @@ defmodule CanneryWeb do
|
|||||||
|
|
||||||
def channel do
|
def channel do
|
||||||
quote do
|
quote do
|
||||||
|
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||||
use Phoenix.Channel
|
use Phoenix.Channel
|
||||||
|
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||||
import CanneryWeb.Gettext
|
import CanneryWeb.Gettext
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -87,14 +91,18 @@ defmodule CanneryWeb do
|
|||||||
defp view_helpers do
|
defp view_helpers do
|
||||||
quote do
|
quote do
|
||||||
# Use all HTML functionality (forms, tags, etc)
|
# Use all HTML functionality (forms, tags, etc)
|
||||||
|
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||||
use Phoenix.HTML
|
use Phoenix.HTML
|
||||||
|
|
||||||
# Import LiveView and .heex helpers (live_render, live_patch, <.form>, etc)
|
# 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 Phoenix.LiveView.Helpers
|
||||||
|
|
||||||
# Import basic rendering functionality (render, render_layout, etc)
|
# Import basic rendering functionality (render, render_layout, etc)
|
||||||
|
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||||
import Phoenix.View
|
import Phoenix.View
|
||||||
|
|
||||||
|
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||||
import CanneryWeb.{ErrorHelpers, Gettext, LiveHelpers, ViewHelpers}
|
import CanneryWeb.{ErrorHelpers, Gettext, LiveHelpers, ViewHelpers}
|
||||||
alias CanneryWeb.Router.Helpers, as: Routes
|
alias CanneryWeb.Router.Helpers, as: Routes
|
||||||
end
|
end
|
||||||
|
@ -36,7 +36,11 @@
|
|||||||
<%= error_tag(f, :notes, "col-span-3") %>
|
<%= error_tag(f, :notes, "col-span-3") %>
|
||||||
|
|
||||||
<%= label(f, :date, gettext("Date (UTC)"), class: "title text-lg text-primary-600") %>
|
<%= label(f, :date, gettext("Date (UTC)"), class: "title text-lg text-primary-600") %>
|
||||||
<%= date_input(f, :date, class: "input input-primary col-span-2") %>
|
<%= date_input(f, :date,
|
||||||
|
class: "input input-primary col-span-2",
|
||||||
|
phx_update: "ignore",
|
||||||
|
value: Date.utc_today()
|
||||||
|
) %>
|
||||||
<%= error_tag(f, :notes, "col-span-3") %>
|
<%= error_tag(f, :notes, "col-span-3") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Save"),
|
<%= submit(dgettext("actions", "Save"),
|
||||||
|
@ -37,6 +37,11 @@ defmodule CanneryWeb.Components.AmmoGroupCard do
|
|||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<span class="rounded-lg title text-lg">
|
||||||
|
<%= gettext("Added on:") %>
|
||||||
|
<%= @ammo_group.inserted_at |> display_datetime() %>
|
||||||
|
</span>
|
||||||
|
|
||||||
<%= if @ammo_group.price_paid do %>
|
<%= if @ammo_group.price_paid do %>
|
||||||
<span class="rounded-lg title text-lg">
|
<span class="rounded-lg title text-lg">
|
||||||
<%= gettext("Price paid:") %>
|
<%= gettext("Price paid:") %>
|
||||||
|
@ -14,11 +14,11 @@ defmodule CanneryWeb.Components.ContainerCard do
|
|||||||
~H"""
|
~H"""
|
||||||
<div
|
<div
|
||||||
id={"container-#{@container.id}"}
|
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
|
border border-gray-400 rounded-lg shadow-lg hover:shadow-md
|
||||||
transition-all duration-300 ease-in-out"
|
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),
|
<%= live_redirect to: Routes.container_show_path(Endpoint, :show, @container),
|
||||||
class: "link" do %>
|
class: "link" do %>
|
||||||
<h1 class="px-4 py-2 rounded-lg title text-xl">
|
<h1 class="px-4 py-2 rounded-lg title text-xl">
|
||||||
|
@ -8,11 +8,9 @@ defmodule CanneryWeb.Components.InviteCard do
|
|||||||
|
|
||||||
def invite_card(assigns) do
|
def invite_card(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<div
|
<div class="mx-4 my-2 px-8 py-4 flex flex-col justify-center items-center space-y-4
|
||||||
class="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
|
border border-gray-400 rounded-lg shadow-lg hover:shadow-md
|
||||||
transition-all duration-300 ease-in-out"
|
transition-all duration-300 ease-in-out">
|
||||||
>
|
|
||||||
<h1 class="title text-xl">
|
<h1 class="title text-xl">
|
||||||
<%= @invite.name %>
|
<%= @invite.name %>
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -4,7 +4,8 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
use CanneryWeb, :live_component
|
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
|
alias Phoenix.LiveView.Socket
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
@ -27,7 +28,12 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do
|
|||||||
Containers.list_containers(current_user)
|
Containers.list_containers(current_user)
|
||||||
|> Enum.reject(fn %{id: id} -> id == container_id end)
|
|> 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
|
end
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
@ -54,4 +60,76 @@ defmodule CanneryWeb.Components.MoveAmmoGroupComponent do
|
|||||||
|
|
||||||
{:noreply, socket}
|
{:noreply, socket}
|
||||||
end
|
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
|
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
|
def simple_tag_card(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<h1
|
<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}"}
|
style={"color: #{@tag.text_color}; background-color: #{@tag.bg_color}"}
|
||||||
>
|
>
|
||||||
<%= @tag.name %>
|
<%= @tag.name %>
|
||||||
|
@ -31,10 +31,8 @@ defmodule CanneryWeb.Components.Topbar do
|
|||||||
|
|
||||||
<hr class="mb-2 sm:hidden hr-light" />
|
<hr class="mb-2 sm:hidden hr-light" />
|
||||||
|
|
||||||
<ul
|
<ul class="flex flex-row flex-wrap justify-center items-center
|
||||||
class="flex flex-row flex-wrap justify-center items-center
|
text-lg text-white text-ellipsis">
|
||||||
text-lg text-white text-ellipsis"
|
|
||||||
>
|
|
||||||
<%= if @current_user do %>
|
<%= if @current_user do %>
|
||||||
<li class="mx-2 my-1">
|
<li class="mx-2 my-1">
|
||||||
<%= live_redirect(gettext("Tags"),
|
<%= live_redirect(gettext("Tags"),
|
||||||
@ -91,7 +89,7 @@ defmodule CanneryWeb.Components.Topbar do
|
|||||||
<li class="mx-2 my-1">
|
<li class="mx-2 my-1">
|
||||||
<%= live_redirect to: Routes.live_dashboard_path(Endpoint, :home),
|
<%= live_redirect to: Routes.live_dashboard_path(Endpoint, :home),
|
||||||
class: "text-primary-600 text-white hover:underline" do %>
|
class: "text-primary-600 text-white hover:underline" do %>
|
||||||
<i class="fas fa-tachometer-alt"></i>
|
<i class="fas fa-gauge"></i>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -18,12 +18,18 @@ defmodule CanneryWeb.Components.UserCard do
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<h3 class="px-4 py-2 rounded-lg title text-lg">
|
<h3 class="px-4 py-2 rounded-lg title text-lg">
|
||||||
<%= if @user.confirmed_at |> is_nil() do %>
|
<p>
|
||||||
Email unconfirmed
|
<%= if @user.confirmed_at |> is_nil() do %>
|
||||||
<% else %>
|
Email unconfirmed
|
||||||
<p>User was confirmed at</p>
|
<% else %>
|
||||||
<%= @user.confirmed_at |> display_datetime() %>
|
User was confirmed at <%= @user.confirmed_at |> display_datetime() %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%= gettext("User registered on") %>
|
||||||
|
<%= @user.inserted_at |> display_datetime() %>
|
||||||
|
</p>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<%= if @inner_block do %>
|
<%= if @inner_block do %>
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
defmodule CanneryWeb.UserConfirmationController do
|
defmodule CanneryWeb.UserConfirmationController do
|
||||||
use CanneryWeb, :controller
|
use CanneryWeb, :controller
|
||||||
|
|
||||||
|
import CanneryWeb.Gettext
|
||||||
alias Cannery.Accounts
|
alias Cannery.Accounts
|
||||||
|
|
||||||
def new(conn, _params) do
|
def new(conn, _params) do
|
||||||
render(conn, "new.html")
|
render(conn, "new.html", page_title: gettext("Confirm your account"))
|
||||||
end
|
end
|
||||||
|
|
||||||
def create(conn, %{"user" => %{"email" => email}}) do
|
def create(conn, %{"user" => %{"email" => email}}) do
|
||||||
|
@ -29,8 +29,11 @@ defmodule CanneryWeb.UserRegistrationController do
|
|||||||
|
|
||||||
# renders new user registration page
|
# renders new user registration page
|
||||||
defp render_new(conn, invite \\ nil) do
|
defp render_new(conn, invite \\ nil) do
|
||||||
changeset = Accounts.change_user_registration(%User{})
|
render(conn, "new.html",
|
||||||
conn |> render("new.html", changeset: changeset, invite: invite)
|
changeset: Accounts.change_user_registration(%User{}),
|
||||||
|
invite: invite,
|
||||||
|
page_title: gettext("Register")
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
def create(conn, %{"user" => %{"invite_token" => invite_token}} = attrs) do
|
def create(conn, %{"user" => %{"invite_token" => invite_token}} = attrs) do
|
||||||
|
@ -6,7 +6,7 @@ defmodule CanneryWeb.UserResetPasswordController do
|
|||||||
plug :get_user_by_reset_password_token when action in [:edit, :update]
|
plug :get_user_by_reset_password_token when action in [:edit, :update]
|
||||||
|
|
||||||
def new(conn, _params) do
|
def new(conn, _params) do
|
||||||
render(conn, "new.html")
|
render(conn, "new.html", page_title: gettext("Forgot your password?"))
|
||||||
end
|
end
|
||||||
|
|
||||||
def create(conn, %{"user" => %{"email" => email}}) do
|
def create(conn, %{"user" => %{"email" => email}}) do
|
||||||
@ -31,7 +31,10 @@ defmodule CanneryWeb.UserResetPasswordController do
|
|||||||
end
|
end
|
||||||
|
|
||||||
def edit(conn, _params) do
|
def edit(conn, _params) do
|
||||||
render(conn, "edit.html", changeset: Accounts.change_user_password(conn.assigns.user))
|
render(conn, "edit.html",
|
||||||
|
changeset: Accounts.change_user_password(conn.assigns.user),
|
||||||
|
page_title: gettext("Reset your password")
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Do not log in the user after reset password to avoid a
|
# Do not log in the user after reset password to avoid a
|
||||||
|
@ -5,7 +5,7 @@ defmodule CanneryWeb.UserSessionController do
|
|||||||
alias CanneryWeb.UserAuth
|
alias CanneryWeb.UserAuth
|
||||||
|
|
||||||
def new(conn, _params) do
|
def new(conn, _params) do
|
||||||
render(conn, "new.html", error_message: nil)
|
render(conn, "new.html", error_message: nil, page_title: gettext("Log in"))
|
||||||
end
|
end
|
||||||
|
|
||||||
def create(conn, %{"user" => user_params}) do
|
def create(conn, %{"user" => user_params}) do
|
||||||
|
@ -1,19 +1,20 @@
|
|||||||
defmodule CanneryWeb.UserSettingsController do
|
defmodule CanneryWeb.UserSettingsController do
|
||||||
use CanneryWeb, :controller
|
use CanneryWeb, :controller
|
||||||
|
import CanneryWeb.Gettext
|
||||||
alias Cannery.Accounts
|
alias Cannery.Accounts
|
||||||
alias CanneryWeb.{HomeLive, UserAuth}
|
alias CanneryWeb.{HomeLive, UserAuth}
|
||||||
|
|
||||||
plug :assign_email_and_password_changesets
|
plug :assign_email_and_password_changesets
|
||||||
|
|
||||||
def edit(conn, _params) do
|
def edit(conn, _params) do
|
||||||
render(conn, "edit.html")
|
render(conn, "edit.html", page_title: gettext("Settings"))
|
||||||
end
|
end
|
||||||
|
|
||||||
def update(conn, %{"action" => "update_email"} = params) do
|
def update(%{assigns: %{current_user: user}} = conn, %{
|
||||||
%{"current_password" => password, "user" => user_params} = params
|
"action" => "update_email",
|
||||||
user = conn.assigns.current_user
|
"current_password" => password,
|
||||||
|
"user" => user_params
|
||||||
|
}) do
|
||||||
case Accounts.apply_user_email(user, password, user_params) do
|
case Accounts.apply_user_email(user, password, user_params) do
|
||||||
{:ok, applied_user} ->
|
{:ok, applied_user} ->
|
||||||
Accounts.deliver_update_email_instructions(
|
Accounts.deliver_update_email_instructions(
|
||||||
@ -33,14 +34,15 @@ defmodule CanneryWeb.UserSettingsController do
|
|||||||
|> redirect(to: Routes.user_settings_path(conn, :edit))
|
|> redirect(to: Routes.user_settings_path(conn, :edit))
|
||||||
|
|
||||||
{:error, changeset} ->
|
{:error, changeset} ->
|
||||||
render(conn, "edit.html", email_changeset: changeset)
|
conn |> render("edit.html", email_changeset: changeset)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def update(conn, %{"action" => "update_password"} = params) do
|
def update(%{assigns: %{current_user: user}} = conn, %{
|
||||||
%{"current_password" => password, "user" => user_params} = params
|
"action" => "update_password",
|
||||||
user = conn.assigns.current_user
|
"current_password" => password,
|
||||||
|
"user" => user_params
|
||||||
|
}) do
|
||||||
case Accounts.update_user_password(user, password, user_params) do
|
case Accounts.update_user_password(user, password, user_params) do
|
||||||
{:ok, user} ->
|
{:ok, user} ->
|
||||||
conn
|
conn
|
||||||
@ -49,12 +51,27 @@ defmodule CanneryWeb.UserSettingsController do
|
|||||||
|> UserAuth.log_in_user(user)
|
|> UserAuth.log_in_user(user)
|
||||||
|
|
||||||
{:error, changeset} ->
|
{:error, changeset} ->
|
||||||
render(conn, "edit.html", password_changeset: changeset)
|
conn |> render("edit.html", password_changeset: changeset)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def confirm_email(conn, %{"token" => token}) do
|
def update(
|
||||||
case Accounts.update_user_email(conn.assigns.current_user, token) do
|
%{assigns: %{current_user: user}} = conn,
|
||||||
|
%{"action" => "update_locale", "user" => %{"locale" => locale}}
|
||||||
|
) do
|
||||||
|
case Accounts.update_user_locale(user, locale) do
|
||||||
|
{:ok, _user} ->
|
||||||
|
conn
|
||||||
|
|> put_flash(:info, dgettext("prompts", "Language updated successfully."))
|
||||||
|
|> redirect(to: Routes.user_settings_path(conn, :edit))
|
||||||
|
|
||||||
|
{:error, changeset} ->
|
||||||
|
conn |> render("edit.html", locale_changeset: changeset)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def confirm_email(%{assigns: %{current_user: user}} = conn, %{"token" => token}) do
|
||||||
|
case Accounts.update_user_email(user, token) do
|
||||||
:ok ->
|
:ok ->
|
||||||
conn
|
conn
|
||||||
|> put_flash(:info, dgettext("prompts", "Email changed successfully."))
|
|> put_flash(:info, dgettext("prompts", "Email changed successfully."))
|
||||||
@ -84,11 +101,10 @@ defmodule CanneryWeb.UserSettingsController do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp assign_email_and_password_changesets(conn, _opts) do
|
defp assign_email_and_password_changesets(%{assigns: %{current_user: user}} = conn, _opts) do
|
||||||
user = conn.assigns.current_user
|
|
||||||
|
|
||||||
conn
|
conn
|
||||||
|> assign(:email_changeset, Accounts.change_user_email(user))
|
|> assign(:email_changeset, Accounts.change_user_email(user))
|
||||||
|> assign(:password_changeset, Accounts.change_user_password(user))
|
|> assign(:password_changeset, Accounts.change_user_password(user))
|
||||||
|
|> assign(:locale_changeset, Accounts.change_user_locale(user))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -9,6 +9,8 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do
|
|||||||
alias Ecto.Changeset
|
alias Ecto.Changeset
|
||||||
alias Phoenix.LiveView.Socket
|
alias Phoenix.LiveView.Socket
|
||||||
|
|
||||||
|
@ammo_group_create_limit 10_000
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
@spec update(
|
@spec update(
|
||||||
%{:ammo_group => AmmoGroup.t(), :current_user => User.t(), optional(any) => any},
|
%{:ammo_group => AmmoGroup.t(), :current_user => User.t(), optional(any) => any},
|
||||||
@ -20,20 +22,37 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do
|
|||||||
|
|
||||||
@spec update(Socket.t()) :: {:ok, Socket.t()}
|
@spec update(Socket.t()) :: {:ok, Socket.t()}
|
||||||
def update(%{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket) do
|
def update(%{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket) do
|
||||||
changeset = Ammo.change_ammo_group(ammo_group)
|
socket =
|
||||||
containers = Containers.list_containers(current_user)
|
socket
|
||||||
ammo_types = Ammo.list_ammo_types(current_user)
|
|> assign(:ammo_group_create_limit, @ammo_group_create_limit)
|
||||||
{:ok, socket |> assign(changeset: changeset, containers: containers, ammo_types: ammo_types)}
|
|> assign(:changeset, Ammo.change_ammo_group(ammo_group))
|
||||||
|
|> assign(:ammo_types, Ammo.list_ammo_types(current_user))
|
||||||
|
|> assign_new(:containers, fn -> Containers.list_containers(current_user) end)
|
||||||
|
|
||||||
|
{:ok, socket}
|
||||||
end
|
end
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def handle_event(
|
def handle_event(
|
||||||
"validate",
|
"validate",
|
||||||
%{"ammo_group" => ammo_group_params},
|
%{"ammo_group" => ammo_group_params},
|
||||||
%{assigns: %{ammo_group: ammo_group}} = socket
|
%{assigns: %{action: action, ammo_group: ammo_group}} = socket
|
||||||
) do
|
) do
|
||||||
socket = socket |> assign(:changeset, ammo_group |> Ammo.change_ammo_group(ammo_group_params))
|
changeset_action =
|
||||||
{:noreply, socket}
|
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
|
end
|
||||||
|
|
||||||
def handle_event(
|
def handle_event(
|
||||||
@ -77,20 +96,65 @@ defmodule CanneryWeb.AmmoGroupLive.FormComponent do
|
|||||||
end
|
end
|
||||||
|
|
||||||
defp save_ammo_group(
|
defp save_ammo_group(
|
||||||
%{assigns: %{current_user: current_user, return_to: return_to}} = socket,
|
%{assigns: %{changeset: changeset}} = socket,
|
||||||
:new,
|
:new,
|
||||||
ammo_group_params
|
%{"multiplier" => multiplier_str} = ammo_group_params
|
||||||
) do
|
) do
|
||||||
socket =
|
socket =
|
||||||
case Ammo.create_ammo_group(ammo_group_params, current_user) do
|
case multiplier_str |> Integer.parse() do
|
||||||
{:ok, _ammo_group} ->
|
{multiplier, _remainder}
|
||||||
prompt = dgettext("prompts", "Ammo group created successfully")
|
when multiplier >= 1 and multiplier <= @ammo_group_create_limit ->
|
||||||
socket |> put_flash(:info, prompt) |> push_redirect(to: return_to)
|
socket |> create_multiple(ammo_group_params, multiplier)
|
||||||
|
|
||||||
{:error, %Changeset{} = changeset} ->
|
{multiplier, _remainder} ->
|
||||||
socket |> assign(changeset: changeset)
|
error_msg =
|
||||||
|
dgettext(
|
||||||
|
"errors",
|
||||||
|
"Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}",
|
||||||
|
max: @ammo_group_create_limit,
|
||||||
|
multiplier: multiplier
|
||||||
|
)
|
||||||
|
|
||||||
|
{:error, changeset} =
|
||||||
|
changeset
|
||||||
|
|> Changeset.add_error(:multiplier, error_msg)
|
||||||
|
|> Changeset.apply_action(:insert)
|
||||||
|
|
||||||
|
socket |> assign(:changeset, changeset)
|
||||||
|
|
||||||
|
:error ->
|
||||||
|
error_msg = dgettext("errors", "Could not parse number of copies")
|
||||||
|
|
||||||
|
{:error, changeset} =
|
||||||
|
changeset
|
||||||
|
|> Changeset.add_error(:multiplier, error_msg)
|
||||||
|
|> Changeset.apply_action(:insert)
|
||||||
|
|
||||||
|
socket |> assign(:changeset, changeset)
|
||||||
end
|
end
|
||||||
|
|
||||||
{:noreply, socket}
|
{:noreply, socket}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp create_multiple(
|
||||||
|
%{assigns: %{current_user: current_user, return_to: return_to}} = socket,
|
||||||
|
ammo_group_params,
|
||||||
|
multiplier
|
||||||
|
) do
|
||||||
|
case Ammo.create_ammo_groups(ammo_group_params, multiplier, current_user) do
|
||||||
|
{:ok, {count, _ammo_groups}} ->
|
||||||
|
prompt =
|
||||||
|
dngettext(
|
||||||
|
"prompts",
|
||||||
|
"Ammo group created successfully",
|
||||||
|
"Ammo groups created successfully",
|
||||||
|
count
|
||||||
|
)
|
||||||
|
|
||||||
|
socket |> put_flash(:info, prompt) |> push_redirect(to: return_to)
|
||||||
|
|
||||||
|
{:error, %Changeset{} = changeset} ->
|
||||||
|
socket |> assign(changeset: changeset)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -18,42 +18,62 @@
|
|||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= label(f, :ammo_type_id, gettext("Ammo type"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :ammo_type_id, gettext("Ammo type"), class: "title text-lg text-primary-600") %>
|
||||||
<%= select(f, :ammo_type_id, ammo_type_options(@ammo_types),
|
<%= select(f, :ammo_type_id, ammo_type_options(@ammo_types),
|
||||||
class: "text-center col-span-2 input input-primary"
|
class: "text-center col-span-2 input input-primary"
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :ammo_type_id, "col-span-3 text-center") %>
|
<%= error_tag(f, :ammo_type_id, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :count, gettext("Count"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :count, gettext("Count"), class: "title text-lg text-primary-600") %>
|
||||||
<%= number_input(f, :count,
|
<%= number_input(f, :count,
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
min: 1
|
min: 0
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :count, "col-span-3 text-center") %>
|
<%= error_tag(f, :count, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :price_paid, gettext("Price paid"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :price_paid, gettext("Price paid"), class: "title text-lg text-primary-600") %>
|
||||||
<%= number_input(f, :price_paid,
|
<%= number_input(f, :price_paid,
|
||||||
step: "0.01",
|
step: 0.01,
|
||||||
class: "text-center col-span-2 input input-primary"
|
class: "text-center col-span-2 input input-primary"
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :price_paid, "col-span-3 text-center") %>
|
<%= error_tag(f, :price_paid, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :notes, gettext("Notes"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :notes, gettext("Notes"), class: "title text-lg text-primary-600") %>
|
||||||
<%= textarea(f, :notes,
|
<%= textarea(f, :notes,
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
phx_hook: "MaintainAttrs"
|
phx_hook: "MaintainAttrs"
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :notes, "col-span-3 text-center") %>
|
<%= error_tag(f, :notes, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :container, gettext("Container"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :container, gettext("Container"), class: "title text-lg text-primary-600") %>
|
||||||
<%= select(f, :container_id, container_options(@containers),
|
<%= select(f, :container_id, container_options(@containers),
|
||||||
class: "text-center col-span-2 input input-primary"
|
class: "text-center col-span-2 input input-primary"
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :container_id, "col-span-3 text-center") %>
|
<%= error_tag(f, :container_id, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Save"),
|
<%= case @action do %>
|
||||||
phx_disable_with: dgettext("prompts", "Saving..."),
|
<% :new -> %>
|
||||||
class: "mx-auto col-span-3 btn btn-primary"
|
<hr class="hr col-span-3" />
|
||||||
) %>
|
|
||||||
|
<%= label(f, :multiplier, gettext("Copies"), class: "title text-lg text-primary-600") %>
|
||||||
|
<%= number_input(f, :multiplier,
|
||||||
|
max: @ammo_group_create_limit,
|
||||||
|
class: "text-center input input-primary",
|
||||||
|
value: 1,
|
||||||
|
phx_update: "ignore"
|
||||||
|
) %>
|
||||||
|
|
||||||
|
<%= submit(dgettext("actions", "Create"),
|
||||||
|
phx_disable_with: dgettext("prompts", "Creating..."),
|
||||||
|
class: "mx-auto btn btn-primary"
|
||||||
|
) %>
|
||||||
|
|
||||||
|
<%= error_tag(f, :multiplier, "col-span-3 text-center") %>
|
||||||
|
<% :edit -> %>
|
||||||
|
<%= submit(dgettext("actions", "Save"),
|
||||||
|
phx_disable_with: dgettext("prompts", "Saving..."),
|
||||||
|
class: "mx-auto col-span-3 btn btn-primary"
|
||||||
|
) %>
|
||||||
|
<% end %>
|
||||||
</.form>
|
</.form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,12 +4,12 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
use CanneryWeb, :live_view
|
use CanneryWeb, :live_view
|
||||||
alias Cannery.{Ammo, Ammo.AmmoGroup, Repo}
|
alias Cannery.{Ammo, Ammo.AmmoGroup, Containers, Repo}
|
||||||
alias CanneryWeb.Endpoint
|
alias CanneryWeb.Endpoint
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def mount(_params, session, socket) do
|
def mount(_params, _session, socket) do
|
||||||
{:ok, socket |> assign_defaults(session) |> display_ammo_groups()}
|
{:ok, socket |> display_ammo_groups()}
|
||||||
end
|
end
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
@ -17,9 +17,11 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
|||||||
{:noreply, apply_action(socket, live_action, params)}
|
{:noreply, apply_action(socket, live_action, params)}
|
||||||
end
|
end
|
||||||
|
|
||||||
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :add_shot_group, %{
|
defp apply_action(
|
||||||
"id" => id
|
%{assigns: %{current_user: current_user}} = socket,
|
||||||
}) do
|
:add_shot_group,
|
||||||
|
%{"id" => id}
|
||||||
|
) do
|
||||||
socket
|
socket
|
||||||
|> assign(:page_title, gettext("Record shots"))
|
|> assign(:page_title, gettext("Record shots"))
|
||||||
|> assign(:ammo_group, Ammo.get_ammo_group!(id, current_user))
|
|> assign(:ammo_group, Ammo.get_ammo_group!(id, current_user))
|
||||||
@ -72,6 +74,131 @@ defmodule CanneryWeb.AmmoGroupLive.Index do
|
|||||||
|
|
||||||
defp display_ammo_groups(%{assigns: %{current_user: current_user}} = socket) 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])
|
ammo_groups = Ammo.list_ammo_groups(current_user) |> Repo.preload([:ammo_type, :container])
|
||||||
socket |> assign(:ammo_groups, ammo_groups)
|
containers = Containers.list_containers(current_user)
|
||||||
|
|
||||||
|
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: gettext("Added on"), key: "added_on"},
|
||||||
|
%{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
|
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("added_on", %{inserted_at: inserted_at}) do
|
||||||
|
assigns = %{inserted_at: inserted_at}
|
||||||
|
|
||||||
|
{inserted_at,
|
||||||
|
~H"""
|
||||||
|
<%= @inserted_at |> display_datetime() %>
|
||||||
|
"""}
|
||||||
|
end
|
||||||
|
|
||||||
|
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
|
end
|
||||||
|
@ -9,126 +9,49 @@
|
|||||||
<%= display_emoji("😔") %>
|
<%= display_emoji("😔") %>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<%= live_patch(dgettext("actions", "Add your first box!"),
|
<%= if @containers |> Enum.empty?() do %>
|
||||||
to: Routes.ammo_group_index_path(Endpoint, :new),
|
<div class="flex justify-center items-center">
|
||||||
class: "btn btn-primary"
|
<h2 class="m-2 title text-md text-primary-600">
|
||||||
) %>
|
<%= dgettext("prompts", "You'll need to") %>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<%= live_patch(dgettext("actions", "add a container first"),
|
||||||
|
to: Routes.container_index_path(Endpoint, :new),
|
||||||
|
class: "btn btn-primary"
|
||||||
|
) %>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<%= live_patch(dgettext("actions", "Add your first box!"),
|
||||||
|
to: Routes.ammo_group_index_path(Endpoint, :new),
|
||||||
|
class: "btn btn-primary"
|
||||||
|
) %>
|
||||||
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= live_patch(dgettext("actions", "New Ammo group"),
|
<%= if @containers |> Enum.empty?() do %>
|
||||||
to: Routes.ammo_group_index_path(Endpoint, :new),
|
<div class="flex justify-center items-center">
|
||||||
class: "btn btn-primary"
|
<h2 class="m-2 title text-md text-primary-600">
|
||||||
) %>
|
<%= dgettext("prompts", "You'll need to") %>
|
||||||
|
</h2>
|
||||||
|
|
||||||
<div class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-black">
|
<%= live_patch(dgettext("actions", "add a container first"),
|
||||||
<table class="min-w-full table-auto text-center bg-white">
|
to: Routes.container_index_path(Endpoint, :new),
|
||||||
<thead class="border-b border-primary-600">
|
class: "btn btn-primary"
|
||||||
<tr>
|
) %>
|
||||||
<th class="p-2">
|
</div>
|
||||||
<%= gettext("Ammo type") %>
|
<% else %>
|
||||||
</th>
|
<%= live_patch(dgettext("actions", "New Ammo group"),
|
||||||
<th class="p-2">
|
to: Routes.ammo_group_index_path(Endpoint, :new),
|
||||||
<%= gettext("Count") %>
|
class: "btn btn-primary"
|
||||||
</th>
|
) %>
|
||||||
<th class="p-2">
|
<% end %>
|
||||||
<%= 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>
|
<.live_component
|
||||||
</tr>
|
module={CanneryWeb.Components.TableComponent}
|
||||||
</thead>
|
id="ammo_groups_index_table"
|
||||||
<tbody id="ammo_groups">
|
action={@live_action}
|
||||||
<%= for ammo_group <- @ammo_groups do %>
|
columns={@columns}
|
||||||
<tr id={"ammo_group-#{ammo_group.id}"}>
|
rows={@rows}
|
||||||
<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>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -143,6 +66,7 @@
|
|||||||
ammo_group={@ammo_group}
|
ammo_group={@ammo_group}
|
||||||
return_to={Routes.ammo_group_index_path(Endpoint, :index)}
|
return_to={Routes.ammo_group_index_path(Endpoint, :index)}
|
||||||
current_user={@current_user}
|
current_user={@current_user}
|
||||||
|
containers={@containers}
|
||||||
/>
|
/>
|
||||||
</.modal>
|
</.modal>
|
||||||
<% @live_action == :add_shot_group -> %>
|
<% @live_action == :add_shot_group -> %>
|
||||||
@ -170,4 +94,5 @@
|
|||||||
/>
|
/>
|
||||||
</.modal>
|
</.modal>
|
||||||
<% true -> %>
|
<% true -> %>
|
||||||
<% end %>
|
<%= nil %>
|
||||||
|
<% end %>
|
||||||
|
@ -5,28 +5,44 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
|
|||||||
|
|
||||||
use CanneryWeb, :live_view
|
use CanneryWeb, :live_view
|
||||||
import CanneryWeb.Components.ContainerCard
|
import CanneryWeb.Components.ContainerCard
|
||||||
alias Cannery.{Ammo, Repo}
|
alias Cannery.{ActivityLog, ActivityLog.ShotGroup, Ammo, Ammo.AmmoGroup, Repo}
|
||||||
alias CanneryWeb.Endpoint
|
alias CanneryWeb.Endpoint
|
||||||
|
alias Phoenix.LiveView.Socket
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def mount(_params, session, socket) do
|
def mount(_params, _session, socket), do: {:ok, socket}
|
||||||
{:ok, socket |> assign_defaults(session)}
|
|
||||||
end
|
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def handle_params(
|
def handle_params(
|
||||||
%{"id" => id},
|
%{"id" => id, "shot_group_id" => shot_group_id},
|
||||||
_url,
|
_url,
|
||||||
%{assigns: %{live_action: live_action, current_user: current_user}} = socket
|
%{assigns: %{live_action: live_action, current_user: current_user}} = socket
|
||||||
) do
|
) do
|
||||||
ammo_group = Ammo.get_ammo_group!(id, current_user) |> Repo.preload([:container, :ammo_type])
|
shot_group = ActivityLog.get_shot_group!(shot_group_id, current_user)
|
||||||
{:noreply, socket |> assign(page_title: page_title(live_action), ammo_group: ammo_group)}
|
|
||||||
|
socket =
|
||||||
|
socket
|
||||||
|
|> assign(page_title: page_title(live_action), shot_group: shot_group)
|
||||||
|
|> display_ammo_group(id)
|
||||||
|
|
||||||
|
{:noreply, socket}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@impl true
|
||||||
|
def handle_params(%{"id" => id}, _url, %{assigns: %{live_action: live_action}} = socket) do
|
||||||
|
{:noreply, socket |> assign(page_title: page_title(live_action)) |> display_ammo_group(id)}
|
||||||
|
end
|
||||||
|
|
||||||
|
defp page_title(:add_shot_group), do: gettext("Record Shots")
|
||||||
|
defp page_title(:edit_shot_group), do: gettext("Edit Shot Records")
|
||||||
|
defp page_title(:move), do: gettext("Move Ammo group")
|
||||||
|
defp page_title(:show), do: gettext("Show Ammo group")
|
||||||
|
defp page_title(:edit), do: gettext("Edit Ammo group")
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def handle_event(
|
def handle_event(
|
||||||
"delete",
|
"delete",
|
||||||
_,
|
_params,
|
||||||
%{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket
|
%{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket
|
||||||
) do
|
) do
|
||||||
ammo_group |> Ammo.delete_ammo_group!(current_user)
|
ammo_group |> Ammo.delete_ammo_group!(current_user)
|
||||||
@ -40,17 +56,90 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def handle_event(
|
def handle_event(
|
||||||
"toggle_staged",
|
"toggle_staged",
|
||||||
_,
|
_params,
|
||||||
%{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket
|
%{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket
|
||||||
) do
|
) do
|
||||||
{:ok, ammo_group} =
|
{:ok, ammo_group} =
|
||||||
ammo_group |> Ammo.update_ammo_group(%{"staged" => !ammo_group.staged}, current_user)
|
ammo_group |> Ammo.update_ammo_group(%{"staged" => !ammo_group.staged}, current_user)
|
||||||
|
|
||||||
{:noreply, socket |> assign(ammo_group: ammo_group)}
|
{:noreply, socket |> display_ammo_group(ammo_group)}
|
||||||
end
|
end
|
||||||
|
|
||||||
defp page_title(:add_shot_group), do: gettext("Add Shot group")
|
@impl true
|
||||||
defp page_title(:move), do: gettext("Move Ammo group")
|
def handle_event(
|
||||||
defp page_title(:show), do: gettext("Show Ammo group")
|
"delete_shot_group",
|
||||||
defp page_title(:edit), do: gettext("Edit Ammo group")
|
%{"id" => id},
|
||||||
|
%{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket
|
||||||
|
) do
|
||||||
|
{:ok, _} =
|
||||||
|
ActivityLog.get_shot_group!(id, current_user)
|
||||||
|
|> ActivityLog.delete_shot_group(current_user)
|
||||||
|
|
||||||
|
prompt = dgettext("prompts", "Shot records deleted succesfully")
|
||||||
|
{:noreply, socket |> put_flash(:info, prompt) |> display_ammo_group(ammo_group)}
|
||||||
|
end
|
||||||
|
|
||||||
|
@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)
|
||||||
|
|
||||||
|
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
|
end
|
||||||
|
@ -26,6 +26,11 @@
|
|||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<span class="rounded-lg title text-lg">
|
||||||
|
<%= gettext("Added on:") %>
|
||||||
|
<%= @ammo_group.inserted_at |> display_datetime() %>
|
||||||
|
</span>
|
||||||
|
|
||||||
<%= if @ammo_group.price_paid do %>
|
<%= if @ammo_group.price_paid do %>
|
||||||
<span class="rounded-lg title text-lg">
|
<span class="rounded-lg title text-lg">
|
||||||
<%= gettext("Original cost:") %>
|
<%= gettext("Original cost:") %>
|
||||||
@ -111,38 +116,12 @@
|
|||||||
<%= gettext("Rounds used") %>
|
<%= gettext("Rounds used") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-black">
|
<.live_component
|
||||||
<table class="min-w-full table-auto text-center bg-white">
|
module={CanneryWeb.Components.TableComponent}
|
||||||
<thead class="border-b border-primary-600">
|
id="ammo_group_shot_groups_table"
|
||||||
<tr>
|
columns={@columns}
|
||||||
<th class="p-2">
|
rows={@rows}
|
||||||
<%= gettext("Rounds shot") %>
|
/>
|
||||||
</th>
|
|
||||||
<th class="p-2">
|
|
||||||
<%= gettext("Notes") %>
|
|
||||||
</th>
|
|
||||||
<th class="p-2">
|
|
||||||
<%= gettext("Date") %>
|
|
||||||
</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>
|
|
||||||
</tr>
|
|
||||||
<% end %>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -159,6 +138,18 @@
|
|||||||
current_user={@current_user}
|
current_user={@current_user}
|
||||||
/>
|
/>
|
||||||
</.modal>
|
</.modal>
|
||||||
|
<% :edit_shot_group -> %>
|
||||||
|
<.modal return_to={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)}>
|
||||||
|
<.live_component
|
||||||
|
module={CanneryWeb.RangeLive.FormComponent}
|
||||||
|
id={@shot_group.id}
|
||||||
|
title={@page_title}
|
||||||
|
action={@live_action}
|
||||||
|
shot_group={@shot_group}
|
||||||
|
return_to={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)}
|
||||||
|
current_user={@current_user}
|
||||||
|
/>
|
||||||
|
</.modal>
|
||||||
<% :add_shot_group -> %>
|
<% :add_shot_group -> %>
|
||||||
<.modal return_to={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)}>
|
<.modal return_to={Routes.ammo_group_show_path(Endpoint, :show, @ammo_group)}>
|
||||||
<.live_component
|
<.live_component
|
||||||
@ -184,4 +175,4 @@
|
|||||||
/>
|
/>
|
||||||
</.modal>
|
</.modal>
|
||||||
<% _show -> %>
|
<% _show -> %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -17,11 +17,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= label(f, :name, gettext("Name"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :name, gettext("Name"), class: "title text-lg text-primary-600") %>
|
||||||
<%= text_input(f, :name, class: "text-center col-span-2 input input-primary") %>
|
<%= text_input(f, :name, class: "text-center col-span-2 input input-primary") %>
|
||||||
<%= error_tag(f, :name, "col-span-3 text-center") %>
|
<%= error_tag(f, :name, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :desc, gettext("Description"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :desc, gettext("Description"), class: "title text-lg text-primary-600") %>
|
||||||
<%= textarea(f, :desc,
|
<%= textarea(f, :desc,
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
phx_hook: "MaintainAttrs"
|
phx_hook: "MaintainAttrs"
|
||||||
@ -34,50 +34,42 @@
|
|||||||
>
|
>
|
||||||
<%= gettext("Example bullet type abbreviations") %>
|
<%= gettext("Example bullet type abbreviations") %>
|
||||||
</a>
|
</a>
|
||||||
<%= label(f, :bullet_type, gettext("Bullet type"),
|
<%= label(f, :bullet_type, gettext("Bullet type"), class: "title text-lg text-primary-600") %>
|
||||||
class: "mr-4 title text-lg text-primary-600"
|
|
||||||
) %>
|
|
||||||
<%= text_input(f, :bullet_type,
|
<%= text_input(f, :bullet_type,
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
placeholder: gettext("FMJ")
|
placeholder: gettext("FMJ")
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :bullet_type, "col-span-3 text-center") %>
|
<%= error_tag(f, :bullet_type, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :bullet_core, gettext("Bullet core"),
|
<%= label(f, :bullet_core, gettext("Bullet core"), class: "title text-lg text-primary-600") %>
|
||||||
class: "mr-4 title text-lg text-primary-600"
|
|
||||||
) %>
|
|
||||||
<%= text_input(f, :bullet_core,
|
<%= text_input(f, :bullet_core,
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
placeholder: gettext("Steel")
|
placeholder: gettext("Steel")
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :bullet_core, "col-span-3 text-center") %>
|
<%= error_tag(f, :bullet_core, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :cartridge, gettext("Cartridge"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :cartridge, gettext("Cartridge"), class: "title text-lg text-primary-600") %>
|
||||||
<%= text_input(f, :cartridge,
|
<%= text_input(f, :cartridge,
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
placeholder: "5.56x46mm NATO"
|
placeholder: "5.56x46mm NATO"
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :cartridge, "col-span-3 text-center") %>
|
<%= error_tag(f, :cartridge, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :caliber, gettext("Caliber"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :caliber, gettext("Caliber"), class: "title text-lg text-primary-600") %>
|
||||||
<%= text_input(f, :caliber,
|
<%= text_input(f, :caliber,
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
placeholder: ".223"
|
placeholder: ".223"
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :caliber, "col-span-3 text-center") %>
|
<%= error_tag(f, :caliber, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :case_material, gettext("Case material"),
|
<%= label(f, :case_material, gettext("Case material"), class: "title text-lg text-primary-600") %>
|
||||||
class: "mr-4 title text-lg text-primary-600"
|
|
||||||
) %>
|
|
||||||
<%= text_input(f, :case_material,
|
<%= text_input(f, :case_material,
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
placeholder: gettext("Brass")
|
placeholder: gettext("Brass")
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :case_material, "col-span-3 text-center") %>
|
<%= error_tag(f, :case_material, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :jacket_type, gettext("Jacket type"),
|
<%= label(f, :jacket_type, gettext("Jacket type"), class: "title text-lg text-primary-600") %>
|
||||||
class: "mr-4 title text-lg text-primary-600"
|
|
||||||
) %>
|
|
||||||
<%= text_input(f, :jacket_type,
|
<%= text_input(f, :jacket_type,
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
placeholder: gettext("Bimetal")
|
placeholder: gettext("Bimetal")
|
||||||
@ -85,7 +77,7 @@
|
|||||||
<%= error_tag(f, :case_material, "col-span-3 text-center") %>
|
<%= error_tag(f, :case_material, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :muzzle_velocity, gettext("Muzzle velocity"),
|
<%= label(f, :muzzle_velocity, gettext("Muzzle velocity"),
|
||||||
class: "mr-4 title text-lg text-primary-600"
|
class: "title text-lg text-primary-600"
|
||||||
) %>
|
) %>
|
||||||
<%= number_input(f, :muzzle_velocity,
|
<%= number_input(f, :muzzle_velocity,
|
||||||
step: "1",
|
step: "1",
|
||||||
@ -94,14 +86,12 @@
|
|||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :muzzle_velocity, "col-span-3 text-center") %>
|
<%= error_tag(f, :muzzle_velocity, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :powder_type, gettext("Powder type"),
|
<%= label(f, :powder_type, gettext("Powder type"), class: "title text-lg text-primary-600") %>
|
||||||
class: "mr-4 title text-lg text-primary-600"
|
|
||||||
) %>
|
|
||||||
<%= text_input(f, :powder_type, class: "text-center col-span-2 input input-primary") %>
|
<%= text_input(f, :powder_type, class: "text-center col-span-2 input input-primary") %>
|
||||||
<%= error_tag(f, :powder_type, "col-span-3 text-center") %>
|
<%= error_tag(f, :powder_type, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :powder_grains_per_charge, gettext("Powder grains per charge"),
|
<%= label(f, :powder_grains_per_charge, gettext("Powder grains per charge"),
|
||||||
class: "mr-4 title text-lg text-primary-600"
|
class: "title text-lg text-primary-600"
|
||||||
) %>
|
) %>
|
||||||
<%= number_input(f, :powder_grains_per_charge,
|
<%= number_input(f, :powder_grains_per_charge,
|
||||||
step: "1",
|
step: "1",
|
||||||
@ -110,7 +100,7 @@
|
|||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :powder_grains_per_charge, "col-span-3 text-center") %>
|
<%= error_tag(f, :powder_grains_per_charge, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :grains, gettext("Grains"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :grains, gettext("Grains"), class: "title text-lg text-primary-600") %>
|
||||||
<%= number_input(f, :grains,
|
<%= number_input(f, :grains,
|
||||||
step: "1",
|
step: "1",
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
@ -118,54 +108,48 @@
|
|||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :grains, "col-span-3 text-center") %>
|
<%= error_tag(f, :grains, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :pressure, gettext("Pressure"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :pressure, gettext("Pressure"), class: "title text-lg text-primary-600") %>
|
||||||
<%= text_input(f, :pressure,
|
<%= text_input(f, :pressure,
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
placeholder: "+P"
|
placeholder: "+P"
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :pressure, "col-span-3 text-center") %>
|
<%= error_tag(f, :pressure, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :primer_type, gettext("Primer type"),
|
<%= label(f, :primer_type, gettext("Primer type"), class: "title text-lg text-primary-600") %>
|
||||||
class: "mr-4 title text-lg text-primary-600"
|
|
||||||
) %>
|
|
||||||
<%= text_input(f, :primer_type,
|
<%= text_input(f, :primer_type,
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
placeholder: "Boxer"
|
placeholder: "Boxer"
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :primer_type, "col-span-3 text-center") %>
|
<%= error_tag(f, :primer_type, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :firing_type, gettext("Firing type"),
|
<%= label(f, :firing_type, gettext("Firing type"), class: "title text-lg text-primary-600") %>
|
||||||
class: "mr-4 title text-lg text-primary-600"
|
|
||||||
) %>
|
|
||||||
<%= text_input(f, :firing_type,
|
<%= text_input(f, :firing_type,
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
placeholder: "Centerfire"
|
placeholder: "Centerfire"
|
||||||
) %>
|
) %>
|
||||||
<%= error_tag(f, :firing_type, "col-span-3 text-center") %>
|
<%= error_tag(f, :firing_type, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :tracer, gettext("Tracer"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :tracer, gettext("Tracer"), class: "title text-lg text-primary-600") %>
|
||||||
<%= checkbox(f, :tracer, class: "text-center col-span-2 checkbox") %>
|
<%= checkbox(f, :tracer, class: "text-center col-span-2 checkbox") %>
|
||||||
<%= error_tag(f, :tracer, "col-span-3 text-center") %>
|
<%= error_tag(f, :tracer, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :incendiary, gettext("Incendiary"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :incendiary, gettext("Incendiary"), class: "title text-lg text-primary-600") %>
|
||||||
<%= checkbox(f, :incendiary, class: "text-center col-span-2 checkbox") %>
|
<%= checkbox(f, :incendiary, class: "text-center col-span-2 checkbox") %>
|
||||||
<%= error_tag(f, :incendiary, "col-span-3 text-center") %>
|
<%= error_tag(f, :incendiary, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :blank, gettext("Blank"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :blank, gettext("Blank"), class: "title text-lg text-primary-600") %>
|
||||||
<%= checkbox(f, :blank, class: "text-center col-span-2 checkbox") %>
|
<%= checkbox(f, :blank, class: "text-center col-span-2 checkbox") %>
|
||||||
<%= error_tag(f, :blank, "col-span-3 text-center") %>
|
<%= error_tag(f, :blank, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :corrosive, gettext("Corrosive"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :corrosive, gettext("Corrosive"), class: "title text-lg text-primary-600") %>
|
||||||
<%= checkbox(f, :corrosive, class: "text-center col-span-2 checkbox") %>
|
<%= checkbox(f, :corrosive, class: "text-center col-span-2 checkbox") %>
|
||||||
<%= error_tag(f, :corrosive, "col-span-3 text-center") %>
|
<%= error_tag(f, :corrosive, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :manufacturer, gettext("Manufacturer"),
|
<%= label(f, :manufacturer, gettext("Manufacturer"), class: "title text-lg text-primary-600") %>
|
||||||
class: "mr-4 title text-lg text-primary-600"
|
|
||||||
) %>
|
|
||||||
<%= text_input(f, :manufacturer, class: "text-center col-span-2 input input-primary") %>
|
<%= text_input(f, :manufacturer, class: "text-center col-span-2 input input-primary") %>
|
||||||
<%= error_tag(f, :manufacturer, "col-span-3 text-center") %>
|
<%= error_tag(f, :manufacturer, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<%= label(f, :upc, gettext("UPC"), class: "mr-4 title text-lg text-primary-600") %>
|
<%= label(f, :upc, gettext("UPC"), class: "title text-lg text-primary-600") %>
|
||||||
<%= text_input(f, :upc, class: "text-center col-span-2 input input-primary") %>
|
<%= text_input(f, :upc, class: "text-center col-span-2 input input-primary") %>
|
||||||
<%= error_tag(f, :upc, "col-span-3 text-center") %>
|
<%= error_tag(f, :upc, "col-span-3 text-center") %>
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
|||||||
alias CanneryWeb.Endpoint
|
alias CanneryWeb.Endpoint
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def mount(_params, session, socket) do
|
def mount(_params, _session, socket) do
|
||||||
{:ok, socket |> assign_defaults(session) |> list_ammo_types()}
|
{:ok, socket |> list_ammo_types()}
|
||||||
end
|
end
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
@ -31,7 +31,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
|||||||
end
|
end
|
||||||
|
|
||||||
defp apply_action(socket, :index, _params) do
|
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
|
end
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
@ -46,37 +46,108 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
|||||||
defp list_ammo_types(%{assigns: %{current_user: current_user}} = socket) do
|
defp list_ammo_types(%{assigns: %{current_user: current_user}} = socket) do
|
||||||
ammo_types = Ammo.list_ammo_types(current_user)
|
ammo_types = Ammo.list_ammo_types(current_user)
|
||||||
|
|
||||||
columns_to_display =
|
columns =
|
||||||
[
|
[
|
||||||
{gettext("Name"), :name, :string},
|
%{label: gettext("Name"), key: "name", type: :string},
|
||||||
{gettext("Bullet type"), :bullet_type, :string},
|
%{label: gettext("Bullet type"), key: "bullet_type", type: :string},
|
||||||
{gettext("Bullet core"), :bullet_core, :string},
|
%{label: gettext("Bullet core"), key: "bullet_core", type: :string},
|
||||||
{gettext("Cartridge"), :cartridge, :string},
|
%{label: gettext("Cartridge"), key: "cartridge", type: :string},
|
||||||
{gettext("Caliber"), :caliber, :string},
|
%{label: gettext("Caliber"), key: "caliber", type: :string},
|
||||||
{gettext("Case material"), :case_material, :string},
|
%{label: gettext("Case material"), key: "case_material", type: :string},
|
||||||
{gettext("Jacket type"), :jacket_type, :string},
|
%{label: gettext("Jacket type"), key: "jacket_type", type: :string},
|
||||||
{gettext("Muzzle velocity"), :muzzle_velocity, :string},
|
%{label: gettext("Muzzle velocity"), key: "muzzle_velocity", type: :string},
|
||||||
{gettext("Powder type"), :powder_type, :string},
|
%{label: gettext("Powder type"), key: "powder_type", type: :string},
|
||||||
{gettext("Powder grains per charge"), :powder_grains_per_charge, :string},
|
%{
|
||||||
{gettext("Grains"), :grains, :string},
|
label: gettext("Powder grains per charge"),
|
||||||
{gettext("Pressure"), :pressure, :string},
|
key: "powder_grains_per_charge",
|
||||||
{gettext("Primer type"), :primer_type, :string},
|
type: :string
|
||||||
{gettext("Firing type"), :firing_type, :string},
|
},
|
||||||
{gettext("Tracer"), :tracer, :boolean},
|
%{label: gettext("Grains"), key: "grains", type: :string},
|
||||||
{gettext("Incendiary"), :incendiary, :boolean},
|
%{label: gettext("Pressure"), key: "pressure", type: :string},
|
||||||
{gettext("Blank"), :blank, :boolean},
|
%{label: gettext("Primer type"), key: "primer_type", type: :string},
|
||||||
{gettext("Corrosive"), :corrosive, :boolean},
|
%{label: gettext("Firing type"), key: "firing_type", type: :string},
|
||||||
{gettext("Manufacturer"), :manufacturer, :string},
|
%{label: gettext("Tracer"), key: "tracer", type: :boolean},
|
||||||
{gettext("UPC"), :upc, :string}
|
%{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
|
# remove columns if all values match defaults
|
||||||
default_value = if type == :boolean, do: false, else: nil
|
default_value = if type == :boolean, do: false, else: nil
|
||||||
|
|
||||||
ammo_types
|
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)
|
end)
|
||||||
|
|> Kernel.++([
|
||||||
|
%{label: gettext("Total # of rounds"), key: "round_count", type: :round_count},
|
||||||
|
%{label: gettext("Average Price paid"), key: "avg_price_paid", type: :avg_price_paid},
|
||||||
|
%{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
|
end
|
||||||
|
|
||||||
|
defp get_ammo_type_values(ammo_type, columns, current_user) do
|
||||||
|
columns
|
||||||
|
|> Enum.into(%{}, fn %{key: key, type: type} ->
|
||||||
|
{key, get_ammo_type_value(type, key, ammo_type, current_user)}
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
|
defp get_ammo_type_value(:boolean, key, ammo_type, _current_user),
|
||||||
|
do: ammo_type |> Map.get(key |> String.to_existing_atom()) |> humanize()
|
||||||
|
|
||||||
|
defp get_ammo_type_value(:round_count, _key, ammo_type, current_user),
|
||||||
|
do: ammo_type |> Ammo.get_round_count_for_ammo_type(current_user)
|
||||||
|
|
||||||
|
defp get_ammo_type_value(:avg_price_paid, _key, ammo_type, current_user) do
|
||||||
|
case ammo_type |> Ammo.get_average_cost_for_ammo_type!(current_user) do
|
||||||
|
nil -> gettext("No cost information")
|
||||||
|
count -> gettext("$%{amount}", amount: count |> :erlang.float_to_binary(decimals: 2))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
defp get_ammo_type_value(:actions, _key, ammo_type, _current_user) do
|
||||||
|
assigns = %{ammo_type: ammo_type}
|
||||||
|
|
||||||
|
~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>
|
||||||
|
"""
|
||||||
|
end
|
||||||
|
|
||||||
|
defp get_ammo_type_value(nil, _key, _ammo_type, _current_user), do: nil
|
||||||
|
|
||||||
|
defp get_ammo_type_value(_other, key, ammo_type, _current_user),
|
||||||
|
do: ammo_type |> Map.get(key |> String.to_existing_atom())
|
||||||
end
|
end
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<%= gettext("Ammo Types") %>
|
<%= gettext("Ammo Types") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<%= if @ammo_types |> Enum.empty?() do %>
|
<%= if @rows |> Enum.empty?() do %>
|
||||||
<h2 class="title text-xl text-primary-600">
|
<h2 class="title text-xl text-primary-600">
|
||||||
<%= gettext("No Ammo Types") %>
|
<%= gettext("No Ammo Types") %>
|
||||||
<%= display_emoji("😔") %>
|
<%= display_emoji("😔") %>
|
||||||
@ -19,71 +19,13 @@
|
|||||||
class: "btn btn-primary"
|
class: "btn btn-primary"
|
||||||
) %>
|
) %>
|
||||||
|
|
||||||
<div class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-black">
|
<.live_component
|
||||||
<table class="min-w-full table-auto text-center bg-white">
|
module={CanneryWeb.Components.TableComponent}
|
||||||
<thead class="border-b border-primary-600">
|
id="ammo_types_index_table"
|
||||||
<tr>
|
action={@live_action}
|
||||||
<%= for {field_name, _field, _type} <- @columns_to_display do %>
|
columns={@columns}
|
||||||
<th class="p-2">
|
rows={@rows}
|
||||||
<%= 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>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -9,12 +9,10 @@ defmodule CanneryWeb.AmmoTypeLive.Show do
|
|||||||
alias CanneryWeb.Endpoint
|
alias CanneryWeb.Endpoint
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def mount(_params, session, socket) do
|
def mount(_params, _session, socket), do: {:ok, socket}
|
||||||
{:ok, socket |> assign_defaults(session)}
|
|
||||||
end
|
|
||||||
|
|
||||||
@impl true
|
@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)
|
ammo_type = Ammo.get_ammo_type!(id, current_user)
|
||||||
|
|
||||||
socket =
|
socket =
|
||||||
@ -32,7 +30,7 @@ defmodule CanneryWeb.AmmoTypeLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def handle_event(
|
def handle_event(
|
||||||
"delete",
|
"delete",
|
||||||
_,
|
_params,
|
||||||
%{assigns: %{ammo_type: ammo_type, current_user: current_user}} = socket
|
%{assigns: %{ammo_type: ammo_type, current_user: current_user}} = socket
|
||||||
) do
|
) do
|
||||||
%{name: ammo_type_name} = ammo_type |> Ammo.delete_ammo_type!(current_user)
|
%{name: ammo_type_name} = ammo_type |> Ammo.delete_ammo_type!(current_user)
|
||||||
|
@ -5,11 +5,9 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<%= if @ammo_type.desc do %>
|
<%= if @ammo_type.desc do %>
|
||||||
<span
|
<span class="max-w-2xl w-full px-8 py-4 rounded-lg
|
||||||
class="max-w-2xl w-full px-8 py-4 rounded-lg
|
|
||||||
text-center title text-lg
|
text-center title text-lg
|
||||||
border border-primary-600"
|
border border-primary-600">
|
||||||
>
|
|
||||||
<%= @ammo_type.desc %>
|
<%= @ammo_type.desc %>
|
||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
@ -89,6 +87,14 @@
|
|||||||
<%= @ammo_type |> Ammo.get_used_count_for_ammo_type(@current_user) %>
|
<%= @ammo_type |> Ammo.get_used_count_for_ammo_type(@current_user) %>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
<h3 class="title text-lg">
|
||||||
|
<%= gettext("Added on:") %>
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<span class="text-primary-600">
|
||||||
|
<%= @ammo_type.inserted_at |> display_datetime() %>
|
||||||
|
</span>
|
||||||
|
|
||||||
<%= if @avg_cost_per_round do %>
|
<%= if @avg_cost_per_round do %>
|
||||||
<h3 class="title text-lg">
|
<h3 class="title text-lg">
|
||||||
<%= gettext("Average Price paid") %>:
|
<%= gettext("Average Price paid") %>:
|
||||||
@ -100,9 +106,8 @@
|
|||||||
) %>
|
) %>
|
||||||
</span>
|
</span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<h3 class="title text-lg col-span-2">
|
<h3 class="mx-8 my-4 title text-lg text-primary-600 col-span-2">
|
||||||
<%= gettext("No cost information") %>
|
<%= gettext("No cost information") %>
|
||||||
<%= display_emoji("😔") %>
|
|
||||||
</h3>
|
</h3>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
@ -111,8 +116,10 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<%= if @ammo_groups |> Enum.empty?() do %>
|
<%= if @ammo_groups |> Enum.empty?() do %>
|
||||||
<%= gettext("No ammo for this type") %>
|
<h2 class="mx-8 my-4 title text-lg text-primary-600">
|
||||||
<%= display_emoji("😔") %>
|
<%= gettext("No ammo for this type") %>
|
||||||
|
<%= display_emoji("😔") %>
|
||||||
|
</h2>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="flex flex-wrap justify-center items-center">
|
<div class="flex flex-wrap justify-center items-center">
|
||||||
<%= for ammo_group <- @ammo_groups do %>
|
<%= for ammo_group <- @ammo_groups do %>
|
||||||
|
@ -10,9 +10,7 @@ defmodule CanneryWeb.ContainerLive.Index do
|
|||||||
alias Ecto.Changeset
|
alias Ecto.Changeset
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def mount(_params, session, socket) do
|
def mount(_params, _session, socket), do: {:ok, socket}
|
||||||
{:ok, socket |> assign_defaults(session)}
|
|
||||||
end
|
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
||||||
@ -35,7 +33,7 @@ defmodule CanneryWeb.ContainerLive.Index do
|
|||||||
|
|
||||||
defp apply_action(socket, :index, _params) do
|
defp apply_action(socket, :index, _params) do
|
||||||
socket
|
socket
|
||||||
|> assign(:page_title, gettext("Listing Containers"))
|
|> assign(:page_title, gettext("Containers"))
|
||||||
|> assign(:container, nil)
|
|> assign(:container, nil)
|
||||||
|> display_containers()
|
|> display_containers()
|
||||||
end
|
end
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
) %>
|
) %>
|
||||||
<% end %>
|
<% 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 %>
|
<%= for container <- @containers do %>
|
||||||
<.container_card container={container}>
|
<.container_card container={container}>
|
||||||
<:tag_actions>
|
<:tag_actions>
|
||||||
|
@ -11,14 +11,12 @@ defmodule CanneryWeb.ContainerLive.Show do
|
|||||||
alias Phoenix.LiveView.Socket
|
alias Phoenix.LiveView.Socket
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def mount(_params, session, socket) do
|
def mount(_params, _session, socket), do: {:ok, socket}
|
||||||
{:ok, socket |> assign_defaults(session)}
|
|
||||||
end
|
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def handle_params(
|
def handle_params(
|
||||||
%{"id" => id},
|
%{"id" => id},
|
||||||
_,
|
_session,
|
||||||
%{assigns: %{current_user: current_user}} = socket
|
%{assigns: %{current_user: current_user}} = socket
|
||||||
) do
|
) do
|
||||||
{:noreply, socket |> render_container(id, current_user)}
|
{:noreply, socket |> render_container(id, current_user)}
|
||||||
@ -53,7 +51,7 @@ defmodule CanneryWeb.ContainerLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def handle_event(
|
def handle_event(
|
||||||
"delete_container",
|
"delete_container",
|
||||||
_,
|
_params,
|
||||||
%{assigns: %{container: container, current_user: current_user}} = socket
|
%{assigns: %{container: container, current_user: current_user}} = socket
|
||||||
) do
|
) do
|
||||||
socket =
|
socket =
|
||||||
|
@ -72,9 +72,11 @@
|
|||||||
|
|
||||||
<hr class="mb-4 hr" />
|
<hr class="mb-4 hr" />
|
||||||
|
|
||||||
<p>
|
<div>
|
||||||
<%= if @container.ammo_groups |> Enum.empty?() do %>
|
<%= if @container.ammo_groups |> Enum.empty?() do %>
|
||||||
<%= gettext("No ammo groups in this container") %>
|
<h2 class="mx-8 my-4 title text-lg text-primary-600">
|
||||||
|
<%= gettext("No ammo groups in this container") %>
|
||||||
|
</h2>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="flex flex-wrap justify-center items-center">
|
<div class="flex flex-wrap justify-center items-center">
|
||||||
<%= for ammo_group <- @container.ammo_groups do %>
|
<%= for ammo_group <- @container.ammo_groups do %>
|
||||||
@ -82,7 +84,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</p>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= if @live_action in [:edit] do %>
|
<%= if @live_action in [:edit] do %>
|
||||||
|
@ -7,14 +7,9 @@ defmodule CanneryWeb.HomeLive do
|
|||||||
alias Cannery.Accounts
|
alias Cannery.Accounts
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def mount(_params, session, socket) do
|
def mount(_params, _session, socket) do
|
||||||
admins = Accounts.list_users_by_role(:admin)
|
admins = Accounts.list_users_by_role(:admin)
|
||||||
|
socket = socket |> assign(page_title: "Home", query: "", results: %{}, admins: admins)
|
||||||
socket =
|
|
||||||
socket
|
|
||||||
|> assign_defaults(session)
|
|
||||||
|> assign(page_title: "Home", query: "", results: %{}, admins: admins)
|
|
||||||
|
|
||||||
{:ok, socket}
|
{:ok, socket}
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -29,7 +24,7 @@ defmodule CanneryWeb.HomeLive do
|
|||||||
%{^query => vsn} ->
|
%{^query => vsn} ->
|
||||||
{:noreply, redirect(socket, external: "https://hexdocs.pm/#{query}/#{vsn}")}
|
{:noreply, redirect(socket, external: "https://hexdocs.pm/#{query}/#{vsn}")}
|
||||||
|
|
||||||
_ ->
|
_no_query ->
|
||||||
{:noreply,
|
{:noreply,
|
||||||
socket
|
socket
|
||||||
|> put_flash(:error, "No dependencies found matching \"#{query}\"")
|
|> put_flash(:error, "No dependencies found matching \"#{query}\"")
|
||||||
@ -40,9 +35,7 @@ defmodule CanneryWeb.HomeLive do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<div
|
<div class="mx-auto px-8 sm:px-16 flex flex-col justify-center items-center text-center space-y-4 max-w-3xl">
|
||||||
class="mx-auto px-8 sm:px-16 flex flex-col justify-center items-center text-center space-y-4 max-w-3xl"
|
|
||||||
>
|
|
||||||
<h1 class="title text-primary-600 text-2xl">
|
<h1 class="title text-primary-600 text-2xl">
|
||||||
<%= gettext("Welcome to %{name}", name: "Cannery") %>
|
<%= gettext("Welcome to %{name}", name: "Cannery") %>
|
||||||
</h1>
|
</h1>
|
||||||
@ -127,11 +120,51 @@ defmodule CanneryWeb.HomeLive do
|
|||||||
</p>
|
</p>
|
||||||
</li>
|
</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>
|
<b>Version:</b>
|
||||||
<p>
|
<%= link class: "flex flex-row justify-center items-center space-x-2 hover:underline",
|
||||||
0.2.2
|
to: "https://gitea.bubbletea.dev/shibao/cannery/src/branch/stable/CHANGELOG.md",
|
||||||
</p>
|
target: "_blank",
|
||||||
|
rel: "noopener noreferrer" do %>
|
||||||
|
<p>0.5.2</p>
|
||||||
|
<i class="fas fa-md fa-info-circle"></i>
|
||||||
|
<% end %>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<hr class="hr" />
|
||||||
|
|
||||||
|
<ul class="flex flex-col space-y-2 text-center justify-center">
|
||||||
|
<h2 class="title text-primary-600 text-lg">
|
||||||
|
<%= gettext("Get involved!") %>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<li class="flex flex-col justify-center space-x-2">
|
||||||
|
<%= link class: "flex flex-row justify-center items-center space-x-2 hover:underline",
|
||||||
|
to: "https://gitea.bubbletea.dev/shibao/cannery",
|
||||||
|
target: "_blank",
|
||||||
|
rel: "noopener noreferrer" do %>
|
||||||
|
<p><%= gettext("View the source code") %></p>
|
||||||
|
<i class="fas fa-md fa-code"></i>
|
||||||
|
<% end %>
|
||||||
|
</li>
|
||||||
|
<li class="flex flex-col justify-center space-x-2">
|
||||||
|
<%= link class: "flex flex-row justify-center items-center space-x-2 hover:underline",
|
||||||
|
to: "https://weblate.bubbletea.dev/engage/cannery",
|
||||||
|
target: "_blank",
|
||||||
|
rel: "noopener noreferrer" do %>
|
||||||
|
<p><%= gettext("Help translate") %></p>
|
||||||
|
<i class="fas fa-md fa-language"></i>
|
||||||
|
<% end %>
|
||||||
|
</li>
|
||||||
|
<li class="flex flex-col justify-center space-x-2">
|
||||||
|
<%= link class: "flex flex-row justify-center items-center space-x-2 hover:underline",
|
||||||
|
to: "https://gitea.bubbletea.dev/shibao/cannery/issues/new",
|
||||||
|
target: "_blank",
|
||||||
|
rel: "noopener noreferrer" do %>
|
||||||
|
<p><%= gettext("Report bugs or request features") %></p>
|
||||||
|
<i class="fas fa-md fa-spider"></i>
|
||||||
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
19
lib/cannery_web/live/init_assigns.ex
Normal file
19
lib/cannery_web/live/init_assigns.ex
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
defmodule CanneryWeb.InitAssigns do
|
||||||
|
@moduledoc """
|
||||||
|
Ensures common `assigns` are applied to all LiveViews attaching this hook.
|
||||||
|
"""
|
||||||
|
import Phoenix.LiveView
|
||||||
|
alias Cannery.Accounts
|
||||||
|
|
||||||
|
def on_mount(:default, _params, %{"locale" => locale, "user_token" => user_token}, socket) do
|
||||||
|
Gettext.put_locale(locale)
|
||||||
|
|
||||||
|
socket =
|
||||||
|
socket
|
||||||
|
|> assign_new(:current_user, fn -> Accounts.get_user_by_session_token(user_token) end)
|
||||||
|
|
||||||
|
{:cont, socket}
|
||||||
|
end
|
||||||
|
|
||||||
|
def on_mount(:default, _params, _session, socket), do: {:cont, socket}
|
||||||
|
end
|
@ -10,9 +10,7 @@ defmodule CanneryWeb.InviteLive.Index do
|
|||||||
alias Phoenix.LiveView.JS
|
alias Phoenix.LiveView.JS
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def mount(_params, session, socket) do
|
def mount(_params, _session, %{assigns: %{current_user: current_user}} = socket) do
|
||||||
%{assigns: %{current_user: current_user}} = socket = socket |> assign_defaults(session)
|
|
||||||
|
|
||||||
socket =
|
socket =
|
||||||
if current_user |> Map.get(:role) == :admin do
|
if current_user |> Map.get(:role) == :admin do
|
||||||
socket |> display_invites()
|
socket |> display_invites()
|
||||||
@ -40,7 +38,7 @@ defmodule CanneryWeb.InviteLive.Index do
|
|||||||
end
|
end
|
||||||
|
|
||||||
defp apply_action(socket, :index, _params) do
|
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
|
end
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
@ -119,7 +117,7 @@ defmodule CanneryWeb.InviteLive.Index do
|
|||||||
end
|
end
|
||||||
|
|
||||||
@impl true
|
@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")
|
prompt = dgettext("prompts", "Copied to clipboard")
|
||||||
{:noreply, socket |> put_flash(:info, prompt)}
|
{:noreply, socket |> put_flash(:info, prompt)}
|
||||||
end
|
end
|
||||||
|
@ -3,20 +3,9 @@ defmodule CanneryWeb.LiveHelpers do
|
|||||||
Contains common helper functions for liveviews
|
Contains common helper functions for liveviews
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import Phoenix.LiveView
|
|
||||||
import Phoenix.LiveView.Helpers
|
import Phoenix.LiveView.Helpers
|
||||||
alias Cannery.Accounts
|
|
||||||
alias Phoenix.LiveView.JS
|
alias Phoenix.LiveView.JS
|
||||||
|
|
||||||
def assign_defaults(socket, %{"user_token" => user_token} = _session) do
|
|
||||||
socket
|
|
||||||
|> assign_new(:current_user, fn -> Accounts.get_user_by_session_token(user_token) end)
|
|
||||||
end
|
|
||||||
|
|
||||||
def assign_defaults(socket, _session) do
|
|
||||||
socket
|
|
||||||
end
|
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Renders a live component inside a modal.
|
Renders a live component inside a modal.
|
||||||
|
|
||||||
@ -54,12 +43,13 @@ defmodule CanneryWeb.LiveHelpers do
|
|||||||
id="modal"
|
id="modal"
|
||||||
class="fixed z-10 left-0 top-0 pointer-events-none
|
class="fixed z-10 left-0 top-0 pointer-events-none
|
||||||
w-full h-full overflow-hidden
|
w-full h-full overflow-hidden
|
||||||
p-8 flex flex-col justify-center items-center"
|
p-4 sm:p-8 flex flex-col justify-center items-center"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
id="modal-content"
|
id="modal-content"
|
||||||
class="fade-in-scale w-full max-w-3xl max-h-128 relative pointer-events-auto overflow-y-auto
|
class="fade-in-scale w-full max-w-3xl relative
|
||||||
p-8 flex flex-col justify-center items-center
|
pointer-events-auto overflow-hidden
|
||||||
|
px-8 py-4 sm:py-8 flex flex-col justify-center items-center
|
||||||
flex flex-col justify-start items-center
|
flex flex-col justify-start items-center
|
||||||
bg-white border-2 rounded-lg"
|
bg-white border-2 rounded-lg"
|
||||||
>
|
>
|
||||||
@ -69,12 +59,11 @@ defmodule CanneryWeb.LiveHelpers do
|
|||||||
"absolute top-8 right-10
|
"absolute top-8 right-10
|
||||||
text-gray-500 hover:text-gray-800
|
text-gray-500 hover:text-gray-800
|
||||||
transition-all duration-500 ease-in-out",
|
transition-all duration-500 ease-in-out",
|
||||||
phx_remove: hide_modal()
|
phx_remove: hide_modal() do %>
|
||||||
do %>
|
|
||||||
<i class="fa-fw fa-lg fas fa-times"></i>
|
<i class="fa-fw fa-lg fas fa-times"></i>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="w-full p-8 flex flex-col space-y-4 justify-start items-center">
|
<div class="overflow-x-hidden overflow-y-auto w-full p-8 flex flex-col space-y-4 justify-start items-center">
|
||||||
<%= render_slot(@inner_block) %>
|
<%= render_slot(@inner_block) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,9 +10,7 @@ defmodule CanneryWeb.RangeLive.Index do
|
|||||||
alias Phoenix.LiveView.Socket
|
alias Phoenix.LiveView.Socket
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def mount(_params, session, socket) do
|
def mount(_params, _session, socket), do: {:ok, socket |> display_shot_groups()}
|
||||||
{:ok, socket |> assign_defaults(session) |> display_shot_groups()}
|
|
||||||
end
|
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
||||||
@ -25,7 +23,7 @@ defmodule CanneryWeb.RangeLive.Index do
|
|||||||
%{"id" => id}
|
%{"id" => id}
|
||||||
) do
|
) do
|
||||||
socket
|
socket
|
||||||
|> assign(:page_title, gettext("Record shots"))
|
|> assign(:page_title, gettext("Record Shots"))
|
||||||
|> assign(:ammo_group, Ammo.get_ammo_group!(id, current_user))
|
|> assign(:ammo_group, Ammo.get_ammo_group!(id, current_user))
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -77,6 +75,69 @@ defmodule CanneryWeb.RangeLive.Index do
|
|||||||
ActivityLog.list_shot_groups(current_user) |> Repo.preload(ammo_group: :ammo_type)
|
ActivityLog.list_shot_groups(current_user) |> Repo.preload(ammo_group: :ammo_type)
|
||||||
|
|
||||||
ammo_groups = Ammo.list_staged_ammo_groups(current_user)
|
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
|
||||||
end
|
end
|
||||||
|
@ -53,70 +53,12 @@
|
|||||||
<%= gettext("Shot log") %>
|
<%= gettext("Shot log") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-black">
|
<.live_component
|
||||||
<table class="min-w-full table-auto text-center bg-white">
|
module={CanneryWeb.Components.TableComponent}
|
||||||
<thead class="border-b border-primary-600">
|
id="shot_groups_index_table"
|
||||||
<tr>
|
columns={@columns}
|
||||||
<th class="p-2">
|
rows={@rows}
|
||||||
<%= 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>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -9,9 +9,7 @@ defmodule CanneryWeb.TagLive.Index do
|
|||||||
alias CanneryWeb.Endpoint
|
alias CanneryWeb.Endpoint
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def mount(_params, session, socket) do
|
def mount(_params, _session, socket), do: {:ok, socket |> display_tags()}
|
||||||
{:ok, socket |> assign_defaults(session) |> display_tags()}
|
|
||||||
end
|
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
|
||||||
@ -31,7 +29,7 @@ defmodule CanneryWeb.TagLive.Index do
|
|||||||
end
|
end
|
||||||
|
|
||||||
defp apply_action(socket, :index, _params) do
|
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
|
end
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
|
@ -11,6 +11,17 @@ defmodule CanneryWeb.Router do
|
|||||||
plug :protect_from_forgery
|
plug :protect_from_forgery
|
||||||
plug :put_secure_browser_headers
|
plug :put_secure_browser_headers
|
||||||
plug :fetch_current_user
|
plug :fetch_current_user
|
||||||
|
plug :put_user_locale, default: Application.get_env(:gettext, :default_locale, "en_US")
|
||||||
|
end
|
||||||
|
|
||||||
|
defp put_user_locale(%{assigns: %{current_user: %{locale: locale}}} = conn, default: default) do
|
||||||
|
Gettext.put_locale(locale || default)
|
||||||
|
conn |> put_session(:locale, locale || default)
|
||||||
|
end
|
||||||
|
|
||||||
|
defp put_user_locale(conn, default: default) do
|
||||||
|
Gettext.put_locale(default)
|
||||||
|
conn |> put_session(:locale, default)
|
||||||
end
|
end
|
||||||
|
|
||||||
pipeline :require_admin do
|
pipeline :require_admin do
|
||||||
@ -80,6 +91,7 @@ defmodule CanneryWeb.Router do
|
|||||||
live "/ammo_groups/:id/show/edit", AmmoGroupLive.Show, :edit
|
live "/ammo_groups/:id/show/edit", AmmoGroupLive.Show, :edit
|
||||||
live "/ammo_groups/:id/show/add_shot_group", AmmoGroupLive.Show, :add_shot_group
|
live "/ammo_groups/:id/show/add_shot_group", AmmoGroupLive.Show, :add_shot_group
|
||||||
live "/ammo_groups/:id/show/move", AmmoGroupLive.Show, :move
|
live "/ammo_groups/:id/show/move", AmmoGroupLive.Show, :move
|
||||||
|
live "/ammo_groups/:id/show/:shot_group_id/edit", AmmoGroupLive.Show, :edit_shot_group
|
||||||
|
|
||||||
live "/range", RangeLive.Index, :index
|
live "/range", RangeLive.Index, :index
|
||||||
live "/range/:id/edit", RangeLive.Index, :edit
|
live "/range/:id/edit", RangeLive.Index, :edit
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
<%= dgettext("errors", "Error") %>| Cannery
|
<%= dgettext("errors", "Error") %>| Cannery
|
||||||
</title>
|
</title>
|
||||||
<link rel="stylesheet" href="/css/app.css" />
|
<link rel="stylesheet" href="/css/app.css" />
|
||||||
<script defer type="text/javascript" src="/js/app.js"></script>
|
<script defer type="text/javascript" src="/js/app.js">
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body class="pb-8 m-0 p-0 w-full h-full">
|
<body class="pb-8 m-0 p-0 w-full h-full">
|
||||||
<header>
|
<header>
|
||||||
@ -16,9 +17,7 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="pb-8 w-full flex flex-col justify-center items-center text-center">
|
<div class="pb-8 w-full flex flex-col justify-center items-center text-center">
|
||||||
<div
|
<div class="p-8 sm:p-16 w-full flex flex-col justify-center items-center space-y-4 max-w-3xl">
|
||||||
class="p-8 sm:p-16 w-full flex flex-col justify-center items-center space-y-4 max-w-3xl"
|
|
||||||
>
|
|
||||||
<h1 class="title text-primary-600 text-3xl">
|
<h1 class="title text-primary-600 text-3xl">
|
||||||
<%= @error_string %>
|
<%= @error_string %>
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -4,14 +4,10 @@
|
|||||||
<%= @email.subject %>
|
<%= @email.subject %>
|
||||||
</title>
|
</title>
|
||||||
</head>
|
</head>
|
||||||
<body
|
<body style="padding: 2em; color: rgb(31, 31, 31); background-color: rgb(220, 220, 228); font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; text-align: center;">
|
||||||
style="padding: 2em; color: rgb(31, 31, 31); background-color: rgb(220, 220, 228); font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; text-align: center;"
|
|
||||||
>
|
|
||||||
<%= @inner_content %>
|
<%= @inner_content %>
|
||||||
|
|
||||||
<hr
|
<hr style="margin: 2em auto; border-width: 1px; border-color: rgb(212, 212, 216); width: 100%; max-width: 42rem;" />
|
||||||
style="margin: 2em auto; border-width: 1px; border-color: rgb(212, 212, 216); width: 100%; max-width: 42rem;"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<a style="color: rgb(31, 31, 31);" href={Routes.live_url(Endpoint, HomeLive)}>
|
<a style="color: rgb(31, 31, 31);" href={Routes.live_url(Endpoint, HomeLive)}>
|
||||||
<%= dgettext(
|
<%= dgettext(
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
<%= gettext("Loading...") %>
|
<%= gettext("Loading...") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<i class="fas fa-3x fa-spin fa-cog"></i>
|
<i class="fas fa-3x fa-spin fa-gear"></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
<!DOCTYPE html>
|
<!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>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<%= csrf_meta_tag() %>
|
<%= csrf_meta_tag() %>
|
||||||
<%= if(assigns |> Map.has_key?(:page_title),
|
<%= if(assigns |> Map.has_key?(:page_title), do: @page_title, else: "Cannery")
|
||||||
do: "#{assigns.page_title} | Cannery",
|
|> live_title_tag(suffix: " | Cannery") %>
|
||||||
else: "Cannery"
|
|
||||||
)
|
|
||||||
|> live_title_tag(suffix: "") %>
|
|
||||||
<link phx-track-static rel="stylesheet" href={Routes.static_path(@conn, "/css/app.css")} />
|
<link phx-track-static rel="stylesheet" href={Routes.static_path(@conn, "/css/app.css")} />
|
||||||
<script
|
<script
|
||||||
defer
|
defer
|
||||||
@ -20,7 +17,7 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</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 %>
|
<%= @inner_content %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -30,6 +30,15 @@
|
|||||||
<%= password_input(f, :password, required: true, class: "input input-primary col-span-2") %>
|
<%= password_input(f, :password, required: true, class: "input input-primary col-span-2") %>
|
||||||
<%= error_tag(f, :password, "col-span-3") %>
|
<%= error_tag(f, :password, "col-span-3") %>
|
||||||
|
|
||||||
|
<%= label(f, :locale, gettext("Language"), class: "title text-lg text-primary-600") %>
|
||||||
|
<%= select(
|
||||||
|
f,
|
||||||
|
:locale,
|
||||||
|
[{gettext("English"), "en_US"}, {gettext("German"), "de"}, {gettext("French"), "fr"}],
|
||||||
|
class: "input input-primary col-span-2"
|
||||||
|
) %>
|
||||||
|
<%= error_tag(f, :locale) %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Register"), class: "mx-auto btn btn-primary col-span-3") %>
|
<%= submit(dgettext("actions", "Register"), class: "mx-auto btn btn-primary col-span-3") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
|
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center text-center space-y-4">
|
||||||
<h1 class="pb-4 title text-primary-600 text-xl">
|
<h1 class="pb-4 title text-primary-600 text-xl">
|
||||||
<%= gettext("Settings") %>
|
<%= gettext("Settings") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<hr class="hr" />
|
<hr class="hr" />
|
||||||
|
|
||||||
<%= form_for @email_changeset,
|
<.form
|
||||||
Routes.user_settings_path(@conn, :update),
|
let={f}
|
||||||
[
|
for={@email_changeset}
|
||||||
class:
|
action={Routes.user_settings_path(@conn, :update)}
|
||||||
"flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
||||||
],
|
>
|
||||||
fn f -> %>
|
|
||||||
<h3 class="title text-primary-600 text-lg col-span-3">
|
<h3 class="title text-primary-600 text-lg col-span-3">
|
||||||
<%= dgettext("actions", "Change email") %>
|
<%= dgettext("actions", "Change email") %>
|
||||||
</h3>
|
</h3>
|
||||||
@ -45,17 +44,16 @@
|
|||||||
<%= submit(dgettext("actions", "Change email"),
|
<%= submit(dgettext("actions", "Change email"),
|
||||||
class: "mx-auto btn btn-primary col-span-3"
|
class: "mx-auto btn btn-primary col-span-3"
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
</.form>
|
||||||
|
|
||||||
<hr class="hr" />
|
<hr class="hr" />
|
||||||
|
|
||||||
<%= form_for @password_changeset,
|
<.form
|
||||||
Routes.user_settings_path(@conn, :update),
|
let={f}
|
||||||
[
|
for={@password_changeset}
|
||||||
class:
|
action={Routes.user_settings_path(@conn, :update)}
|
||||||
"flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
|
||||||
],
|
>
|
||||||
fn f -> %>
|
|
||||||
<h3 class="title text-primary-600 text-lg col-span-3">
|
<h3 class="title text-primary-600 text-lg col-span-3">
|
||||||
<%= dgettext("actions", "Change password") %>
|
<%= dgettext("actions", "Change password") %>
|
||||||
</h3>
|
</h3>
|
||||||
@ -101,7 +99,43 @@
|
|||||||
<%= submit(dgettext("actions", "Change password"),
|
<%= submit(dgettext("actions", "Change password"),
|
||||||
class: "mx-auto btn btn-primary col-span-3"
|
class: "mx-auto btn btn-primary col-span-3"
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
</.form>
|
||||||
|
|
||||||
|
<hr class="hr" />
|
||||||
|
|
||||||
|
<.form
|
||||||
|
let={f}
|
||||||
|
for={@locale_changeset}
|
||||||
|
action={Routes.user_settings_path(@conn, :update)}
|
||||||
|
class="flex flex-col space-y-4 justify-center items-center"
|
||||||
|
>
|
||||||
|
<h3 class="title text-primary-600 text-lg">
|
||||||
|
<%= dgettext("actions", "Change Language") %>
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<%= if @locale_changeset.action && not @locale_changeset.valid? do %>
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
<p>
|
||||||
|
<%= dgettext("errors", "Oops, something went wrong! Please check the errors below.") %>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<%= hidden_input(f, :action, name: "action", value: "update_locale") %>
|
||||||
|
|
||||||
|
<%= select(
|
||||||
|
f,
|
||||||
|
:locale,
|
||||||
|
[{gettext("English"), "en_US"}, {gettext("German"), "de"}, {gettext("French"), "fr"}],
|
||||||
|
class: "mx-2 my-1 min-w-md input input-primary"
|
||||||
|
) %>
|
||||||
|
<%= error_tag(f, :locale) %>
|
||||||
|
|
||||||
|
<%= submit(dgettext("actions", "Change language"),
|
||||||
|
class: "whitespace-nowrap mx-auto btn btn-primary",
|
||||||
|
data: [qa: dgettext("prompts", "Are you sure you want to change your language?")]
|
||||||
|
) %>
|
||||||
|
</.form>
|
||||||
|
|
||||||
<hr class="hr" />
|
<hr class="hr" />
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ defmodule CanneryWeb.EmailView do
|
|||||||
@moduledoc """
|
@moduledoc """
|
||||||
A view for email-related helper functions
|
A view for email-related helper functions
|
||||||
"""
|
"""
|
||||||
alias CanneryWeb.{Endpoint, HomeLive}
|
|
||||||
|
|
||||||
use CanneryWeb, :view
|
use CanneryWeb, :view
|
||||||
|
alias CanneryWeb.{Endpoint, HomeLive}
|
||||||
end
|
end
|
||||||
|
@ -8,7 +8,7 @@ defmodule CanneryWeb.ErrorView do
|
|||||||
case error_path do
|
case error_path do
|
||||||
"404.html" -> dgettext("errors", "Not found")
|
"404.html" -> dgettext("errors", "Not found")
|
||||||
"401.html" -> dgettext("errors", "Unauthorized")
|
"401.html" -> dgettext("errors", "Unauthorized")
|
||||||
_ -> dgettext("errors", "Internal Server Error")
|
_other_template -> dgettext("errors", "Internal Server Error")
|
||||||
end
|
end
|
||||||
|
|
||||||
render("error.html", %{error_string: error_string})
|
render("error.html", %{error_string: error_string})
|
||||||
|
@ -7,6 +7,8 @@ defmodule CanneryWeb.ViewHelpers do
|
|||||||
|
|
||||||
import Phoenix.LiveView.Helpers
|
import Phoenix.LiveView.Helpers
|
||||||
|
|
||||||
|
@id_length 16
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Returns a <time> element that renders the naivedatetime in the user's local
|
Returns a <time> element that renders the naivedatetime in the user's local
|
||||||
timezone with Alpine.js
|
timezone with Alpine.js
|
||||||
@ -16,11 +18,12 @@ defmodule CanneryWeb.ViewHelpers do
|
|||||||
|
|
||||||
def display_datetime(datetime) do
|
def display_datetime(datetime) do
|
||||||
assigns = %{
|
assigns = %{
|
||||||
|
id: :crypto.strong_rand_bytes(@id_length) |> Base.url_encode64(),
|
||||||
datetime: datetime |> DateTime.from_naive!("Etc/UTC") |> DateTime.to_iso8601(:extended)
|
datetime: datetime |> DateTime.from_naive!("Etc/UTC") |> DateTime.to_iso8601(:extended)
|
||||||
}
|
}
|
||||||
|
|
||||||
~H"""
|
~H"""
|
||||||
<time datetime={@datetime} x-data={"{
|
<time id={@id} datetime={@datetime} x-data={"{
|
||||||
date:
|
date:
|
||||||
Intl.DateTimeFormat([], {dateStyle: 'short', timeStyle: 'long'})
|
Intl.DateTimeFormat([], {dateStyle: 'short', timeStyle: 'long'})
|
||||||
.format(new Date(\"#{@datetime}\"))
|
.format(new Date(\"#{@datetime}\"))
|
||||||
@ -38,10 +41,13 @@ defmodule CanneryWeb.ViewHelpers do
|
|||||||
def display_date(nil), do: ""
|
def display_date(nil), do: ""
|
||||||
|
|
||||||
def display_date(date) 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"""
|
~H"""
|
||||||
<time datetime={@date} x-data={"{
|
<time id={@id} datetime={@date} x-data={"{
|
||||||
date:
|
date:
|
||||||
Intl.DateTimeFormat([], {timeZone: 'Etc/UTC', dateStyle: 'short'}).format(new Date(\"#{@date}\"))
|
Intl.DateTimeFormat([], {timeZone: 'Etc/UTC', dateStyle: 'short'}).format(new Date(\"#{@date}\"))
|
||||||
}"} x-text="date">
|
}"} x-text="date">
|
||||||
|
23
mix.exs
23
mix.exs
@ -4,8 +4,8 @@ defmodule Cannery.MixProject do
|
|||||||
def project do
|
def project do
|
||||||
[
|
[
|
||||||
app: :cannery,
|
app: :cannery,
|
||||||
version: "0.2.2",
|
version: "0.5.2",
|
||||||
elixir: "~> 1.12",
|
elixir: "1.13.4",
|
||||||
elixirc_paths: elixirc_paths(Mix.env()),
|
elixirc_paths: elixirc_paths(Mix.env()),
|
||||||
compilers: [:gettext] ++ Mix.compilers(),
|
compilers: [:gettext] ++ Mix.compilers(),
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
@ -13,6 +13,7 @@ defmodule Cannery.MixProject do
|
|||||||
deps: deps(),
|
deps: deps(),
|
||||||
dialyzer: [plt_add_apps: [:ex_unit]],
|
dialyzer: [plt_add_apps: [:ex_unit]],
|
||||||
consolidate_protocols: Mix.env() not in [:dev, :test],
|
consolidate_protocols: Mix.env() not in [:dev, :test],
|
||||||
|
preferred_cli_env: [test: :test],
|
||||||
# ExDoc
|
# ExDoc
|
||||||
name: "Cannery",
|
name: "Cannery",
|
||||||
source_url: "https://gitea.bubbletea.dev/shibao/cannery",
|
source_url: "https://gitea.bubbletea.dev/shibao/cannery",
|
||||||
@ -49,14 +50,14 @@ defmodule Cannery.MixProject do
|
|||||||
{:bcrypt_elixir, "~> 2.0"},
|
{:bcrypt_elixir, "~> 2.0"},
|
||||||
{:phoenix, "~> 1.6"},
|
{:phoenix, "~> 1.6"},
|
||||||
{:phoenix_ecto, "~> 4.4"},
|
{:phoenix_ecto, "~> 4.4"},
|
||||||
{:ecto_sql, "~> 3.6"},
|
|
||||||
{:postgrex, ">= 0.0.0"},
|
|
||||||
{:phoenix_html, "~> 3.0"},
|
{:phoenix_html, "~> 3.0"},
|
||||||
{:phoenix_live_reload, "~> 1.2", only: :dev},
|
{:phoenix_live_reload, "~> 1.2", only: :dev},
|
||||||
{:phoenix_live_view, "~> 0.17"},
|
{:phoenix_live_view, "~> 0.17"},
|
||||||
{:phoenix_view, "~> 1.1"},
|
{:phoenix_view, "~> 1.1"},
|
||||||
{:floki, ">= 0.30.0", only: :test},
|
|
||||||
{:phoenix_live_dashboard, "~> 0.6"},
|
{:phoenix_live_dashboard, "~> 0.6"},
|
||||||
|
{:ecto_sql, "~> 3.6"},
|
||||||
|
{:postgrex, ">= 0.0.0"},
|
||||||
|
{:floki, ">= 0.30.0", only: :test},
|
||||||
# {:esbuild, "~> 0.3", runtime: Mix.env() == :dev},
|
# {:esbuild, "~> 0.3", runtime: Mix.env() == :dev},
|
||||||
{:ex_doc, "~> 0.27", only: :dev, runtime: false},
|
{:ex_doc, "~> 0.27", only: :dev, runtime: false},
|
||||||
{:swoosh, "~> 1.6"},
|
{:swoosh, "~> 1.6"},
|
||||||
@ -70,8 +71,7 @@ defmodule Cannery.MixProject do
|
|||||||
{:plug_cowboy, "~> 2.5"},
|
{:plug_cowboy, "~> 2.5"},
|
||||||
{:ecto_psql_extras, "~> 0.6"},
|
{:ecto_psql_extras, "~> 0.6"},
|
||||||
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
|
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
|
||||||
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
|
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}
|
||||||
{:heex_formatter, github: "feliperenan/heex_formatter"}
|
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -86,12 +86,19 @@ defmodule Cannery.MixProject do
|
|||||||
setup: ["deps.get", "compile", "ecto.setup", "cmd npm install --prefix assets"],
|
setup: ["deps.get", "compile", "ecto.setup", "cmd npm install --prefix assets"],
|
||||||
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
|
||||||
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
"ecto.reset": ["ecto.drop", "ecto.setup"],
|
||||||
format: ["cmd npm run format --prefix assets", "format", "gettext.extract"],
|
format: [
|
||||||
|
"cmd npm run format --prefix assets",
|
||||||
|
"format",
|
||||||
|
"gettext.extract --merge",
|
||||||
|
"gettext.merge --no-fuzzy priv/gettext"
|
||||||
|
],
|
||||||
test: [
|
test: [
|
||||||
"cmd npm run test --prefix assets",
|
"cmd npm run test --prefix assets",
|
||||||
"dialyzer",
|
"dialyzer",
|
||||||
"credo --strict",
|
"credo --strict",
|
||||||
"format --check-formatted",
|
"format --check-formatted",
|
||||||
|
"gettext.extract --check-up-to-date",
|
||||||
|
"ecto.drop --quiet",
|
||||||
"ecto.create --quiet",
|
"ecto.create --quiet",
|
||||||
"ecto.migrate --quiet",
|
"ecto.migrate --quiet",
|
||||||
"test"
|
"test"
|
||||||
|
39
mix.lock
39
mix.lock
@ -7,49 +7,50 @@
|
|||||||
"cowboy": {:hex, :cowboy, "2.9.0", "865dd8b6607e14cf03282e10e934023a1bd8be6f6bacf921a7e2a96d800cd452", [:make, :rebar3], [{:cowlib, "2.11.0", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, "1.8.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "2c729f934b4e1aa149aff882f57c6372c15399a20d54f65c8d67bef583021bde"},
|
"cowboy": {:hex, :cowboy, "2.9.0", "865dd8b6607e14cf03282e10e934023a1bd8be6f6bacf921a7e2a96d800cd452", [:make, :rebar3], [{:cowlib, "2.11.0", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, "1.8.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "2c729f934b4e1aa149aff882f57c6372c15399a20d54f65c8d67bef583021bde"},
|
||||||
"cowboy_telemetry": {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"},
|
"cowboy_telemetry": {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"},
|
||||||
"cowlib": {:hex, :cowlib, "2.11.0", "0b9ff9c346629256c42ebe1eeb769a83c6cb771a6ee5960bd110ab0b9b872063", [:make, :rebar3], [], "hexpm", "2b3e9da0b21c4565751a6d4901c20d1b4cc25cbb7fd50d91d2ab6dd287bc86a9"},
|
"cowlib": {:hex, :cowlib, "2.11.0", "0b9ff9c346629256c42ebe1eeb769a83c6cb771a6ee5960bd110ab0b9b872063", [:make, :rebar3], [], "hexpm", "2b3e9da0b21c4565751a6d4901c20d1b4cc25cbb7fd50d91d2ab6dd287bc86a9"},
|
||||||
"credo": {:hex, :credo, "1.6.3", "0a9f8925dbc8f940031b789f4623fc9a0eea99d3eed600fe831e403eb96c6a83", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2.8", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "1167cde00e6661d740fc54da2ee268e35d3982f027399b64d3e2e83af57a1180"},
|
"credo": {:hex, :credo, "1.6.4", "ddd474afb6e8c240313f3a7b0d025cc3213f0d171879429bf8535d7021d9ad78", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2.8", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "c28f910b61e1ff829bffa056ef7293a8db50e87f2c57a9b5c3f57eee124536b7"},
|
||||||
"db_connection": {:hex, :db_connection, "2.4.1", "6411f6e23f1a8b68a82fa3a36366d4881f21f47fc79a9efb8c615e62050219da", [:mix], [{:connection, "~> 1.0", [hex: :connection, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "ea36d226ec5999781a9a8ad64e5d8c4454ecedc7a4d643e4832bf08efca01f00"},
|
"db_connection": {:hex, :db_connection, "2.4.2", "f92e79aff2375299a16bcb069a14ee8615c3414863a6fef93156aee8e86c2ff3", [:mix], [{:connection, "~> 1.0", [hex: :connection, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "4fe53ca91b99f55ea249693a0229356a08f4d1a7931d8ffa79289b145fe83668"},
|
||||||
"decimal": {:hex, :decimal, "2.0.0", "a78296e617b0f5dd4c6caf57c714431347912ffb1d0842e998e9792b5642d697", [:mix], [], "hexpm", "34666e9c55dea81013e77d9d87370fe6cb6291d1ef32f46a1600230b1d44f577"},
|
"decimal": {:hex, :decimal, "2.0.0", "a78296e617b0f5dd4c6caf57c714431347912ffb1d0842e998e9792b5642d697", [:mix], [], "hexpm", "34666e9c55dea81013e77d9d87370fe6cb6291d1ef32f46a1600230b1d44f577"},
|
||||||
"dialyxir": {:hex, :dialyxir, "1.1.0", "c5aab0d6e71e5522e77beff7ba9e08f8e02bad90dfbeffae60eaf0cb47e29488", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "07ea8e49c45f15264ebe6d5b93799d4dd56a44036cf42d0ad9c960bc266c0b9a"},
|
"dialyxir": {:hex, :dialyxir, "1.1.0", "c5aab0d6e71e5522e77beff7ba9e08f8e02bad90dfbeffae60eaf0cb47e29488", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "07ea8e49c45f15264ebe6d5b93799d4dd56a44036cf42d0ad9c960bc266c0b9a"},
|
||||||
"earmark_parser": {:hex, :earmark_parser, "1.4.19", "de0d033d5ff9fc396a24eadc2fcf2afa3d120841eb3f1004d138cbf9273210e8", [:mix], [], "hexpm", "527ab6630b5c75c3a3960b75844c314ec305c76d9899bb30f71cb85952a9dc45"},
|
"earmark_parser": {:hex, :earmark_parser, "1.4.25", "2024618731c55ebfcc5439d756852ec4e85978a39d0d58593763924d9a15916f", [:mix], [], "hexpm", "56749c5e1c59447f7b7a23ddb235e4b3defe276afc220a6227237f3efe83f51e"},
|
||||||
"ecto": {:hex, :ecto, "3.7.1", "a20598862351b29f80f285b21ec5297da1181c0442687f9b8329f0445d228892", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "d36e5b39fc479e654cffd4dbe1865d9716e4a9b6311faff799b6f90ab81b8638"},
|
"ecto": {:hex, :ecto, "3.8.2", "7b9aca632f9da80ffed525354e4de466a66e042abcbc8509b6b600072c8d8ee0", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "afe2912cc23f61a6a8466c158331d54e0f427029dd97ca936644bc116d6599b3"},
|
||||||
"ecto_psql_extras": {:hex, :ecto_psql_extras, "0.7.4", "5d43fd088d39a158c860b17e8d210669587f63ec89ea122a4654861c8c6e2db4", [:mix], [{:ecto_sql, "~> 3.4", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:postgrex, ">= 0.15.7", [hex: :postgrex, repo: "hexpm", optional: false]}, {:table_rex, "~> 3.1.1", [hex: :table_rex, repo: "hexpm", optional: false]}], "hexpm", "311db02f1b772e3d0dc7f56a05044b5e1499d78ed6abf38885e1ca70059449e5"},
|
"ecto_psql_extras": {:hex, :ecto_psql_extras, "0.7.4", "5d43fd088d39a158c860b17e8d210669587f63ec89ea122a4654861c8c6e2db4", [:mix], [{:ecto_sql, "~> 3.4", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:postgrex, ">= 0.15.7", [hex: :postgrex, repo: "hexpm", optional: false]}, {:table_rex, "~> 3.1.1", [hex: :table_rex, repo: "hexpm", optional: false]}], "hexpm", "311db02f1b772e3d0dc7f56a05044b5e1499d78ed6abf38885e1ca70059449e5"},
|
||||||
"ecto_sql": {:hex, :ecto_sql, "3.7.2", "55c60aa3a06168912abf145c6df38b0295c34118c3624cf7a6977cd6ce043081", [:mix], [{:db_connection, "~> 2.2", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.7.0", [hex: :ecto, repo: "hexpm", optional: false]}, {:myxql, "~> 0.4.0 or ~> 0.5.0 or ~> 0.6.0", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.15.0 or ~> 0.16.0 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:tds, "~> 2.1.1 or ~> 2.2", [hex: :tds, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "3c218ea62f305dcaef0b915fb56583195e7b91c91dcfb006ba1f669bfacbff2a"},
|
"ecto_sql": {:hex, :ecto_sql, "3.8.1", "1acaaba32ca0551fd19e492fc7c80414e72fc1a7140fc9395aaa53c2e8629798", [:mix], [{:db_connection, "~> 2.5 or ~> 2.4.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.8.1", [hex: :ecto, repo: "hexpm", optional: false]}, {:myxql, "~> 0.6.0", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.15.0 or ~> 0.16.0 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:tds, "~> 2.1.1 or ~> 2.2", [hex: :tds, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "ba7fc75882edce6f2ceca047315d5db27ead773cafea47f1724e35f1e7964525"},
|
||||||
"elixir_make": {:hex, :elixir_make, "0.6.3", "bc07d53221216838d79e03a8019d0839786703129599e9619f4ab74c8c096eac", [:mix], [], "hexpm", "f5cbd651c5678bcaabdbb7857658ee106b12509cd976c2c2fca99688e1daf716"},
|
"elixir_make": {:hex, :elixir_make, "0.6.3", "bc07d53221216838d79e03a8019d0839786703129599e9619f4ab74c8c096eac", [:mix], [], "hexpm", "f5cbd651c5678bcaabdbb7857658ee106b12509cd976c2c2fca99688e1daf716"},
|
||||||
"erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"},
|
"erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"},
|
||||||
"esbuild": {:hex, :esbuild, "0.4.0", "9f17db148aead4cf1e6e6a584214357287a93407b5fb51a031f122b61385d4c2", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}], "hexpm", "b61e4e6b92ffe45e4ee4755a22de6211a67c67987dc02afb35a425a0add1d447"},
|
"esbuild": {:hex, :esbuild, "0.4.0", "9f17db148aead4cf1e6e6a584214357287a93407b5fb51a031f122b61385d4c2", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}], "hexpm", "b61e4e6b92ffe45e4ee4755a22de6211a67c67987dc02afb35a425a0add1d447"},
|
||||||
"ex_doc": {:hex, :ex_doc, "0.28.0", "7eaf526dd8c80ae8c04d52ac8801594426ae322b52a6156cd038f30bafa8226f", [:mix], [{:earmark_parser, "~> 1.4.19", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "e55cdadf69a5d1f4cfd8477122ebac5e1fadd433a8c1022dafc5025e48db0131"},
|
"ex_doc": {:hex, :ex_doc, "0.28.4", "001a0ea6beac2f810f1abc3dbf4b123e9593eaa5f00dd13ded024eae7c523298", [:mix], [{:earmark_parser, "~> 1.4.19", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "bf85d003dd34911d89c8ddb8bda1a958af3471a274a4c2150a9c01c78ac3f8ed"},
|
||||||
"file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"},
|
"file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"},
|
||||||
"floki": {:hex, :floki, "0.32.0", "f915dc15258bc997d49be1f5ef7d3992f8834d6f5695270acad17b41f5bcc8e2", [:mix], [{:html_entities, "~> 0.5.0", [hex: :html_entities, repo: "hexpm", optional: false]}], "hexpm", "1c5a91cae1fd8931c26a4826b5e2372c284813904c8bacb468b5de39c7ececbd"},
|
"floki": {:hex, :floki, "0.32.1", "dfe3b8db3b793939c264e6f785bca01753d17318d144bd44b407fb3493acaa87", [:mix], [{:html_entities, "~> 0.5.0", [hex: :html_entities, repo: "hexpm", optional: false]}], "hexpm", "d4b91c713e4a784a3f7b1e3cc016eefc619f6b1c3898464222867cafd3c681a3"},
|
||||||
"gen_smtp": {:hex, :gen_smtp, "1.1.1", "bf9303c31735100631b1d708d629e4c65944319d1143b5c9952054f4a1311d85", [:rebar3], [{:hut, "1.3.0", [hex: :hut, repo: "hexpm", optional: false]}, {:ranch, ">= 1.7.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "51bc50cc017efd4a4248cbc39ea30fb60efa7d4a49688986fafad84434ff9ab7"},
|
"gen_smtp": {:hex, :gen_smtp, "1.2.0", "9cfc75c72a8821588b9b9fe947ae5ab2aed95a052b81237e0928633a13276fd3", [:rebar3], [{:ranch, ">= 1.8.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "5ee0375680bca8f20c4d85f58c2894441443a743355430ff33a783fe03296779"},
|
||||||
"gettext": {:hex, :gettext, "0.19.1", "564953fd21f29358e68b91634799d9d26989f8d039d7512622efb3c3b1c97892", [:mix], [], "hexpm", "10c656c0912b8299adba9b061c06947511e3f109ab0d18b44a866a4498e77222"},
|
"gettext": {:hex, :gettext, "0.19.1", "564953fd21f29358e68b91634799d9d26989f8d039d7512622efb3c3b1c97892", [:mix], [], "hexpm", "10c656c0912b8299adba9b061c06947511e3f109ab0d18b44a866a4498e77222"},
|
||||||
"heex_formatter": {:git, "https://github.com/feliperenan/heex_formatter.git", "dfefc9ae267fb0874c287ceb6c47dda106c59552", []},
|
"heex_formatter": {:git, "https://github.com/feliperenan/heex_formatter.git", "dfefc9ae267fb0874c287ceb6c47dda106c59552", []},
|
||||||
"html_entities": {:hex, :html_entities, "0.5.2", "9e47e70598da7de2a9ff6af8758399251db6dbb7eebe2b013f2bbd2515895c3c", [:mix], [], "hexpm", "c53ba390403485615623b9531e97696f076ed415e8d8058b1dbaa28181f4fdcc"},
|
"html_entities": {:hex, :html_entities, "0.5.2", "9e47e70598da7de2a9ff6af8758399251db6dbb7eebe2b013f2bbd2515895c3c", [:mix], [], "hexpm", "c53ba390403485615623b9531e97696f076ed415e8d8058b1dbaa28181f4fdcc"},
|
||||||
"hut": {:hex, :hut, "1.3.0", "71f2f054e657c03f959cf1acc43f436ea87580696528ca2a55c8afb1b06c85e7", [:"erlang.mk", :rebar, :rebar3], [], "hexpm", "7e15d28555d8a1f2b5a3a931ec120af0753e4853a4c66053db354f35bf9ab563"},
|
"hut": {:hex, :hut, "1.3.0", "71f2f054e657c03f959cf1acc43f436ea87580696528ca2a55c8afb1b06c85e7", [:"erlang.mk", :rebar, :rebar3], [], "hexpm", "7e15d28555d8a1f2b5a3a931ec120af0753e4853a4c66053db354f35bf9ab563"},
|
||||||
"jason": {:hex, :jason, "1.3.0", "fa6b82a934feb176263ad2df0dbd91bf633d4a46ebfdffea0c8ae82953714946", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "53fc1f51255390e0ec7e50f9cb41e751c260d065dcba2bf0d08dc51a4002c2ac"},
|
"jason": {:hex, :jason, "1.3.0", "fa6b82a934feb176263ad2df0dbd91bf633d4a46ebfdffea0c8ae82953714946", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "53fc1f51255390e0ec7e50f9cb41e751c260d065dcba2bf0d08dc51a4002c2ac"},
|
||||||
"makeup": {:hex, :makeup, "1.1.0", "6b67c8bc2882a6b6a445859952a602afc1a41c2e08379ca057c0f525366fc3ca", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "0a45ed501f4a8897f580eabf99a2e5234ea3e75a4373c8a52824f6e873be57a6"},
|
"makeup": {:hex, :makeup, "1.1.0", "6b67c8bc2882a6b6a445859952a602afc1a41c2e08379ca057c0f525366fc3ca", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "0a45ed501f4a8897f580eabf99a2e5234ea3e75a4373c8a52824f6e873be57a6"},
|
||||||
"makeup_elixir": {:hex, :makeup_elixir, "0.15.2", "dc72dfe17eb240552857465cc00cce390960d9a0c055c4ccd38b70629227e97c", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.1", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "fd23ae48d09b32eff49d4ced2b43c9f086d402ee4fd4fcb2d7fad97fa8823e75"},
|
"makeup_elixir": {:hex, :makeup_elixir, "0.16.0", "f8c570a0d33f8039513fbccaf7108c5d750f47d8defd44088371191b76492b0b", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "28b2cbdc13960a46ae9a8858c4bebdec3c9a6d7b4b9e7f4ed1502f8159f338e7"},
|
||||||
"makeup_erlang": {:hex, :makeup_erlang, "0.1.1", "3fcb7f09eb9d98dc4d208f49cc955a34218fc41ff6b84df7c75b3e6e533cc65f", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "174d0809e98a4ef0b3309256cbf97101c6ec01c4ab0b23e926a9e17df2077cbb"},
|
"makeup_erlang": {:hex, :makeup_erlang, "0.1.1", "3fcb7f09eb9d98dc4d208f49cc955a34218fc41ff6b84df7c75b3e6e533cc65f", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "174d0809e98a4ef0b3309256cbf97101c6ec01c4ab0b23e926a9e17df2077cbb"},
|
||||||
"mime": {:hex, :mime, "2.0.2", "0b9e1a4c840eafb68d820b0e2158ef5c49385d17fb36855ac6e7e087d4b1dcc5", [:mix], [], "hexpm", "e6a3f76b4c277739e36c2e21a2c640778ba4c3846189d5ab19f97f126df5f9b7"},
|
"mime": {:hex, :mime, "2.0.2", "0b9e1a4c840eafb68d820b0e2158ef5c49385d17fb36855ac6e7e087d4b1dcc5", [:mix], [], "hexpm", "e6a3f76b4c277739e36c2e21a2c640778ba4c3846189d5ab19f97f126df5f9b7"},
|
||||||
"nimble_parsec": {:hex, :nimble_parsec, "1.2.2", "b99ca56bbce410e9d5ee4f9155a212e942e224e259c7ebbf8f2c86ac21d4fa3c", [:mix], [], "hexpm", "98d51bd64d5f6a2a9c6bb7586ee8129e27dfaab1140b5a4753f24dac0ba27d2f"},
|
"nimble_parsec": {:hex, :nimble_parsec, "1.2.3", "244836e6e3f1200c7f30cb56733fd808744eca61fd182f731eac4af635cc6d0b", [:mix], [], "hexpm", "c8d789e39b9131acf7b99291e93dae60ab48ef14a7ee9d58c6964f59efb570b0"},
|
||||||
"oban": {:hex, :oban, "2.11.0", "5cc4800829b995bfa1c3841d8b0c1037b4a6444b2a76896edd2215c4c4d047a8", [:mix], [{:ecto_sql, "~> 3.6", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.16", [hex: :postgrex, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "4ec90805d04562e83cc798f3ecd514d24f4479a14883e1e8973d5123ec087e35"},
|
"oban": {:hex, :oban, "2.12.0", "bd5a283770c6ab1284aad81e5566cfb89f4119b08f52508d92d73551283c8789", [:mix], [{:ecto_sql, "~> 3.6", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.16", [hex: :postgrex, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "1557b7b046b13c0b5360f55a9fb7e56975f6b5f8247e56f2c54575bd95435ca0"},
|
||||||
"phoenix": {:hex, :phoenix, "1.6.6", "281c8ce8dccc9f60607346b72cdfc597c3dde134dd9df28dff08282f0b751754", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.0", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 1.0", [hex: :phoenix_view, repo: "hexpm", optional: false]}, {:plug, "~> 1.10", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.2", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:plug_crypto, "~> 1.2", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "807bd646e64cd9dc83db016199715faba72758e6db1de0707eef0a2da4924364"},
|
"phoenix": {:hex, :phoenix, "1.6.8", "9a34e5f4dd3ba959176c199fd5b2277b02e64005462428b71cf6ce9cb5e09cb4", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.0", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 1.0", [hex: :phoenix_view, repo: "hexpm", optional: false]}, {:plug, "~> 1.10", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.2", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:plug_crypto, "~> 1.2", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "9f4d616aeb9c5e019bddfc1f9078b8c06f852ffa838e67f925559cc0993e9f71"},
|
||||||
"phoenix_ecto": {:hex, :phoenix_ecto, "4.4.0", "0672ed4e4808b3fbed494dded89958e22fb882de47a97634c0b13e7b0b5f7720", [:mix], [{:ecto, "~> 3.3", [hex: :ecto, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.14.2 or ~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "09864e558ed31ee00bd48fcc1d4fc58ae9678c9e81649075431e69dbabb43cc1"},
|
"phoenix_ecto": {:hex, :phoenix_ecto, "4.4.0", "0672ed4e4808b3fbed494dded89958e22fb882de47a97634c0b13e7b0b5f7720", [:mix], [{:ecto, "~> 3.3", [hex: :ecto, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.14.2 or ~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "09864e558ed31ee00bd48fcc1d4fc58ae9678c9e81649075431e69dbabb43cc1"},
|
||||||
"phoenix_html": {:hex, :phoenix_html, "3.2.0", "1c1219d4b6cb22ac72f12f73dc5fad6c7563104d083f711c3fcd8551a1f4ae11", [:mix], [{:plug, "~> 1.5", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "36ec97ba56d25c0136ef1992c37957e4246b649d620958a1f9fa86165f8bc54f"},
|
"phoenix_html": {:hex, :phoenix_html, "3.2.0", "1c1219d4b6cb22ac72f12f73dc5fad6c7563104d083f711c3fcd8551a1f4ae11", [:mix], [{:plug, "~> 1.5", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "36ec97ba56d25c0136ef1992c37957e4246b649d620958a1f9fa86165f8bc54f"},
|
||||||
"phoenix_live_dashboard": {:hex, :phoenix_live_dashboard, "0.6.4", "d7ff34b2c8dd5fa950748496697da01ae1b6b259891ce1103e300bdc7abfbb99", [:mix], [{:ecto, "~> 3.6.2 or ~> 3.7", [hex: :ecto, repo: "hexpm", optional: true]}, {:ecto_mysql_extras, "~> 0.3", [hex: :ecto_mysql_extras, repo: "hexpm", optional: true]}, {:ecto_psql_extras, "~> 0.7", [hex: :ecto_psql_extras, repo: "hexpm", optional: true]}, {:mime, "~> 1.6 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.17.1", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}, {:telemetry_metrics, "~> 0.6.0", [hex: :telemetry_metrics, repo: "hexpm", optional: false]}], "hexpm", "ce2505256ab459663258ecba4158af130e6b7a5b85783fe442541fbb1236e1b2"},
|
"phoenix_live_dashboard": {:hex, :phoenix_live_dashboard, "0.6.5", "1495bb014be12c9a9252eca04b9af54246f6b5c1e4cd1f30210cd00ec540cf8e", [:mix], [{:ecto, "~> 3.6.2 or ~> 3.7", [hex: :ecto, repo: "hexpm", optional: true]}, {:ecto_mysql_extras, "~> 0.3", [hex: :ecto_mysql_extras, repo: "hexpm", optional: true]}, {:ecto_psql_extras, "~> 0.7", [hex: :ecto_psql_extras, repo: "hexpm", optional: true]}, {:mime, "~> 1.6 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.17.7", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}, {:telemetry_metrics, "~> 0.6.0", [hex: :telemetry_metrics, repo: "hexpm", optional: false]}], "hexpm", "ef4fa50dd78364409039c99cf6f98ab5209b4c5f8796c17f4db118324f0db852"},
|
||||||
"phoenix_live_reload": {:hex, :phoenix_live_reload, "1.3.3", "3a53772a6118d5679bf50fc1670505a290e32a1d195df9e069d8c53ab040c054", [:mix], [{:file_system, "~> 0.2.1 or ~> 0.3", [hex: :file_system, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.4", [hex: :phoenix, repo: "hexpm", optional: false]}], "hexpm", "766796676e5f558dbae5d1bdb066849673e956005e3730dfd5affd7a6da4abac"},
|
"phoenix_live_reload": {:hex, :phoenix_live_reload, "1.3.3", "3a53772a6118d5679bf50fc1670505a290e32a1d195df9e069d8c53ab040c054", [:mix], [{:file_system, "~> 0.2.1 or ~> 0.3", [hex: :file_system, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.4", [hex: :phoenix, repo: "hexpm", optional: false]}], "hexpm", "766796676e5f558dbae5d1bdb066849673e956005e3730dfd5affd7a6da4abac"},
|
||||||
"phoenix_live_view": {:hex, :phoenix_live_view, "0.17.7", "05a42377075868a678d446361effba80cefef19ab98941c01a7a4c7560b29121", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix, "~> 1.5.9 or ~> 1.6.0", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 3.1", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "25eaf41028eb351b90d4f69671874643a09944098fefd0d01d442f40a6091b6f"},
|
"phoenix_live_view": {:hex, :phoenix_live_view, "0.17.9", "36b5aa812bc3ccd64c9630f6b3234d9ea21105493237e927aae19d0ba758f0db", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix, "~> 1.6.0", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 3.1", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "f7ebc3e0ba0c5f6b6996ed6c901ddbfdaba59a6d09b569e7cb2f2f7d693b4455"},
|
||||||
"phoenix_pubsub": {:hex, :phoenix_pubsub, "2.0.0", "a1ae76717bb168cdeb10ec9d92d1480fec99e3080f011402c0a2d68d47395ffb", [:mix], [], "hexpm", "c52d948c4f261577b9c6fa804be91884b381a7f8f18450c5045975435350f771"},
|
"phoenix_pubsub": {:hex, :phoenix_pubsub, "2.1.1", "ba04e489ef03763bf28a17eb2eaddc2c20c6d217e2150a61e3298b0f4c2012b5", [:mix], [], "hexpm", "81367c6d1eea5878ad726be80808eb5a787a23dee699f96e72b1109c57cdd8d9"},
|
||||||
"phoenix_swoosh": {:hex, :phoenix_swoosh, "1.0.1", "0db6eb6405a6b06cae4fdf4144659b3f4fee4553e2856fe8a53ba12e9fb21a74", [:mix], [{:finch, "~> 0.8", [hex: :finch, repo: "hexpm", optional: true]}, {:hackney, "~> 1.10", [hex: :hackney, repo: "hexpm", optional: true]}, {:phoenix, "~> 1.6", [hex: :phoenix, repo: "hexpm", optional: true]}, {:phoenix_html, "~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:phoenix_view, "~> 1.0", [hex: :phoenix_view, repo: "hexpm", optional: false]}, {:swoosh, "~> 1.5", [hex: :swoosh, repo: "hexpm", optional: false]}], "hexpm", "e34890004baec08f0fa12bd8c77bf64bfb4156b84a07fb79da9322fa94bc3781"},
|
"phoenix_swoosh": {:hex, :phoenix_swoosh, "1.0.1", "0db6eb6405a6b06cae4fdf4144659b3f4fee4553e2856fe8a53ba12e9fb21a74", [:mix], [{:finch, "~> 0.8", [hex: :finch, repo: "hexpm", optional: true]}, {:hackney, "~> 1.10", [hex: :hackney, repo: "hexpm", optional: true]}, {:phoenix, "~> 1.6", [hex: :phoenix, repo: "hexpm", optional: true]}, {:phoenix_html, "~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:phoenix_view, "~> 1.0", [hex: :phoenix_view, repo: "hexpm", optional: false]}, {:swoosh, "~> 1.5", [hex: :swoosh, repo: "hexpm", optional: false]}], "hexpm", "e34890004baec08f0fa12bd8c77bf64bfb4156b84a07fb79da9322fa94bc3781"},
|
||||||
"phoenix_view": {:hex, :phoenix_view, "1.1.2", "1b82764a065fb41051637872c7bd07ed2fdb6f5c3bd89684d4dca6e10115c95a", [:mix], [{:phoenix_html, "~> 2.14.2 or ~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}], "hexpm", "7ae90ad27b09091266f6adbb61e1d2516a7c3d7062c6789d46a7554ec40f3a56"},
|
"phoenix_view": {:hex, :phoenix_view, "1.1.2", "1b82764a065fb41051637872c7bd07ed2fdb6f5c3bd89684d4dca6e10115c95a", [:mix], [{:phoenix_html, "~> 2.14.2 or ~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}], "hexpm", "7ae90ad27b09091266f6adbb61e1d2516a7c3d7062c6789d46a7554ec40f3a56"},
|
||||||
"plug": {:hex, :plug, "1.13.3", "93b299039c21a8b82cc904d13812bce4ced45cf69153e8d35ca16ffb3e8c5d98", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.3 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "98c8003e4faf7b74a9ac41bee99e328b08f069bf932747d4a7532e97ae837a17"},
|
"plug": {:hex, :plug, "1.13.6", "187beb6b67c6cec50503e940f0434ea4692b19384d47e5fdfd701e93cadb4cc2", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.3 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "02b9c6b9955bce92c829f31d6284bf53c591ca63c4fb9ff81dfd0418667a34ff"},
|
||||||
"plug_cowboy": {:hex, :plug_cowboy, "2.5.2", "62894ccd601cf9597e2c23911ff12798a8a18d237e9739f58a6b04e4988899fe", [:mix], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:cowboy_telemetry, "~> 0.3", [hex: :cowboy_telemetry, repo: "hexpm", optional: false]}, {:plug, "~> 1.7", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "ea6e87f774c8608d60c8d34022a7d073bd7680a0a013f049fc62bf35efea1044"},
|
"plug_cowboy": {:hex, :plug_cowboy, "2.5.2", "62894ccd601cf9597e2c23911ff12798a8a18d237e9739f58a6b04e4988899fe", [:mix], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:cowboy_telemetry, "~> 0.3", [hex: :cowboy_telemetry, repo: "hexpm", optional: false]}, {:plug, "~> 1.7", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "ea6e87f774c8608d60c8d34022a7d073bd7680a0a013f049fc62bf35efea1044"},
|
||||||
"plug_crypto": {:hex, :plug_crypto, "1.2.2", "05654514ac717ff3a1843204b424477d9e60c143406aa94daf2274fdd280794d", [:mix], [], "hexpm", "87631c7ad914a5a445f0a3809f99b079113ae4ed4b867348dd9eec288cecb6db"},
|
"plug_crypto": {:hex, :plug_crypto, "1.2.2", "05654514ac717ff3a1843204b424477d9e60c143406aa94daf2274fdd280794d", [:mix], [], "hexpm", "87631c7ad914a5a445f0a3809f99b079113ae4ed4b867348dd9eec288cecb6db"},
|
||||||
"postgrex": {:hex, :postgrex, "0.16.1", "f94628a32c571266f53cd1e5fca705e626e2417bf1eee6f868985d14e874160a", [:mix], [{:connection, "~> 1.1", [hex: :connection, repo: "hexpm", optional: false]}, {:db_connection, "~> 2.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:decimal, "~> 1.5 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "6b225df32c857b9430619dbe30200a7ae664e23415a771ae9209396ee8eeee64"},
|
"postgrex": {:hex, :postgrex, "0.16.3", "fac79a81a9a234b11c44235a4494d8565303fa4b9147acf57e48978a074971db", [:mix], [{:connection, "~> 1.1", [hex: :connection, repo: "hexpm", optional: false]}, {:db_connection, "~> 2.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:decimal, "~> 1.5 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:table, "~> 0.1.0", [hex: :table, repo: "hexpm", optional: true]}], "hexpm", "aeaae1d2d1322da4e5fe90d241b0a564ce03a3add09d7270fb85362166194590"},
|
||||||
"ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"},
|
"ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"},
|
||||||
"swoosh": {:hex, :swoosh, "1.6.3", "598d3f07641004bedb3eede40057760ae18be1073cff72f079ca1e1fc9cd97b9", [:mix], [{:cowboy, "~> 1.1 or ~> 2.4", [hex: :cowboy, repo: "hexpm", optional: true]}, {:finch, "~> 0.6", [hex: :finch, repo: "hexpm", optional: true]}, {:gen_smtp, "~> 0.13 or ~> 1.0", [hex: :gen_smtp, repo: "hexpm", optional: true]}, {:hackney, "~> 1.9", [hex: :hackney, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mail, "~> 0.2", [hex: :mail, repo: "hexpm", optional: true]}, {:mime, "~> 1.1 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_cowboy, ">= 1.0.0", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "81ff9d7c7c4005a57465a7eb712edd71db51829aef94c8a34c30c5b9e9964adf"},
|
"set_locale": {:hex, :set_locale, "0.2.9", "33350ba3c66f1c560dffc43019eea4b573f91c5cbe3e461fe0e5395d2d6ba2c3", [:mix], [{:gettext, "~>0.14", [hex: :gettext, repo: "hexpm", optional: false]}, {:phoenix, ">1.3.0", [hex: :phoenix, repo: "hexpm", optional: false]}], "hexpm", "e46348b64b7c5d725d0c90a6524942a19b65e6ce27372ddf9a727dfb64ba236c"},
|
||||||
|
"swoosh": {:hex, :swoosh, "1.6.6", "6018c6f4659ac0b4f30684982993b7812b2bb97436d39f76fcfa8c9e3ae74f85", [:mix], [{:cowboy, "~> 1.1 or ~> 2.4", [hex: :cowboy, repo: "hexpm", optional: true]}, {:ex_aws, "~> 2.1", [hex: :ex_aws, repo: "hexpm", optional: true]}, {:finch, "~> 0.6", [hex: :finch, repo: "hexpm", optional: true]}, {:gen_smtp, "~> 0.13 or ~> 1.0", [hex: :gen_smtp, repo: "hexpm", optional: true]}, {:hackney, "~> 1.9", [hex: :hackney, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mail, "~> 0.2", [hex: :mail, repo: "hexpm", optional: true]}, {:mime, "~> 1.1 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_cowboy, ">= 1.0.0", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "e92c7206efd442f08484993676ab072afab2f2bb1e87e604230bb1183c5980de"},
|
||||||
"table_rex": {:hex, :table_rex, "3.1.1", "0c67164d1714b5e806d5067c1e96ff098ba7ae79413cc075973e17c38a587caa", [:mix], [], "hexpm", "678a23aba4d670419c23c17790f9dcd635a4a89022040df7d5d772cb21012490"},
|
"table_rex": {:hex, :table_rex, "3.1.1", "0c67164d1714b5e806d5067c1e96ff098ba7ae79413cc075973e17c38a587caa", [:mix], [], "hexpm", "678a23aba4d670419c23c17790f9dcd635a4a89022040df7d5d772cb21012490"},
|
||||||
"telemetry": {:hex, :telemetry, "1.0.0", "0f453a102cdf13d506b7c0ab158324c337c41f1cc7548f0bc0e130bbf0ae9452", [:rebar3], [], "hexpm", "73bc09fa59b4a0284efb4624335583c528e07ec9ae76aca96ea0673850aec57a"},
|
"telemetry": {:hex, :telemetry, "1.1.0", "a589817034a27eab11144ad24d5c0f9fab1f58173274b1e9bae7074af9cbee51", [:rebar3], [], "hexpm", "b727b2a1f75614774cff2d7565b64d0dfa5bd52ba517f16543e6fc7efcc0df48"},
|
||||||
"telemetry_metrics": {:hex, :telemetry_metrics, "0.6.1", "315d9163a1d4660aedc3fee73f33f1d355dcc76c5c3ab3d59e76e3edf80eef1f", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7be9e0871c41732c233be71e4be11b96e56177bf15dde64a8ac9ce72ac9834c6"},
|
"telemetry_metrics": {:hex, :telemetry_metrics, "0.6.1", "315d9163a1d4660aedc3fee73f33f1d355dcc76c5c3ab3d59e76e3edf80eef1f", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7be9e0871c41732c233be71e4be11b96e56177bf15dde64a8ac9ce72ac9834c6"},
|
||||||
"telemetry_poller": {:hex, :telemetry_poller, "1.0.0", "db91bb424e07f2bb6e73926fcafbfcbcb295f0193e0a00e825e589a0a47e8453", [:rebar3], [{:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "b3a24eafd66c3f42da30fc3ca7dda1e9d546c12250a2d60d7b81d264fbec4f6e"},
|
"telemetry_poller": {:hex, :telemetry_poller, "1.0.0", "db91bb424e07f2bb6e73926fcafbfcbcb295f0193e0a00e825e589a0a47e8453", [:rebar3], [{:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "b3a24eafd66c3f42da30fc3ca7dda1e9d546c12250a2d60d7b81d264fbec4f6e"},
|
||||||
}
|
}
|
||||||
|
@ -11,12 +11,12 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:42
|
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||||
msgid "Add Ammo"
|
msgid "Add Ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:12
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:24
|
||||||
msgid "Add your first box!"
|
msgid "Add your first box!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -31,14 +31,14 @@ msgid "Add your first type!"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:16
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:45
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:44
|
||||||
msgid "Change email"
|
msgid "Change email"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:60
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:58
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:101
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:99
|
||||||
msgid "Change password"
|
msgid "Change password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -48,12 +48,12 @@ msgid "Create Invite"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:108
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:142
|
||||||
msgid "Delete User"
|
msgid "Delete User"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:43
|
#: lib/cannery_web/templates/user_registration/new.html.heex:52
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
||||||
msgid "Forgot your password?"
|
msgid "Forgot your password?"
|
||||||
@ -65,9 +65,9 @@ msgid "Invite someone new!"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:108
|
#: lib/cannery_web/components/topbar.ex:106
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
|
#: 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_registration/new.html.heex:48
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
|
#: 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_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:3
|
||||||
@ -81,7 +81,7 @@ msgid "Make your first tag!"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:17
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
|
||||||
msgid "New Ammo group"
|
msgid "New Ammo group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -101,10 +101,10 @@ msgid "New Tag"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:101
|
#: lib/cannery_web/components/topbar.ex:99
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:25
|
#: 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:3
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:33
|
#: lib/cannery_web/templates/user_registration/new.html.heex:42
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:43
|
#: 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_reset_password/new.html.heex:25
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:40
|
#: lib/cannery_web/templates/user_session/new.html.heex:40
|
||||||
@ -124,9 +124,9 @@ msgid "Reset password"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:42
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:46
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:54
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:172
|
#: 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/container_live/form_component.html.heex:50
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:28
|
#: 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/range_live/form_component.html.heex:40
|
||||||
@ -160,29 +160,29 @@ msgid "Why not get some ready to shoot?"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:85
|
#: lib/cannery_web/live/ammo_group_live/index.ex:144
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:91
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:36
|
#: lib/cannery_web/live/range_live/index.html.heex:36
|
||||||
msgid "Record shots"
|
msgid "Record shots"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:50
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:55
|
||||||
msgid "Ammo Details"
|
msgid "Ammo Details"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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!"
|
msgid "Add another container!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:80
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||||
msgid "Move containers"
|
msgid "Move containers"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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"
|
msgid "Select"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -190,3 +190,24 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/invite_live/index.html.heex:33
|
#: lib/cannery_web/live/invite_live/index.html.heex:33
|
||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
||||||
|
msgid "add a container first"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||||
|
msgid "Create"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:113
|
||||||
|
msgid "Change Language"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
|
||||||
|
msgid "Change language"
|
||||||
|
msgstr ""
|
||||||
|
226
priv/gettext/de/LC_MESSAGES/actions.po
Normal file
226
priv/gettext/de/LC_MESSAGES/actions.po
Normal file
@ -0,0 +1,226 @@
|
|||||||
|
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.
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||||
|
msgid "Add Ammo"
|
||||||
|
msgstr "Munition hinzufügen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:24
|
||||||
|
msgid "Add your first box!"
|
||||||
|
msgstr "Fügen Sie ihre erste Box hinzu!"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.html.heex:12
|
||||||
|
msgid "Add your first container!"
|
||||||
|
msgstr "Fügen Sie ihren ersten Behälter hinzu!"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:12
|
||||||
|
msgid "Add your first type!"
|
||||||
|
msgstr "Fügen Sie ihre erste Munitionsart hinzu!"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:44
|
||||||
|
msgid "Change email"
|
||||||
|
msgstr "Mailadresse ändern"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:58
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:99
|
||||||
|
msgid "Change password"
|
||||||
|
msgstr "Passwort ändern"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:17
|
||||||
|
msgid "Create Invite"
|
||||||
|
msgstr "Einladung erstellen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:142
|
||||||
|
msgid "Delete User"
|
||||||
|
msgstr "Benutzer löschen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:52
|
||||||
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
||||||
|
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
||||||
|
msgid "Forgot your password?"
|
||||||
|
msgstr "Passwort vergessen?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:12
|
||||||
|
msgid "Invite someone new!"
|
||||||
|
msgstr "Laden Sie jemanden ein!"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:106
|
||||||
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:48
|
||||||
|
#: 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
|
||||||
|
msgid "Log in"
|
||||||
|
msgstr "Einloggen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/index.html.heex:14
|
||||||
|
msgid "Make your first tag!"
|
||||||
|
msgstr "Erstellen Sie ihren ersten Tag!"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
|
||||||
|
msgid "New Ammo group"
|
||||||
|
msgstr "Neue Munitionsgruppe"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:17
|
||||||
|
msgid "New Ammo type"
|
||||||
|
msgstr "Neue Munitionsart"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.html.heex:17
|
||||||
|
msgid "New Container"
|
||||||
|
msgstr "Neuer Behälter"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/index.html.heex:19
|
||||||
|
msgid "New Tag"
|
||||||
|
msgstr "Neuer Tag"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:99
|
||||||
|
#: 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:42
|
||||||
|
#: 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
|
||||||
|
msgid "Register"
|
||||||
|
msgstr "Registrieren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
||||||
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:16
|
||||||
|
msgid "Resend confirmation instructions"
|
||||||
|
msgstr "Bestätigungsmail erneut senden"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
||||||
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:34
|
||||||
|
msgid "Reset password"
|
||||||
|
msgstr "Passwort zurücksetzen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "Save"
|
||||||
|
msgstr "Speichern"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:16
|
||||||
|
msgid "Send instructions to reset password"
|
||||||
|
msgstr "Anleitung zum Passwort zurücksetzen zusenden"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/show.html.heex:53
|
||||||
|
msgid "Why not add one?"
|
||||||
|
msgstr "Warum fügen Sie keine hinzu?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:52
|
||||||
|
msgid "Add"
|
||||||
|
msgstr "Hinzufügen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:17
|
||||||
|
msgid "Stage ammo"
|
||||||
|
msgstr "Munition markieren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:12
|
||||||
|
msgid "Why not get some ready to shoot?"
|
||||||
|
msgstr "Warum nicht einige für den Schießstand auswählen?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:144
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:91
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:36
|
||||||
|
msgid "Record shots"
|
||||||
|
msgstr "Schüsse dokumentieren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:55
|
||||||
|
msgid "Ammo Details"
|
||||||
|
msgstr "Munitionsdetails"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:89
|
||||||
|
msgid "Add another container!"
|
||||||
|
msgstr "Einen weiteren Behälter hinzufügen!"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||||
|
msgid "Move containers"
|
||||||
|
msgstr "Behälter verschieben"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:127
|
||||||
|
msgid "Select"
|
||||||
|
msgstr "Markieren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:33
|
||||||
|
msgid "Copy to clipboard"
|
||||||
|
msgstr "In die Zwischenablage kopieren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
||||||
|
msgid "add a container first"
|
||||||
|
msgstr "Zuerst einen Behälter hinzufügen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||||
|
msgid "Create"
|
||||||
|
msgstr "Erstellen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:113
|
||||||
|
msgid "Change Language"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
|
||||||
|
msgid "Change language"
|
||||||
|
msgstr ""
|
909
priv/gettext/de/LC_MESSAGES/default.po
Normal file
909
priv/gettext/de/LC_MESSAGES/default.po
Normal file
@ -0,0 +1,909 @@
|
|||||||
|
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.
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:56
|
||||||
|
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"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:78
|
||||||
|
msgid "Access from any internet-capable device"
|
||||||
|
msgstr "Zugriff von jedem Internet-fähigen Gerät"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:90
|
||||||
|
msgid "Admins"
|
||||||
|
msgstr "Admins"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:92
|
||||||
|
msgid "Admins:"
|
||||||
|
msgstr "Admins:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:50
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:80
|
||||||
|
msgid "Ammo"
|
||||||
|
msgstr "Munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:80
|
||||||
|
msgid "Ammo type"
|
||||||
|
msgstr "Munitionsarten"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:87
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:100
|
||||||
|
msgid "Average Price paid"
|
||||||
|
msgstr "Durchschnittlicher Kaufpreis"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/form_component.ex:54
|
||||||
|
msgid "Background color"
|
||||||
|
msgstr "Hintergrundfarbe"
|
||||||
|
|
||||||
|
#, 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:71
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||||
|
msgid "Blank"
|
||||||
|
msgstr "Knallpatrone"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:68
|
||||||
|
msgid "Brass"
|
||||||
|
msgstr "Messing"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:39
|
||||||
|
msgid "Bullet core"
|
||||||
|
msgstr "Projektilkern"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:38
|
||||||
|
msgid "Bullet type"
|
||||||
|
msgstr "Patronenart"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:41
|
||||||
|
msgid "Caliber"
|
||||||
|
msgstr "Kaliber"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:40
|
||||||
|
msgid "Cartridge"
|
||||||
|
msgstr "Patrone"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:42
|
||||||
|
msgid "Case material"
|
||||||
|
msgstr "Gehäusematerial"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "Container"
|
||||||
|
msgstr "Behälter"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:44
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:36
|
||||||
|
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||||
|
msgid "Containers"
|
||||||
|
msgstr "Behälter"
|
||||||
|
|
||||||
|
#, 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:72
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||||
|
msgid "Corrosive"
|
||||||
|
msgstr "Korrosiv"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:81
|
||||||
|
msgid "Count"
|
||||||
|
msgstr "Anzahl"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/ammo_group_card.ex:29
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:8
|
||||||
|
msgid "Count:"
|
||||||
|
msgstr "Anzahl:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||||
|
msgid "Description"
|
||||||
|
msgstr "Beschreibung"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/container_card.ex:31
|
||||||
|
#: lib/cannery_web/live/container_live/show.html.heex:8
|
||||||
|
msgid "Description:"
|
||||||
|
msgstr "Beschreibung:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:59
|
||||||
|
msgid "Disable"
|
||||||
|
msgstr "Deaktivieren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:53
|
||||||
|
msgid "Easy to Use:"
|
||||||
|
msgstr "Einfache Anwendung:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:40
|
||||||
|
msgid "Edit Ammo group"
|
||||||
|
msgstr "Munitionsgruppe bearbeiten"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.ex:45
|
||||||
|
msgid "Edit Ammo type"
|
||||||
|
msgstr "Munitionstyp bearbeiten"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:33
|
||||||
|
msgid "Edit Invite"
|
||||||
|
msgstr "Einladung bearbeiten"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/index.ex:21
|
||||||
|
msgid "Edit Tag"
|
||||||
|
msgstr "Tag bearbeiten"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:63
|
||||||
|
msgid "Enable"
|
||||||
|
msgstr "Aktivieren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:35
|
||||||
|
msgid "Example bullet type abbreviations"
|
||||||
|
msgstr "Beispiel Munitionstyp Abkürzungen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:40
|
||||||
|
msgid "FMJ"
|
||||||
|
msgstr "VM"
|
||||||
|
|
||||||
|
#, 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:65
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:47
|
||||||
|
msgid "Grains"
|
||||||
|
msgstr "Körner"
|
||||||
|
|
||||||
|
#, 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:70
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||||
|
msgid "Incendiary"
|
||||||
|
msgstr "Brandmunition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:87
|
||||||
|
msgid "Instance Information"
|
||||||
|
msgstr "Instanzinformationen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/invite_card.ex:25
|
||||||
|
msgid "Invite Disabled"
|
||||||
|
msgstr "Einladung deaktiviert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:118
|
||||||
|
msgid "Invite Only"
|
||||||
|
msgstr "Nur mit Einladung"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:69
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:41
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:3
|
||||||
|
msgid "Invites"
|
||||||
|
msgstr "Einladungen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_session/new.html.heex:28
|
||||||
|
msgid "Keep me logged in for 60 days"
|
||||||
|
msgstr "Für 60 Tage eingeloggt bleiben"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||||
|
msgid "Location"
|
||||||
|
msgstr "Standort"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/container_card.ex:43
|
||||||
|
#: lib/cannery_web/live/container_live/show.html.heex:20
|
||||||
|
msgid "Location:"
|
||||||
|
msgstr "Standort:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:38
|
||||||
|
msgid "Magazine, Clip, Ammo Box, etc"
|
||||||
|
msgstr "Magazin, Ladestreifen, Munitionskiste usw."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:56
|
||||||
|
msgid "Manage"
|
||||||
|
msgstr "Verwalten"
|
||||||
|
|
||||||
|
#, 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:73
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||||
|
msgid "Manufacturer"
|
||||||
|
msgstr "Hersteller"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:31
|
||||||
|
msgid "Metal ammo can with the anime girl sticker"
|
||||||
|
msgstr "Metallene Munitionskiste mit Anime-Girl-Sticker"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:23
|
||||||
|
msgid "My cool ammo can"
|
||||||
|
msgstr "Meine coole Munitionskiste"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "Name"
|
||||||
|
msgstr "Name"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||||
|
msgid "New Ammo type"
|
||||||
|
msgstr "Neuer Munitionstyp"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:31
|
||||||
|
msgid "New Container"
|
||||||
|
msgstr "Neuer Behälter"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:37
|
||||||
|
msgid "New Invite"
|
||||||
|
msgstr "Neue Einladung"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/index.ex:27
|
||||||
|
msgid "New Tag"
|
||||||
|
msgstr "Neuer Tag"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:8
|
||||||
|
msgid "No Ammo"
|
||||||
|
msgstr "Keine Munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:8
|
||||||
|
msgid "No Ammo Types"
|
||||||
|
msgstr "Keine Munitionsarten"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:120
|
||||||
|
msgid "No ammo for this type"
|
||||||
|
msgstr "Keine Munition dieser Art"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/show.html.heex:78
|
||||||
|
msgid "No ammo groups in this container"
|
||||||
|
msgstr "Keine Munitionsgruppe in diesem Behälter"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.html.heex:8
|
||||||
|
msgid "No containers"
|
||||||
|
msgstr "Kein Behälter"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:8
|
||||||
|
msgid "No invites"
|
||||||
|
msgstr "Keine Einladung"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:30
|
||||||
|
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||||
|
msgid "No tags"
|
||||||
|
msgstr "Keine Tags"
|
||||||
|
|
||||||
|
#, 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.ex:88
|
||||||
|
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:82
|
||||||
|
msgid "Notes"
|
||||||
|
msgstr "Bemerkungen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/ammo_group_card.ex:35
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
||||||
|
msgid "Notes:"
|
||||||
|
msgstr "Bemerkungen:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:46
|
||||||
|
msgid "On the bookshelf"
|
||||||
|
msgstr "Auf dem Bücherregal"
|
||||||
|
|
||||||
|
#, 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:66
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||||
|
msgid "Pressure"
|
||||||
|
msgstr "Druck"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:82
|
||||||
|
msgid "Price paid"
|
||||||
|
msgstr "Kaufpreis"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/ammo_group_card.ex:47
|
||||||
|
msgid "Price paid:"
|
||||||
|
msgstr "Kaufpreis:"
|
||||||
|
|
||||||
|
#, 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:67
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||||
|
msgid "Primer type"
|
||||||
|
msgstr "Zündertyp"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:117
|
||||||
|
msgid "Public Signups"
|
||||||
|
msgstr "Öffentliche Registrierung"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:65
|
||||||
|
msgid "Secure:"
|
||||||
|
msgstr "Sicher:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:68
|
||||||
|
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."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:79
|
||||||
|
msgid "Set Unlimited"
|
||||||
|
msgstr "Unbegrenzt setzen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:10
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:3
|
||||||
|
msgid "Settings"
|
||||||
|
msgstr "Einstellungen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:39
|
||||||
|
msgid "Show Ammo group"
|
||||||
|
msgstr "Munitionsgruppen anzeigen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.ex:44
|
||||||
|
msgid "Show Ammo type"
|
||||||
|
msgstr "Zeige Munitionsarten"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:75
|
||||||
|
msgid "Simple:"
|
||||||
|
msgstr "Einfach:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:47
|
||||||
|
msgid "Steel"
|
||||||
|
msgstr "Stahl"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:103
|
||||||
|
msgid "Stored in"
|
||||||
|
msgstr "Gelagert in"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:38
|
||||||
|
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||||
|
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||||
|
msgid "Tags"
|
||||||
|
msgstr "Tags"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/index.html.heex:6
|
||||||
|
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"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/form_component.ex:60
|
||||||
|
msgid "Text color"
|
||||||
|
msgstr "Textfarbe"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:44
|
||||||
|
msgid "The self-hosted firearm tracker website"
|
||||||
|
msgstr "Die selbst-gehostete Website zur Verwaltung von Schusswaffen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:108
|
||||||
|
msgid "This ammo group is not in a container"
|
||||||
|
msgstr "Diese Munitionsgruppe ist nicht in einem Behälter"
|
||||||
|
|
||||||
|
#, 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:69
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||||
|
msgid "Tracer"
|
||||||
|
msgstr "Leuchtspur"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||||
|
msgid "Type"
|
||||||
|
msgstr "Art"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/container_card.ex:37
|
||||||
|
#: lib/cannery_web/live/container_live/show.html.heex:14
|
||||||
|
msgid "Type:"
|
||||||
|
msgstr "Art:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:119
|
||||||
|
msgid "Users"
|
||||||
|
msgstr "Benutzer"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/invite_card.ex:20
|
||||||
|
msgid "Uses Left:"
|
||||||
|
msgstr "Verbleibende Nutzung:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:24
|
||||||
|
msgid "Uses left"
|
||||||
|
msgstr "Verbleibende Nutzung"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:40
|
||||||
|
msgid "Welcome to %{name}"
|
||||||
|
msgstr "Willkommen %{name}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:69
|
||||||
|
msgid "Your data stays with you, period"
|
||||||
|
msgstr "Ihre Daten bleiben bei Ihnen, Punkt"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/show.html.heex:49
|
||||||
|
msgid "No tags for this container"
|
||||||
|
msgstr "Keine Tags für diesen Behälter"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:62
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:84
|
||||||
|
msgid "Range"
|
||||||
|
msgstr "Schießplatz"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:3
|
||||||
|
msgid "Range day"
|
||||||
|
msgstr "Range Day"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:89
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:83
|
||||||
|
msgid "Date"
|
||||||
|
msgstr "Datum"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/form_component.html.heex:21
|
||||||
|
msgid "Shots fired"
|
||||||
|
msgstr "Schüsse abgegeben"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:8
|
||||||
|
msgid "No ammo staged"
|
||||||
|
msgstr "Keine Munition selektiert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:82
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:33
|
||||||
|
msgid "Stage for range"
|
||||||
|
msgstr "Für Schießplatz selektieren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:81
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:32
|
||||||
|
msgid "Unstage from range"
|
||||||
|
msgstr "Für Schießplatz deselektieren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:3
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:26
|
||||||
|
msgid "Record shots"
|
||||||
|
msgstr "Schüsse dokumentieren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
|
||||||
|
msgid "Ammo Types"
|
||||||
|
msgstr "Munitionsarten"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:49
|
||||||
|
msgid "Ammo groups"
|
||||||
|
msgstr "Munitionsgruppen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:38
|
||||||
|
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||||
|
msgid "Date (UTC)"
|
||||||
|
msgstr "Zeit (UTC)"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:37
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:32
|
||||||
|
msgid "Edit Shot Records"
|
||||||
|
msgstr "Schießkladde editieren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:38
|
||||||
|
msgid "New Shot Records"
|
||||||
|
msgstr "Neue Schießkladde"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:48
|
||||||
|
msgid "No shots recorded"
|
||||||
|
msgstr "Keine Schüsse dokumentiert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:21
|
||||||
|
msgid "Rounds left"
|
||||||
|
msgstr "Patronen verbleibend"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:81
|
||||||
|
msgid "Rounds shot"
|
||||||
|
msgstr "Patronen abgefeuert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:44
|
||||||
|
msgid "Shot Records"
|
||||||
|
msgstr "Schießkladde"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:32
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:38
|
||||||
|
msgid "Move Ammo group"
|
||||||
|
msgstr "Munitionsgruppe verschieben"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
||||||
|
msgid "Move ammo"
|
||||||
|
msgstr "Munition verschieben"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:85
|
||||||
|
msgid "No other containers"
|
||||||
|
msgstr "Kein weiterer Behälter"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:53
|
||||||
|
msgid "Shot log"
|
||||||
|
msgstr "Schießkladde"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/ammo_group_card.ex:48
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:118
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:37
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:44
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:114
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:104
|
||||||
|
msgid "$%{amount}"
|
||||||
|
msgstr "$%{amount}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:75
|
||||||
|
msgid "Bimetal"
|
||||||
|
msgstr "Bimetall"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:43
|
||||||
|
msgid "Jacket type"
|
||||||
|
msgstr "Patronenhülse"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:44
|
||||||
|
msgid "Muzzle velocity"
|
||||||
|
msgstr "Mündungsgeschwindigkeit"
|
||||||
|
|
||||||
|
#, 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:61
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:46
|
||||||
|
msgid "Powder grains per charge"
|
||||||
|
msgstr "Pulverkörner pro Ladung"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:45
|
||||||
|
msgid "Powder type"
|
||||||
|
msgstr "Pulverart"
|
||||||
|
|
||||||
|
#, 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:74
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||||
|
msgid "UPC"
|
||||||
|
msgstr "UPC"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:78
|
||||||
|
msgid "Confirm new password"
|
||||||
|
msgstr "Passwort bestätigen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:32
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:87
|
||||||
|
msgid "Current password"
|
||||||
|
msgstr "Derzeitiges Passwort"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:71
|
||||||
|
msgid "New password"
|
||||||
|
msgstr "Neues Passwort"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:141
|
||||||
|
msgid "Stage"
|
||||||
|
msgstr "Markiert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:141
|
||||||
|
msgid "Unstage"
|
||||||
|
msgstr "Demarkiert"
|
||||||
|
|
||||||
|
#, 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:68
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||||
|
msgid "Firing type"
|
||||||
|
msgstr "Patronenhülsenform"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/layout/live.html.heex:50
|
||||||
|
msgid "Reconnecting..."
|
||||||
|
msgstr "Neu verbinden..."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/layout/live.html.heex:37
|
||||||
|
msgid "Loading..."
|
||||||
|
msgstr "Lädt..."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:27
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:95
|
||||||
|
msgid "Edit %{name}"
|
||||||
|
msgstr "%{name} bearbeiten"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:46
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:96
|
||||||
|
msgid "Edit %{name} tags"
|
||||||
|
msgstr "Editiere %{name} Tags"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/container_card.ex:50
|
||||||
|
msgid "Rounds:"
|
||||||
|
msgstr "Patronen:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:94
|
||||||
|
msgid "Show %{name}"
|
||||||
|
msgstr "Zeige %{name}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:113
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:110
|
||||||
|
msgid "No cost information"
|
||||||
|
msgstr "Keine Preisinformationen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:83
|
||||||
|
msgid "% left"
|
||||||
|
msgstr "% verbleibend"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:43
|
||||||
|
msgid "Current value:"
|
||||||
|
msgstr "Derzeitiger Wert:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:36
|
||||||
|
msgid "Original cost:"
|
||||||
|
msgstr "Originalpreis:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:13
|
||||||
|
msgid "Original count:"
|
||||||
|
msgstr "Ursprüngliche Anzahl:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:18
|
||||||
|
msgid "Percentage left:"
|
||||||
|
msgstr "Prozent verbleibend:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:116
|
||||||
|
msgid "Rounds used"
|
||||||
|
msgstr "Patronen verbraucht"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:75
|
||||||
|
msgid "Current # of rounds:"
|
||||||
|
msgstr "Derzeitige # an Patronen:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:86
|
||||||
|
msgid "Total # of rounds"
|
||||||
|
msgstr "Summe aller Patronen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:83
|
||||||
|
msgid "Total rounds shot:"
|
||||||
|
msgstr "Summe abgegebener Schüsse:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:8
|
||||||
|
msgid "Confirm your account"
|
||||||
|
msgstr "Bestätigen Sie ihr Nutzerkonto"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:9
|
||||||
|
msgid "Forgot your password?"
|
||||||
|
msgstr "Passwort vergessen?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_session_controller.ex:8
|
||||||
|
msgid "Log in"
|
||||||
|
msgstr "Einloggen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:35
|
||||||
|
msgid "Register"
|
||||||
|
msgstr "Registrieren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:36
|
||||||
|
msgid "Reset your password"
|
||||||
|
msgstr "Passwort zurücksetzen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:36
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:26
|
||||||
|
msgid "Record Shots"
|
||||||
|
msgstr "Schüsse dokumentieren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:58
|
||||||
|
msgid "Copies"
|
||||||
|
msgstr "Kopien"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||||
|
msgid "Ammo types"
|
||||||
|
msgstr "Munitionsart"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:86
|
||||||
|
msgid "Added on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/ammo_group_card.ex:41
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:91
|
||||||
|
msgid "Added on:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/user_card.ex:30
|
||||||
|
msgid "User registered on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||||
|
msgid "English"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||||
|
msgid "French"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||||
|
msgid "German"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:33
|
||||||
|
msgid "Language"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:139
|
||||||
|
msgid "Get involved!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:156
|
||||||
|
msgid "Help translate"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:165
|
||||||
|
msgid "Report bugs or request features"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:147
|
||||||
|
msgid "View the source code"
|
||||||
|
msgstr ""
|
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.
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/email.ex:30
|
||||||
|
msgid "Confirm your %{name} account"
|
||||||
|
msgstr "Bestätigen Sie ihr %{name} Nutzerkonto"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "Hi %{email},"
|
||||||
|
msgstr "Hallo %{email},"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/confirm_email.txt.eex:10
|
||||||
|
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."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/reset_password.txt.eex:8
|
||||||
|
#: lib/cannery_web/templates/email/update_email.txt.eex:8
|
||||||
|
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."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/email.ex:37
|
||||||
|
msgid "Reset your %{name} password"
|
||||||
|
msgstr "Passwort für %{name} zurücksetzen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/email.ex:44
|
||||||
|
msgid "Update your %{name} email"
|
||||||
|
msgstr "Aktualisieren Sie %{name} Mailadresse"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/confirm_email.html.eex:9
|
||||||
|
msgid "Welcome to %{name}!"
|
||||||
|
msgstr "Willkommen %{name}!"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/confirm_email.txt.eex:4
|
||||||
|
msgid "Welcome to %{name}%!"
|
||||||
|
msgstr "Willkommen %{name}%!"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/update_email.html.eex:8
|
||||||
|
#: lib/cannery_web/templates/email/update_email.txt.eex:4
|
||||||
|
msgid "You can change your email by visiting the URL below:"
|
||||||
|
msgstr "Sie können Ihre Mailadresse unter folgender URL ändern:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/confirm_email.html.eex:14
|
||||||
|
#: lib/cannery_web/templates/email/confirm_email.txt.eex:6
|
||||||
|
msgid "You can confirm your account by visiting the URL below:"
|
||||||
|
msgstr "Sie können Ihr Nutzerkonto unter folgender URL bestätigen:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/reset_password.html.eex:8
|
||||||
|
#: lib/cannery_web/templates/email/reset_password.txt.eex:4
|
||||||
|
msgid "You can reset your password by visiting the URL below:"
|
||||||
|
msgstr "Sie können ihr Passwort unter folgender URL zurücksetzen:"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/confirm_email.html.eex:22
|
||||||
|
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."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/reset_password.html.eex:16
|
||||||
|
#: lib/cannery_web/templates/email/update_email.html.eex:16
|
||||||
|
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."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/layout/email.txt.eex:9
|
||||||
|
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."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/layout/email.html.heex:13
|
||||||
|
msgid "This email was sent from %{name}, the self-hosted firearm tracker website."
|
||||||
|
msgstr ""
|
||||||
|
"Diese Nachricht wurde von %{name} gesandt, einem selbst-gehosteten "
|
||||||
|
"Schusswaffenmanager."
|
188
priv/gettext/de/LC_MESSAGES/errors.po
Normal file
188
priv/gettext/de/LC_MESSAGES/errors.po
Normal file
@ -0,0 +1,188 @@
|
|||||||
|
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.
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/containers.ex:122
|
||||||
|
msgid "Container must be empty before deleting"
|
||||||
|
msgstr "Behälter muss vor dem Löschen leer sein"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:69
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:71
|
||||||
|
msgid "Could not delete %{name}: %{error}"
|
||||||
|
msgstr "Konnte %{name} nicht löschen: %{error}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:57
|
||||||
|
msgid "Could not find that container"
|
||||||
|
msgstr "Konnte Behälter nicht finden"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:84
|
||||||
|
msgid "Email change link is invalid or it has expired."
|
||||||
|
msgstr "Mailadressenänderungs-Link ist ungültig oder abgelaufen."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/error/error.html.heex:8
|
||||||
|
msgid "Error"
|
||||||
|
msgstr "Fehler"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/error/error.html.heex:28
|
||||||
|
msgid "Go back home"
|
||||||
|
msgstr "Zur Hauptseite zurückkehren"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/views/error_view.ex:11
|
||||||
|
msgid "Internal Server Error"
|
||||||
|
msgstr "Interner Serverfehler"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_session_controller.ex:17
|
||||||
|
msgid "Invalid email or password"
|
||||||
|
msgstr "Ungültige Mailadresse oder Passwort"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/views/error_view.ex:9
|
||||||
|
msgid "Not found"
|
||||||
|
msgstr "Nicht gefunden"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:21
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:64
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:119
|
||||||
|
msgid "Oops, something went wrong! Please check the errors below."
|
||||||
|
msgstr "Oops, etwas ist schiefgegangen. Bitte beachten Sie den Fehler unten."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:63
|
||||||
|
msgid "Reset password link is invalid or it has expired."
|
||||||
|
msgstr "Link zum Passwort zurücksetzen ist ungültig oder abgelaufen."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:25
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:56
|
||||||
|
msgid "Sorry, public registration is disabled"
|
||||||
|
msgstr "Entschuldigung, aber öffentliche Registrierung ist deaktiviert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:15
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:46
|
||||||
|
msgid "Sorry, this invite was not found or expired"
|
||||||
|
msgstr ""
|
||||||
|
"Entschuldigung, aber diese Einladung wurde nicht gefunden oder ist abgelaufen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:99
|
||||||
|
msgid "Unable to delete user"
|
||||||
|
msgstr "Dieser Nutzer konnte nicht gelöscht werden"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/views/error_view.ex:10
|
||||||
|
msgid "Unauthorized"
|
||||||
|
msgstr "Unbefugt"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:54
|
||||||
|
msgid "User confirmation link is invalid or it has expired."
|
||||||
|
msgstr "Nutzerkonto Bestätigungslink ist ungültig oder abgelaufen."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:18
|
||||||
|
msgid "You are not authorized to view this page"
|
||||||
|
msgstr "Sie sind nicht berechtigt, diese Seite aufzurufen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_auth.ex:177
|
||||||
|
msgid "You are not authorized to view this page."
|
||||||
|
msgstr "Sie sind nicht berechtigt, diese Seite aufzurufen."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/user.ex:130
|
||||||
|
msgid "did not change"
|
||||||
|
msgstr "hat sich nicht geändert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/user.ex:151
|
||||||
|
msgid "does not match password"
|
||||||
|
msgstr "Passwort stimmt nicht überein"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/user.ex:188
|
||||||
|
msgid "is not valid"
|
||||||
|
msgstr "ist nicht gültig"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/user.ex:84
|
||||||
|
msgid "must have the @ sign and no spaces"
|
||||||
|
msgstr "Muss ein @ Zeichen und keine Leerzeichen haben"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/tags.ex:40
|
||||||
|
msgid "Tag not found"
|
||||||
|
msgstr "Tag nicht gefunden"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:30
|
||||||
|
msgid "Tag could not be added"
|
||||||
|
msgstr "Tag konnte nicht hinzugefügt werden"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/activity_log.ex:125
|
||||||
|
msgid "Count must be at least 1"
|
||||||
|
msgstr "Anzahl muss mindestens 1 sein"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/activity_log.ex:73
|
||||||
|
#: lib/cannery/activity_log.ex:120
|
||||||
|
msgid "Count must be less than %{count}"
|
||||||
|
msgstr "Anzahl muss weniger als %{count} betragen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_auth.ex:39
|
||||||
|
#: lib/cannery_web/controllers/user_auth.ex:161
|
||||||
|
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."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:52
|
||||||
|
msgid "Tag could not be removed"
|
||||||
|
msgstr "Tag konnte nicht gelöscht werden"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.ex:126
|
||||||
|
msgid "Could not parse number of copies"
|
||||||
|
msgstr "Konnte die Anzahl der Kopien nicht verstehen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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 ""
|
||||||
|
"Ungültige Nummer an Kopien. Muss zwischen 1 and %{max} liegen. War "
|
||||||
|
"%{multiplier}"
|
291
priv/gettext/de/LC_MESSAGES/prompts.po
Normal file
291
priv/gettext/de/LC_MESSAGES/prompts.po
Normal file
@ -0,0 +1,291 @@
|
|||||||
|
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.
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "%{name} created successfully"
|
||||||
|
msgstr "%{name} erfolgreich erstellt"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:41
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.ex:38
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||||
|
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||||
|
msgid "%{name} deleted succesfully"
|
||||||
|
msgstr "%{name} erfolgreich gelöscht"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:109
|
||||||
|
msgid "%{name} disabled succesfully"
|
||||||
|
msgstr "%{name} erfolgreich deaktiviert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:87
|
||||||
|
msgid "%{name} enabled succesfully"
|
||||||
|
msgstr "%{name} erfolgreich aktiviert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:62
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:61
|
||||||
|
msgid "%{name} has been deleted"
|
||||||
|
msgstr "%{name} wurde gelöscht"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:67
|
||||||
|
msgid "%{name} updated succesfully"
|
||||||
|
msgstr "%{name} erfolgreich aktualisiert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "%{name} updated successfully"
|
||||||
|
msgstr "%{name} erfolgreich aktualisiert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:29
|
||||||
|
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."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:50
|
||||||
|
msgid "Ammo group deleted succesfully"
|
||||||
|
msgstr "Munitionsgruppe erfolgreich gelöscht"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.ex:88
|
||||||
|
msgid "Ammo group updated successfully"
|
||||||
|
msgstr "Munitionsgruppe erfolgreich aktualisiert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:102
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:131
|
||||||
|
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!"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
|
||||||
|
#: 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
|
||||||
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
|
msgstr "Sind Sie sicher, dass sie %{name} löschen möchten?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:49
|
||||||
|
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?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:177
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:71
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:140
|
||||||
|
msgid "Are you sure you want to delete this ammo?"
|
||||||
|
msgstr "Sind Sie sicher, dass sie diese Munition löschen möchten?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:146
|
||||||
|
msgid "Are you sure you want to delete your account?"
|
||||||
|
msgstr "Sind Sie sicher, dass sie Ihren Account löschen möchten?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:84
|
||||||
|
msgid "Are you sure you want to log out?"
|
||||||
|
msgstr "Wirklich ausloggen?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:74
|
||||||
|
msgid "Are you sure you want to make %{name} unlimited?"
|
||||||
|
msgstr "Sind Sie sicher, dass sie %{name} auf unbegrenzt setzen möchten?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
||||||
|
msgid "Email changed successfully."
|
||||||
|
msgstr "Mailadresse erfolgreich geändert."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:23
|
||||||
|
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."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:24
|
||||||
|
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."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_session_controller.ex:23
|
||||||
|
msgid "Logged out successfully."
|
||||||
|
msgstr "Erfolgreich ausgeloggt."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:46
|
||||||
|
msgid "Password reset successfully."
|
||||||
|
msgstr "Passwort erfolgreich zurückgesetzt."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:49
|
||||||
|
msgid "Password updated successfully."
|
||||||
|
msgstr "Passwort erfolgreich geändert."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:74
|
||||||
|
msgid "Please check your email to verify your account"
|
||||||
|
msgstr "Bitte überprüfen Sie ihre Mailbox und bestätigen Sie das Nutzerkonto"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:96
|
||||||
|
msgid "Register to setup %{name}"
|
||||||
|
msgstr "Registrieren Sie sich, um %{name} zu bearbeiten"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "Saving..."
|
||||||
|
msgstr "Speichere..."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:95
|
||||||
|
msgid "Your account has been deleted"
|
||||||
|
msgstr "Ihr Nutzerkonto wurde gelöscht"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:16
|
||||||
|
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?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:36
|
||||||
|
msgid "%{name} added successfully"
|
||||||
|
msgstr "%{name} erfolgreich hinzugefügt"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:37
|
||||||
|
msgid "%{tag_name} has been removed from %{container_name}"
|
||||||
|
msgstr "%{tag_name} wurde von %{container_name} entfernt"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:54
|
||||||
|
msgid "Adding..."
|
||||||
|
msgstr "Füge hinzu..."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/add_shot_group_component.ex:68
|
||||||
|
msgid "Shots recorded successfully"
|
||||||
|
msgstr "Schüsse erfolgreich dokumentiert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:29
|
||||||
|
msgid "Are you sure you want to unstage this ammo?"
|
||||||
|
msgstr "Sind sie sicher, dass Sie diese Munition demarkieren möchten?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:68
|
||||||
|
msgid "Ammo group unstaged succesfully"
|
||||||
|
msgstr "Munition erfolgreich demarkiert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:130
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:128
|
||||||
|
msgid "Are you sure you want to delete this shot record?"
|
||||||
|
msgstr "Sind sie sicher, dass sie die Schießkladde löschen möchten?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:78
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:54
|
||||||
|
msgid "Shot records deleted succesfully"
|
||||||
|
msgstr "Schießkladde erfolgreich gelöscht"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/form_component.ex:55
|
||||||
|
msgid "Shot records updated successfully"
|
||||||
|
msgstr "Schießkladde erfolgreich aktualisiert"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:38
|
||||||
|
msgid "%{email} confirmed successfully."
|
||||||
|
msgstr "%{email} erfolgreich bestätigt."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:53
|
||||||
|
msgid "Ammo moved to %{name} successfully"
|
||||||
|
msgstr "Munition erfolgreich zu %{name} verschoben"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:121
|
||||||
|
msgid "Copied to clipboard"
|
||||||
|
msgstr "Der Zwischenablage hinzugefügt"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:58
|
||||||
|
msgid "%{name} removed successfully"
|
||||||
|
msgstr "%{name} erfolgreich entfernt"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:15
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:33
|
||||||
|
msgid "You'll need to"
|
||||||
|
msgstr "Sie müssen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:67
|
||||||
|
msgid "Creating..."
|
||||||
|
msgstr "Erstellen..."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.ex:147
|
||||||
|
msgid "Ammo group created successfully"
|
||||||
|
msgid_plural "Ammo groups created successfully"
|
||||||
|
msgstr[0] "Munitionsgruppe erfolgreich erstellt"
|
||||||
|
msgstr[1] "Munitionsgruppen erfolgreich erstellt"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
|
||||||
|
msgid "Are you sure you want to change your language?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:65
|
||||||
|
msgid "Language updated successfully."
|
||||||
|
msgstr ""
|
@ -11,12 +11,12 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:63
|
#: lib/cannery_web/live/home_live.ex:56
|
||||||
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
|
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:85
|
#: lib/cannery_web/live/home_live.ex:78
|
||||||
msgid "Access from any internet-capable device"
|
msgid "Access from any internet-capable device"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -26,25 +26,26 @@ msgid "Admins"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:99
|
#: lib/cannery_web/live/home_live.ex:92
|
||||||
msgid "Admins:"
|
msgid "Admins:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:52
|
#: lib/cannery_web/components/topbar.ex:50
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
|
#: 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:80
|
||||||
msgid "Ammo"
|
msgid "Ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:27
|
#: lib/cannery_web/live/ammo_group_live/index.ex:80
|
||||||
msgid "Ammo type"
|
msgid "Ammo type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:94
|
#: lib/cannery_web/live/ammo_type_live/index.ex:87
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:100
|
||||||
msgid "Average Price paid"
|
msgid "Average Price paid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -54,75 +55,76 @@ msgid "Background color"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:154
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||||
msgid "Blank"
|
msgid "Blank"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:74
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:68
|
||||||
msgid "Brass"
|
msgid "Brass"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:46
|
#: 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/index.ex:53
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:41
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:39
|
||||||
msgid "Bullet core"
|
msgid "Bullet core"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
#: 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/index.ex:52
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:40
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:38
|
||||||
msgid "Bullet type"
|
msgid "Bullet type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:62
|
#: 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/index.ex:55
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:43
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:41
|
||||||
msgid "Caliber"
|
msgid "Caliber"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:55
|
#: 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/index.ex:54
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:42
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:40
|
||||||
msgid "Cartridge"
|
msgid "Cartridge"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:69
|
#: 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/index.ex:56
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:44
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:42
|
||||||
msgid "Case material"
|
msgid "Case material"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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/form_component.html.heex:48
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
|
#: lib/cannery_web/live/ammo_group_live/index.ex:85
|
||||||
msgid "Container"
|
msgid "Container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:46
|
#: lib/cannery_web/components/topbar.ex:44
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:36
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||||
msgid "Containers"
|
msgid "Containers"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:158
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||||
msgid "Corrosive"
|
msgid "Corrosive"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:30
|
#: lib/cannery_web/live/ammo_group_live/index.ex:81
|
||||||
msgid "Count"
|
msgid "Count"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -150,29 +152,29 @@ msgid "Disable"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:60
|
#: lib/cannery_web/live/home_live.ex:53
|
||||||
msgid "Easy to Use:"
|
msgid "Easy to Use:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:36
|
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:55
|
#: lib/cannery_web/live/ammo_group_live/show.ex:40
|
||||||
msgid "Edit Ammo group"
|
msgid "Edit Ammo group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.ex:47
|
#: lib/cannery_web/live/ammo_type_live/show.ex:45
|
||||||
msgid "Edit Ammo type"
|
msgid "Edit Ammo type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:35
|
#: lib/cannery_web/live/invite_live/index.ex:33
|
||||||
msgid "Edit Invite"
|
msgid "Edit Invite"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/tag_live/index.ex:23
|
#: lib/cannery_web/live/tag_live/index.ex:21
|
||||||
msgid "Edit Tag"
|
msgid "Edit Tag"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -187,41 +189,42 @@ msgid "Example bullet type abbreviations"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:42
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:40
|
||||||
msgid "FMJ"
|
msgid "FMJ"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:113
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:47
|
||||||
msgid "Grains"
|
msgid "Grains"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:150
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||||
msgid "Incendiary"
|
msgid "Incendiary"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:94
|
#: lib/cannery_web/live/home_live.ex:87
|
||||||
msgid "Instance Information"
|
msgid "Instance Information"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/invite_card.ex:27
|
#: lib/cannery_web/components/invite_card.ex:25
|
||||||
msgid "Invite Disabled"
|
msgid "Invite Disabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:125
|
#: lib/cannery_web/live/home_live.ex:118
|
||||||
msgid "Invite Only"
|
msgid "Invite Only"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:71
|
#: lib/cannery_web/components/topbar.ex:69
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:41
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:3
|
#: lib/cannery_web/live/invite_live/index.html.heex:3
|
||||||
msgid "Invites"
|
msgid "Invites"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -232,27 +235,7 @@ msgid "Keep me logged in for 60 days"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||||
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/live/container_live/form_component.html.heex:42
|
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||||
msgid "Location"
|
msgid "Location"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -269,14 +252,14 @@ msgid "Magazine, Clip, Ammo Box, etc"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:58
|
#: lib/cannery_web/components/topbar.ex:56
|
||||||
msgid "Manage"
|
msgid "Manage"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:162
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||||
msgid "Manufacturer"
|
msgid "Manufacturer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -305,17 +288,17 @@ msgid "New Ammo type"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:33
|
#: lib/cannery_web/live/container_live/index.ex:31
|
||||||
msgid "New Container"
|
msgid "New Container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:39
|
#: lib/cannery_web/live/invite_live/index.ex:37
|
||||||
msgid "New Invite"
|
msgid "New Invite"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/tag_live/index.ex:29
|
#: lib/cannery_web/live/tag_live/index.ex:27
|
||||||
msgid "New Tag"
|
msgid "New Tag"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -330,12 +313,12 @@ msgid "No Ammo Types"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:114
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:120
|
||||||
msgid "No ammo for this type"
|
msgid "No ammo for this type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:77
|
#: lib/cannery_web/live/container_live/show.html.heex:78
|
||||||
msgid "No ammo groups in this container"
|
msgid "No ammo groups in this container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -358,9 +341,9 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:30
|
#: 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/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:88
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
#: 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:82
|
||||||
msgid "Notes"
|
msgid "Notes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -376,42 +359,42 @@ msgid "On the bookshelf"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:121
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||||
msgid "Pressure"
|
msgid "Pressure"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:33
|
#: lib/cannery_web/live/ammo_group_live/index.ex:82
|
||||||
msgid "Price paid"
|
msgid "Price paid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:42
|
#: lib/cannery_web/components/ammo_group_card.ex:47
|
||||||
msgid "Price paid:"
|
msgid "Price paid:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:128
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||||
msgid "Primer type"
|
msgid "Primer type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:124
|
#: lib/cannery_web/live/home_live.ex:117
|
||||||
msgid "Public Signups"
|
msgid "Public Signups"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:72
|
#: lib/cannery_web/live/home_live.ex:65
|
||||||
msgid "Secure:"
|
msgid "Secure:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:75
|
#: lib/cannery_web/live/home_live.ex:68
|
||||||
msgid "Self-host your own instance, or use an instance from someone you trust."
|
msgid "Self-host your own instance, or use an instance from someone you trust."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -421,37 +404,39 @@ msgid "Set Unlimited"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:10
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:3
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:3
|
||||||
msgid "Settings"
|
msgid "Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:54
|
#: lib/cannery_web/live/ammo_group_live/show.ex:39
|
||||||
msgid "Show Ammo group"
|
msgid "Show Ammo group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.ex:46
|
#: lib/cannery_web/live/ammo_type_live/show.ex:44
|
||||||
msgid "Show Ammo type"
|
msgid "Show Ammo type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:82
|
#: lib/cannery_web/live/home_live.ex:75
|
||||||
msgid "Simple:"
|
msgid "Simple:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:47
|
||||||
msgid "Steel"
|
msgid "Steel"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:98
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:103
|
||||||
msgid "Stored in"
|
msgid "Stored in"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:40
|
#: lib/cannery_web/components/topbar.ex:38
|
||||||
|
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||||
msgid "Tags"
|
msgid "Tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -467,24 +452,24 @@ msgid "Text color"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:51
|
#: lib/cannery_web/live/home_live.ex:44
|
||||||
msgid "The self-hosted firearm tracker website"
|
msgid "The self-hosted firearm tracker website"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:103
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:108
|
||||||
msgid "This ammo group is not in a container"
|
msgid "This ammo group is not in a container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:146
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||||
msgid "Tracer"
|
msgid "Tracer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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
|
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||||
msgid "Type"
|
msgid "Type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -501,7 +486,7 @@ msgid "Users"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/invite_card.ex:22
|
#: lib/cannery_web/components/invite_card.ex:20
|
||||||
msgid "Uses Left:"
|
msgid "Uses Left:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -511,12 +496,12 @@ msgid "Uses left"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:47
|
#: lib/cannery_web/live/home_live.ex:40
|
||||||
msgid "Welcome to %{name}"
|
msgid "Welcome to %{name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:76
|
#: lib/cannery_web/live/home_live.ex:69
|
||||||
msgid "Your data stays with you, period"
|
msgid "Your data stays with you, period"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -526,8 +511,8 @@ msgid "No tags for this container"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:64
|
#: lib/cannery_web/components/topbar.ex:62
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:39
|
#: lib/cannery_web/live/ammo_group_live/index.ex:84
|
||||||
msgid "Range"
|
msgid "Range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -537,8 +522,8 @@ msgid "Range day"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:125
|
#: lib/cannery_web/live/ammo_group_live/show.ex:89
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:70
|
#: lib/cannery_web/live/range_live/index.ex:83
|
||||||
msgid "Date"
|
msgid "Date"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -553,26 +538,20 @@ msgid "No ammo staged"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:77
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:82
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:33
|
#: lib/cannery_web/live/range_live/index.html.heex:33
|
||||||
msgid "Stage for range"
|
msgid "Stage for range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:76
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:81
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
#: lib/cannery_web/live/range_live/index.html.heex:32
|
||||||
msgid "Unstage from range"
|
msgid "Unstage from range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:52
|
|
||||||
msgid "Add Shot group"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:3
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:3
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:24
|
#: lib/cannery_web/live/ammo_group_live/index.ex:26
|
||||||
#: lib/cannery_web/live/range_live/index.ex:28
|
|
||||||
msgid "Record shots"
|
msgid "Record shots"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -582,7 +561,7 @@ msgid "Ammo Types"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:47
|
#: lib/cannery_web/live/ammo_group_live/index.ex:49
|
||||||
msgid "Ammo groups"
|
msgid "Ammo groups"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -593,12 +572,13 @@ msgid "Date (UTC)"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/range_live/index.ex:34
|
#: lib/cannery_web/live/ammo_group_live/show.ex:37
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:32
|
||||||
msgid "Edit Shot Records"
|
msgid "Edit Shot Records"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/range_live/index.ex:40
|
#: lib/cannery_web/live/range_live/index.ex:38
|
||||||
msgid "New Shot Records"
|
msgid "New Shot Records"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -613,29 +593,29 @@ msgid "Rounds left"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:119
|
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
#: lib/cannery_web/live/range_live/index.ex:81
|
||||||
msgid "Rounds shot"
|
msgid "Rounds shot"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/range_live/index.ex:46
|
#: lib/cannery_web/live/range_live/index.ex:44
|
||||||
msgid "Shot Records"
|
msgid "Shot Records"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:30
|
#: lib/cannery_web/live/ammo_group_live/index.ex:32
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:53
|
#: lib/cannery_web/live/ammo_group_live/show.ex:38
|
||||||
msgid "Move Ammo group"
|
msgid "Move Ammo group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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"
|
msgid "Move ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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"
|
msgid "No other containers"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -645,84 +625,85 @@ msgid "Shot log"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:43
|
#: lib/cannery_web/components/ammo_group_card.ex:48
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:64
|
#: lib/cannery_web/live/ammo_group_live/index.ex:118
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:32
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:37
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:39
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:44
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:98
|
#: lib/cannery_web/live/ammo_type_live/index.ex:114
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:104
|
||||||
msgid "$%{amount}"
|
msgid "$%{amount}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:83
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:75
|
||||||
msgid "Bimetal"
|
msgid "Bimetal"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:78
|
#: 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/index.ex:57
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:45
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:43
|
||||||
msgid "Jacket type"
|
msgid "Jacket type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:87
|
#: 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/index.ex:58
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:46
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:44
|
||||||
msgid "Muzzle velocity"
|
msgid "Muzzle velocity"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:46
|
||||||
msgid "Powder grains per charge"
|
msgid "Powder grains per charge"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:97
|
#: 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/index.ex:59
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:47
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:45
|
||||||
msgid "Powder type"
|
msgid "Powder type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:168
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||||
msgid "UPC"
|
msgid "UPC"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:80
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:78
|
||||||
msgid "Confirm new password"
|
msgid "Confirm new password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:33
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:32
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:89
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:87
|
||||||
msgid "Current password"
|
msgid "Current password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:73
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:71
|
||||||
msgid "New password"
|
msgid "New password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:82
|
#: lib/cannery_web/live/ammo_group_live/index.ex:141
|
||||||
msgid "Stage"
|
msgid "Stage"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:82
|
#: lib/cannery_web/live/ammo_group_live/index.ex:141
|
||||||
msgid "Unstage"
|
msgid "Unstage"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:137
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||||
msgid "Firing type"
|
msgid "Firing type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -737,14 +718,14 @@ msgid "Loading..."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:29
|
#: lib/cannery_web/live/container_live/index.ex:27
|
||||||
#: lib/cannery_web/live/container_live/show.ex:97
|
#: lib/cannery_web/live/container_live/show.ex:95
|
||||||
msgid "Edit %{name}"
|
msgid "Edit %{name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:48
|
#: lib/cannery_web/live/container_live/index.ex:46
|
||||||
#: lib/cannery_web/live/container_live/show.ex:98
|
#: lib/cannery_web/live/container_live/show.ex:96
|
||||||
msgid "Edit %{name} tags"
|
msgid "Edit %{name} tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -754,27 +735,28 @@ msgid "Rounds:"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/show.ex:96
|
#: lib/cannery_web/live/container_live/show.ex:94
|
||||||
msgid "Show %{name}"
|
msgid "Show %{name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:104
|
#: lib/cannery_web/live/ammo_type_live/index.ex:113
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:110
|
||||||
msgid "No cost information"
|
msgid "No cost information"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
#: lib/cannery_web/live/ammo_group_live/index.ex:83
|
||||||
msgid "% left"
|
msgid "% left"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:38
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:43
|
||||||
msgid "Current value:"
|
msgid "Current value:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:31
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:36
|
||||||
msgid "Original cost:"
|
msgid "Original cost:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -789,21 +771,122 @@ msgid "Percentage left:"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:111
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:116
|
||||||
msgid "Rounds used"
|
msgid "Rounds used"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:77
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:75
|
||||||
msgid "Current # of rounds:"
|
msgid "Current # of rounds:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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"
|
msgid "Total # of rounds"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:85
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:83
|
||||||
msgid "Total rounds shot:"
|
msgid "Total rounds shot:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:8
|
||||||
|
msgid "Confirm your account"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:9
|
||||||
|
msgid "Forgot your password?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_session_controller.ex:8
|
||||||
|
msgid "Log in"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:35
|
||||||
|
msgid "Register"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:36
|
||||||
|
msgid "Reset your password"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:36
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:26
|
||||||
|
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
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||||
|
msgid "Ammo types"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:86
|
||||||
|
msgid "Added on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/ammo_group_card.ex:41
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:91
|
||||||
|
msgid "Added on:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/user_card.ex:30
|
||||||
|
msgid "User registered on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||||
|
msgid "English"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||||
|
msgid "French"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||||
|
msgid "German"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:33
|
||||||
|
msgid "Language"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:139
|
||||||
|
msgid "Get involved!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:156
|
||||||
|
msgid "Help translate"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:165
|
||||||
|
msgid "Report bugs or request features"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:147
|
||||||
|
msgid "View the source code"
|
||||||
|
msgstr ""
|
||||||
|
@ -91,6 +91,6 @@ msgid "This email was sent from %{name} at %{url}, the self-hosted firearm track
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/layout/email.html.heex:17
|
#: lib/cannery_web/templates/layout/email.html.heex:13
|
||||||
msgid "This email was sent from %{name}, the self-hosted firearm tracker website."
|
msgid "This email was sent from %{name}, the self-hosted firearm tracker website."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -12,12 +12,12 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2\n"
|
"Plural-Forms: nplurals=2\n"
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:42
|
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||||
msgid "Add Ammo"
|
msgid "Add Ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:12
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:24
|
||||||
msgid "Add your first box!"
|
msgid "Add your first box!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -32,14 +32,14 @@ msgid "Add your first type!"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:16
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:45
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:44
|
||||||
msgid "Change email"
|
msgid "Change email"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:60
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:58
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:101
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:99
|
||||||
msgid "Change password"
|
msgid "Change password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -49,12 +49,12 @@ msgid "Create Invite"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:108
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:142
|
||||||
msgid "Delete User"
|
msgid "Delete User"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:43
|
#: lib/cannery_web/templates/user_registration/new.html.heex:52
|
||||||
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
||||||
msgid "Forgot your password?"
|
msgid "Forgot your password?"
|
||||||
@ -66,9 +66,9 @@ msgid "Invite someone new!"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:108
|
#: lib/cannery_web/components/topbar.ex:106
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
|
#: 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_registration/new.html.heex:48
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:48
|
#: 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_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:3
|
||||||
@ -82,7 +82,7 @@ msgid "Make your first tag!"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:17
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
|
||||||
msgid "New Ammo group"
|
msgid "New Ammo group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -102,10 +102,10 @@ msgid "New Tag"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:101
|
#: lib/cannery_web/components/topbar.ex:99
|
||||||
#: lib/cannery_web/templates/user_confirmation/new.html.heex:25
|
#: 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:3
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:33
|
#: lib/cannery_web/templates/user_registration/new.html.heex:42
|
||||||
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:43
|
#: 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_reset_password/new.html.heex:25
|
||||||
#: lib/cannery_web/templates/user_session/new.html.heex:40
|
#: lib/cannery_web/templates/user_session/new.html.heex:40
|
||||||
@ -125,9 +125,9 @@ msgid "Reset password"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:42
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:46
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:54
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:73
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:172
|
#: 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/container_live/form_component.html.heex:50
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:28
|
#: 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/range_live/form_component.html.heex:40
|
||||||
@ -161,29 +161,29 @@ msgid "Why not get some ready to shoot?"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:85
|
#: lib/cannery_web/live/ammo_group_live/index.ex:144
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:86
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:91
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:36
|
#: lib/cannery_web/live/range_live/index.html.heex:36
|
||||||
msgid "Record shots"
|
msgid "Record shots"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:50
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:55
|
||||||
msgid "Ammo Details"
|
msgid "Ammo Details"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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!"
|
msgid "Add another container!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:80
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||||
msgid "Move containers"
|
msgid "Move containers"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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"
|
msgid "Select"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -191,3 +191,24 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/invite_live/index.html.heex:33
|
#: lib/cannery_web/live/invite_live/index.html.heex:33
|
||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
|
||||||
|
#: 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 ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:113
|
||||||
|
msgid "Change Language"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
|
||||||
|
msgid "Change language"
|
||||||
|
msgstr ""
|
||||||
|
@ -12,12 +12,12 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2\n"
|
"Plural-Forms: nplurals=2\n"
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:63
|
#: lib/cannery_web/live/home_live.ex:56
|
||||||
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
|
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:85
|
#: lib/cannery_web/live/home_live.ex:78
|
||||||
msgid "Access from any internet-capable device"
|
msgid "Access from any internet-capable device"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -27,25 +27,26 @@ msgid "Admins"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:99
|
#: lib/cannery_web/live/home_live.ex:92
|
||||||
msgid "Admins:"
|
msgid "Admins:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:52
|
#: lib/cannery_web/components/topbar.ex:50
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
|
#: 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:80
|
||||||
msgid "Ammo"
|
msgid "Ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:27
|
#: lib/cannery_web/live/ammo_group_live/index.ex:80
|
||||||
msgid "Ammo type"
|
msgid "Ammo type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:94
|
#: lib/cannery_web/live/ammo_type_live/index.ex:87
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:100
|
||||||
msgid "Average Price paid"
|
msgid "Average Price paid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -55,75 +56,76 @@ msgid "Background color"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:154
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||||
msgid "Blank"
|
msgid "Blank"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:74
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:68
|
||||||
msgid "Brass"
|
msgid "Brass"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:46
|
#: 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/index.ex:53
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:41
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:39
|
||||||
msgid "Bullet core"
|
msgid "Bullet core"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:37
|
#: 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/index.ex:52
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:40
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:38
|
||||||
msgid "Bullet type"
|
msgid "Bullet type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:62
|
#: 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/index.ex:55
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:43
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:41
|
||||||
msgid "Caliber"
|
msgid "Caliber"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:55
|
#: 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/index.ex:54
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:42
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:40
|
||||||
msgid "Cartridge"
|
msgid "Cartridge"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:69
|
#: 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/index.ex:56
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:44
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:42
|
||||||
msgid "Case material"
|
msgid "Case material"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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/form_component.html.heex:48
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
|
#: lib/cannery_web/live/ammo_group_live/index.ex:85
|
||||||
msgid "Container"
|
msgid "Container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:46
|
#: lib/cannery_web/components/topbar.ex:44
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:36
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:3
|
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||||
msgid "Containers"
|
msgid "Containers"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:158
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||||
msgid "Corrosive"
|
msgid "Corrosive"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:30
|
#: lib/cannery_web/live/ammo_group_live/index.ex:81
|
||||||
msgid "Count"
|
msgid "Count"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -151,29 +153,29 @@ msgid "Disable"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:60
|
#: lib/cannery_web/live/home_live.ex:53
|
||||||
msgid "Easy to Use:"
|
msgid "Easy to Use:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:36
|
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:55
|
#: lib/cannery_web/live/ammo_group_live/show.ex:40
|
||||||
msgid "Edit Ammo group"
|
msgid "Edit Ammo group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.ex:47
|
#: lib/cannery_web/live/ammo_type_live/show.ex:45
|
||||||
msgid "Edit Ammo type"
|
msgid "Edit Ammo type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:35
|
#: lib/cannery_web/live/invite_live/index.ex:33
|
||||||
msgid "Edit Invite"
|
msgid "Edit Invite"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/tag_live/index.ex:23
|
#: lib/cannery_web/live/tag_live/index.ex:21
|
||||||
msgid "Edit Tag"
|
msgid "Edit Tag"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -188,41 +190,42 @@ msgid "Example bullet type abbreviations"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:42
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:40
|
||||||
msgid "FMJ"
|
msgid "FMJ"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:113
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:47
|
||||||
msgid "Grains"
|
msgid "Grains"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:150
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||||
msgid "Incendiary"
|
msgid "Incendiary"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:94
|
#: lib/cannery_web/live/home_live.ex:87
|
||||||
msgid "Instance Information"
|
msgid "Instance Information"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/invite_card.ex:27
|
#: lib/cannery_web/components/invite_card.ex:25
|
||||||
msgid "Invite Disabled"
|
msgid "Invite Disabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:125
|
#: lib/cannery_web/live/home_live.ex:118
|
||||||
msgid "Invite Only"
|
msgid "Invite Only"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:71
|
#: lib/cannery_web/components/topbar.ex:69
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:41
|
||||||
#: lib/cannery_web/live/invite_live/index.html.heex:3
|
#: lib/cannery_web/live/invite_live/index.html.heex:3
|
||||||
msgid "Invites"
|
msgid "Invites"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -233,27 +236,7 @@ msgid "Keep me logged in for 60 days"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||||
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/live/container_live/form_component.html.heex:42
|
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||||
msgid "Location"
|
msgid "Location"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -270,14 +253,14 @@ msgid "Magazine, Clip, Ammo Box, etc"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:58
|
#: lib/cannery_web/components/topbar.ex:56
|
||||||
msgid "Manage"
|
msgid "Manage"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:162
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||||
msgid "Manufacturer"
|
msgid "Manufacturer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -306,17 +289,17 @@ msgid "New Ammo type"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:33
|
#: lib/cannery_web/live/container_live/index.ex:31
|
||||||
msgid "New Container"
|
msgid "New Container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:39
|
#: lib/cannery_web/live/invite_live/index.ex:37
|
||||||
msgid "New Invite"
|
msgid "New Invite"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/tag_live/index.ex:29
|
#: lib/cannery_web/live/tag_live/index.ex:27
|
||||||
msgid "New Tag"
|
msgid "New Tag"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -331,12 +314,12 @@ msgid "No Ammo Types"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:114
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:120
|
||||||
msgid "No ammo for this type"
|
msgid "No ammo for this type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:77
|
#: lib/cannery_web/live/container_live/show.html.heex:78
|
||||||
msgid "No ammo groups in this container"
|
msgid "No ammo groups in this container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -359,9 +342,9 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:30
|
#: 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/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:88
|
||||||
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
#: 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:82
|
||||||
msgid "Notes"
|
msgid "Notes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -377,42 +360,42 @@ msgid "On the bookshelf"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:121
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||||
msgid "Pressure"
|
msgid "Pressure"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:33
|
#: lib/cannery_web/live/ammo_group_live/index.ex:82
|
||||||
msgid "Price paid"
|
msgid "Price paid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:42
|
#: lib/cannery_web/components/ammo_group_card.ex:47
|
||||||
msgid "Price paid:"
|
msgid "Price paid:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:128
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||||
msgid "Primer type"
|
msgid "Primer type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:124
|
#: lib/cannery_web/live/home_live.ex:117
|
||||||
msgid "Public Signups"
|
msgid "Public Signups"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:72
|
#: lib/cannery_web/live/home_live.ex:65
|
||||||
msgid "Secure:"
|
msgid "Secure:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:75
|
#: lib/cannery_web/live/home_live.ex:68
|
||||||
msgid "Self-host your own instance, or use an instance from someone you trust."
|
msgid "Self-host your own instance, or use an instance from someone you trust."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -422,37 +405,39 @@ msgid "Set Unlimited"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:10
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:3
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:3
|
||||||
msgid "Settings"
|
msgid "Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:54
|
#: lib/cannery_web/live/ammo_group_live/show.ex:39
|
||||||
msgid "Show Ammo group"
|
msgid "Show Ammo group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.ex:46
|
#: lib/cannery_web/live/ammo_type_live/show.ex:44
|
||||||
msgid "Show Ammo type"
|
msgid "Show Ammo type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:82
|
#: lib/cannery_web/live/home_live.ex:75
|
||||||
msgid "Simple:"
|
msgid "Simple:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:51
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:47
|
||||||
msgid "Steel"
|
msgid "Steel"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:98
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:103
|
||||||
msgid "Stored in"
|
msgid "Stored in"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:40
|
#: lib/cannery_web/components/topbar.ex:38
|
||||||
|
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||||
msgid "Tags"
|
msgid "Tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -468,24 +453,24 @@ msgid "Text color"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:51
|
#: lib/cannery_web/live/home_live.ex:44
|
||||||
msgid "The self-hosted firearm tracker website"
|
msgid "The self-hosted firearm tracker website"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:103
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:108
|
||||||
msgid "This ammo group is not in a container"
|
msgid "This ammo group is not in a container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:146
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||||
msgid "Tracer"
|
msgid "Tracer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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
|
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||||
msgid "Type"
|
msgid "Type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -502,7 +487,7 @@ msgid "Users"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/invite_card.ex:22
|
#: lib/cannery_web/components/invite_card.ex:20
|
||||||
msgid "Uses Left:"
|
msgid "Uses Left:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -512,12 +497,12 @@ msgid "Uses left"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:47
|
#: lib/cannery_web/live/home_live.ex:40
|
||||||
msgid "Welcome to %{name}"
|
msgid "Welcome to %{name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:76
|
#: lib/cannery_web/live/home_live.ex:69
|
||||||
msgid "Your data stays with you, period"
|
msgid "Your data stays with you, period"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -527,8 +512,8 @@ msgid "No tags for this container"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:64
|
#: lib/cannery_web/components/topbar.ex:62
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:39
|
#: lib/cannery_web/live/ammo_group_live/index.ex:84
|
||||||
msgid "Range"
|
msgid "Range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -538,8 +523,8 @@ msgid "Range day"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:125
|
#: lib/cannery_web/live/ammo_group_live/show.ex:89
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:70
|
#: lib/cannery_web/live/range_live/index.ex:83
|
||||||
msgid "Date"
|
msgid "Date"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -554,26 +539,20 @@ msgid "No ammo staged"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:77
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:82
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:33
|
#: lib/cannery_web/live/range_live/index.html.heex:33
|
||||||
msgid "Stage for range"
|
msgid "Stage for range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:76
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:81
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:32
|
#: lib/cannery_web/live/range_live/index.html.heex:32
|
||||||
msgid "Unstage from range"
|
msgid "Unstage from range"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:52
|
|
||||||
msgid "Add Shot group"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:3
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:3
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:24
|
#: lib/cannery_web/live/ammo_group_live/index.ex:26
|
||||||
#: lib/cannery_web/live/range_live/index.ex:28
|
|
||||||
msgid "Record shots"
|
msgid "Record shots"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -583,7 +562,7 @@ msgid "Ammo Types"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:47
|
#: lib/cannery_web/live/ammo_group_live/index.ex:49
|
||||||
msgid "Ammo groups"
|
msgid "Ammo groups"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -594,12 +573,13 @@ msgid "Date (UTC)"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/range_live/index.ex:34
|
#: lib/cannery_web/live/ammo_group_live/show.ex:37
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:32
|
||||||
msgid "Edit Shot Records"
|
msgid "Edit Shot Records"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/range_live/index.ex:40
|
#: lib/cannery_web/live/range_live/index.ex:38
|
||||||
msgid "New Shot Records"
|
msgid "New Shot Records"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -614,29 +594,29 @@ msgid "Rounds left"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:119
|
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:64
|
#: lib/cannery_web/live/range_live/index.ex:81
|
||||||
msgid "Rounds shot"
|
msgid "Rounds shot"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/range_live/index.ex:46
|
#: lib/cannery_web/live/range_live/index.ex:44
|
||||||
msgid "Shot Records"
|
msgid "Shot Records"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:30
|
#: lib/cannery_web/live/ammo_group_live/index.ex:32
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:53
|
#: lib/cannery_web/live/ammo_group_live/show.ex:38
|
||||||
msgid "Move Ammo group"
|
msgid "Move Ammo group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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"
|
msgid "Move ammo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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"
|
msgid "No other containers"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -646,84 +626,85 @@ msgid "Shot log"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/ammo_group_card.ex:43
|
#: lib/cannery_web/components/ammo_group_card.ex:48
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:64
|
#: lib/cannery_web/live/ammo_group_live/index.ex:118
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:32
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:37
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:39
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:44
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:98
|
#: lib/cannery_web/live/ammo_type_live/index.ex:114
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:104
|
||||||
msgid "$%{amount}"
|
msgid "$%{amount}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:83
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:75
|
||||||
msgid "Bimetal"
|
msgid "Bimetal"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:78
|
#: 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/index.ex:57
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:45
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:43
|
||||||
msgid "Jacket type"
|
msgid "Jacket type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:87
|
#: 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/index.ex:58
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:46
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:44
|
||||||
msgid "Muzzle velocity"
|
msgid "Muzzle velocity"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:103
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:46
|
||||||
msgid "Powder grains per charge"
|
msgid "Powder grains per charge"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:97
|
#: 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/index.ex:59
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:47
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:45
|
||||||
msgid "Powder type"
|
msgid "Powder type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:168
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||||
msgid "UPC"
|
msgid "UPC"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:80
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:78
|
||||||
msgid "Confirm new password"
|
msgid "Confirm new password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:33
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:32
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:89
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:87
|
||||||
msgid "Current password"
|
msgid "Current password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:73
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:71
|
||||||
msgid "New password"
|
msgid "New password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:82
|
#: lib/cannery_web/live/ammo_group_live/index.ex:141
|
||||||
msgid "Stage"
|
msgid "Stage"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:82
|
#: lib/cannery_web/live/ammo_group_live/index.ex:141
|
||||||
msgid "Unstage"
|
msgid "Unstage"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:137
|
#: 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
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||||
msgid "Firing type"
|
msgid "Firing type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -738,14 +719,14 @@ msgid "Loading..."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:29
|
#: lib/cannery_web/live/container_live/index.ex:27
|
||||||
#: lib/cannery_web/live/container_live/show.ex:97
|
#: lib/cannery_web/live/container_live/show.ex:95
|
||||||
msgid "Edit %{name}"
|
msgid "Edit %{name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:48
|
#: lib/cannery_web/live/container_live/index.ex:46
|
||||||
#: lib/cannery_web/live/container_live/show.ex:98
|
#: lib/cannery_web/live/container_live/show.ex:96
|
||||||
msgid "Edit %{name} tags"
|
msgid "Edit %{name} tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -755,27 +736,28 @@ msgid "Rounds:"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/show.ex:96
|
#: lib/cannery_web/live/container_live/show.ex:94
|
||||||
msgid "Show %{name}"
|
msgid "Show %{name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:104
|
#: lib/cannery_web/live/ammo_type_live/index.ex:113
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:110
|
||||||
msgid "No cost information"
|
msgid "No cost information"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
#: lib/cannery_web/live/ammo_group_live/index.ex:83
|
||||||
msgid "% left"
|
msgid "% left"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:38
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:43
|
||||||
msgid "Current value:"
|
msgid "Current value:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:31
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:36
|
||||||
msgid "Original cost:"
|
msgid "Original cost:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -790,21 +772,122 @@ msgid "Percentage left:"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:111
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:116
|
||||||
msgid "Rounds used"
|
msgid "Rounds used"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:77
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:75
|
||||||
msgid "Current # of rounds:"
|
msgid "Current # of rounds:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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"
|
msgid "Total # of rounds"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:85
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:83
|
||||||
msgid "Total rounds shot:"
|
msgid "Total rounds shot:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:8
|
||||||
|
msgid "Confirm your account"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:9
|
||||||
|
msgid "Forgot your password?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_session_controller.ex:8
|
||||||
|
msgid "Log in"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:35
|
||||||
|
msgid "Register"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:36
|
||||||
|
msgid "Reset your password"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:36
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:26
|
||||||
|
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 ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:86
|
||||||
|
msgid "Added on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/ammo_group_card.ex:41
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:91
|
||||||
|
msgid "Added on:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/user_card.ex:30
|
||||||
|
msgid "User registered on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||||
|
msgid "English"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||||
|
msgid "French"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||||
|
msgid "German"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:33
|
||||||
|
msgid "Language"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:139
|
||||||
|
msgid "Get involved!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:156
|
||||||
|
msgid "Help translate"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:165
|
||||||
|
msgid "Report bugs or request features"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:147
|
||||||
|
msgid "View the source code"
|
||||||
|
msgstr ""
|
||||||
|
@ -92,6 +92,6 @@ msgid "This email was sent from %{name} at %{url}, the self-hosted firearm track
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/layout/email.html.heex:17
|
#: lib/cannery_web/templates/layout/email.html.heex:13
|
||||||
msgid "This email was sent from %{name}, the self-hosted firearm tracker website."
|
msgid "This email was sent from %{name}, the self-hosted firearm tracker website."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -16,18 +16,18 @@ msgid "Container must be empty before deleting"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:71
|
#: lib/cannery_web/live/container_live/index.ex:69
|
||||||
#: lib/cannery_web/live/container_live/show.ex:73
|
#: lib/cannery_web/live/container_live/show.ex:71
|
||||||
msgid "Could not delete %{name}: %{error}"
|
msgid "Could not delete %{name}: %{error}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:59
|
#: lib/cannery_web/live/container_live/index.ex:57
|
||||||
msgid "Could not find that container"
|
msgid "Could not find that container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:67
|
#: lib/cannery_web/controllers/user_settings_controller.ex:84
|
||||||
msgid "Email change link is invalid or it has expired."
|
msgid "Email change link is invalid or it has expired."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ msgid "Error"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/error/error.html.heex:29
|
#: lib/cannery_web/templates/error/error.html.heex:28
|
||||||
msgid "Go back home"
|
msgid "Go back home"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -59,30 +59,31 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:16
|
#: 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_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:21
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:66
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:64
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:119
|
||||||
msgid "Oops, something went wrong! Please check the errors below."
|
msgid "Oops, something went wrong! Please check the errors below."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_reset_password_controller.ex:60
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:63
|
||||||
msgid "Reset password link is invalid or it has expired."
|
msgid "Reset password link is invalid or it has expired."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:25
|
#: lib/cannery_web/controllers/user_registration_controller.ex:25
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:53
|
#: lib/cannery_web/controllers/user_registration_controller.ex:56
|
||||||
msgid "Sorry, public registration is disabled"
|
msgid "Sorry, public registration is disabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:15
|
#: lib/cannery_web/controllers/user_registration_controller.ex:15
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:43
|
#: lib/cannery_web/controllers/user_registration_controller.ex:46
|
||||||
msgid "Sorry, this invite was not found or expired"
|
msgid "Sorry, this invite was not found or expired"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:82
|
#: lib/cannery_web/controllers/user_settings_controller.ex:99
|
||||||
msgid "Unable to delete user"
|
msgid "Unable to delete user"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -92,12 +93,12 @@ msgid "Unauthorized"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:53
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:54
|
||||||
msgid "User confirmation link is invalid or it has expired."
|
msgid "User confirmation link is invalid or it has expired."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:20
|
#: lib/cannery_web/live/invite_live/index.ex:18
|
||||||
msgid "You are not authorized to view this page"
|
msgid "You are not authorized to view this page"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -107,23 +108,23 @@ msgid "You are not authorized to view this page."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery/accounts/user.ex:128
|
#: lib/cannery/accounts/user.ex:130
|
||||||
msgid "did not change"
|
msgid "did not change"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery/accounts/user.ex:149
|
#: lib/cannery/accounts/user.ex:151
|
||||||
msgid "does not match password"
|
msgid "does not match password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
## From Ecto.Changeset.put_change/3
|
## From Ecto.Changeset.put_change/3
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
#: lib/cannery/accounts/user.ex:186
|
#: lib/cannery/accounts/user.ex:188
|
||||||
msgid "is not valid"
|
msgid "is not valid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery/accounts/user.ex:82
|
#: lib/cannery/accounts/user.ex:84
|
||||||
msgid "must have the @ sign and no spaces"
|
msgid "must have the @ sign and no spaces"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -158,3 +159,13 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:52
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:52
|
||||||
msgid "Tag could not be removed"
|
msgid "Tag could not be removed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:111
|
||||||
|
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||||
|
msgstr ""
|
||||||
|
@ -21,31 +21,31 @@ msgstr ""
|
|||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:41
|
#: lib/cannery_web/live/ammo_type_live/index.ex:41
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.ex:40
|
#: lib/cannery_web/live/ammo_type_live/show.ex:38
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:55
|
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:135
|
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||||
#: lib/cannery_web/live/tag_live/index.ex:40
|
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||||
msgid "%{name} deleted succesfully"
|
msgid "%{name} deleted succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:111
|
#: lib/cannery_web/live/invite_live/index.ex:109
|
||||||
msgid "%{name} disabled succesfully"
|
msgid "%{name} disabled succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:89
|
#: lib/cannery_web/live/invite_live/index.ex:87
|
||||||
msgid "%{name} enabled succesfully"
|
msgid "%{name} enabled succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:64
|
#: lib/cannery_web/live/container_live/index.ex:62
|
||||||
#: lib/cannery_web/live/container_live/show.ex:63
|
#: lib/cannery_web/live/container_live/show.ex:61
|
||||||
msgid "%{name} has been deleted"
|
msgid "%{name} has been deleted"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:69
|
#: lib/cannery_web/live/invite_live/index.ex:67
|
||||||
msgid "%{name} updated succesfully"
|
msgid "%{name} updated succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -58,23 +58,18 @@ msgid "%{name} updated successfully"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:28
|
#: lib/cannery_web/controllers/user_settings_controller.ex:29
|
||||||
msgid "A link to confirm your email change has been sent to the new address."
|
msgid "A link to confirm your email change has been sent to the new address."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:87
|
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||||
msgid "Ammo group created successfully"
|
#: lib/cannery_web/live/ammo_group_live/show.ex:50
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:34
|
|
||||||
msgid "Ammo group deleted succesfully"
|
msgid "Ammo group deleted succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:69
|
#: lib/cannery_web/live/ammo_group_live/form_component.ex:88
|
||||||
msgid "Ammo group updated successfully"
|
msgid "Ammo group updated successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -85,7 +80,7 @@ msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:29
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:46
|
#: lib/cannery_web/live/container_live/index.html.heex:46
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:37
|
#: lib/cannery_web/live/container_live/show.html.heex:37
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:38
|
#: lib/cannery_web/live/tag_live/index.html.heex:38
|
||||||
@ -98,19 +93,19 @@ msgid "Are you sure you want to delete the invite for %{name}?"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:120
|
#: lib/cannery_web/live/ammo_group_live/index.ex:177
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:66
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:71
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:75
|
#: lib/cannery_web/live/ammo_type_live/index.ex:140
|
||||||
msgid "Are you sure you want to delete this ammo?"
|
msgid "Are you sure you want to delete this ammo?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:112
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:146
|
||||||
msgid "Are you sure you want to delete your account?"
|
msgid "Are you sure you want to delete your account?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:86
|
#: lib/cannery_web/components/topbar.ex:84
|
||||||
msgid "Are you sure you want to log out?"
|
msgid "Are you sure you want to log out?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -120,12 +115,12 @@ msgid "Are you sure you want to make %{name} unlimited?"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:60
|
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
||||||
msgid "Email changed successfully."
|
msgid "Email changed successfully."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:22
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:23
|
||||||
msgid "If your email is in our system and it has not been confirmed yet, you will receive an email with instructions shortly."
|
msgid "If your email is in our system and it has not been confirmed yet, you will receive an email with instructions shortly."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -140,29 +135,29 @@ msgid "Logged out successfully."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_reset_password_controller.ex:43
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:46
|
||||||
msgid "Password reset successfully."
|
msgid "Password reset successfully."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:47
|
#: lib/cannery_web/controllers/user_settings_controller.ex:49
|
||||||
msgid "Password updated successfully."
|
msgid "Password updated successfully."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:71
|
#: lib/cannery_web/controllers/user_registration_controller.ex:74
|
||||||
msgid "Please check your email to verify your account"
|
msgid "Please check your email to verify your account"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:103
|
#: lib/cannery_web/live/home_live.ex:96
|
||||||
msgid "Register to setup %{name}"
|
msgid "Register to setup %{name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:44
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:48
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:55
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:173
|
#: 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/container_live/form_component.html.heex:52
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:30
|
#: 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/range_live/form_component.html.heex:42
|
||||||
@ -171,7 +166,7 @@ msgid "Saving..."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:78
|
#: lib/cannery_web/controllers/user_settings_controller.ex:95
|
||||||
msgid "Your account has been deleted"
|
msgid "Your account has been deleted"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -186,7 +181,7 @@ msgid "%{name} added successfully"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/show.ex:39
|
#: lib/cannery_web/live/container_live/show.ex:37
|
||||||
msgid "%{tag_name} has been removed from %{container_name}"
|
msgid "%{tag_name} has been removed from %{container_name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -206,17 +201,19 @@ msgid "Are you sure you want to unstage this ammo?"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/range_live/index.ex:70
|
#: lib/cannery_web/live/range_live/index.ex:68
|
||||||
msgid "Ammo group unstaged succesfully"
|
msgid "Ammo group unstaged succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:108
|
#: lib/cannery_web/live/ammo_group_live/show.ex:130
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:128
|
||||||
msgid "Are you sure you want to delete this shot record?"
|
msgid "Are you sure you want to delete this shot record?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/range_live/index.ex:56
|
#: lib/cannery_web/live/ammo_group_live/show.ex:78
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:54
|
||||||
msgid "Shot records deleted succesfully"
|
msgid "Shot records deleted succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -226,17 +223,17 @@ msgid "Shot records updated successfully"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:37
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:38
|
||||||
msgid "%{email} confirmed successfully."
|
msgid "%{email} confirmed successfully."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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"
|
msgid "Ammo moved to %{name} successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:123
|
#: lib/cannery_web/live/invite_live/index.ex:121
|
||||||
msgid "Copied to clipboard"
|
msgid "Copied to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -244,3 +241,31 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:58
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:58
|
||||||
msgid "%{name} removed successfully"
|
msgid "%{name} removed successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:15
|
||||||
|
#: 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:147
|
||||||
|
msgid "Ammo group created successfully"
|
||||||
|
msgid_plural "Ammo groups created successfully"
|
||||||
|
msgstr[0] ""
|
||||||
|
msgstr[1] ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
|
||||||
|
msgid "Are you sure you want to change your language?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:65
|
||||||
|
msgid "Language updated successfully."
|
||||||
|
msgstr ""
|
||||||
|
@ -16,18 +16,18 @@ msgid "Container must be empty before deleting"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:71
|
#: lib/cannery_web/live/container_live/index.ex:69
|
||||||
#: lib/cannery_web/live/container_live/show.ex:73
|
#: lib/cannery_web/live/container_live/show.ex:71
|
||||||
msgid "Could not delete %{name}: %{error}"
|
msgid "Could not delete %{name}: %{error}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:59
|
#: lib/cannery_web/live/container_live/index.ex:57
|
||||||
msgid "Could not find that container"
|
msgid "Could not find that container"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:67
|
#: lib/cannery_web/controllers/user_settings_controller.ex:84
|
||||||
msgid "Email change link is invalid or it has expired."
|
msgid "Email change link is invalid or it has expired."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ msgid "Error"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/error/error.html.heex:29
|
#: lib/cannery_web/templates/error/error.html.heex:28
|
||||||
msgid "Go back home"
|
msgid "Go back home"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -59,30 +59,31 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_registration/new.html.heex:16
|
#: 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_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:21
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:66
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:64
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:119
|
||||||
msgid "Oops, something went wrong! Please check the errors below."
|
msgid "Oops, something went wrong! Please check the errors below."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_reset_password_controller.ex:60
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:63
|
||||||
msgid "Reset password link is invalid or it has expired."
|
msgid "Reset password link is invalid or it has expired."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:25
|
#: lib/cannery_web/controllers/user_registration_controller.ex:25
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:53
|
#: lib/cannery_web/controllers/user_registration_controller.ex:56
|
||||||
msgid "Sorry, public registration is disabled"
|
msgid "Sorry, public registration is disabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:15
|
#: lib/cannery_web/controllers/user_registration_controller.ex:15
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:43
|
#: lib/cannery_web/controllers/user_registration_controller.ex:46
|
||||||
msgid "Sorry, this invite was not found or expired"
|
msgid "Sorry, this invite was not found or expired"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:82
|
#: lib/cannery_web/controllers/user_settings_controller.ex:99
|
||||||
msgid "Unable to delete user"
|
msgid "Unable to delete user"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -92,12 +93,12 @@ msgid "Unauthorized"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:53
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:54
|
||||||
msgid "User confirmation link is invalid or it has expired."
|
msgid "User confirmation link is invalid or it has expired."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:20
|
#: lib/cannery_web/live/invite_live/index.ex:18
|
||||||
msgid "You are not authorized to view this page"
|
msgid "You are not authorized to view this page"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -107,22 +108,22 @@ msgid "You are not authorized to view this page."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery/accounts/user.ex:128
|
#: lib/cannery/accounts/user.ex:130
|
||||||
msgid "did not change"
|
msgid "did not change"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery/accounts/user.ex:149
|
#: lib/cannery/accounts/user.ex:151
|
||||||
msgid "does not match password"
|
msgid "does not match password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery/accounts/user.ex:186
|
#: lib/cannery/accounts/user.ex:188
|
||||||
msgid "is not valid"
|
msgid "is not valid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery/accounts/user.ex:82
|
#: lib/cannery/accounts/user.ex:84
|
||||||
msgid "must have the @ sign and no spaces"
|
msgid "must have the @ sign and no spaces"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -157,3 +158,13 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:52
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:52
|
||||||
msgid "Tag could not be removed"
|
msgid "Tag could not be removed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:111
|
||||||
|
msgid "Invalid number of copies, must be between 1 and %{max}. Was %{multiplier}"
|
||||||
|
msgstr ""
|
||||||
|
226
priv/gettext/fr/LC_MESSAGES/actions.po
Normal file
226
priv/gettext/fr/LC_MESSAGES/actions.po
Normal file
@ -0,0 +1,226 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2022-04-20 18:02+0000\n"
|
||||||
|
"PO-Revision-Date: 2022-04-24 08:27+0000\n"
|
||||||
|
"Last-Translator: Antonin Dupont <pwet@dupon.in>\n"
|
||||||
|
"Language-Team: French <https://weblate.bubbletea.dev/projects/cannery/"
|
||||||
|
"actions/fr/>\n"
|
||||||
|
"Language: fr\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.12\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.
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:44
|
||||||
|
msgid "Add Ammo"
|
||||||
|
msgstr "ajouter munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:24
|
||||||
|
msgid "Add your first box!"
|
||||||
|
msgstr "Ajoutez votre première caisse !"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.html.heex:12
|
||||||
|
msgid "Add your first container!"
|
||||||
|
msgstr "Ajoutez votre premier conteneur !"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:12
|
||||||
|
msgid "Add your first type!"
|
||||||
|
msgstr "Ajoutez votre premier type !"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:15
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:44
|
||||||
|
msgid "Change email"
|
||||||
|
msgstr "Changer le mél"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:58
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:99
|
||||||
|
msgid "Change password"
|
||||||
|
msgstr "Changer le mot de passe"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:17
|
||||||
|
msgid "Create Invite"
|
||||||
|
msgstr "Créer une invitation"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:142
|
||||||
|
msgid "Delete User"
|
||||||
|
msgstr "Supprimer utilisateur"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:52
|
||||||
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:3
|
||||||
|
#: lib/cannery_web/templates/user_session/new.html.heex:45
|
||||||
|
msgid "Forgot your password?"
|
||||||
|
msgstr "Mot de passe oublié ?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:12
|
||||||
|
msgid "Invite someone new!"
|
||||||
|
msgstr "Invitez une nouvelle personne !"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:106
|
||||||
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:30
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:48
|
||||||
|
#: 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
|
||||||
|
msgid "Log in"
|
||||||
|
msgstr "Se connecter"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/index.html.heex:14
|
||||||
|
msgid "Make your first tag!"
|
||||||
|
msgstr "Faîtes votre premier tag !"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:42
|
||||||
|
msgid "New Ammo group"
|
||||||
|
msgstr "Nouveau groupe de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:17
|
||||||
|
msgid "New Ammo type"
|
||||||
|
msgstr "Nouveau type de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.html.heex:17
|
||||||
|
msgid "New Container"
|
||||||
|
msgstr "Nouveau conteneur"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/index.html.heex:19
|
||||||
|
msgid "New Tag"
|
||||||
|
msgstr "Nouveau tag"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:99
|
||||||
|
#: 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:42
|
||||||
|
#: 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
|
||||||
|
msgid "Register"
|
||||||
|
msgstr "S’enregistrer"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:3
|
||||||
|
#: lib/cannery_web/templates/user_confirmation/new.html.heex:16
|
||||||
|
msgid "Resend confirmation instructions"
|
||||||
|
msgstr "Renvoyer les instructions de confirmation"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:3
|
||||||
|
#: lib/cannery_web/templates/user_reset_password/edit.html.heex:34
|
||||||
|
msgid "Reset password"
|
||||||
|
msgstr "Réinitialisé le mot de passe"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "Save"
|
||||||
|
msgstr "Sauvegarder"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_reset_password/new.html.heex:16
|
||||||
|
msgid "Send instructions to reset password"
|
||||||
|
msgstr "Envoyer les instructions pour réinitialiser le mot de passe"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/show.html.heex:53
|
||||||
|
msgid "Why not add one?"
|
||||||
|
msgstr "Pourquoi pas en ajouter un ?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:52
|
||||||
|
msgid "Add"
|
||||||
|
msgstr "Ajouter"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:17
|
||||||
|
msgid "Stage ammo"
|
||||||
|
msgstr "Munition préparée"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:12
|
||||||
|
msgid "Why not get some ready to shoot?"
|
||||||
|
msgstr "Pourquoi pas en préparer pour tirer ?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:144
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:91
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:36
|
||||||
|
msgid "Record shots"
|
||||||
|
msgstr "Enregistrer des tirs"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:55
|
||||||
|
msgid "Ammo Details"
|
||||||
|
msgstr "Détails de la munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:89
|
||||||
|
msgid "Add another container!"
|
||||||
|
msgstr "Ajoutez un autre conteneur !"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:85
|
||||||
|
msgid "Move containers"
|
||||||
|
msgstr "Déplacer les conteneurs"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:127
|
||||||
|
msgid "Select"
|
||||||
|
msgstr "Sélectionner"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:33
|
||||||
|
msgid "Copy to clipboard"
|
||||||
|
msgstr "Copier dans le presse-papier"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:18
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:36
|
||||||
|
msgid "add a container first"
|
||||||
|
msgstr "ajouter un conteneur en premier"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:66
|
||||||
|
msgid "Create"
|
||||||
|
msgstr "Créer"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:113
|
||||||
|
msgid "Change Language"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:134
|
||||||
|
msgid "Change language"
|
||||||
|
msgstr ""
|
911
priv/gettext/fr/LC_MESSAGES/default.po
Normal file
911
priv/gettext/fr/LC_MESSAGES/default.po
Normal file
@ -0,0 +1,911 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2022-04-20 18:02+0000\n"
|
||||||
|
"PO-Revision-Date: 2022-04-25 00:12+0000\n"
|
||||||
|
"Last-Translator: shibao <shibao@bubbletea.dev>\n"
|
||||||
|
"Language-Team: French <https://weblate.bubbletea.dev/projects/cannery/"
|
||||||
|
"default/fr/>\n"
|
||||||
|
"Language: fr\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.12\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.
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:56
|
||||||
|
msgid "%{name} lets you easily keep an eye on your ammo levels before and after range day"
|
||||||
|
msgstr ""
|
||||||
|
"%{name} vous permet de facilement garder un œil sur votre niveau de munition "
|
||||||
|
"avant et après une journée de stand"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:78
|
||||||
|
msgid "Access from any internet-capable device"
|
||||||
|
msgstr "Accédez depuis n’importe quel appareil connecté à internet"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:90
|
||||||
|
msgid "Admins"
|
||||||
|
msgstr "Administrateur·ices"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:92
|
||||||
|
msgid "Admins:"
|
||||||
|
msgstr "Administrateur·ices :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:50
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:3
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:80
|
||||||
|
msgid "Ammo"
|
||||||
|
msgstr "Munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:21
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:80
|
||||||
|
msgid "Ammo type"
|
||||||
|
msgstr "Type de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:87
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:100
|
||||||
|
msgid "Average Price paid"
|
||||||
|
msgstr "Prix acheté moyen"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/form_component.ex:54
|
||||||
|
msgid "Background color"
|
||||||
|
msgstr "Couleur de fond"
|
||||||
|
|
||||||
|
#, 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:71
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:53
|
||||||
|
msgid "Blank"
|
||||||
|
msgstr "Vide"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:68
|
||||||
|
msgid "Brass"
|
||||||
|
msgstr "Cuivre"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:39
|
||||||
|
msgid "Bullet core"
|
||||||
|
msgstr "Noyau de balle"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:38
|
||||||
|
msgid "Bullet type"
|
||||||
|
msgstr "Type de balle"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:41
|
||||||
|
msgid "Caliber"
|
||||||
|
msgstr "Calibre"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:40
|
||||||
|
msgid "Cartridge"
|
||||||
|
msgstr "Cartouche"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:42
|
||||||
|
msgid "Case material"
|
||||||
|
msgstr "Matériau de la caisse"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "Container"
|
||||||
|
msgstr "Conteneur"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:44
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:36
|
||||||
|
#: lib/cannery_web/live/container_live/index.html.heex:3
|
||||||
|
msgid "Containers"
|
||||||
|
msgstr "Conteneurs"
|
||||||
|
|
||||||
|
#, 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:72
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:54
|
||||||
|
msgid "Corrosive"
|
||||||
|
msgstr "Corrosive"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:27
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:81
|
||||||
|
msgid "Count"
|
||||||
|
msgstr "Quantité"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/ammo_group_card.ex:29
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:8
|
||||||
|
msgid "Count:"
|
||||||
|
msgstr "Quantité :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:24
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:27
|
||||||
|
msgid "Description"
|
||||||
|
msgstr "Description"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/container_card.ex:31
|
||||||
|
#: lib/cannery_web/live/container_live/show.html.heex:8
|
||||||
|
msgid "Description:"
|
||||||
|
msgstr "Description :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:59
|
||||||
|
msgid "Disable"
|
||||||
|
msgstr "Désactiver"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:53
|
||||||
|
msgid "Easy to Use:"
|
||||||
|
msgstr "Simple à utiliser :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:38
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:40
|
||||||
|
msgid "Edit Ammo group"
|
||||||
|
msgstr "Éditer le groupe de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:23
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.ex:45
|
||||||
|
msgid "Edit Ammo type"
|
||||||
|
msgstr "Éditer le type de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:33
|
||||||
|
msgid "Edit Invite"
|
||||||
|
msgstr "Modifier l’invitation"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/index.ex:21
|
||||||
|
msgid "Edit Tag"
|
||||||
|
msgstr "Modifier le tag"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:63
|
||||||
|
msgid "Enable"
|
||||||
|
msgstr "Activer"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:35
|
||||||
|
msgid "Example bullet type abbreviations"
|
||||||
|
msgstr "Exemple d’abréviations de type de balle"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:40
|
||||||
|
msgid "FMJ"
|
||||||
|
msgstr "FMJ"
|
||||||
|
|
||||||
|
#, 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:65
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:47
|
||||||
|
msgid "Grains"
|
||||||
|
msgstr "Graines"
|
||||||
|
|
||||||
|
#, 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:70
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:52
|
||||||
|
msgid "Incendiary"
|
||||||
|
msgstr "Incendiaire"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:87
|
||||||
|
msgid "Instance Information"
|
||||||
|
msgstr "Information de l’instance"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/invite_card.ex:25
|
||||||
|
msgid "Invite Disabled"
|
||||||
|
msgstr "Invitation désactivée"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:118
|
||||||
|
msgid "Invite Only"
|
||||||
|
msgstr "Uniquement sur invitation"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:69
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:41
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:3
|
||||||
|
msgid "Invites"
|
||||||
|
msgstr "Invitations"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_session/new.html.heex:28
|
||||||
|
msgid "Keep me logged in for 60 days"
|
||||||
|
msgstr "Me garder authentifié durant 60 jours"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:69
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:42
|
||||||
|
msgid "Location"
|
||||||
|
msgstr "Localisation"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/container_card.ex:43
|
||||||
|
#: lib/cannery_web/live/container_live/show.html.heex:20
|
||||||
|
msgid "Location:"
|
||||||
|
msgstr "Localisation :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:38
|
||||||
|
msgid "Magazine, Clip, Ammo Box, etc"
|
||||||
|
msgstr "Chargeur, lame-chargeur, boite de munition, etc."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:56
|
||||||
|
msgid "Manage"
|
||||||
|
msgstr "Gérer"
|
||||||
|
|
||||||
|
#, 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:73
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:55
|
||||||
|
msgid "Manufacturer"
|
||||||
|
msgstr "Fabricant"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:31
|
||||||
|
msgid "Metal ammo can with the anime girl sticker"
|
||||||
|
msgstr "Boite de munition avec le sticker de fille d’animation"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:23
|
||||||
|
msgid "My cool ammo can"
|
||||||
|
msgstr "Ma superbe boite de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "Name"
|
||||||
|
msgstr "Nom"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:29
|
||||||
|
msgid "New Ammo type"
|
||||||
|
msgstr "Nouveau type de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:31
|
||||||
|
msgid "New Container"
|
||||||
|
msgstr "Nouveau conteneur"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:37
|
||||||
|
msgid "New Invite"
|
||||||
|
msgstr "Nouvelle invitation"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/index.ex:27
|
||||||
|
msgid "New Tag"
|
||||||
|
msgstr "Nouveau tag"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:8
|
||||||
|
msgid "No Ammo"
|
||||||
|
msgstr "Aucune munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:8
|
||||||
|
msgid "No Ammo Types"
|
||||||
|
msgstr "Aucun type de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:120
|
||||||
|
msgid "No ammo for this type"
|
||||||
|
msgstr "Aucune munition pour ce type"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/show.html.heex:78
|
||||||
|
msgid "No ammo groups in this container"
|
||||||
|
msgstr "Aucun groupe de munition pour ce conteneur"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.html.heex:8
|
||||||
|
msgid "No containers"
|
||||||
|
msgstr "Aucun conteneur"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:8
|
||||||
|
msgid "No invites"
|
||||||
|
msgstr "Aucune invitation"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:30
|
||||||
|
#: lib/cannery_web/live/tag_live/index.html.heex:10
|
||||||
|
msgid "No tags"
|
||||||
|
msgstr "Aucun tag"
|
||||||
|
|
||||||
|
#, 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.ex:88
|
||||||
|
#: lib/cannery_web/live/range_live/form_component.html.heex:29
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:82
|
||||||
|
msgid "Notes"
|
||||||
|
msgstr "Notes"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/ammo_group_card.ex:35
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:24
|
||||||
|
msgid "Notes:"
|
||||||
|
msgstr "Notes :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:46
|
||||||
|
msgid "On the bookshelf"
|
||||||
|
msgstr "Sur l’étagère"
|
||||||
|
|
||||||
|
#, 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:66
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:48
|
||||||
|
msgid "Pressure"
|
||||||
|
msgstr "Pression"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:34
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:82
|
||||||
|
msgid "Price paid"
|
||||||
|
msgstr "Prix payé"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/ammo_group_card.ex:47
|
||||||
|
msgid "Price paid:"
|
||||||
|
msgstr "Prix payé :"
|
||||||
|
|
||||||
|
#, 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:67
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:49
|
||||||
|
msgid "Primer type"
|
||||||
|
msgstr "Type d’amorce"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:117
|
||||||
|
msgid "Public Signups"
|
||||||
|
msgstr "Enregistrements publics"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:65
|
||||||
|
msgid "Secure:"
|
||||||
|
msgstr "Sécurisé :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:68
|
||||||
|
msgid "Self-host your own instance, or use an instance from someone you trust."
|
||||||
|
msgstr ""
|
||||||
|
"Auto-hébergez votre propre instance ou utilisez celle d’une personne à "
|
||||||
|
"laquelle vous faîtes confiance."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:79
|
||||||
|
msgid "Set Unlimited"
|
||||||
|
msgstr "Mettre illimité"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:10
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:3
|
||||||
|
msgid "Settings"
|
||||||
|
msgstr "Paramètres"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:39
|
||||||
|
msgid "Show Ammo group"
|
||||||
|
msgstr "Montrer le groupe de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.ex:44
|
||||||
|
msgid "Show Ammo type"
|
||||||
|
msgstr "Montrer le type de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:75
|
||||||
|
msgid "Simple:"
|
||||||
|
msgstr "Simple :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:47
|
||||||
|
msgid "Steel"
|
||||||
|
msgstr "Acier"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:103
|
||||||
|
msgid "Stored in"
|
||||||
|
msgstr "Est stocké dans"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:38
|
||||||
|
#: lib/cannery_web/live/tag_live/index.ex:32
|
||||||
|
#: lib/cannery_web/live/tag_live/index.html.heex:3
|
||||||
|
msgid "Tags"
|
||||||
|
msgstr "Tags"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/index.html.heex:6
|
||||||
|
msgid "Tags can be added to your containers to help you organize"
|
||||||
|
msgstr ""
|
||||||
|
"Des tags peuvent être ajouté sur vos conteneurs pour vous aider à vous "
|
||||||
|
"organiser"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/tag_live/form_component.ex:60
|
||||||
|
msgid "Text color"
|
||||||
|
msgstr "Couleur du texte"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:44
|
||||||
|
msgid "The self-hosted firearm tracker website"
|
||||||
|
msgstr "Le site web de suivi d’arme à feux auto-hébergé"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:108
|
||||||
|
msgid "This ammo group is not in a container"
|
||||||
|
msgstr "Ce groupe de munition n’est pas dans un conteneur"
|
||||||
|
|
||||||
|
#, 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:69
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:51
|
||||||
|
msgid "Tracer"
|
||||||
|
msgstr "Traceuse"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:68
|
||||||
|
#: lib/cannery_web/live/container_live/form_component.html.heex:35
|
||||||
|
msgid "Type"
|
||||||
|
msgstr "Type"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/container_card.ex:37
|
||||||
|
#: lib/cannery_web/live/container_live/show.html.heex:14
|
||||||
|
msgid "Type:"
|
||||||
|
msgstr "Type :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:119
|
||||||
|
msgid "Users"
|
||||||
|
msgstr "Utilisateurs"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/invite_card.ex:20
|
||||||
|
msgid "Uses Left:"
|
||||||
|
msgstr "Utilisations restantes :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/form_component.html.heex:24
|
||||||
|
msgid "Uses left"
|
||||||
|
msgstr "Utilisations restantes"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:40
|
||||||
|
msgid "Welcome to %{name}"
|
||||||
|
msgstr "Bienvenue à %{name}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:69
|
||||||
|
msgid "Your data stays with you, period"
|
||||||
|
msgstr "Vos données restent avec vous, point final"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/show.html.heex:49
|
||||||
|
msgid "No tags for this container"
|
||||||
|
msgstr "Aucun tag pour ce conteneur"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:62
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:84
|
||||||
|
msgid "Range"
|
||||||
|
msgstr "Portée"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:3
|
||||||
|
msgid "Range day"
|
||||||
|
msgstr "Journée de stand"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:89
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:83
|
||||||
|
msgid "Date"
|
||||||
|
msgstr "Date"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/form_component.html.heex:21
|
||||||
|
msgid "Shots fired"
|
||||||
|
msgstr "Tirs réalisés"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:8
|
||||||
|
msgid "No ammo staged"
|
||||||
|
msgstr "Aucune munition sélectionnée"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:82
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:33
|
||||||
|
msgid "Stage for range"
|
||||||
|
msgstr "Sélectionné pour le stand"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:81
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:32
|
||||||
|
msgid "Unstage from range"
|
||||||
|
msgstr "Désélectionner pour le stand"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:3
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:26
|
||||||
|
msgid "Record shots"
|
||||||
|
msgstr "Tirs enregistrés"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.html.heex:3
|
||||||
|
msgid "Ammo Types"
|
||||||
|
msgstr "Types de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:49
|
||||||
|
msgid "Ammo groups"
|
||||||
|
msgstr "Groupes de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:38
|
||||||
|
#: lib/cannery_web/live/range_live/form_component.html.heex:36
|
||||||
|
msgid "Date (UTC)"
|
||||||
|
msgstr "Date (UTC)"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:37
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:32
|
||||||
|
msgid "Edit Shot Records"
|
||||||
|
msgstr "Modifier les enregistrements de tir"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:38
|
||||||
|
msgid "New Shot Records"
|
||||||
|
msgstr "Nouveaux enregistrements de tir"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:48
|
||||||
|
msgid "No shots recorded"
|
||||||
|
msgstr "Aucun tir enregistré"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:21
|
||||||
|
msgid "Rounds left"
|
||||||
|
msgstr "Cartouches restantes"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:87
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:81
|
||||||
|
msgid "Rounds shot"
|
||||||
|
msgstr "Cartouches tirées"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:44
|
||||||
|
msgid "Shot Records"
|
||||||
|
msgstr "Enregistrements de tir"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:32
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:38
|
||||||
|
msgid "Move Ammo group"
|
||||||
|
msgstr "Déplacer le groupe de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:80
|
||||||
|
msgid "Move ammo"
|
||||||
|
msgstr "Déplacer munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:85
|
||||||
|
msgid "No other containers"
|
||||||
|
msgstr "Aucun autre conteneur"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:53
|
||||||
|
msgid "Shot log"
|
||||||
|
msgstr "Évènements de tir"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/ammo_group_card.ex:48
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:118
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:37
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:44
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:114
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:104
|
||||||
|
msgid "$%{amount}"
|
||||||
|
msgstr "%{amount} $"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:75
|
||||||
|
msgid "Bimetal"
|
||||||
|
msgstr "Bi-métal"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:43
|
||||||
|
msgid "Jacket type"
|
||||||
|
msgstr "Type de douille"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:44
|
||||||
|
msgid "Muzzle velocity"
|
||||||
|
msgstr "Vélocité du canon"
|
||||||
|
|
||||||
|
#, 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:61
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:46
|
||||||
|
msgid "Powder grains per charge"
|
||||||
|
msgstr "Graines de poudre par charge"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:45
|
||||||
|
msgid "Powder type"
|
||||||
|
msgstr "Type de poudre"
|
||||||
|
|
||||||
|
#, 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:74
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:56
|
||||||
|
msgid "UPC"
|
||||||
|
msgstr "UPC"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:78
|
||||||
|
msgid "Confirm new password"
|
||||||
|
msgstr "Confirmez le nouveau mot de passe"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:32
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:87
|
||||||
|
msgid "Current password"
|
||||||
|
msgstr "Mot de passe actuel"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:71
|
||||||
|
msgid "New password"
|
||||||
|
msgstr "Nouveau mot de passe"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:141
|
||||||
|
msgid "Stage"
|
||||||
|
msgstr "Sélectionné"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:141
|
||||||
|
msgid "Unstage"
|
||||||
|
msgstr "Désélectionner"
|
||||||
|
|
||||||
|
#, 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:68
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:50
|
||||||
|
msgid "Firing type"
|
||||||
|
msgstr "Type d’allumage"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/layout/live.html.heex:50
|
||||||
|
msgid "Reconnecting..."
|
||||||
|
msgstr "Reconnexion en cours…"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/layout/live.html.heex:37
|
||||||
|
msgid "Loading..."
|
||||||
|
msgstr "Chargement en cours…"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:27
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:95
|
||||||
|
msgid "Edit %{name}"
|
||||||
|
msgstr "Éditer %{name}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:46
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:96
|
||||||
|
msgid "Edit %{name} tags"
|
||||||
|
msgstr "Éditer les tags de %{name}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/container_card.ex:50
|
||||||
|
msgid "Rounds:"
|
||||||
|
msgstr "Cartouches :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:94
|
||||||
|
msgid "Show %{name}"
|
||||||
|
msgstr "Montrer %{name}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:113
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:110
|
||||||
|
msgid "No cost information"
|
||||||
|
msgstr "Aucune information de prix"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:83
|
||||||
|
msgid "% left"
|
||||||
|
msgstr "% restante"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:43
|
||||||
|
msgid "Current value:"
|
||||||
|
msgstr "Valeur actuelle :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:36
|
||||||
|
msgid "Original cost:"
|
||||||
|
msgstr "Coût original :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:13
|
||||||
|
msgid "Original count:"
|
||||||
|
msgstr "Nombre original :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:18
|
||||||
|
msgid "Percentage left:"
|
||||||
|
msgstr "Pourcentage restant :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:116
|
||||||
|
msgid "Rounds used"
|
||||||
|
msgstr "Cartouches utilisées"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:75
|
||||||
|
msgid "Current # of rounds:"
|
||||||
|
msgstr "Quantité actuelle de cartouches :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:86
|
||||||
|
msgid "Total # of rounds"
|
||||||
|
msgstr "Quantité de cartouches"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:83
|
||||||
|
msgid "Total rounds shot:"
|
||||||
|
msgstr "Nombre totale de cartouches tirées :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:8
|
||||||
|
msgid "Confirm your account"
|
||||||
|
msgstr "Confirmez votre compte"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:9
|
||||||
|
msgid "Forgot your password?"
|
||||||
|
msgstr "Mot de passe oublié ?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_session_controller.ex:8
|
||||||
|
msgid "Log in"
|
||||||
|
msgstr "Se connecter"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:35
|
||||||
|
msgid "Register"
|
||||||
|
msgstr "S’enregistrer"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:36
|
||||||
|
msgid "Reset your password"
|
||||||
|
msgstr "Réinitialiser votre mot de passe"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:36
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:26
|
||||||
|
msgid "Record Shots"
|
||||||
|
msgstr "Enregistrer des tirs"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:58
|
||||||
|
msgid "Copies"
|
||||||
|
msgstr "Exemplaires"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:34
|
||||||
|
msgid "Ammo types"
|
||||||
|
msgstr "Types de munition"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:86
|
||||||
|
msgid "Added on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/ammo_group_card.ex:41
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:30
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:91
|
||||||
|
msgid "Added on:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/user_card.ex:30
|
||||||
|
msgid "User registered on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||||
|
msgid "English"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||||
|
msgid "French"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:37
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:129
|
||||||
|
msgid "German"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_registration/new.html.heex:33
|
||||||
|
msgid "Language"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:139
|
||||||
|
msgid "Get involved!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:156
|
||||||
|
msgid "Help translate"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:165
|
||||||
|
msgid "Report bugs or request features"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:147
|
||||||
|
msgid "View the source code"
|
||||||
|
msgstr ""
|
116
priv/gettext/fr/LC_MESSAGES/emails.po
Normal file
116
priv/gettext/fr/LC_MESSAGES/emails.po
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2022-04-20 18:02+0000\n"
|
||||||
|
"PO-Revision-Date: 2022-04-22 18:37+0000\n"
|
||||||
|
"Last-Translator: Antonin Dupont <pwet@dupon.in>\n"
|
||||||
|
"Language-Team: French <https://weblate.bubbletea.dev/projects/cannery/emails/"
|
||||||
|
"fr/>\n"
|
||||||
|
"Language: fr\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.
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/email.ex:30
|
||||||
|
msgid "Confirm your %{name} account"
|
||||||
|
msgstr "Confirmer votre compte %{name}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "Hi %{email},"
|
||||||
|
msgstr "Salut %{email},"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/confirm_email.txt.eex:10
|
||||||
|
msgid "If you didn't create an account at %{url}, please ignore this."
|
||||||
|
msgstr "Si vous n’avez créé un compte à %{url}, veuillez ignorer ceci."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/reset_password.txt.eex:8
|
||||||
|
#: lib/cannery_web/templates/email/update_email.txt.eex:8
|
||||||
|
msgid "If you didn't request this change from %{url}, please ignore this."
|
||||||
|
msgstr ""
|
||||||
|
"Si vous n’avez pas demandé ce changement depuis %{url}, veuillez ignorer "
|
||||||
|
"ceci."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/email.ex:37
|
||||||
|
msgid "Reset your %{name} password"
|
||||||
|
msgstr "Réinitialiser votre mot de passe %{name}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/email.ex:44
|
||||||
|
msgid "Update your %{name} email"
|
||||||
|
msgstr "Mettre à jour votre mél %{name}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/confirm_email.html.eex:9
|
||||||
|
msgid "Welcome to %{name}!"
|
||||||
|
msgstr "Bienvenue à %{name} !"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/confirm_email.txt.eex:4
|
||||||
|
msgid "Welcome to %{name}%!"
|
||||||
|
msgstr "Bienvenue à %{name}% !"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/update_email.html.eex:8
|
||||||
|
#: lib/cannery_web/templates/email/update_email.txt.eex:4
|
||||||
|
msgid "You can change your email by visiting the URL below:"
|
||||||
|
msgstr "Vous pouvez changer votre mél en consultant l’URL ci-dessous :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/confirm_email.html.eex:14
|
||||||
|
#: lib/cannery_web/templates/email/confirm_email.txt.eex:6
|
||||||
|
msgid "You can confirm your account by visiting the URL below:"
|
||||||
|
msgstr "Vous pouvez confirmer votre compte en consultant l’URL ci-dessous :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/reset_password.html.eex:8
|
||||||
|
#: lib/cannery_web/templates/email/reset_password.txt.eex:4
|
||||||
|
msgid "You can reset your password by visiting the URL below:"
|
||||||
|
msgstr ""
|
||||||
|
"Vous pouvez réinitialiser votre mot de passe en visitant l’URL ci-dessous :"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/confirm_email.html.eex:22
|
||||||
|
msgid "If you didn't create an account at %{name}, please ignore this."
|
||||||
|
msgstr "Si vous n’avez pas créé de compte à %{name}, veuillez ignorer ceci."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/email/reset_password.html.eex:16
|
||||||
|
#: lib/cannery_web/templates/email/update_email.html.eex:16
|
||||||
|
msgid "If you didn't request this change from %{name}, please ignore this."
|
||||||
|
msgstr ""
|
||||||
|
"Si vous n’avez pas demandé ce changement depuis %{name}, veuillez ignorer "
|
||||||
|
"ceci."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/layout/email.txt.eex:9
|
||||||
|
msgid "This email was sent from %{name} at %{url}, the self-hosted firearm tracker website."
|
||||||
|
msgstr ""
|
||||||
|
"Ce mél a été envoyé depuis %{name} à %{url}, le site web de suivi d’arme à "
|
||||||
|
"feux."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/layout/email.html.heex:13
|
||||||
|
msgid "This email was sent from %{name}, the self-hosted firearm tracker website."
|
||||||
|
msgstr "Ce mél a été envoyé depuis %{name}, le site web de suivi d’arme à feu."
|
187
priv/gettext/fr/LC_MESSAGES/errors.po
Normal file
187
priv/gettext/fr/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-20 18:02+0000\n"
|
||||||
|
"PO-Revision-Date: 2022-04-24 08:27+0000\n"
|
||||||
|
"Last-Translator: Antonin Dupont <pwet@dupon.in>\n"
|
||||||
|
"Language-Team: French <https://weblate.bubbletea.dev/projects/cannery/errors/"
|
||||||
|
"fr/>\n"
|
||||||
|
"Language: fr\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.12\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.
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/containers.ex:122
|
||||||
|
msgid "Container must be empty before deleting"
|
||||||
|
msgstr "Le conteneur doit être vide pour être supprimé"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:69
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:71
|
||||||
|
msgid "Could not delete %{name}: %{error}"
|
||||||
|
msgstr "Impossible de supprimer %{name} : %{error}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:57
|
||||||
|
msgid "Could not find that container"
|
||||||
|
msgstr "Impossible de trouver ce conteneur"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:84
|
||||||
|
msgid "Email change link is invalid or it has expired."
|
||||||
|
msgstr "Le lien de changement de mél est invalide ou a expiré."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/error/error.html.heex:8
|
||||||
|
msgid "Error"
|
||||||
|
msgstr "Erreur"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/error/error.html.heex:28
|
||||||
|
msgid "Go back home"
|
||||||
|
msgstr "Retour au menu principal"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/views/error_view.ex:11
|
||||||
|
msgid "Internal Server Error"
|
||||||
|
msgstr "Erreur interne du serveur"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_session_controller.ex:17
|
||||||
|
msgid "Invalid email or password"
|
||||||
|
msgstr "Mél ou mot de passe invalide"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/views/error_view.ex:9
|
||||||
|
msgid "Not found"
|
||||||
|
msgstr "Pas trouvé"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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:21
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:64
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:119
|
||||||
|
msgid "Oops, something went wrong! Please check the errors below."
|
||||||
|
msgstr ""
|
||||||
|
"Oups, quelque chose s’est mal passé ! Veuillez vérifier les erreurs en "
|
||||||
|
"dessous."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:63
|
||||||
|
msgid "Reset password link is invalid or it has expired."
|
||||||
|
msgstr "Le lien de réinitialisation de mot de passe est invalide ou expiré."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:25
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:56
|
||||||
|
msgid "Sorry, public registration is disabled"
|
||||||
|
msgstr "Désolé, l’enregistrement public est désactivé"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:15
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:46
|
||||||
|
msgid "Sorry, this invite was not found or expired"
|
||||||
|
msgstr "Désolé, cette invitation n’est pas trouvée ou est expirée"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:99
|
||||||
|
msgid "Unable to delete user"
|
||||||
|
msgstr "Impossible de supprimer l’utilisateur·ice"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/views/error_view.ex:10
|
||||||
|
msgid "Unauthorized"
|
||||||
|
msgstr "Non autorisé·e"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:54
|
||||||
|
msgid "User confirmation link is invalid or it has expired."
|
||||||
|
msgstr "Le lien de confirmation d’utilisateur·ice est invalide ou a expiré."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:18
|
||||||
|
msgid "You are not authorized to view this page"
|
||||||
|
msgstr "Vous n’êtes pas autorisé·e à voir cette page"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_auth.ex:177
|
||||||
|
msgid "You are not authorized to view this page."
|
||||||
|
msgstr "Vous n’êtes pas autorisé·e à voir cette page."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/user.ex:130
|
||||||
|
msgid "did not change"
|
||||||
|
msgstr "est inchangé"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/user.ex:151
|
||||||
|
msgid "does not match password"
|
||||||
|
msgstr "le mot de passe ne correspond pas"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/user.ex:188
|
||||||
|
msgid "is not valid"
|
||||||
|
msgstr "n’est pas valide"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/accounts/user.ex:84
|
||||||
|
msgid "must have the @ sign and no spaces"
|
||||||
|
msgstr "doit contenir le symbole @ et aucune espace"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/tags.ex:40
|
||||||
|
msgid "Tag not found"
|
||||||
|
msgstr "Tag pas trouvé"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:30
|
||||||
|
msgid "Tag could not be added"
|
||||||
|
msgstr "Le tag n’a pas pu être ajouté"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/activity_log.ex:125
|
||||||
|
msgid "Count must be at least 1"
|
||||||
|
msgstr "Le nombre doit être au moins égal à 1"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery/activity_log.ex:73
|
||||||
|
#: lib/cannery/activity_log.ex:120
|
||||||
|
msgid "Count must be less than %{count}"
|
||||||
|
msgstr "La quantité doit être inférieur à %{count}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_auth.ex:39
|
||||||
|
#: lib/cannery_web/controllers/user_auth.ex:161
|
||||||
|
msgid "You must confirm your account and log in to access this page."
|
||||||
|
msgstr ""
|
||||||
|
"Vous devez d’abord confirmer votre compte et vous connecter pour accéder à "
|
||||||
|
"cette page."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:52
|
||||||
|
msgid "Tag could not be removed"
|
||||||
|
msgstr "Le tag n’a pas pu être retiré"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.ex:126
|
||||||
|
msgid "Could not parse number of copies"
|
||||||
|
msgstr "Impossible d'analyser le nombre de copies"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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 "Nombre de copies invalide, doit être 1 et %{max}. Été %{multiplier}"
|
292
priv/gettext/fr/LC_MESSAGES/prompts.po
Normal file
292
priv/gettext/fr/LC_MESSAGES/prompts.po
Normal file
@ -0,0 +1,292 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2022-04-20 18:02+0000\n"
|
||||||
|
"PO-Revision-Date: 2022-04-24 08:27+0000\n"
|
||||||
|
"Last-Translator: Antonin Dupont <pwet@dupon.in>\n"
|
||||||
|
"Language-Team: French <https://weblate.bubbletea.dev/projects/cannery/"
|
||||||
|
"prompts/fr/>\n"
|
||||||
|
"Language: fr\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.12\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.
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "%{name} created successfully"
|
||||||
|
msgstr "créé avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:41
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.ex:38
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||||
|
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||||
|
msgid "%{name} deleted succesfully"
|
||||||
|
msgstr "%{name} supprimé avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:109
|
||||||
|
msgid "%{name} disabled succesfully"
|
||||||
|
msgstr "%{name} supprimé·e avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:87
|
||||||
|
msgid "%{name} enabled succesfully"
|
||||||
|
msgstr "%{name} activé·e avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/index.ex:62
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:61
|
||||||
|
msgid "%{name} has been deleted"
|
||||||
|
msgstr "%{name} a été supprimé·e"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:67
|
||||||
|
msgid "%{name} updated succesfully"
|
||||||
|
msgstr "%{name} mis à jour avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "%{name} updated successfully"
|
||||||
|
msgstr "%{name} mis à jour avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:29
|
||||||
|
msgid "A link to confirm your email change has been sent to the new address."
|
||||||
|
msgstr ""
|
||||||
|
"Un lien pour confirmer votre changement de mél a été envoyé à la nouvelle "
|
||||||
|
"adresse."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:50
|
||||||
|
msgid "Ammo group deleted succesfully"
|
||||||
|
msgstr "Groupe de munition supprimé avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.ex:88
|
||||||
|
msgid "Ammo group updated successfully"
|
||||||
|
msgstr "Groupe de munition mis à jour avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:102
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:131
|
||||||
|
msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
||||||
|
msgstr ""
|
||||||
|
"Êtes-vous certain·e de supprimer %{email} ? Cette action est définitive !"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
|
||||||
|
#: 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
|
||||||
|
msgid "Are you sure you want to delete %{name}?"
|
||||||
|
msgstr "Êtes-vous certain·e de supprimer %{name} ?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:49
|
||||||
|
msgid "Are you sure you want to delete the invite for %{name}?"
|
||||||
|
msgstr "Êtes-vous certain·e de supprimer l’invitation pour %{name} ?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.ex:177
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:71
|
||||||
|
#: lib/cannery_web/live/ammo_type_live/index.ex:140
|
||||||
|
msgid "Are you sure you want to delete this ammo?"
|
||||||
|
msgstr "Êtes-vous certain·e de supprimer cette munition ?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:146
|
||||||
|
msgid "Are you sure you want to delete your account?"
|
||||||
|
msgstr "Êtes-vous certain·e de supprimer votre compte ?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/topbar.ex:84
|
||||||
|
msgid "Are you sure you want to log out?"
|
||||||
|
msgstr "Êtes-vous certain·e de vouloir vous déconnecter ?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.html.heex:74
|
||||||
|
msgid "Are you sure you want to make %{name} unlimited?"
|
||||||
|
msgstr "Êtes-vous certain·e de vouloir rendre %{name} illimité ?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
||||||
|
msgid "Email changed successfully."
|
||||||
|
msgstr "Mél changé avec succès."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:23
|
||||||
|
msgid "If your email is in our system and it has not been confirmed yet, you will receive an email with instructions shortly."
|
||||||
|
msgstr ""
|
||||||
|
"Si votre mél est dans notre système et n’a pas encore été confirmé, vous "
|
||||||
|
"recevrez un mél avec les instructions sous peu."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:24
|
||||||
|
msgid "If your email is in our system, you will receive instructions to reset your password shortly."
|
||||||
|
msgstr ""
|
||||||
|
"Si votre mél est dans notre système, vous recevrez les instructions pour "
|
||||||
|
"réinitialiser votre mot de passe sous peu."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_session_controller.ex:23
|
||||||
|
msgid "Logged out successfully."
|
||||||
|
msgstr "Déconnecté avec succès."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:46
|
||||||
|
msgid "Password reset successfully."
|
||||||
|
msgstr "Mot de passe réinitialiser avec succès."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:49
|
||||||
|
msgid "Password updated successfully."
|
||||||
|
msgstr "Mot de passe mis à jour avec succès."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_registration_controller.ex:74
|
||||||
|
msgid "Please check your email to verify your account"
|
||||||
|
msgstr "Veuillez vérifier votre mél pour confirmer votre compte"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/home_live.ex:96
|
||||||
|
msgid "Register to setup %{name}"
|
||||||
|
msgstr "S’enregistrer pour mettre en place %{name}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: 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
|
||||||
|
msgid "Saving..."
|
||||||
|
msgstr "Sauvegarde en cours…"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:95
|
||||||
|
msgid "Your account has been deleted"
|
||||||
|
msgstr "Votre compte a été supprimé"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:16
|
||||||
|
msgid "Are you sure you want to remove the %{tag_name} tag from %{container_name}?"
|
||||||
|
msgstr ""
|
||||||
|
"Êtes-vous certain·e de vouloir retirer le tag %{tag_name} de "
|
||||||
|
"%{container_name} ?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:36
|
||||||
|
msgid "%{name} added successfully"
|
||||||
|
msgstr "%{name} a été ajouté avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/show.ex:37
|
||||||
|
msgid "%{tag_name} has been removed from %{container_name}"
|
||||||
|
msgstr "%{tag_name} a été retiré de %{container_name}"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.html.heex:54
|
||||||
|
msgid "Adding..."
|
||||||
|
msgstr "Ajout en cours…"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/add_shot_group_component.ex:68
|
||||||
|
msgid "Shots recorded successfully"
|
||||||
|
msgstr "Tirs enregistré avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.html.heex:29
|
||||||
|
msgid "Are you sure you want to unstage this ammo?"
|
||||||
|
msgstr "Êtes-vous certain·e de vouloir désélectionner cette munition ?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:68
|
||||||
|
msgid "Ammo group unstaged succesfully"
|
||||||
|
msgstr "Groupe de munition désélectionner avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:130
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:128
|
||||||
|
msgid "Are you sure you want to delete this shot record?"
|
||||||
|
msgstr "Êtes-vous certain·e de vouloir supprimer cet enregistrement de tir ?"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/show.ex:78
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:54
|
||||||
|
msgid "Shot records deleted succesfully"
|
||||||
|
msgstr "Enregistrements de tir supprimés avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/range_live/form_component.ex:55
|
||||||
|
msgid "Shot records updated successfully"
|
||||||
|
msgstr "Enregistrements de tir mis à jour avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:38
|
||||||
|
msgid "%{email} confirmed successfully."
|
||||||
|
msgstr "%{email} confirmé avec succès."
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/components/move_ammo_group_component.ex:53
|
||||||
|
msgid "Ammo moved to %{name} successfully"
|
||||||
|
msgstr "Munition déplacée à %{name} avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/invite_live/index.ex:121
|
||||||
|
msgid "Copied to clipboard"
|
||||||
|
msgstr "Copié dans le presse-papier"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:58
|
||||||
|
msgid "%{name} removed successfully"
|
||||||
|
msgstr "%{name} retiré avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:15
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:33
|
||||||
|
msgid "You'll need to"
|
||||||
|
msgstr "Vous aurez besoin de"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:67
|
||||||
|
msgid "Creating..."
|
||||||
|
msgstr "Création en cours…"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.ex:147
|
||||||
|
msgid "Ammo group created successfully"
|
||||||
|
msgid_plural "Ammo groups created successfully"
|
||||||
|
msgstr[0] "Groupe de munition créé avec succès"
|
||||||
|
msgstr[1] "Groupes de munitions créé avec succès"
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
|
||||||
|
msgid "Are you sure you want to change your language?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:65
|
||||||
|
msgid "Language updated successfully."
|
||||||
|
msgstr ""
|
@ -20,31 +20,31 @@ msgstr ""
|
|||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.ex:41
|
#: lib/cannery_web/live/ammo_type_live/index.ex:41
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.ex:40
|
#: lib/cannery_web/live/ammo_type_live/show.ex:38
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:55
|
#: lib/cannery_web/live/invite_live/index.ex:53
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:135
|
#: lib/cannery_web/live/invite_live/index.ex:133
|
||||||
#: lib/cannery_web/live/tag_live/index.ex:40
|
#: lib/cannery_web/live/tag_live/index.ex:38
|
||||||
msgid "%{name} deleted succesfully"
|
msgid "%{name} deleted succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:111
|
#: lib/cannery_web/live/invite_live/index.ex:109
|
||||||
msgid "%{name} disabled succesfully"
|
msgid "%{name} disabled succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:89
|
#: lib/cannery_web/live/invite_live/index.ex:87
|
||||||
msgid "%{name} enabled succesfully"
|
msgid "%{name} enabled succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/index.ex:64
|
#: lib/cannery_web/live/container_live/index.ex:62
|
||||||
#: lib/cannery_web/live/container_live/show.ex:63
|
#: lib/cannery_web/live/container_live/show.ex:61
|
||||||
msgid "%{name} has been deleted"
|
msgid "%{name} has been deleted"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:69
|
#: lib/cannery_web/live/invite_live/index.ex:67
|
||||||
msgid "%{name} updated succesfully"
|
msgid "%{name} updated succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -57,23 +57,18 @@ msgid "%{name} updated successfully"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:28
|
#: lib/cannery_web/controllers/user_settings_controller.ex:29
|
||||||
msgid "A link to confirm your email change has been sent to the new address."
|
msgid "A link to confirm your email change has been sent to the new address."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:87
|
#: lib/cannery_web/live/ammo_group_live/index.ex:56
|
||||||
msgid "Ammo group created successfully"
|
#: lib/cannery_web/live/ammo_group_live/show.ex:50
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.ex:54
|
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.ex:34
|
|
||||||
msgid "Ammo group deleted succesfully"
|
msgid "Ammo group deleted succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.ex:69
|
#: lib/cannery_web/live/ammo_group_live/form_component.ex:88
|
||||||
msgid "Ammo group updated successfully"
|
msgid "Ammo group updated successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -84,7 +79,7 @@ msgid "Are you sure you want to delete %{email}? This action is permanent!"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_type_live/show.html.heex:29
|
#: lib/cannery_web/live/ammo_type_live/show.html.heex:27
|
||||||
#: lib/cannery_web/live/container_live/index.html.heex:46
|
#: lib/cannery_web/live/container_live/index.html.heex:46
|
||||||
#: lib/cannery_web/live/container_live/show.html.heex:37
|
#: lib/cannery_web/live/container_live/show.html.heex:37
|
||||||
#: lib/cannery_web/live/tag_live/index.html.heex:38
|
#: lib/cannery_web/live/tag_live/index.html.heex:38
|
||||||
@ -97,19 +92,19 @@ msgid "Are you sure you want to delete the invite for %{name}?"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/ammo_group_live/index.html.heex:120
|
#: lib/cannery_web/live/ammo_group_live/index.ex:177
|
||||||
#: lib/cannery_web/live/ammo_group_live/show.html.heex:66
|
#: lib/cannery_web/live/ammo_group_live/show.html.heex:71
|
||||||
#: lib/cannery_web/live/ammo_type_live/index.html.heex:75
|
#: lib/cannery_web/live/ammo_type_live/index.ex:140
|
||||||
msgid "Are you sure you want to delete this ammo?"
|
msgid "Are you sure you want to delete this ammo?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/templates/user_settings/edit.html.heex:112
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:146
|
||||||
msgid "Are you sure you want to delete your account?"
|
msgid "Are you sure you want to delete your account?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/topbar.ex:86
|
#: lib/cannery_web/components/topbar.ex:84
|
||||||
msgid "Are you sure you want to log out?"
|
msgid "Are you sure you want to log out?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -119,12 +114,12 @@ msgid "Are you sure you want to make %{name} unlimited?"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:60
|
#: lib/cannery_web/controllers/user_settings_controller.ex:77
|
||||||
msgid "Email changed successfully."
|
msgid "Email changed successfully."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:22
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:23
|
||||||
msgid "If your email is in our system and it has not been confirmed yet, you will receive an email with instructions shortly."
|
msgid "If your email is in our system and it has not been confirmed yet, you will receive an email with instructions shortly."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -139,29 +134,29 @@ msgid "Logged out successfully."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_reset_password_controller.ex:43
|
#: lib/cannery_web/controllers/user_reset_password_controller.ex:46
|
||||||
msgid "Password reset successfully."
|
msgid "Password reset successfully."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:47
|
#: lib/cannery_web/controllers/user_settings_controller.ex:49
|
||||||
msgid "Password updated successfully."
|
msgid "Password updated successfully."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_registration_controller.ex:71
|
#: lib/cannery_web/controllers/user_registration_controller.ex:74
|
||||||
msgid "Please check your email to verify your account"
|
msgid "Please check your email to verify your account"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/home_live.ex:103
|
#: lib/cannery_web/live/home_live.ex:96
|
||||||
msgid "Register to setup %{name}"
|
msgid "Register to setup %{name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:44
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:48
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:55
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:74
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:173
|
#: 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/container_live/form_component.html.heex:52
|
||||||
#: lib/cannery_web/live/invite_live/form_component.html.heex:30
|
#: 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/range_live/form_component.html.heex:42
|
||||||
@ -170,7 +165,7 @@ msgid "Saving..."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_settings_controller.ex:78
|
#: lib/cannery_web/controllers/user_settings_controller.ex:95
|
||||||
msgid "Your account has been deleted"
|
msgid "Your account has been deleted"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -185,7 +180,7 @@ msgid "%{name} added successfully"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/container_live/show.ex:39
|
#: lib/cannery_web/live/container_live/show.ex:37
|
||||||
msgid "%{tag_name} has been removed from %{container_name}"
|
msgid "%{tag_name} has been removed from %{container_name}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -205,17 +200,19 @@ msgid "Are you sure you want to unstage this ammo?"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/range_live/index.ex:70
|
#: lib/cannery_web/live/range_live/index.ex:68
|
||||||
msgid "Ammo group unstaged succesfully"
|
msgid "Ammo group unstaged succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/range_live/index.html.heex:108
|
#: lib/cannery_web/live/ammo_group_live/show.ex:130
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:128
|
||||||
msgid "Are you sure you want to delete this shot record?"
|
msgid "Are you sure you want to delete this shot record?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/range_live/index.ex:56
|
#: lib/cannery_web/live/ammo_group_live/show.ex:78
|
||||||
|
#: lib/cannery_web/live/range_live/index.ex:54
|
||||||
msgid "Shot records deleted succesfully"
|
msgid "Shot records deleted succesfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -225,17 +222,17 @@ msgid "Shot records updated successfully"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/controllers/user_confirmation_controller.ex:37
|
#: lib/cannery_web/controllers/user_confirmation_controller.ex:38
|
||||||
msgid "%{email} confirmed successfully."
|
msgid "%{email} confirmed successfully."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, 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"
|
msgid "Ammo moved to %{name} successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/live/invite_live/index.ex:123
|
#: lib/cannery_web/live/invite_live/index.ex:121
|
||||||
msgid "Copied to clipboard"
|
msgid "Copied to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -243,3 +240,31 @@ msgstr ""
|
|||||||
#: lib/cannery_web/live/container_live/edit_tags_component.ex:58
|
#: lib/cannery_web/live/container_live/edit_tags_component.ex:58
|
||||||
msgid "%{name} removed successfully"
|
msgid "%{name} removed successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:15
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/index.html.heex:33
|
||||||
|
msgid "You'll need to"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:67
|
||||||
|
msgid "Creating..."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/live/ammo_group_live/form_component.ex:147
|
||||||
|
msgid "Ammo group created successfully"
|
||||||
|
msgid_plural "Ammo groups created successfully"
|
||||||
|
msgstr[0] ""
|
||||||
|
msgstr[1] ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/templates/user_settings/edit.html.heex:136
|
||||||
|
msgid "Are you sure you want to change your language?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
#: lib/cannery_web/controllers/user_settings_controller.ex:65
|
||||||
|
msgid "Language updated successfully."
|
||||||
|
msgstr ""
|
||||||
|
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>
|
10
priv/i18n/fr.tbx
Normal file
10
priv/i18n/fr.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>
|
@ -0,0 +1,9 @@
|
|||||||
|
defmodule Cannery.Repo.Migrations.AddLocaleSetting do
|
||||||
|
use Ecto.Migration
|
||||||
|
|
||||||
|
def change do
|
||||||
|
alter table("users") do
|
||||||
|
add :locale, :string
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -304,9 +304,9 @@ defmodule Cannery.AccountsTest do
|
|||||||
end
|
end
|
||||||
|
|
||||||
test "deletes all tokens for the given user", %{user: user} do
|
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(), %{
|
Accounts.update_user_password(user, valid_user_password(), %{
|
||||||
"password" => "new valid password"
|
"password" => "new valid password"
|
||||||
})
|
})
|
||||||
@ -501,8 +501,8 @@ defmodule Cannery.AccountsTest do
|
|||||||
end
|
end
|
||||||
|
|
||||||
test "deletes all tokens for the given user", %{user: user} do
|
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, _} = Accounts.reset_user_password(user, %{"password" => "new valid password"})
|
{:ok, _user} = Accounts.reset_user_password(user, %{"password" => "new valid password"})
|
||||||
refute Repo.get_by(UserToken, user_id: user.id)
|
refute Repo.get_by(UserToken, user_id: user.id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -20,8 +20,8 @@ defmodule Cannery.ActivityLogTest do
|
|||||||
container = container_fixture(current_user)
|
container = container_fixture(current_user)
|
||||||
ammo_type = ammo_type_fixture(current_user)
|
ammo_type = ammo_type_fixture(current_user)
|
||||||
|
|
||||||
%{id: ammo_group_id} =
|
{1, [%{id: ammo_group_id} = ammo_group]} =
|
||||||
ammo_group = ammo_group_fixture(%{"count" => 25}, ammo_type, container, current_user)
|
ammo_group_fixture(%{"count" => 25}, ammo_type, container, current_user)
|
||||||
|
|
||||||
shot_group =
|
shot_group =
|
||||||
%{"count" => 5, "date" => ~N[2022-02-13 03:17:00], "notes" => "some notes"}
|
%{"count" => 5, "date" => ~N[2022-02-13 03:17:00], "notes" => "some notes"}
|
||||||
|
@ -108,7 +108,7 @@ defmodule Cannery.AmmoTest do
|
|||||||
current_user = user_fixture()
|
current_user = user_fixture()
|
||||||
ammo_type = ammo_type_fixture(current_user)
|
ammo_type = ammo_type_fixture(current_user)
|
||||||
container = container_fixture(current_user)
|
container = container_fixture(current_user)
|
||||||
ammo_group = ammo_group_fixture(ammo_type, container, current_user)
|
{1, [ammo_group]} = ammo_group_fixture(ammo_type, container, current_user)
|
||||||
|
|
||||||
[
|
[
|
||||||
ammo_type: ammo_type,
|
ammo_type: ammo_type,
|
||||||
@ -129,28 +129,28 @@ defmodule Cannery.AmmoTest do
|
|||||||
ammo_group |> Repo.preload(:shot_groups)
|
ammo_group |> Repo.preload(:shot_groups)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "create_ammo_group/1 with valid data creates a ammo_group",
|
test "create_ammo_groups/3 with valid data creates a ammo_group",
|
||||||
%{
|
%{
|
||||||
ammo_type: ammo_type,
|
ammo_type: ammo_type,
|
||||||
container: container,
|
container: container,
|
||||||
current_user: current_user
|
current_user: current_user
|
||||||
} do
|
} do
|
||||||
assert {:ok, %AmmoGroup{} = ammo_group} =
|
assert {:ok, {1, [%AmmoGroup{} = ammo_group]}} =
|
||||||
@valid_attrs
|
@valid_attrs
|
||||||
|> Map.merge(%{"ammo_type_id" => ammo_type.id, "container_id" => container.id})
|
|> Map.merge(%{"ammo_type_id" => ammo_type.id, "container_id" => container.id})
|
||||||
|> Ammo.create_ammo_group(current_user)
|
|> Ammo.create_ammo_groups(1, current_user)
|
||||||
|
|
||||||
assert ammo_group.count == 42
|
assert ammo_group.count == 42
|
||||||
assert ammo_group.notes == "some notes"
|
assert ammo_group.notes == "some notes"
|
||||||
assert ammo_group.price_paid == 120.5
|
assert ammo_group.price_paid == 120.5
|
||||||
end
|
end
|
||||||
|
|
||||||
test "create_ammo_group/1 with invalid data returns error changeset",
|
test "create_ammo_groups/3 with invalid data returns error changeset",
|
||||||
%{ammo_type: ammo_type, container: container, current_user: current_user} do
|
%{ammo_type: ammo_type, container: container, current_user: current_user} do
|
||||||
assert {:error, %Changeset{}} =
|
assert {:error, %Changeset{}} =
|
||||||
@invalid_attrs
|
@invalid_attrs
|
||||||
|> Map.merge(%{"ammo_type_id" => ammo_type.id, "container_id" => container.id})
|
|> Map.merge(%{"ammo_type_id" => ammo_type.id, "container_id" => container.id})
|
||||||
|> Ammo.create_ammo_group(current_user)
|
|> Ammo.create_ammo_groups(1, current_user)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "update_ammo_group/2 with valid data updates the ammo_group",
|
test "update_ammo_group/2 with valid data updates the ammo_group",
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user