mirror of
https://github.com/grocy/grocy.git
synced 2025-09-16 17:56:51 +00:00
Compare commits
341 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
1cb0ba5e68 | ||
|
d4fefa846b | ||
|
7121e814b0 | ||
|
70a1704bc2 | ||
|
629b3c0706 | ||
|
db3021e475 | ||
|
e897570968 | ||
|
2e625f330d | ||
|
a6030798c7 | ||
|
71770540f6 | ||
|
59cd4dbac4 | ||
|
6f4769a7b3 | ||
|
1390c65864 | ||
|
840b35b30d | ||
|
886721e972 | ||
|
1686fcca8e | ||
|
7d9bad58b5 | ||
|
25be604b31 | ||
|
87e68523e5 | ||
|
858315ed3f | ||
|
f36d9c46ed | ||
|
45d96cb60f | ||
|
10f890ef89 | ||
|
c6e06ab07c | ||
|
9a93c32d3c | ||
|
1fc802c30e | ||
|
42e6a8ef94 | ||
|
b971375881 | ||
|
855b24c515 | ||
|
b62d3b02e6 | ||
|
0327188125 | ||
|
73b3ad3b4c | ||
|
152d3b7005 | ||
|
5b314351dd | ||
|
7b39bc995c | ||
|
c562e09073 | ||
|
8cfd3e19ba | ||
|
81e6530ddc | ||
|
86ef36d76a | ||
|
1d4b6a0a24 | ||
|
d907bca3cb | ||
|
3356b07342 | ||
|
615de378ba | ||
|
0f3a3887a2 | ||
|
390af436ab | ||
|
4e5e191b22 | ||
|
6867057b6e | ||
|
9dbd6a68c4 | ||
|
4f8ef2859e | ||
|
a6dd794ce8 | ||
|
6b75decd4a | ||
|
2334b010fd | ||
|
1cb3128042 | ||
|
cc012c7348 | ||
|
bfb46494cf | ||
|
4072dfd26f | ||
|
769a13aa31 | ||
|
2924502878 | ||
|
30908f5ba9 | ||
|
ca9354064d | ||
|
9a9b4d1000 | ||
|
808745dbfa | ||
|
2778d2ad56 | ||
|
11bf89e13a | ||
|
1aa788b6c2 | ||
|
7200f2c17f | ||
|
746203b82d | ||
|
8e82525732 | ||
|
f092c8b10d | ||
|
f66a4c9631 | ||
|
caf7127c13 | ||
|
2fee4b45ff | ||
|
d509f9add0 | ||
|
81d84d93e2 | ||
|
646f638111 | ||
|
9a27b8e3a5 | ||
|
d7738aa1ec | ||
|
4f40b40fe0 | ||
|
7b737590ea | ||
|
f3b504b7de | ||
|
2619d03cc0 | ||
|
305f5b67e4 | ||
|
5214a775ed | ||
|
2d00f6f84a | ||
|
06f65594de | ||
|
c3d4be352d | ||
|
a45317aea1 | ||
|
573b6ece89 | ||
|
22eaeee572 | ||
|
375865d80e | ||
|
3fc14db5d5 | ||
|
dcfd9d848d | ||
|
03eee1329c | ||
|
03566d0644 | ||
|
71b62d5708 | ||
|
eb3c0f9397 | ||
|
40034ed7bd | ||
|
c67a5bf77d | ||
|
9f6daac010 | ||
|
e0f71aa308 | ||
|
f1496894b5 | ||
|
48dc8e45ba | ||
|
f440604007 | ||
|
5cfe7cf34d | ||
|
e2bb3a7d00 | ||
|
b0ddc026f8 | ||
|
8be14768df | ||
|
c73ce21ef5 | ||
|
c38c519b18 | ||
|
fc131f5598 | ||
|
51cd81422e | ||
|
14c9c045e7 | ||
|
1a5f3ce926 | ||
|
2b1dc7756d | ||
|
de20699580 | ||
|
c58b396a55 | ||
|
5dd78aa19a | ||
|
3c4264c3a0 | ||
|
d4fa1a64c2 | ||
|
d56aebc9b8 | ||
|
c266b53ff1 | ||
|
a32206834b | ||
|
aa787e765e | ||
|
c5f38689fa | ||
|
6b8169a1f1 | ||
|
898ea26139 | ||
|
49edd011b4 | ||
|
7638254f14 | ||
|
472c083bca | ||
|
7be2d94cf7 | ||
|
5a65f37f4a | ||
|
540ae2627a | ||
|
2c0f7f0883 | ||
|
97095d6e68 | ||
|
785dd30724 | ||
|
1953a26d7f | ||
|
13f99ad5f2 | ||
|
ba4dfa30a7 | ||
|
62dae64a88 | ||
|
0359003e09 | ||
|
a0ab5c5e94 | ||
|
e9f55de987 | ||
|
3af5bd8e29 | ||
|
06fe308f31 | ||
|
35388b798c | ||
|
35eb976706 | ||
|
a5277224f5 | ||
|
fcfe62f4d3 | ||
|
171d6af5e1 | ||
|
58cff18b03 | ||
|
b4a759c0fc | ||
|
b9e32a9795 | ||
|
9e519e0841 | ||
|
ba1272ced8 | ||
|
3ca6982c39 | ||
|
890663bf63 | ||
|
5effa0c103 | ||
|
7235d9c0c9 | ||
|
ad9f336035 | ||
|
23efe0c87a | ||
|
683ea0984c | ||
|
debb29ddaa | ||
|
55c5501d96 | ||
|
b8c6ac6905 | ||
|
170c7627fd | ||
|
72e18ed0a4 | ||
|
6d4a15d372 | ||
|
ce3b30f601 | ||
|
fcd421d17b | ||
|
d4367808a2 | ||
|
28e3f6226f | ||
|
caa4edf7e3 | ||
|
0e0c58542e | ||
|
15b4f2ede3 | ||
|
da92ac40c4 | ||
|
eaacca61c2 | ||
|
8d490351d0 | ||
|
6f549bdf3a | ||
|
a64b35e9d4 | ||
|
0e41500a63 | ||
|
5d83ec7967 | ||
|
e84c7063d3 | ||
|
dceed6759a | ||
|
0c0604c693 | ||
|
4124b2eee8 | ||
|
4c1c971f6d | ||
|
40730328b8 | ||
|
05aceb72ae | ||
|
9221d787a5 | ||
|
4cc31a87e0 | ||
|
2764bb680c | ||
|
71a57c9dcb | ||
|
f09ba08549 | ||
|
430cd05278 | ||
|
a8f43a1d45 | ||
|
bad19721db | ||
|
c7bcb9984a | ||
|
7a048136c6 | ||
|
ac1be1e90f | ||
|
0ef9b2fdb7 | ||
|
d64a1a546c | ||
|
98f70d1525 | ||
|
aa97a8c301 | ||
|
3762c1f799 | ||
|
e111d07f4e | ||
|
061f4da041 | ||
|
3cbeea7d95 | ||
|
ad54253d72 | ||
|
fd5a72264d | ||
|
6663551a66 | ||
|
8d7f985b59 | ||
|
594dc0858b | ||
|
d7c7e0f53c | ||
|
469dcefc7a | ||
|
b4997abf75 | ||
|
99d4b05a3c | ||
|
3baffcfe7b | ||
|
a9d235d9ce | ||
|
6300a8fd09 | ||
|
ec2551d263 | ||
|
ef9f28d154 | ||
|
101355cae2 | ||
|
ca6c2b0af8 | ||
|
5793f6b041 | ||
|
22c978c8dc | ||
|
6f035fd64d | ||
|
5cdfd30852 | ||
|
0816359867 | ||
|
3a36bdaf45 | ||
|
c22496ca7c | ||
|
f543a3a472 | ||
|
17e5c04bf9 | ||
|
d0036e8034 | ||
|
61a45c030f | ||
|
cd522220ce | ||
|
7c2320e978 | ||
|
5de563f2c9 | ||
|
cdbfc3c3db | ||
|
2a608c41e9 | ||
|
d4bec3bd10 | ||
|
485eb262f9 | ||
|
a8cf5ae9ab | ||
|
539334f5ee | ||
|
e515f21d3b | ||
|
6345e69922 | ||
|
8e26bd2c31 | ||
|
675bf25927 | ||
|
0be672aa48 | ||
|
8da13ab22b | ||
|
36e8484046 | ||
|
2a361a9f72 | ||
|
bf81d8a794 | ||
|
e89832c3aa | ||
|
d617a72397 | ||
|
b02e43aea8 | ||
|
6c7420ea08 | ||
|
0be1994c02 | ||
|
275db21740 | ||
|
709afac1af | ||
|
9bd43cf67a | ||
|
e493abf784 | ||
|
62b85cda0e | ||
|
7b0fdfe62e | ||
|
5d42cc15a6 | ||
|
da2c8d48ac | ||
|
a0fc06f6ed | ||
|
e133508814 | ||
|
9e1804252e | ||
|
1b0308f39d | ||
|
9ba66aeac2 | ||
|
3328c789d4 | ||
|
68dc1bc1f9 | ||
|
21b9c1a8aa | ||
|
c6ae8cc348 | ||
|
744fd03633 | ||
|
d994551f75 | ||
|
ed4d292b23 | ||
|
700db9ae00 | ||
|
ff92e8235f | ||
|
ba6bfa6a2c | ||
|
28b23fd313 | ||
|
554ac104f8 | ||
|
039ed54a58 | ||
|
5d98140843 | ||
|
420e4b933f | ||
|
901b345714 | ||
|
35b569c832 | ||
|
d81fe4777c | ||
|
95208f5582 | ||
|
dea2ffeaaf | ||
|
e548caabb1 | ||
|
2b0f5d8d84 | ||
|
e9f2edea75 | ||
|
1b9a3c7f57 | ||
|
2636456461 | ||
|
81f6b58fe4 | ||
|
9ba4585143 | ||
|
4aa575e0e8 | ||
|
765f908966 | ||
|
9527305311 | ||
|
9d52f82bc2 | ||
|
6522aca30e | ||
|
e59a35c6d1 | ||
|
cc2bf68f31 | ||
|
654d00dd67 | ||
|
cf2e6f1039 | ||
|
cf3217ada4 | ||
|
21503c26d2 | ||
|
7369603d78 | ||
|
41e93d2c50 | ||
|
b39866bda2 | ||
|
b8f9d09afc | ||
|
a2b6d9ae39 | ||
|
45d3c25b21 | ||
|
2809cc1454 | ||
|
02f30d141e | ||
|
c5927a10f3 | ||
|
828ab8eba0 | ||
|
75f8ecfad2 | ||
|
fd14083443 | ||
|
04808eaa66 | ||
|
53f0893f55 | ||
|
2eb3d8fe47 | ||
|
c0d79b1518 | ||
|
5351828e79 | ||
|
b0c7958891 | ||
|
f444d3e095 | ||
|
d8be254ff3 | ||
|
49b26bd375 | ||
|
50e829f270 | ||
|
3b29110500 | ||
|
e727a38071 | ||
|
099ac7e75a | ||
|
53c56cc1cb | ||
|
2a9f927a13 | ||
|
6bb9d2c51d | ||
|
ca719072c9 | ||
|
66f61ec1ad | ||
|
cc500c50ff | ||
|
eef844d42e | ||
|
e92843a9bf |
@@ -1,4 +1,9 @@
|
||||
pushd ..
|
||||
tx pull --all --minimum-perc=90
|
||||
tx pull --all --minimum-perc=80
|
||||
tx pull --language en_GB
|
||||
copy /Y localization\en\userfield_types.po localization\en_GB\userfield_types.po
|
||||
copy /Y localization\en\stock_transaction_types.po localization\en_GB\stock_transaction_types.po
|
||||
copy /Y localization\en\component_translations.po localization\en_GB\component_translations.po
|
||||
copy /Y localization\en\chore_period_types.po localization\en_GB\chore_period_types.po
|
||||
copy /Y localization\en\chore_assignment_types.po localization\en_GB\chore_assignment_types.po
|
||||
popd
|
||||
|
@@ -1,4 +1,4 @@
|
||||
pushd ..
|
||||
call composer update
|
||||
yarn upgrade
|
||||
yarn upgrade --latest
|
||||
popd
|
||||
|
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
* text=auto
|
||||
*.sh text eol=lf
|
35
README.md
35
README.md
@@ -2,11 +2,13 @@
|
||||
ERP beyond your fridge
|
||||
|
||||
## Give it a try
|
||||
- Public demo of the latest stable version → [https://demo.grocy.info](https://demo.grocy.info)
|
||||
- Public demo of the latest pre-release version (current master branch) → [https://demo-prerelease.grocy.info](https://demo-prerelease.grocy.info)
|
||||
- Public demo of the latest stable version (`release` branch) → [https://demo.grocy.info](https://demo.grocy.info)
|
||||
- Public demo of the latest pre-release version (`master` branch) → [https://demo-prerelease.grocy.info](https://demo-prerelease.grocy.info)
|
||||
|
||||
## Getting in touch
|
||||
There is the [r/grocy subreddit](https://www.reddit.com/r/grocy) to connect with other grocy users. If you've found something that does not work or if you have an idea for an improvement or new things which you would find useful, feel free to open an issue in the [issue tracker](https://github.com/grocy/grocy/issues) here.
|
||||
## Questions / Help / Bug reporting / Feature requests
|
||||
There is the [r/grocy subreddit](https://www.reddit.com/r/grocy) to connect with other grocy users and getting help.
|
||||
|
||||
If you've found something that does not work or if you have an idea for an improvement or new things which you would find useful, feel free to open an issue in the [issue tracker](https://github.com/grocy/grocy/issues) here.
|
||||
|
||||
## Community contributions
|
||||
See the website for a list of community contributed Add-ons / Tools: [https://grocy.info/#addons](https://grocy.info/#addons)
|
||||
@@ -19,11 +21,11 @@ A household needs to be managed. I did this so far (almost 10 years) with my fir
|
||||
>
|
||||
> See https://github.com/grocy/grocy-desktop or directly download the [latest release](https://releases.grocy.info/latest-desktop) - the installation is nothing more than just clicking 2 times "next"...
|
||||
|
||||
Just unpack the [latest release](https://releases.grocy.info/latest) on your PHP (SQLite (3.8.3 or higher) extension required, currently only tested with PHP 7.3) enabled webserver (webservers root should point to the `public` directory), copy `config-dist.php` to `data/config.php`, edit it to your needs, ensure that the `data` directory is writable and you're ready to go, (to make it writable, maybe use `chown -R www-data:www-data data/`). Default login is user `admin` with password `admin`, please change the password immediately (see user menu).
|
||||
Just unpack the [latest release](https://releases.grocy.info/latest) on your PHP (SQLite (3.8.3 or higher) extension required, currently only tested with PHP 7.4) enabled webserver (webservers root should point to the `public` directory), copy `config-dist.php` to `data/config.php`, edit it to your needs, ensure that the `data` directory is writable and you're ready to go, (to make it writable, maybe use `chown -R www-data:www-data data/`). Default login is user `admin` with password `admin`, please change the password immediately (see user menu).
|
||||
|
||||
Alternatively clone this repository and install Composer and Yarn dependencies manually.
|
||||
Alternatively clone this repository (the `release` branch always references the latest released version, or checkout the latest tagged revision) and install Composer and Yarn dependencies manually.
|
||||
|
||||
If you use nginx as your webserver, please include `try_files $uri /index.php;` in your location block.
|
||||
If you use nginx as your webserver, please include `try_files $uri /index.php$is_args$query_string;` in your location block.
|
||||
|
||||
If, however, your webserver does not support URL rewriting, set `DISABLE_URL_REWRITING` in `data/config.php` (`Setting('DISABLE_URL_REWRITING', true);`).
|
||||
|
||||
@@ -45,18 +47,22 @@ You can easily help translating grocy at https://www.transifex.com/grocy/grocy,
|
||||
|
||||
The [pre-release demo](https://demo-prerelease.grocy.info) is available for any translation which is at least 80 % complete and will pull the translations from Transifex 10 minutes past every hour, so you can have a kind of instant preview of your contributed translations. Thank you!
|
||||
|
||||
Also any translation which reached a completion level of 80 % will be included in releases.
|
||||
|
||||
## Things worth to know
|
||||
|
||||
### REST API & data model documentation
|
||||
See the integrated Swagger UI instance on [/api](https://demo.grocy.info/api).
|
||||
|
||||
### Barcode readers & camera scanning
|
||||
Some fields also allow to select a value by scanning a barcode. It works best when your barcode reader prefixes every barcode with a letter which is normally not part of a item name (I use a `$`) and sends a `TAB` after a scan.
|
||||
Some fields (with a barcode icon above) also allow to select a value by scanning a barcode. It works best when your barcode reader prefixes every barcode with a letter which is normally not part of a item name (I use a `$`) and sends a `TAB` after a scan.
|
||||
|
||||
Additionally it's also possible to use your device camera to scan a barcode by using the camera button on the right side of the corresponding field (powered by [QuaggaJS](https://github.com/serratus/quaggaJS), totally offline / client-side camera stream processing). Quick video demo: https://www.youtube.com/watch?v=Y5YH6IJFnfc
|
||||
Additionally it's also possible to use your device camera to scan a barcode by using the camera button on the right side of the corresponding field (powered by [QuaggaJS](https://github.com/serratus/quaggaJS), totally offline / client-side camera stream processing, please note due to browser security restrictions, this only works when serving grocy via a secure connection (`https://`)). Quick video demo: https://www.youtube.com/watch?v=Y5YH6IJFnfc
|
||||
|
||||
My personal recommendation: Use a USB barcode laser scanner. They are cheap and work 1000 % better, faster, under any lighting condition and from any angle.
|
||||
|
||||
### Input shorthands for date fields
|
||||
For (productivity) reasons all date (and time) input fields use the ISO-8601 format regardless of localization.
|
||||
For (productivity) reasons all date (and time) input (and display) fields use the ISO-8601 format regardless of localization.
|
||||
The following shorthands are available:
|
||||
- `MMDD` gets expanded to the given day on the current year, if > today, or to the given day next year, if < today, in proper notation
|
||||
- Example: `0517` will be converted to `2018-05-17`
|
||||
@@ -65,8 +71,10 @@ The following shorthands are available:
|
||||
- `YYYYMMe` or `YYYYMM+` gets expanded to the end of the given month in the given year in proper notation
|
||||
- Example: `201807e` will be converted to `2018-07-31`
|
||||
- `x` gets expanded to `2999-12-31` (which I use for products which never expire)
|
||||
- Down/up arrow keys will increase/decrease the date by one day
|
||||
- Down/up arrow keys will increase/decrease the date by 1 day
|
||||
- Right/left arrow keys will increase/decrease the date by 1 week
|
||||
- Shift + down/up arrow keys will increase/decrease the date by 1 month
|
||||
- Shift + right/left arrow keys will increase/decrease the date by 1 year
|
||||
|
||||
### Keyboard shorthands for buttons
|
||||
Wherever a button contains a bold highlighted letter, this is a shortcut key.
|
||||
@@ -88,7 +96,7 @@ If you don't use certain feature sets of grocy (for example if you don't need "C
|
||||
- When the file `data/custom_css.html` exists, the contents of the file will be added just before `</head>` (end of head) on every page
|
||||
|
||||
### Demo mode
|
||||
When the file `data/demo.txt` exists, the application will work in a demo mode which means authentication is disabled and some demo data will be generated during the database schema migration.
|
||||
When the `MODE` setting is set to `dev`, `demo` or `prerelease`, the application will work in a demo mode which means authentication is disabled and some demo data will be generated during the database schema migration.
|
||||
|
||||
### Embedded mode
|
||||
When the file `embedded.txt` exists, it must contain a valid and writable path which will be used as the data directory instead of `data` and authentication will be disabled (used in [grocy-desktop](https://github.com/grocy/grocy-desktop)).
|
||||
@@ -100,6 +108,9 @@ Any help is more than appreciated. Feel free to pick any open unassigned issue a
|
||||
|
||||
See https://grocy.info/#say-thanks for more ideas if you just want to say thanks.
|
||||
|
||||
## Roadmap
|
||||
There is none. grocy is only my hobby, one I like, but not the only one, and because of that, there are no release dates, no schedules for when anything is ready, it's done when it's done, maybe tomorrow, maybe tomorrow next year, everyone is invited to contribute - I appreciate all ideas and contributions. The progress of a specific bug/enhancement is always tracked in the corresponding issue, at least by commit comment references.
|
||||
|
||||
## Screenshots
|
||||
#### Dashboard
|
||||

|
||||
|
83
app.php
83
app.php
@@ -1,10 +1,12 @@
|
||||
<?php
|
||||
|
||||
use \Psr\Http\Message\ServerRequestInterface as Request;
|
||||
use \Psr\Http\Message\ResponseInterface as Response;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
use Psr\Http\Message\ResponseInterface as Response;
|
||||
use Psr\Container\ContainerInterface as Container;
|
||||
use Slim\Factory\AppFactory;
|
||||
|
||||
use \Grocy\Helpers\UrlManager;
|
||||
use \Grocy\Controllers\LoginController;
|
||||
use Grocy\Helpers\UrlManager;
|
||||
use Grocy\Controllers\LoginController;
|
||||
|
||||
// Definitions for embedded mode
|
||||
if (file_exists(__DIR__ . '/embedded.txt'))
|
||||
@@ -19,20 +21,6 @@ else
|
||||
define('GROCY_DATAPATH', __DIR__ . '/data');
|
||||
}
|
||||
|
||||
// Definitions for demo mode
|
||||
if (file_exists(GROCY_DATAPATH . '/demo.txt'))
|
||||
{
|
||||
define('GROCY_IS_DEMO_INSTALL', true);
|
||||
if (!defined('GROCY_USER_ID'))
|
||||
{
|
||||
define('GROCY_USER_ID', 1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
define('GROCY_IS_DEMO_INSTALL', false);
|
||||
}
|
||||
|
||||
// Load composer dependencies
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
|
||||
@@ -40,6 +28,12 @@ require_once __DIR__ . '/vendor/autoload.php';
|
||||
require_once GROCY_DATAPATH . '/config.php';
|
||||
require_once __DIR__ . '/config-dist.php'; // For not in own config defined values we use the default ones
|
||||
|
||||
// Definitions for dev/demo/prerelease mode
|
||||
if (GROCY_MODE === 'dev' || GROCY_MODE === 'demo' || GROCY_MODE === 'prerelease')
|
||||
{
|
||||
define('GROCY_USER_ID', 1);
|
||||
}
|
||||
|
||||
// Definitions for disabled authentication mode
|
||||
if (GROCY_DISABLE_AUTH === true)
|
||||
{
|
||||
@@ -50,31 +44,38 @@ if (GROCY_DISABLE_AUTH === true)
|
||||
}
|
||||
|
||||
// Setup base application
|
||||
$appContainer = new \Slim\Container([
|
||||
'settings' => [
|
||||
'displayErrorDetails' => true,
|
||||
'determineRouteBeforeAppMiddleware' => true
|
||||
],
|
||||
'view' => function($container)
|
||||
{
|
||||
return new \Slim\Views\Blade(__DIR__ . '/views', GROCY_DATAPATH . '/viewcache');
|
||||
},
|
||||
'LoginControllerInstance' => function($container)
|
||||
{
|
||||
return new LoginController($container, 'grocy_session');
|
||||
},
|
||||
'UrlManager' => function($container)
|
||||
{
|
||||
return new UrlManager(GROCY_BASE_URL);
|
||||
},
|
||||
'ApiKeyHeaderName' => function($container)
|
||||
{
|
||||
return 'GROCY-API-KEY';
|
||||
}
|
||||
]);
|
||||
$app = new \Slim\App($appContainer);
|
||||
AppFactory::setContainer(new DI\Container());
|
||||
$app = AppFactory::create();
|
||||
|
||||
$container = $app->getContainer();
|
||||
$container->set('view', function(Container $container)
|
||||
{
|
||||
return new Slim\Views\Blade(__DIR__ . '/views', GROCY_DATAPATH . '/viewcache');
|
||||
});
|
||||
$container->set('LoginControllerInstance', function(Container $container)
|
||||
{
|
||||
return new LoginController($container, 'grocy_session');
|
||||
});
|
||||
$container->set('UrlManager', function(Container $container)
|
||||
{
|
||||
return new UrlManager(GROCY_BASE_URL);
|
||||
});
|
||||
$container->set('ApiKeyHeaderName', function(Container $container)
|
||||
{
|
||||
return 'GROCY-API-KEY';
|
||||
});
|
||||
|
||||
// Load routes from separate file
|
||||
require_once __DIR__ . '/routes.php';
|
||||
|
||||
// Set base path if defined
|
||||
if (!empty(GROCY_BASE_PATH))
|
||||
{
|
||||
$app->setBasePath(GROCY_BASE_PATH);
|
||||
}
|
||||
|
||||
// Add default middleware
|
||||
$app->addRoutingMiddleware();
|
||||
$app->addErrorMiddleware(true, false, false);
|
||||
|
||||
$app->run();
|
||||
|
@@ -8,30 +8,30 @@
|
||||
- Implemented using [QuaggaJS](https://github.com/serratus/quaggaJS) - camera stream processing happens totally offline / client-side
|
||||
- Please note due to browser security restrictions, this only works when serving grocy via a secure connection (`https://`)
|
||||
- There is also a `config.php` setting `DISABLE_BROWSER_BARCODE_CAMERA_SCANNING` to disable this, if you don't need it at all (defaults to `false`)
|
||||
- I you have problems that barcocdes are not recognized properly, there is a little "barcode scanner testing page" at [/barcodescannertesting](https://demo.grocy.info/barcodescannertesting)
|
||||
- I you have problems that barcodes are not recognized properly, there is a little "barcode scanner testing page" at [/barcodescannertesting](https://demo.grocy.info/barcodescannertesting)
|
||||
- => Quick video demo: https://www.youtube.com/watch?v=Y5YH6IJFnfc
|
||||
|
||||
### Stock improvements/fixes
|
||||
- Products can now have variations (nested products)
|
||||
- Define the parent product for a product on the product edit page (only one level is possible, means a product which is used as a parent product in another product, cannot have a parent product itself)
|
||||
- Parent and sub products can have stock (both are regular products, no difference from that side)
|
||||
- On the stock overview page the aggregated amount is displayed next to the amount (sigma sign)
|
||||
- On the stock overview page, the aggregated amount is displayed next to the amount (sigma sign)
|
||||
- When a recipe needs a parent product, the need is also fulfilled when enough sub product(s) are in stock
|
||||
- Quantity units can now be linked (related measurements / unit conversion)
|
||||
- On the quantity unit edit page default conversion can be defined for each unit
|
||||
- Products "inherit" the default conversion and additionally can have their own / override the default ones
|
||||
- It's now possible to print a "Location Content Sheet" with the current stock per location - new button at the top of the stock overview page (thought to hang it at the location, note used amounts on paper and track it in grocy later)
|
||||
- Stock overview page improvements
|
||||
- Options in the more/context-menu to directly open the purchase/consume/inventory pages prefilled with the current product in an popup/dialog
|
||||
- Options in the more/context-menu to directly open the purchase/consume/inventory pages prefilled with the current product in a popup/dialog
|
||||
- Option in the more/context-menu to add the current product directly to a shopping list
|
||||
- Option in the more/context-menu to search for recipes containing the current product
|
||||
- It's now possible to undo stock bookings ("Undo"-button in the success message, like it was already possible on the purchase/consume/inventory pages)
|
||||
- Improved that on any stock changes the corresponding product table row is properly refreshed
|
||||
- New `config.php` setting `FEATURE_SETTING_STOCK_COUNT_OPENED_PRODUCTS_AGAINST_MINIMUM_STOCK_AMOUNT` to configure if opened products should be considered for minimum stock amounts (defaults to `true`, so opened products will now be considered missing by default - please change this setting if you want the old behaviour)
|
||||
- New `config.php` setting `FEATURE_SETTING_STOCK_COUNT_OPENED_PRODUCTS_AGAINST_MINIMUM_STOCK_AMOUNT` to configure if opened products should be considered for minimum stock amounts (defaults to `true`, so opened products will now be considered missing by default - please change this setting if you want the old behavior)
|
||||
- The product description now can have formattings (HTML/WYSIWYG editor like for recipes)
|
||||
- Products now have a new field for calories (kcal, per stock quantity unit)
|
||||
- "Factor purchase to stock quantity unit" (product option) can now also be a decimal number when "Allow partial units in stock" is enabled
|
||||
- New "Sub feature flags" in `config.php` to disable some sub-features (hide the corresponding UI elements) if you don't need them (all new feature flags default to `true`, so no changed behaviour when not configured)
|
||||
- New "Sub feature flags" in `config.php` to disable some sub-features (hide the corresponding UI elements) if you don't need them (all new feature flags default to `true`, so no changed behavior when not configured)
|
||||
- `FEATURE_FLAG_STOCK_PRICE_TRACKING` to disable product price tracking
|
||||
- `FEATURE_FLAG_STOCK_LOCATION_TRACKING` to disable product location tracking
|
||||
- `FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING` to disable product best before date tracking
|
||||
@@ -45,17 +45,17 @@
|
||||
- Shopping lists can now be printed (new button next to the add/delete shopping list button)
|
||||
|
||||
### Recipe improvements
|
||||
- Based on the new linked quantity units, recipe ingredients can now use any product related unit, the amount is calculated according to the cnoversion factor of the unit relation
|
||||
- Based on the new linked quantity units, recipe ingredients can now use any product related unit, the amount is calculated according to the conversion factor of the unit relation
|
||||
- Based on the new calories field per product, the calories per recipe are now shown based on the selected servings (in the header, next to the costs)
|
||||
- New option "price factor" per recipe ingredient (defaults to `1`) - the resulting costs of the recipe ingredient will be multiplied by that factor
|
||||
- Use this for example for spices in combination with "Only check if a single unit is in stock" to not take the full price of a pack of pepper into account for a recipe
|
||||
- The search field on the recipe overview page now also searches for product names of recipe ingredients (means it's possible to search an recipe by a product name)
|
||||
- Fixed a problem where the meal plan did not load when a recipe, which was already added to a the meal plan, was deleted
|
||||
- The search field on the recipe overview page now also searches for product names of recipe ingredients (means it's possible to search a recipe by a product name)
|
||||
- Fixed a problem where the meal plan did not load when a recipe, which was already added to the meal plan, was deleted
|
||||
|
||||
### Chores improvements
|
||||
- Chores can now be assigned to users
|
||||
- Option per chore, different "assignment types" like "Random", "Who least did first", etc.
|
||||
- On the chores overview page the list can be filterd to only show chores assigned to the currently logged in user (or to any other user)
|
||||
- On the chores overview page, the list can be filtered to only show chores assigned to the currently logged in user (or to any other user)
|
||||
- New option "Due date rollover" per chore which means the chore can never be overdue, the due date will shift forward each day when due
|
||||
- New option "Consume product on chore execution" per chore to automatically consume a product when a chore execution is tracked
|
||||
- When tracking an execution from the chores overview page, filters are re-applied afterwards (means when you have filtered the page to only show overdue chores and after the execution the chore is not overdue anymore, it will now be immediately hidden)
|
||||
@@ -77,13 +77,13 @@
|
||||
- Boolean settings provided via environment variables (so the strings `true` and `false`) are now parsed correctly (thanks @mduret)
|
||||
- All uploaded pictures (currently for products and recipes) are now automatically downscaled to the appropriate size when serving them to improve page load times (this requires the `php-gd` extension, if not installed, images will not be downscaled)
|
||||
- It's now possible to test plural forms of quantity units (button on the quantity unit edit page, only visible if the current language requires more than 2 plural forms)
|
||||
- On the login page no menus and the sidebar is now hidden
|
||||
- On the login page the sidebar an all top-navbar menus is now hidden
|
||||
- New translations: (thanks all the translators)
|
||||
- Danish (demo available at https://da.demo.grocy.info)
|
||||
- Dutch (demo available at https://nl.demo.grocy.info)
|
||||
- Internal change for how the localizations for the demo instances are handled
|
||||
- For the pre-release demo now all currently supported languages are available (was already the case for the stable demo)
|
||||
- Additionally all language files which reached the completion limit of 80 % will now be automatically pulled from Transifex 10 minutes past every hour (to have a kind of instant preview of changed tranlsations)
|
||||
- Additionally all language files which reached the completion limit of 80 % will now be automatically pulled from Transifex 10 minutes past every hour (to have a kind of instant preview of changed translations)
|
||||
- The URLs have changed, I'll try to keep all existing URLs redirecting properly for a long time
|
||||
- If you want to link to the demo, please only use https://demo.grocy.info (stable demo) or https://demo-prerelease.grocy.info (current master branch demo)
|
||||
|
||||
|
37
changelog/53_2.5.1_2019-09-28.md
Normal file
37
changelog/53_2.5.1_2019-09-28.md
Normal file
@@ -0,0 +1,37 @@
|
||||
### Stock improvements/fixes
|
||||
- Fixed that barcode lookups now compare the whole barcode, not parts of it (e. g. when you have two products with the barcodes `$1` and `$10` and scan `$1` maybe the product of `$10` was found till now)
|
||||
- Fixed that the "X products are already expired" count on the stock overview page was wrong
|
||||
- Fixed that after product actions (consume/purchase/etc.) on the stock overview page the highlighting of the row was maybe wrong
|
||||
- After product actions (consume/purchase/etc.) on the stock overview page on a sub product, now also the parent product (row) is refreshed
|
||||
- It's now possible to accumulate min. stock amounts on parent product level (new option per product, means the sub product will never be "missing" then, only the parent product)
|
||||
- On the purchase page there is now an option to select that the price is the total price (for the whole amount) - below the price field, defaults to "Unit price" (as it was until now), when set to "Total price", the entered price will be divided by the amount before posting
|
||||
- "Average shelf life" on the product card now displays just "Unlimited" when the resulting value would be > 200 years (for products which never expire, as they have a best before date of 2999-12-31)
|
||||
|
||||
### Shopping list improvements
|
||||
- When adding a product to the shopping list from the new context/more menu from the stock overview page and if the product is already on the shopping list, the amount of that entry will be updated acccordingly instead of adding a new (double) shopping list item
|
||||
- Added a "clear" button above the new notes field on the shopping list page to quickly clear the notes field with one click
|
||||
|
||||
### Recipe improvements/fixes
|
||||
- Fixed a problem regarding quantity unit conversion handling for recipe ingredients of products with no unit relations, but only a different purchase/stock quantity unit
|
||||
- It's now possible to display a recipe directly from the meal plan (new "eye button") (thanks @kriddles)
|
||||
- Improved the responsiveness of the meal plan and calendar page by automatically switching to a day calendar view on smaller screens (thanks for the idea @kriddles)
|
||||
|
||||
### Chores improvements
|
||||
- There is now a new sub feature flag `FEATURE_FLAG_CHORES_ASSIGNMENTS` to disable chore assignments if you don't need them (defaults to `true`, so no changed behavior when not configured)
|
||||
|
||||
### Calendar improvements
|
||||
- The calendar now also contains all planned recipes from the meal plan on the corresponding day
|
||||
- Improved that dates in the iCal calendar export now include the server timezone
|
||||
|
||||
### Custom lists/fields improvements
|
||||
- Optimized the custom lists page that it can be printed properly (search field etc. is hidden when printing the page)
|
||||
|
||||
### General & other improvements/fixes
|
||||
- Fixed that the browser barcode scanner button was not clickable on iOS Safari & other small styles fixes/improvements for iOS Safari (thanks @DeeeeLAN)
|
||||
- It's now also possible to set the meal plan page as the default/entry page (`config.php` setting `ENTRY_PAGE`) (thanks @lwis)
|
||||
- Some UI detail-refinements
|
||||
- In the header of the product-/chore-/battery-card there is now also a button to directly jump to the journal of the current product/chore/battery
|
||||
|
||||
### API improvements/fixes
|
||||
- The API Endpoint `GET /files/{group}/{fileName}` now also returns a `Cache-Control` header (defaults fixed to 30 days) to further increase page load times
|
||||
- Fixed that the API endpoint `/stock/shoppinglist/add-product` failed when a product should be added which was not already on the shopping list (thanks @Forceu)
|
15
changelog/54_2.5.2_2019-10-05.md
Normal file
15
changelog/54_2.5.2_2019-10-05.md
Normal file
@@ -0,0 +1,15 @@
|
||||
### Stock fixes
|
||||
- Fixed that product specific quantity unit conversions (product overrides) were also displayed on the product edit page of other products with the same stock quantity unit
|
||||
|
||||
### Recipe fixes
|
||||
- Fixed that recipes were displayed without ingredients if the total recipe count was > 100
|
||||
|
||||
### Shopping list improvements
|
||||
- Added a new sub feature flag `FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS` to disable multiple shopping lists if you only need one (defaults to `true`, so no changed behavior when not configured)
|
||||
|
||||
### Chores improvements
|
||||
- Added a new period type "yearly" (for yearly schedules)
|
||||
- Added a "period interval" option per chore to have more flexible schedules (possible for the daily/weekly/monthly/yearly schedules, means "schedule this chore only every x days/weeks/months" to have for example biweekly schedules)
|
||||
|
||||
### General & other improvements
|
||||
- New Input shorthands for date fields to increase/decrease the date by 1 month/year (shift + arrow keys, see the full list [here](https://github.com/grocy/grocy#input-shorthands-for-date-fields))
|
85
changelog/55_2.6.0_2020-01-31.md
Normal file
85
changelog/55_2.6.0_2020-01-31.md
Normal file
@@ -0,0 +1,85 @@
|
||||
### New feature: Transfer products between locations and edit stock entries
|
||||
- New menu entry in the sidebar to transfer products (or as a shortcut in the more/context menu per line on the stock overview page)
|
||||
- New button "Stock entries" in the header of the stock overview page (or as a shortcut in the more/context menu per line) to show the detail stock entries behind each product
|
||||
- From there you can also edit the stock entries
|
||||
- (A huge THANK YOU goes to @kriddles for the work on this feature)
|
||||
|
||||
### New feature: Scan mode
|
||||
- Just scan one product after another, no manual input required and audio feedback is provided
|
||||
- New switch-button on the purchase and consume page
|
||||
- When enabled
|
||||
- The amount will always be filled with `1` after changing/scanning a product
|
||||
- If all fields could be automatically populated (means for purchase the product has a default best before date set), the transaction is automatically submitted
|
||||
- If not, a warning is displayed and you can fill in the missing information
|
||||
- Audio feedback is provided after scanning and on success/error of the transaction
|
||||
- => Quick video demo: https://www.youtube.com/watch?v=83dm9iD718k
|
||||
|
||||
### New feature: Self produced products
|
||||
- To a recipe a product can be attached
|
||||
- This products needs a "Default best before date"
|
||||
- On using "Consume all ingredients needed by this recipe" and when it has a product attached, one unit of that product (per serving in purchase quantity unit) will be added to stock (with the proper price based on the recipe ingredients)
|
||||
- (Thanks @kriddles for the intial work on this)
|
||||
|
||||
### New feature: Freeze/Thaw products
|
||||
- New product options "Default best before days after freezing/thawing" to set how the best before date should be changed on freezing/thawing
|
||||
- New location option "Is freezer" to indicate if the location is a freezer
|
||||
- => When moving a product from/to a freezer location, the best before date is changed accordingly
|
||||
- There is also a new sub feature flag `FEATURE_FLAG_STOCK_PRODUCT_FREEZING` to disable this if you don't need it (defaults to `true`)
|
||||
|
||||
### Stock improvements/fixes
|
||||
- The productcard gets now also refreshed after a transaction was posted (purchase/consume/etc.) (thanks @kriddles)
|
||||
- The product field calories (kcal) now also allows decimal numbers
|
||||
- On the inventory page, "New amount" is now prefilled with the current stock amount of the selected product
|
||||
- Fixed that entering partial amounts was not possible on the inventory page (only applies if the product option "Allow partial units in stock" is enabled)
|
||||
- Fixed that on purchase a wrong minimum amount was enforced for products with enabled tare weight handling in combination with different purchase/stock quantity units
|
||||
- Fixed that the productcard did not load correctly when `FEATURE_FLAG_STOCK_LOCATION_TRACKING` was set to `false` (thanks @kriddles)
|
||||
- Fixed that the "Add as barcode to existing product" workflow did not work twice when not switching the page inbetween
|
||||
|
||||
### Shopping list improvements/fixes
|
||||
- Added a compact view to have a better shopping list for shopping trips (new button "Compact view" in the header, additionally this is automatically enabled on mobile devices / when screen width is < 768 px)
|
||||
- It's now possible to filter for only undone (not striked through) items (new option in the "Filter by status" dropdown)
|
||||
- Fixed that when `FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS` was set to `false`, the shopping list appeared empty after some actions
|
||||
|
||||
### Recipe improvements
|
||||
- When consuming a recipe and if an ingredient is not in stock, but that product has any subproduct which is in stock, this gets now consumed (before consuming was not possible in that case)
|
||||
- When adding or editing a recipe ingredient, a dialog is now used instead of switching between pages (thanks @kriddles)
|
||||
|
||||
### Meal plan improvements/fixes
|
||||
- It's now possible to add notes per day (in the dropdown of the add button in the header of each day column)
|
||||
- It's now possible to products directly (also in the dropdown of the add button in the header of each day column, maybe useful in combination with the new "Self produced products" feature)
|
||||
- Added that the calories per serving are now also shown
|
||||
- Added that the total costs and calories per day are displayed in the header of each day column
|
||||
- Added a new `config.php` setting `MEAL_PLAN_FIRST_DAY_OF_WEEK` which can be used to start the meal plan on a different day (defaults to `CALENDAR_FIRST_DAY_OF_WEEK`, so no changed behavior when not configured)
|
||||
- Fixed that when `FEATURE_FLAG_STOCK_PRICE_TRACKING` was set to `false`, prices were still shown (thanks @kriddles)
|
||||
- Fixed that the week costs were missing for the weeks 1 - 9 of a year
|
||||
|
||||
### Calendar improvements
|
||||
- Improved that meal plan events in the iCal calendar export now contain a link to the appropriate meal plan week in the body of the event (thanks @kriddles)
|
||||
|
||||
### Task fixes
|
||||
- Fixed that a due date was required when editing an existing task
|
||||
|
||||
### API improvements/fixes
|
||||
- The endpoint `/stock` now includes also the product object itself (new field/property `product`) (thanks @gsacre)
|
||||
- The endpoint `/stock/products/{productId}/entries` can now include stock entries of child products (if the given product is a parent product and in addition to the ones of the given product) - new query parameter `include_sub_products` (defaults to `false` so no changed behavior when not supplied)
|
||||
- New endpoints for the new stock transfer & stock entry edit capabilities
|
||||
- Fixed that the route `/stock/barcodes/external-lookup/{barcode}` did not work, because the `barcode` argument was expected as a route argument but the route was missing it (thanks @Mikhail5555 and @beetle442002)
|
||||
- Fixed the response type description of the `/stock/volatile` endpoint
|
||||
|
||||
### General & other improvements/fixes
|
||||
- It's now possible to keep the screen on always or when a "fullscreen-card" (e. g. used for recipes) is displayed
|
||||
- New user options in the display settings menu in the top right corner (defaults to disabled)
|
||||
- Slightly optimized table loading & search performance (thanks @lwis)
|
||||
- Added that the currently active sidebar menu item is always in view
|
||||
- Reordered the sidebar menu items a little bit, grouped them by borders and made them a little smaller to waste less space
|
||||
- Changed/removed some animations (and replaced jQuery UI by [Animate.css](https://daneden.github.io/animate.css/)) to improve responsiveness
|
||||
- Fixed that also the first column (where in most tables only buttons/menus are displayed) in tables was searched when using the general search field
|
||||
- Fixed that the meal plan menu entry (sidebar) was not visible when the calendar was disabled (`FEATURE_FLAG_CALENDAR`) (thanks @lwis)
|
||||
- For integration: If a `GET` parameter `closeAfterCreation` is passed to the product edit page, the window will be closed on save (due to Browser restrictions, this only works when the window was opened from JavaScript) (thanks @Forceu)
|
||||
- Fixed that the `update.sh` file had wrong line endings (DOS instead of Unix)
|
||||
- Internal change: Demo mode is now handled via the setting `MODE` instead of checking the existence of the file `data/demo.txt`
|
||||
- There is now a RSS feed for the changelog, subscribe to get notified about new releases: https://grocy.info/changelog/feed
|
||||
- New translations: (thanks all the translators)
|
||||
- Hungarian (demo available at https://hu.demo.grocy.info)
|
||||
- Portuguese (Brazil) (demo available at https://pt-br.demo.grocy.info)
|
||||
- Slovak (demo available at https://sk.demo.grocy.info)
|
49
changelog/56_2.6.1_2020-03-06.md
Normal file
49
changelog/56_2.6.1_2020-03-06.md
Normal file
@@ -0,0 +1,49 @@
|
||||
## !! Important notice
|
||||
If you run grocy in a subdirectory, you need to set a new `config.php` setting (`BASE_PATH`, see `config-dist.php`)
|
||||
|
||||
### Stock fixes
|
||||
- Fixed purchase/consume/inventory problems when `FEATURE_FLAG_STOCK_LOCATION_TRACKING` was set to `false`
|
||||
- Fixed that products on the Location Content Sheet were not ordered by the product name
|
||||
|
||||
### Shopping list improvements/fixes
|
||||
- Added an option to hide the month-calendar (in the shopping list settings / top right corner settings menu) (defaults to disabled, so please enable this option if you still want to have the month-calendar on the shopping list)
|
||||
- Optimized the new compact view (there was a little too much white space at the sides of the page)
|
||||
- Added an option to not switch to the new compact view on mobile devices automatically (in the shopping list settings / top right corner settings menu) (defaults to `false`, so no changed behavior when not configured) (thanks @Forceu)
|
||||
- Fixed that the "Shopping list to stock workflow" did not work when `FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING` was set to `false`
|
||||
|
||||
### Recipe improvements/fixes
|
||||
- Optimized the ordering of the inputs on the recipe ingredient edit page (moved "Only check if a single unit is in stock" before the amount)
|
||||
- Variable ingredient amounts are now marked accordingly on the renedered recipe
|
||||
- After selecting a recipe on mobile devices, the page now automatically scrolls to the recipe card
|
||||
- Added the recipes base servings to be displayed on the recipe card and properly named the servings column in the recipes list/table (thanks @kriddles)
|
||||
- Added that recipe ingredients can now also be displayed grouped by the products product group (additionally to the ingredient group, new option in the recipes settings / top right corner settings menu) (defaults to `false`, so no changed behavior when not configured) (thanks @kriddles)
|
||||
- Fixed that when editing a recipe ingredient which had "Only check if a single unit is in stock" set, not any quantity unit could be picked and the amount stayed empty
|
||||
- Fixed that when reloading the "new recipe"-page (or when it gets auto-reloaded due to "Auto reload on external changes" is enabled), for each reload a new recipe was created
|
||||
- Fixed that the recipe "fullscreen card" was not correctly displayed
|
||||
- Fixed that nested recipes showed all ingredients of the nested recipes twice
|
||||
- Fixed that when displaying or consuming a recipe from the meal plan the serving amount was maybe wrong (was the one from the recipe instead the one from the meal plan entry) (thanks @kriddles)
|
||||
- Fixed that the stock fulfillment counts on the recipe card were maybe wrong if that recipe was also added to the meal plan (thanks @kriddles)
|
||||
- Fixed that the recipe page was reloaded when expanding a collapsed row on mobile (thanks @Mikhail5555)
|
||||
|
||||
### Meal plan improvements
|
||||
- Improved that all add-dialogs can be submitted by using `ENTER` and that the next input is automatically selected after selecting a recipe/product
|
||||
- Added an edit button to all types of meal plan entries
|
||||
- When adding a recipe, the serving amount is now prefilled with the one of the selected recipe (thanks @kriddles)
|
||||
- Fixed that the meal plan not used the full height on mobile devices
|
||||
|
||||
### Calendar fixes
|
||||
- Fixed to only include events when the corresponding feature flag is enabled (e. g. don't show expiring products when `FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING` is set to `false`) (thanks @kriddles)
|
||||
- Fixed that the calendar not used the full height on mobile devices
|
||||
|
||||
### API improvements/fixes
|
||||
- The endpoint `/chores` now also includes the chore name (new field `chore_name`) (thanks @DarienFord)
|
||||
|
||||
### General & other improvements/fixes
|
||||
- Big backend performance improvements (thanks @zebardy)
|
||||
- Added a button to enable the device flash light on the camera barcode scanner popup (thanks @radim-ek)
|
||||
- Optimized the top navbar height and overall spacing to waste less space
|
||||
- Replaced the scan-mode-switch-button by a native button because it's less disturbing
|
||||
- Fixed that the "contextual time ago" of date/time pickers was not displayed
|
||||
- New translations: (thanks all the translators)
|
||||
- Czech (demo available at https://cs.demo.grocy.info)
|
||||
- Portuguese (Portugal) (demo available at https://pt-pt.demo.grocy.info)
|
1
changelog/57_2.6.2_2020-04-03.md
Normal file
1
changelog/57_2.6.2_2020-04-03.md
Normal file
@@ -0,0 +1 @@
|
||||
Security fix (see [#696](https://github.com/grocy/grocy/issues/696))
|
66
changelog/58_2.7.0_2020-04-16.md
Normal file
66
changelog/58_2.7.0_2020-04-16.md
Normal file
@@ -0,0 +1,66 @@
|
||||
### New feature: Price history per store
|
||||
- Define stores under master data
|
||||
- New product option to set the default store
|
||||
- Track on purchase/inventory in which store you bought the product (gets prefilled by the last store you purchased the product, or the default store of the product if you never bought it)
|
||||
- => The price history chart on the product card shows a line per store
|
||||
- (Thanks @immae and @kriddles)
|
||||
|
||||
### Stock improvements/fixes
|
||||
- When creating a new product, the "QU id stock" is now preset by the "QU id purchase" (because most of the time that's most probably the same) (thanks @Mik-)
|
||||
- Clarified the row-button colors and toolips on the stock entries page
|
||||
- Added a camera-barcode-scanning-button to the barcode(s) field on the product edit page to be able to also scan barcodes by the device camera there
|
||||
- Added a new option (stock settings / top right corner settings menu) to show an icon on the stock overview if the product is already on the shopping list (next to the amount) (defaults to enabled)
|
||||
- Fixed that the aggregated parent product amount (displayed on the stock overview page and on the product card) did not respect quantity unit conversions when the parent/sub products had different stock quantity units (the unit conversion needs to be globally defined, or as an override on the sub product)
|
||||
- Fixed the conversion factor hint to display also decimal places on the purchase page (only displayed when the product has a different purchase/stock quantity unit)
|
||||
- Fixed that the stock entries page was broken when there were product userfields defined with enabled "Show as column in tables"
|
||||
- Fixed that best before dates were displayed on the stock overview and stock entries page even with disabled `FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING`
|
||||
- Fixed that when editing a stock entry and setting a decimal amount, the decimal part was ignored (only possible when the product option "Allow partial units in stock" is enabled)
|
||||
- Fixed that "Default best before days" and "Default best before days after opened" on the product edit page were always shown regardless of the feature flags `FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING` and `FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING`
|
||||
- Fixed that the form validation limits for the amount input and products with enabled tare weight handling were wrong
|
||||
- Fixed that the price was saved wrong for products with a different purchase/stock quantity unit when using "Total price" on purchase (resulted for example in wrong recipe costs)
|
||||
- Fixed that undoing "product-opened"-actions was not possible
|
||||
- Fixed/improved consuming from the stock overview page for products with enabled tare weight handling ("consume 1" button is now disabled for such products, "consume all" works again)
|
||||
|
||||
### Shopping list improvements/fixes
|
||||
- It's now possible to collapse/expand the product group sections (by clicking on the grey group header)
|
||||
- Fixed that the "shopping list to stock workflow"-dialog was not visible in compact view
|
||||
- Fixed that when printing the shopping list, configured userfields were not included
|
||||
|
||||
### Recipe fixes
|
||||
- Fixed that when editing an ingredient with "Only check if a single unit is in stock" set, the quantity unit was always set to the products stock quantity unit regardless if a different one was selected for that ingredient
|
||||
- Fixed a PHP notice on the recipes page when there are no recipes (thanks @mrunkel)
|
||||
|
||||
### Chores fixes
|
||||
- Fixed that weekly chores, where the next execution should be in the same week, were scheduled always for the next week only
|
||||
|
||||
### Calendar fixes
|
||||
- Fixed that the "Share/Integrate calendar (iCal)" button did not work (thanks @tsia)
|
||||
|
||||
### API improvements/fixes
|
||||
- New endpoint `/user/settings` to get all user settings of the currently logged in user (key/value pairs)
|
||||
- New endpoint `/system/config` to get all config settings (`config.php`) (key/value pairs)
|
||||
- The endpoint `/stock/products/{productId}/locations` now also returns the current stock amount of the product in that loctation (new field/property `amount`) (thanks @Forceu)
|
||||
- The endpoints `/objects/{entity}` and `/objects/{entity}/{objectId}` now also include/return userfields of the object(s) (new field/property `userfields` per object, key/value pairs or `null`, when the object has no userfields)
|
||||
- Fixed that CORS was broken (there was no response to preflight OPTIONS requests)
|
||||
|
||||
### General & other improvements/fixes
|
||||
- Optimized that sometimes the corresponding form was not validated when selecting a date from the datetimepicker
|
||||
- New `config.php` setting `FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_FIELD_NUMBER_PAD` which activates the number pad for best-before-date fields on (supported) mobile browsers (useful because of [shorthands](https://github.com/grocy/grocy#input-shorthands-for-date-fields)) (defaults to `true`) (thanks @Mik-)
|
||||
- Enhancements for the camera barcode scanner
|
||||
- Torch / light improvements (thanks @Mik-)
|
||||
- The light button is only displayed when the device has a flash light
|
||||
- New `config.php` setting `FEATURE_FLAG_AUTO_TORCH_ON_WITH_CAMERA` to always enable the flash light automatically
|
||||
- It's now possible to change the camera when the device has more than one (dropdown in the camera scanning dialog, only visible if there is more than one camera available) (thanks @MichaelMadsen)
|
||||
- Replaced [QuaggaJS](https://github.com/serratus/quaggaJS) (seems to be unmaintained) by [Quagga2](https://github.com/ericblade/quagga2)
|
||||
- New user setting `quagga2_numofworkers` (`config.php`) to make the Quagga2 setting "numOfWorkers" adjustable (defaults to `4`)
|
||||
- Various display/CSS improvements (thanks @Mik-)
|
||||
- Prerequisites (PHP extensions, critical files/folders) will now be checked and properly reported if there are problems (thanks @Forceu)
|
||||
- Improved the the overview pages on mobile devices (main column was hidden) (thanks @Mik-)
|
||||
- The general search field now searches accent insensitive
|
||||
- Fixed that all number inputs are always prefilled in the browser locale number format
|
||||
- Optimized the handling of settings provided by `data/settingoverrides` files (thanks @dacto)
|
||||
- Optimized the update script (`update.sh`) to create the backup tar archive before writing to it (was a problem on Btrfs file systems) (thanks @shane-kerr)
|
||||
- Fixed (again) that the `update.sh` file had wrong line endings (DOS instead of Unix)
|
||||
- New translations: (thanks all the translators)
|
||||
- Japanese (demo available at https://ja.demo.grocy.info)
|
||||
- Chinese (Taiwan) (demo available at https://zh-tw.demo.grocy.info)
|
@@ -1,14 +1,16 @@
|
||||
{
|
||||
"require": {
|
||||
"php": ">=7.2",
|
||||
"slim/slim": "^3.12.2",
|
||||
"morris/lessql": "^0.4.1",
|
||||
"slim/slim": "^4.0",
|
||||
"slim/psr7": "^1.0",
|
||||
"slim/http": "^1.0",
|
||||
"php-di/php-di": "^6.0",
|
||||
"rubellum/slim-blade-view": "^0.1.1",
|
||||
"tuupola/cors-middleware": "^1.0.0",
|
||||
"eluceo/ical": "^0.15.1",
|
||||
"erusev/parsedown": "^1.7.3",
|
||||
"gettext/gettext": "^4.6.3",
|
||||
"gumlet/php-image-resize": "^1.9.2"
|
||||
"morris/lessql": "^0.4.1",
|
||||
"gettext/gettext": "^4.8",
|
||||
"eluceo/ical": "^0.16.0",
|
||||
"erusev/parsedown": "^1.7",
|
||||
"gumlet/php-image-resize": "^1.9"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
1220
composer.lock
generated
1220
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -15,7 +15,8 @@
|
||||
|
||||
|
||||
# Either "production", "dev", "demo" or "prerelease"
|
||||
# ("demo" and "prerelease" is reserved to be used only on the offical demo instances)
|
||||
# When not "production", authentication will be disabled and
|
||||
# demo data will be populated during database migrations
|
||||
Setting('MODE', 'production');
|
||||
|
||||
# Either "en" or "de" or the directory name of
|
||||
@@ -32,10 +33,17 @@ Setting('CALENDAR_SHOW_WEEK_OF_YEAR', true);
|
||||
|
||||
# To keep it simple: grocy does not handle any currency conversions,
|
||||
# this here is used to format all money values,
|
||||
# so doesn't matter really matter, but should be the
|
||||
# so doesn't really matter, but should be the
|
||||
# ISO 4217 code of the currency ("USD", "EUR", "GBP", etc.)
|
||||
Setting('CURRENCY', 'USD');
|
||||
|
||||
# When running grocy in a subdirectory, this should be set to the relative path, otherwise empty
|
||||
# Example:
|
||||
# Webserver root directory = /var/www
|
||||
# grocy directory = /var/www/grocy
|
||||
# => BASE_PATH = /grocy
|
||||
Setting('BASE_PATH', '');
|
||||
|
||||
# The base url of your installation,
|
||||
# should be just "/" when running directly under the root of a (sub)domain
|
||||
# or for example "https://example.com/grocy" when using a subdirectory
|
||||
@@ -51,7 +59,7 @@ Setting('DISABLE_URL_REWRITING', false);
|
||||
|
||||
# Specify an custom homepage if desired - by default the homepage will be set to the stock overview,
|
||||
# this needs to be one of the following values:
|
||||
# stock, shoppinglist, recipes, chores, tasks, batteries, equipment, calendar
|
||||
# stock, shoppinglist, recipes, chores, tasks, batteries, equipment, calendar, mealplan
|
||||
Setting('ENTRY_PAGE', 'stock');
|
||||
|
||||
# Set this to true if you want to disable authentication / the login screen,
|
||||
@@ -61,6 +69,11 @@ Setting('DISABLE_AUTH', false);
|
||||
# Set this to true if you want to disable the ability to scan a barcode via the device camera (Browser API)
|
||||
Setting('DISABLE_BROWSER_BARCODE_CAMERA_SCANNING', false);
|
||||
|
||||
# Set this if you want to have a different start day for the weekly meal plan view,
|
||||
# leave empty to use CALENDAR_FIRST_DAY_OF_WEEK (see above)
|
||||
# Needs to be a number where Sunday = 0, Monday = 1 and so forth
|
||||
Setting('MEAL_PLAN_FIRST_DAY_OF_WEEK', '');
|
||||
|
||||
|
||||
# Default user settings
|
||||
# These settings can be changed per user, here the defaults
|
||||
@@ -74,6 +87,10 @@ DefaultUserSetting('auto_night_mode_time_range_to', "07:00"); // Format HH:mm
|
||||
DefaultUserSetting('auto_night_mode_time_range_goes_over_midnight', true); // If the time range above goes over midnight
|
||||
DefaultUserSetting('currently_inside_night_mode_range', false); // If we're currently inside of night mode time range (this is not user configurable, but stored as a user setting because it's evaluated client side to be able to use the client time instead of the maybe different server time)
|
||||
|
||||
# Keep screen on settings
|
||||
DefaultUserSetting('keep_screen_on', false); // Keep the screen always on
|
||||
DefaultUserSetting('keep_screen_on_when_fullscreen_card', false); // Keep the screen on when a "fullscreen-card" is displayed
|
||||
|
||||
# Stock settings
|
||||
DefaultUserSetting('product_presets_location_id', -1); // Default location id for new products (-1 means no location is preset)
|
||||
DefaultUserSetting('product_presets_product_group_id', -1); // Default product group id for new products (-1 means no product group is preset)
|
||||
@@ -81,6 +98,17 @@ DefaultUserSetting('product_presets_qu_id', -1); // Default quantity unit id for
|
||||
DefaultUserSetting('stock_expring_soon_days', 5);
|
||||
DefaultUserSetting('stock_default_purchase_amount', 0);
|
||||
DefaultUserSetting('stock_default_consume_amount', 1);
|
||||
DefaultUserSetting('scan_mode_consume_enabled', false);
|
||||
DefaultUserSetting('scan_mode_purchase_enabled', false);
|
||||
DefaultUserSetting('show_icon_on_stock_overview_page_when_product_is_on_shopping_list', true);
|
||||
|
||||
# Shopping list settings
|
||||
DefaultUserSetting('shopping_list_to_stock_workflow_auto_submit_when_prefilled', false); // Automatically do the booking using the last price and the amount of the shopping list item, if the product has "Default best before days" set
|
||||
DefaultUserSetting('shopping_list_show_calendar', false);
|
||||
DefaultUserSetting('shopping_list_disable_auto_compact_view_on_mobile', false);
|
||||
|
||||
# Recipe settings
|
||||
DefaultUserSetting('recipe_ingredients_group_by_product_group', false); // Group recipe ingredients by their product group
|
||||
|
||||
# Chores settings
|
||||
DefaultUserSetting('chores_due_soon_days', 5);
|
||||
@@ -98,10 +126,8 @@ DefaultUserSetting('auto_reload_on_db_change', true);
|
||||
# Show a clock in the header next to the logo or not
|
||||
DefaultUserSetting('show_clock_in_header', false);
|
||||
|
||||
# Shopping list to stock workflow:
|
||||
# Automatically do the booking using the last price and the amount
|
||||
# of the shopping list item, if the product has "Default best before days" set
|
||||
DefaultUserSetting('shopping_list_to_stock_workflow_auto_submit_when_prefilled', false);
|
||||
# Component configuration
|
||||
DefaultUserSetting('quagga2_numofworkers', 4);
|
||||
|
||||
|
||||
# Feature flags
|
||||
@@ -124,7 +150,12 @@ Setting('FEATURE_FLAG_STOCK_PRICE_TRACKING', true);
|
||||
Setting('FEATURE_FLAG_STOCK_LOCATION_TRACKING', true);
|
||||
Setting('FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING', true);
|
||||
Setting('FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING', true);
|
||||
Setting('FEATURE_FLAG_STOCK_PRODUCT_FREEZING', true);
|
||||
Setting('FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_FIELD_NUMBER_PAD', true); // Activate the number pad in best-before-date fields on (supported) mobile browsers
|
||||
Setting('FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS', true);
|
||||
Setting('FEATURE_FLAG_CHORES_ASSIGNMENTS', true);
|
||||
|
||||
|
||||
# Feature settings
|
||||
Setting('FEATURE_SETTING_STOCK_COUNT_OPENED_PRODUCTS_AGAINST_MINIMUM_STOCK_AMOUNT', true); // When set to false, opened products will not be considered for minimum stock amounts
|
||||
Setting('FEATURE_FLAG_AUTO_TORCH_ON_WITH_CAMERA', true); // Enables the torch automaticaly in every camera barcode scanner.
|
||||
|
@@ -5,25 +5,34 @@ namespace Grocy\Controllers;
|
||||
class BaseApiController extends BaseController
|
||||
{
|
||||
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->OpenApiSpec = json_decode(file_get_contents(__DIR__ . '/../grocy.openapi.json'));
|
||||
}
|
||||
|
||||
protected $OpenApiSpec;
|
||||
protected $OpenApiSpec = null;
|
||||
|
||||
protected function ApiResponse($data)
|
||||
protected function getOpenApispec()
|
||||
{
|
||||
return json_encode($data);
|
||||
if($this->OpenApiSpec == null)
|
||||
{
|
||||
$this->OpenApiSpec = json_decode(file_get_contents(__DIR__ . '/../grocy.openapi.json'));
|
||||
}
|
||||
return $this->OpenApiSpec;
|
||||
}
|
||||
|
||||
protected function EmptyApiResponse($response, $status = 204)
|
||||
protected function ApiResponse(\Psr\Http\Message\ResponseInterface $response, $data)
|
||||
{
|
||||
$response->getBody()->write(json_encode($data));
|
||||
return $response;
|
||||
}
|
||||
|
||||
protected function EmptyApiResponse(\Psr\Http\Message\ResponseInterface $response, $status = 204)
|
||||
{
|
||||
return $response->withStatus($status);
|
||||
}
|
||||
|
||||
protected function GenericErrorResponse($response, $errorMessage, $status = 400)
|
||||
protected function GenericErrorResponse(\Psr\Http\Message\ResponseInterface $response, $errorMessage, $status = 400)
|
||||
{
|
||||
return $response->withStatus($status)->withJson(array(
|
||||
'error_message' => $errorMessage
|
||||
|
@@ -5,43 +5,56 @@ namespace Grocy\Controllers;
|
||||
use \Grocy\Services\DatabaseService;
|
||||
use \Grocy\Services\ApplicationService;
|
||||
use \Grocy\Services\LocalizationService;
|
||||
use \Grocy\Services\StockService;
|
||||
use \Grocy\Services\UsersService;
|
||||
use \Grocy\Services\UserfieldsService;
|
||||
use \Grocy\Services\BatteriesService;
|
||||
use \Grocy\Services\CalendarService;
|
||||
use \Grocy\Services\SessionService;
|
||||
use \Grocy\Services\RecipesService;
|
||||
use \Grocy\Services\TasksService;
|
||||
use \Grocy\Services\FilesService;
|
||||
use \Grocy\Services\ChoresService;
|
||||
use \Grocy\Services\ApiKeyService;
|
||||
|
||||
class BaseController
|
||||
{
|
||||
public function __construct(\Slim\Container $container) {
|
||||
$databaseService = new DatabaseService();
|
||||
$this->Database = $databaseService->GetDbConnection();
|
||||
|
||||
$localizationService = new LocalizationService(GROCY_CULTURE);
|
||||
$this->LocalizationService = $localizationService;
|
||||
public function __construct(\DI\Container $container) {
|
||||
|
||||
$applicationService = new ApplicationService();
|
||||
$versionInfo = $applicationService->GetInstalledVersion();
|
||||
$container->view->set('version', $versionInfo->Version);
|
||||
$container->view->set('releaseDate', $versionInfo->ReleaseDate);
|
||||
$this->AppContainer = $container;
|
||||
$this->View = $container->get('view');
|
||||
}
|
||||
|
||||
$container->view->set('__t', function(string $text, ...$placeholderValues) use($localizationService)
|
||||
protected function render($response, $page, $data = [])
|
||||
{
|
||||
$container = $this->AppContainer;
|
||||
|
||||
$versionInfo = $this->getApplicationService()->GetInstalledVersion();
|
||||
$this->View->set('version', $versionInfo->Version);
|
||||
$this->View->set('releaseDate', $versionInfo->ReleaseDate);
|
||||
|
||||
$localizationService = $this->getLocalizationService();
|
||||
$this->View->set('__t', function(string $text, ...$placeholderValues) use($localizationService)
|
||||
{
|
||||
return $localizationService->__t($text, $placeholderValues);
|
||||
});
|
||||
$container->view->set('__n', function($number, $singularForm, $pluralForm) use($localizationService)
|
||||
$this->View->set('__n', function($number, $singularForm, $pluralForm) use($localizationService)
|
||||
{
|
||||
return $localizationService->__n($number, $singularForm, $pluralForm);
|
||||
});
|
||||
$container->view->set('GettextPo', $localizationService->GetPoAsJsonString());
|
||||
$this->View->set('GettextPo', $localizationService->GetPoAsJsonString());
|
||||
|
||||
$container->view->set('U', function($relativePath, $isResource = false) use($container)
|
||||
$this->View->set('U', function($relativePath, $isResource = false) use($container)
|
||||
{
|
||||
return $container->UrlManager->ConstructUrl($relativePath, $isResource);
|
||||
return $container->get('UrlManager')->ConstructUrl($relativePath, $isResource);
|
||||
});
|
||||
|
||||
$embedded = false;
|
||||
if (isset($container->request->getQueryParams()['embedded']))
|
||||
if (isset($_GET['embedded']))
|
||||
{
|
||||
$embedded = true;
|
||||
}
|
||||
$container->view->set('embedded', $embedded);
|
||||
$this->View->set('embedded', $embedded);
|
||||
|
||||
$constants = get_defined_constants();
|
||||
foreach ($constants as $constant => $value)
|
||||
@@ -51,20 +64,24 @@ class BaseController
|
||||
unset($constants[$constant]);
|
||||
}
|
||||
}
|
||||
$container->view->set('featureFlags', $constants);
|
||||
$this->View->set('featureFlags', $constants);
|
||||
|
||||
$container->view->set('userentitiesForSidebar', $this->Database->userentities()->where('show_in_sidebar_menu = 1')->orderBy('name'));
|
||||
return $this->View->render($response, $page, $data);
|
||||
}
|
||||
|
||||
protected function renderPage($response, $page, $data = [])
|
||||
{
|
||||
$this->View->set('userentitiesForSidebar', $this->getDatabase()->userentities()->where('show_in_sidebar_menu = 1')->orderBy('name'));
|
||||
try
|
||||
{
|
||||
$usersService = new UsersService();
|
||||
$usersService = $this->getUsersService();
|
||||
if (defined('GROCY_USER_ID'))
|
||||
{
|
||||
$container->view->set('userSettings', $usersService->GetUserSettings(GROCY_USER_ID));
|
||||
$this->View->set('userSettings', $usersService->GetUserSettings(GROCY_USER_ID));
|
||||
}
|
||||
else
|
||||
{
|
||||
$container->view->set('userSettings', null);
|
||||
$this->View->set('userSettings', null);
|
||||
}
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -72,10 +89,83 @@ class BaseController
|
||||
// Happens when database is not initialised or migrated...
|
||||
}
|
||||
|
||||
$this->AppContainer = $container;
|
||||
return $this->render($response, $page, $data);
|
||||
}
|
||||
|
||||
protected function getDatabaseService()
|
||||
{
|
||||
return DatabaseService::getInstance();
|
||||
}
|
||||
|
||||
protected function getDatabase()
|
||||
{
|
||||
return $this->getDatabaseService()->GetDbConnection();
|
||||
}
|
||||
|
||||
protected function getLocalizationService()
|
||||
{
|
||||
return LocalizationService::getInstance(GROCY_CULTURE);
|
||||
}
|
||||
|
||||
protected function getApplicationservice()
|
||||
{
|
||||
return ApplicationService::getInstance();
|
||||
}
|
||||
|
||||
protected function getBatteriesService()
|
||||
{
|
||||
return BatteriesService::getInstance();
|
||||
}
|
||||
|
||||
protected function getCalendarService()
|
||||
{
|
||||
return CalendarService::getInstance();
|
||||
}
|
||||
|
||||
protected function getSessionService()
|
||||
{
|
||||
return SessionService::getInstance();
|
||||
}
|
||||
|
||||
protected function getRecipesService()
|
||||
{
|
||||
return RecipesService::getInstance();
|
||||
}
|
||||
|
||||
protected function getStockService()
|
||||
{
|
||||
return StockService::getInstance();
|
||||
}
|
||||
|
||||
protected function getTasksService()
|
||||
{
|
||||
return TasksService::getInstance();
|
||||
}
|
||||
|
||||
protected function getUsersService()
|
||||
{
|
||||
return UsersService::getInstance();
|
||||
}
|
||||
|
||||
protected function getUserfieldsService()
|
||||
{
|
||||
return UserfieldsService::getInstance();
|
||||
}
|
||||
|
||||
protected function getApiKeyService()
|
||||
{
|
||||
return ApiKeyService::getInstance();
|
||||
}
|
||||
|
||||
protected function getChoresService()
|
||||
{
|
||||
return ChoresService::getInstance();
|
||||
}
|
||||
|
||||
protected function getFilesService()
|
||||
{
|
||||
return FilesService::getInstance();
|
||||
}
|
||||
|
||||
protected $AppContainer;
|
||||
protected $Database;
|
||||
protected $LocalizationService;
|
||||
}
|
||||
|
@@ -2,19 +2,14 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\BatteriesService;
|
||||
|
||||
class BatteriesApiController extends BaseApiController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->BatteriesService = new BatteriesService();
|
||||
}
|
||||
|
||||
protected $BatteriesService;
|
||||
|
||||
public function TrackChargeCycle(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function TrackChargeCycle(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
@@ -26,8 +21,8 @@ class BatteriesApiController extends BaseApiController
|
||||
$trackedTime = $requestBody['tracked_time'];
|
||||
}
|
||||
|
||||
$chargeCycleId = $this->BatteriesService->TrackChargeCycle($args['batteryId'], $trackedTime);
|
||||
return $this->ApiResponse($this->Database->battery_charge_cycles($chargeCycleId));
|
||||
$chargeCycleId = $this->getBatteriesService()->TrackChargeCycle($args['batteryId'], $trackedTime);
|
||||
return $this->ApiResponse($response, $this->getDatabase()->battery_charge_cycles($chargeCycleId));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -35,11 +30,11 @@ class BatteriesApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function BatteryDetails(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function BatteryDetails(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
return $this->ApiResponse($this->BatteriesService->GetBatteryDetails($args['batteryId']));
|
||||
return $this->ApiResponse($response, $this->getBatteriesService()->GetBatteryDetails($args['batteryId']));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -47,16 +42,16 @@ class BatteriesApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function Current(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Current(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->ApiResponse($this->BatteriesService->GetCurrent());
|
||||
return $this->ApiResponse($response, $this->getBatteriesService()->GetCurrent());
|
||||
}
|
||||
|
||||
public function UndoChargeCycle(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UndoChargeCycle(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$this->ApiResponse($this->BatteriesService->UndoChargeCycle($args['chargeCycleId']));
|
||||
$this->ApiResponse($response, $this->getBatteriesService()->UndoChargeCycle($args['chargeCycleId']));
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
|
@@ -2,81 +2,72 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\BatteriesService;
|
||||
use \Grocy\Services\UsersService;
|
||||
use \Grocy\Services\UserfieldsService;
|
||||
|
||||
class BatteriesController extends BaseController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->BatteriesService = new BatteriesService();
|
||||
$this->UserfieldsService = new UserfieldsService();
|
||||
}
|
||||
|
||||
protected $BatteriesService;
|
||||
protected $UserfieldsService;
|
||||
|
||||
public function Overview(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Overview(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$usersService = new UsersService();
|
||||
$usersService = $this->getUsersService();
|
||||
$nextXDays = $usersService->GetUserSettings(GROCY_USER_ID)['batteries_due_soon_days'];
|
||||
|
||||
return $this->AppContainer->view->render($response, 'batteriesoverview', [
|
||||
'batteries' => $this->Database->batteries()->orderBy('name'),
|
||||
'current' => $this->BatteriesService->GetCurrent(),
|
||||
return $this->renderPage($response, 'batteriesoverview', [
|
||||
'batteries' => $this->getDatabase()->batteries()->orderBy('name'),
|
||||
'current' => $this->getBatteriesService()->GetCurrent(),
|
||||
'nextXDays' => $nextXDays,
|
||||
'userfields' => $this->UserfieldsService->GetFields('batteries'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('batteries')
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('batteries'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('batteries')
|
||||
]);
|
||||
}
|
||||
|
||||
public function TrackChargeCycle(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function TrackChargeCycle(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'batterytracking', [
|
||||
'batteries' => $this->Database->batteries()->orderBy('name')
|
||||
return $this->renderPage($response, 'batterytracking', [
|
||||
'batteries' => $this->getDatabase()->batteries()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
|
||||
public function BatteriesList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function BatteriesList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'batteries', [
|
||||
'batteries' => $this->Database->batteries()->orderBy('name'),
|
||||
'userfields' => $this->UserfieldsService->GetFields('batteries'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('batteries')
|
||||
return $this->renderPage($response, 'batteries', [
|
||||
'batteries' => $this->getDatabase()->batteries()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('batteries'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('batteries')
|
||||
]);
|
||||
}
|
||||
|
||||
public function BatteryEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function BatteryEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['batteryId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'batteryform', [
|
||||
return $this->renderPage($response, 'batteryform', [
|
||||
'mode' => 'create',
|
||||
'userfields' => $this->UserfieldsService->GetFields('batteries')
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('batteries')
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'batteryform', [
|
||||
'battery' => $this->Database->batteries($args['batteryId']),
|
||||
return $this->renderPage($response, 'batteryform', [
|
||||
'battery' => $this->getDatabase()->batteries($args['batteryId']),
|
||||
'mode' => 'edit',
|
||||
'userfields' => $this->UserfieldsService->GetFields('batteries')
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('batteries')
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function Journal(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Journal(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'batteriesjournal', [
|
||||
'chargeCycles' => $this->Database->battery_charge_cycles()->orderBy('tracked_time', 'DESC'),
|
||||
'batteries' => $this->Database->batteries()->orderBy('name')
|
||||
return $this->renderPage($response, 'batteriesjournal', [
|
||||
'chargeCycles' => $this->getDatabase()->battery_charge_cycles()->orderBy('tracked_time', 'DESC'),
|
||||
'batteries' => $this->getDatabase()->batteries()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
|
||||
public function BatteriesSettings(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function BatteriesSettings(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'batteriessettings');
|
||||
return $this->renderPage($response, 'batteriessettings');
|
||||
}
|
||||
}
|
||||
|
@@ -2,37 +2,38 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\CalendarService;
|
||||
use \Grocy\Services\ApiKeyService;
|
||||
|
||||
class CalendarApiController extends BaseApiController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->CalendarService = new CalendarService();
|
||||
$this->ApiKeyService = new ApiKeyService();
|
||||
}
|
||||
|
||||
protected $CalendarService;
|
||||
protected $ApiKeyService;
|
||||
|
||||
public function Ical(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Ical(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$vCalendar = new \Eluceo\iCal\Component\Calendar('grocy');
|
||||
|
||||
$events = $this->CalendarService->GetEvents();
|
||||
$events = $this->getCalendarService()->GetEvents();
|
||||
foreach($events as $event)
|
||||
{
|
||||
$date = new \DateTime($event['start']);
|
||||
$date->setTimezone(date_default_timezone_get());
|
||||
|
||||
if ($event['date_format'] === 'date')
|
||||
{
|
||||
$date->setTime(23, 59, 59);
|
||||
}
|
||||
|
||||
$vEvent = new \Eluceo\iCal\Component\Event();
|
||||
$vEvent->setDtStart(new \DateTime($event['start']))
|
||||
->setDtEnd(new \DateTime($event['start']))
|
||||
$vEvent->setDtStart($date)
|
||||
->setDtEnd($date)
|
||||
->setSummary($event['title'])
|
||||
->setDescription($event['description'])
|
||||
->setNoTime($event['date_format'] === 'date')
|
||||
->setUseUtc(false);
|
||||
|
||||
->setUseTimezone(true);
|
||||
|
||||
$vCalendar->addComponent($vEvent);
|
||||
}
|
||||
|
||||
@@ -46,12 +47,12 @@ class CalendarApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function IcalSharingLink(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function IcalSharingLink(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
return $this->ApiResponse(array(
|
||||
'url' => $this->AppContainer->UrlManager->ConstructUrl('/api/calendar/ical?secret=' . $this->ApiKeyService->GetOrCreateApiKey(ApiKeyService::API_KEY_TYPE_SPECIAL_PURPOSE_CALENDAR_ICAL))
|
||||
return $this->ApiResponse($response, array(
|
||||
'url' => $this->AppContainer->get('UrlManager')->ConstructUrl('/api/calendar/ical?secret=' . $this->getApiKeyService()->GetOrCreateApiKey(\Grocy\Services\ApiKeyService::API_KEY_TYPE_SPECIAL_PURPOSE_CALENDAR_ICAL))
|
||||
));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
|
@@ -2,22 +2,17 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\CalendarService;
|
||||
|
||||
class CalendarController extends BaseController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->CalendarService = new CalendarService();
|
||||
}
|
||||
|
||||
protected $CalendarService;
|
||||
|
||||
public function Overview(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Overview(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'calendar', [
|
||||
'fullcalendarEventSources' => $this->CalendarService->GetEvents()
|
||||
return $this->renderPage($response, 'calendar', [
|
||||
'fullcalendarEventSources' => $this->getCalendarService()->GetEvents()
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@@ -2,19 +2,14 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\ChoresService;
|
||||
|
||||
class ChoresApiController extends BaseApiController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->ChoresService = new ChoresService();
|
||||
}
|
||||
|
||||
protected $ChoresService;
|
||||
|
||||
public function TrackChoreExecution(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function TrackChoreExecution(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
@@ -32,8 +27,8 @@ class ChoresApiController extends BaseApiController
|
||||
$doneBy = $requestBody['done_by'];
|
||||
}
|
||||
|
||||
$choreExecutionId = $this->ChoresService->TrackChore($args['choreId'], $trackedTime, $doneBy);
|
||||
return $this->ApiResponse($this->Database->chores_log($choreExecutionId));
|
||||
$choreExecutionId = $this->getChoresService()->TrackChore($args['choreId'], $trackedTime, $doneBy);
|
||||
return $this->ApiResponse($response, $this->getDatabase()->chores_log($choreExecutionId));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -41,11 +36,11 @@ class ChoresApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function ChoreDetails(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ChoreDetails(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
return $this->ApiResponse($this->ChoresService->GetChoreDetails($args['choreId']));
|
||||
return $this->ApiResponse($response, $this->getChoresService()->GetChoreDetails($args['choreId']));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -53,16 +48,16 @@ class ChoresApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function Current(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Current(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->ApiResponse($this->ChoresService->GetCurrent());
|
||||
return $this->ApiResponse($response, $this->getChoresService()->GetCurrent());
|
||||
}
|
||||
|
||||
public function UndoChoreExecution(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UndoChoreExecution(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$this->ApiResponse($this->ChoresService->UndoChoreExecution($args['executionId']));
|
||||
$this->ApiResponse($response, $this->getChoresService()->UndoChoreExecution($args['executionId']));
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -71,7 +66,7 @@ class ChoresApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function CalculateNextExecutionAssignments(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function CalculateNextExecutionAssignments(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -85,15 +80,15 @@ class ChoresApiController extends BaseApiController
|
||||
|
||||
if ($choreId === null)
|
||||
{
|
||||
$chores = $this->Database->chores();
|
||||
$chores = $this->getDatabase()->chores();
|
||||
foreach ($chores as $chore)
|
||||
{
|
||||
$this->ChoresService->CalculateNextExecutionAssignment($chore->id);
|
||||
$this->getChoresService()->CalculateNextExecutionAssignment($chore->id);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ChoresService->CalculateNextExecutionAssignment($choreId);
|
||||
$this->getChoresService()->CalculateNextExecutionAssignment($choreId);
|
||||
}
|
||||
|
||||
return $this->EmptyApiResponse($response);
|
||||
|
@@ -2,95 +2,86 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\ChoresService;
|
||||
use \Grocy\Services\UsersService;
|
||||
use \Grocy\Services\UserfieldsService;
|
||||
|
||||
class ChoresController extends BaseController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->ChoresService = new ChoresService();
|
||||
$this->UserfieldsService = new UserfieldsService();
|
||||
}
|
||||
|
||||
protected $ChoresService;
|
||||
protected $UserfieldsService;
|
||||
|
||||
public function Overview(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Overview(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$usersService = new UsersService();
|
||||
$usersService = $this->getUsersService();
|
||||
$nextXDays = $usersService->GetUserSettings(GROCY_USER_ID)['chores_due_soon_days'];
|
||||
|
||||
return $this->AppContainer->view->render($response, 'choresoverview', [
|
||||
'chores' => $this->Database->chores()->orderBy('name'),
|
||||
'currentChores' => $this->ChoresService->GetCurrent(),
|
||||
return $this->renderPage($response, 'choresoverview', [
|
||||
'chores' => $this->getDatabase()->chores()->orderBy('name'),
|
||||
'currentChores' => $this->getChoresService()->GetCurrent(),
|
||||
'nextXDays' => $nextXDays,
|
||||
'userfields' => $this->UserfieldsService->GetFields('chores'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('chores'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('chores'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('chores'),
|
||||
'users' => $usersService->GetUsersAsDto()
|
||||
]);
|
||||
}
|
||||
|
||||
public function TrackChoreExecution(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function TrackChoreExecution(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'choretracking', [
|
||||
'chores' => $this->Database->chores()->orderBy('name'),
|
||||
'users' => $this->Database->users()->orderBy('username')
|
||||
return $this->renderPage($response, 'choretracking', [
|
||||
'chores' => $this->getDatabase()->chores()->orderBy('name'),
|
||||
'users' => $this->getDatabase()->users()->orderBy('username')
|
||||
]);
|
||||
}
|
||||
|
||||
public function ChoresList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ChoresList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'chores', [
|
||||
'chores' => $this->Database->chores()->orderBy('name'),
|
||||
'userfields' => $this->UserfieldsService->GetFields('chores'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('chores')
|
||||
return $this->renderPage($response, 'chores', [
|
||||
'chores' => $this->getDatabase()->chores()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('chores'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('chores')
|
||||
]);
|
||||
}
|
||||
|
||||
public function Journal(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Journal(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'choresjournal', [
|
||||
'choresLog' => $this->Database->chores_log()->orderBy('tracked_time', 'DESC'),
|
||||
'chores' => $this->Database->chores()->orderBy('name'),
|
||||
'users' => $this->Database->users()->orderBy('username')
|
||||
return $this->renderPage($response, 'choresjournal', [
|
||||
'choresLog' => $this->getDatabase()->chores_log()->orderBy('tracked_time', 'DESC'),
|
||||
'chores' => $this->getDatabase()->chores()->orderBy('name'),
|
||||
'users' => $this->getDatabase()->users()->orderBy('username')
|
||||
]);
|
||||
}
|
||||
|
||||
public function ChoreEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ChoreEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$usersService = new UsersService();
|
||||
$usersService = $this->getUsersService();
|
||||
$users = $usersService->GetUsersAsDto();
|
||||
|
||||
if ($args['choreId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'choreform', [
|
||||
return $this->renderPage($response, 'choreform', [
|
||||
'periodTypes' => GetClassConstants('\Grocy\Services\ChoresService', 'CHORE_PERIOD_TYPE_'),
|
||||
'mode' => 'create',
|
||||
'userfields' => $this->UserfieldsService->GetFields('chores'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('chores'),
|
||||
'assignmentTypes' => GetClassConstants('\Grocy\Services\ChoresService', 'CHORE_ASSIGNMENT_TYPE_'),
|
||||
'users' => $users,
|
||||
'products' => $this->Database->products()->orderBy('name')
|
||||
'products' => $this->getDatabase()->products()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'choreform', [
|
||||
'chore' => $this->Database->chores($args['choreId']),
|
||||
return $this->renderPage($response, 'choreform', [
|
||||
'chore' => $this->getDatabase()->chores($args['choreId']),
|
||||
'periodTypes' => GetClassConstants('\Grocy\Services\ChoresService', 'CHORE_PERIOD_TYPE_'),
|
||||
'mode' => 'edit',
|
||||
'userfields' => $this->UserfieldsService->GetFields('chores'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('chores'),
|
||||
'assignmentTypes' => GetClassConstants('\Grocy\Services\ChoresService', 'CHORE_ASSIGNMENT_TYPE_'),
|
||||
'users' => $users,
|
||||
'products' => $this->Database->products()->orderBy('name')
|
||||
'products' => $this->getDatabase()->products()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function ChoresSettings(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ChoresSettings(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'choressettings');
|
||||
return $this->renderPage($response, 'choressettings');
|
||||
}
|
||||
}
|
||||
|
@@ -2,42 +2,39 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\UserfieldsService;
|
||||
|
||||
class EquipmentController extends BaseController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->UserfieldsService = new UserfieldsService();
|
||||
}
|
||||
|
||||
protected $UserfieldsService;
|
||||
|
||||
public function Overview(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Overview(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'equipment', [
|
||||
'equipment' => $this->Database->equipment()->orderBy('name'),
|
||||
'userfields' => $this->UserfieldsService->GetFields('equipment'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('equipment')
|
||||
return $this->renderPage($response, 'equipment', [
|
||||
'equipment' => $this->getDatabase()->equipment()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('equipment'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('equipment')
|
||||
]);
|
||||
}
|
||||
|
||||
public function EditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function EditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['equipmentId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'equipmentform', [
|
||||
return $this->renderPage($response, 'equipmentform', [
|
||||
'mode' => 'create',
|
||||
'userfields' => $this->UserfieldsService->GetFields('equipment')
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('equipment')
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'equipmentform', [
|
||||
'equipment' => $this->Database->equipment($args['equipmentId']),
|
||||
return $this->renderPage($response, 'equipmentform', [
|
||||
'equipment' => $this->getDatabase()->equipment($args['equipmentId']),
|
||||
'mode' => 'edit',
|
||||
'userfields' => $this->UserfieldsService->GetFields('equipment')
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('equipment')
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@@ -6,15 +6,12 @@ use \Grocy\Services\FilesService;
|
||||
|
||||
class FilesApiController extends BaseApiController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->FilesService = new FilesService();
|
||||
}
|
||||
|
||||
protected $FilesService;
|
||||
|
||||
public function UploadFile(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UploadFile(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -28,7 +25,7 @@ class FilesApiController extends BaseApiController
|
||||
}
|
||||
|
||||
$data = $request->getBody()->getContents();
|
||||
file_put_contents($this->FilesService->GetFilePath($args['group'], $fileName), $data);
|
||||
file_put_contents($this->getFilesService()->GetFilePath($args['group'], $fileName), $data);
|
||||
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
@@ -38,7 +35,7 @@ class FilesApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function ServeFile(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ServeFile(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -71,16 +68,17 @@ class FilesApiController extends BaseApiController
|
||||
$bestFitWidth = $request->getQueryParams()['best_fit_width'];
|
||||
}
|
||||
|
||||
$filePath = $this->FilesService->DownscaleImage($args['group'], $fileName, $bestFitHeight, $bestFitWidth);
|
||||
$filePath = $this->getFilesService()->DownscaleImage($args['group'], $fileName, $bestFitHeight, $bestFitWidth);
|
||||
}
|
||||
else
|
||||
{
|
||||
$filePath = $this->FilesService->GetFilePath($args['group'], $fileName);
|
||||
$filePath = $this->getFilesService()->GetFilePath($args['group'], $fileName);
|
||||
}
|
||||
|
||||
if (file_exists($filePath))
|
||||
{
|
||||
$response->write(file_get_contents($filePath));
|
||||
$response = $response->withHeader('Cache-Control', 'max-age=2592000');
|
||||
$response = $response->withHeader('Content-Type', mime_content_type($filePath));
|
||||
return $response->withHeader('Content-Disposition', 'inline; filename="' . $fileName . '"');
|
||||
}
|
||||
@@ -95,7 +93,7 @@ class FilesApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function DeleteFile(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function DeleteFile(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -108,7 +106,7 @@ class FilesApiController extends BaseApiController
|
||||
throw new \Exception('Invalid filename');
|
||||
}
|
||||
|
||||
$filePath = $this->FilesService->GetFilePath($args['group'], $fileName);
|
||||
$filePath = $this->getFilesService()->GetFilePath($args['group'], $fileName);
|
||||
if (file_exists($filePath))
|
||||
{
|
||||
unlink($filePath);
|
||||
|
@@ -2,23 +2,36 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\UserfieldsService;
|
||||
|
||||
class GenericEntityApiController extends BaseApiController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->UserfieldsService = new UserfieldsService();
|
||||
}
|
||||
|
||||
protected $UserfieldsService;
|
||||
|
||||
public function GetObjects(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function GetObjects(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$objects = $this->getDatabase()->{$args['entity']}();
|
||||
$allUserfields = $this->getUserfieldsService()->GetAllValues($args['entity']);
|
||||
|
||||
foreach ($objects as $object)
|
||||
{
|
||||
$userfields = FindAllObjectsInArrayByPropertyValue($allUserfields, 'object_id', $object->id);
|
||||
$userfieldKeyValuePairs = null;
|
||||
if (count($userfields) > 0)
|
||||
{
|
||||
foreach ($userfields as $userfield)
|
||||
{
|
||||
$userfieldKeyValuePairs[$userfield->name] = $userfield->value;
|
||||
}
|
||||
}
|
||||
|
||||
$object->userfields = $userfieldKeyValuePairs;
|
||||
}
|
||||
|
||||
if ($this->IsValidEntity($args['entity']) && !$this->IsEntityWithPreventedListing($args['entity']))
|
||||
{
|
||||
return $this->ApiResponse($this->Database->{$args['entity']}());
|
||||
return $this->ApiResponse($response, $objects);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -26,11 +39,20 @@ class GenericEntityApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function GetObject(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function GetObject(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($this->IsValidEntity($args['entity']) && !$this->IsEntityWithPreventedListing($args['entity']))
|
||||
{
|
||||
return $this->ApiResponse($this->Database->{$args['entity']}($args['objectId']));
|
||||
$userfields = $this->getUserfieldsService()->GetValues($args['entity'], $args['objectId']);
|
||||
if (count($userfields) === 0)
|
||||
{
|
||||
$userfields = null;
|
||||
}
|
||||
|
||||
$object = $this->getDatabase()->{$args['entity']}($args['objectId']);
|
||||
$object['userfields'] = $userfields;
|
||||
|
||||
return $this->ApiResponse($response, $object);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -38,7 +60,7 @@ class GenericEntityApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function AddObject(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function AddObject(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($this->IsValidEntity($args['entity']))
|
||||
{
|
||||
@@ -51,11 +73,11 @@ class GenericEntityApiController extends BaseApiController
|
||||
throw new \Exception('Request body could not be parsed (probably invalid JSON format or missing/wrong Content-Type header)');
|
||||
}
|
||||
|
||||
$newRow = $this->Database->{$args['entity']}()->createRow($requestBody);
|
||||
$newRow = $this->getDatabase()->{$args['entity']}()->createRow($requestBody);
|
||||
$newRow->save();
|
||||
$success = $newRow->isClean();
|
||||
return $this->ApiResponse(array(
|
||||
'created_object_id' => $this->Database->lastInsertId()
|
||||
return $this->ApiResponse($response, array(
|
||||
'created_object_id' => $this->getDatabase()->lastInsertId()
|
||||
));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -69,7 +91,7 @@ class GenericEntityApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function EditObject(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function EditObject(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($this->IsValidEntity($args['entity']))
|
||||
{
|
||||
@@ -82,7 +104,7 @@ class GenericEntityApiController extends BaseApiController
|
||||
throw new \Exception('Request body could not be parsed (probably invalid JSON format or missing/wrong Content-Type header)');
|
||||
}
|
||||
|
||||
$row = $this->Database->{$args['entity']}($args['objectId']);
|
||||
$row = $this->getDatabase()->{$args['entity']}($args['objectId']);
|
||||
$row->update($requestBody);
|
||||
$success = $row->isClean();
|
||||
return $this->EmptyApiResponse($response);
|
||||
@@ -98,11 +120,11 @@ class GenericEntityApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function DeleteObject(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function DeleteObject(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($this->IsValidEntity($args['entity']))
|
||||
{
|
||||
$row = $this->Database->{$args['entity']}($args['objectId']);
|
||||
$row = $this->getDatabase()->{$args['entity']}($args['objectId']);
|
||||
$row->delete();
|
||||
$success = $row->isClean();
|
||||
return $this->EmptyApiResponse($response);
|
||||
@@ -113,13 +135,13 @@ class GenericEntityApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function SearchObjects(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function SearchObjects(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($this->IsValidEntity($args['entity']) && !$this->IsEntityWithPreventedListing($args['entity']))
|
||||
{
|
||||
try
|
||||
{
|
||||
return $this->ApiResponse($this->Database->{$args['entity']}()->where('name LIKE ?', '%' . $args['searchString'] . '%'));
|
||||
return $this->ApiResponse($response, $this->getDatabase()->{$args['entity']}()->where('name LIKE ?', '%' . $args['searchString'] . '%'));
|
||||
}
|
||||
catch (\PDOException $ex)
|
||||
{
|
||||
@@ -132,11 +154,11 @@ class GenericEntityApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function GetUserfields(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function GetUserfields(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
return $this->ApiResponse($this->UserfieldsService->GetValues($args['entity'], $args['objectId']));
|
||||
return $this->ApiResponse($response, $this->getUserfieldsService()->GetValues($args['entity'], $args['objectId']));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -144,7 +166,7 @@ class GenericEntityApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function SetUserfields(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function SetUserfields(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
@@ -155,7 +177,7 @@ class GenericEntityApiController extends BaseApiController
|
||||
throw new \Exception('Request body could not be parsed (probably invalid JSON format or missing/wrong Content-Type header)');
|
||||
}
|
||||
|
||||
$this->UserfieldsService->SetValues($args['entity'], $args['objectId'], $requestBody);
|
||||
$this->getUserfieldsService()->SetValues($args['entity'], $args['objectId'], $requestBody);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -166,11 +188,11 @@ class GenericEntityApiController extends BaseApiController
|
||||
|
||||
private function IsValidEntity($entity)
|
||||
{
|
||||
return in_array($entity, $this->OpenApiSpec->components->internalSchemas->ExposedEntity->enum);
|
||||
return in_array($entity, $this->getOpenApiSpec()->components->internalSchemas->ExposedEntity->enum);
|
||||
}
|
||||
|
||||
private function IsEntityWithPreventedListing($entity)
|
||||
{
|
||||
return in_array($entity, $this->OpenApiSpec->components->internalSchemas->ExposedEntitiesPreventListing->enum);
|
||||
return !in_array($entity, $this->getOpenApiSpec()->components->internalSchemas->ExposedEntityButNoListing->enum);
|
||||
}
|
||||
}
|
||||
|
@@ -2,102 +2,97 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\UserfieldsService;
|
||||
|
||||
class GenericEntityController extends BaseController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->UserfieldsService = new UserfieldsService();
|
||||
}
|
||||
|
||||
protected $UserfieldsService;
|
||||
|
||||
public function UserfieldsList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UserfieldsList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'userfields', [
|
||||
'userfields' => $this->UserfieldsService->GetAllFields(),
|
||||
'entities' => $this->UserfieldsService->GetEntities()
|
||||
return $this->renderPage($response, 'userfields', [
|
||||
'userfields' => $this->getUserfieldsService()->GetAllFields(),
|
||||
'entities' => $this->getUserfieldsService()->GetEntities()
|
||||
]);
|
||||
}
|
||||
|
||||
public function UserentitiesList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UserentitiesList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'userentities', [
|
||||
'userentities' => $this->Database->userentities()->orderBy('name')
|
||||
return $this->renderPage($response, 'userentities', [
|
||||
'userentities' => $this->getDatabase()->userentities()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
|
||||
public function UserobjectsList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UserobjectsList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$userentity = $this->Database->userentities()->where('name = :1', $args['userentityName'])->fetch();
|
||||
$userentity = $this->getDatabase()->userentities()->where('name = :1', $args['userentityName'])->fetch();
|
||||
|
||||
return $this->AppContainer->view->render($response, 'userobjects', [
|
||||
return $this->renderPage($response, 'userobjects', [
|
||||
'userentity' => $userentity,
|
||||
'userobjects' => $this->Database->userobjects()->where('userentity_id = :1', $userentity->id),
|
||||
'userfields' => $this->UserfieldsService->GetFields('userentity-' . $args['userentityName']),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('userentity-' . $args['userentityName'])
|
||||
'userobjects' => $this->getDatabase()->userobjects()->where('userentity_id = :1', $userentity->id),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('userentity-' . $args['userentityName']),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('userentity-' . $args['userentityName'])
|
||||
]);
|
||||
}
|
||||
|
||||
public function UserfieldEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UserfieldEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['userfieldId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'userfieldform', [
|
||||
return $this->renderPage($response, 'userfieldform', [
|
||||
'mode' => 'create',
|
||||
'userfieldTypes' => $this->UserfieldsService->GetFieldTypes(),
|
||||
'entities' => $this->UserfieldsService->GetEntities()
|
||||
'userfieldTypes' => $this->getUserfieldsService()->GetFieldTypes(),
|
||||
'entities' => $this->getUserfieldsService()->GetEntities()
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'userfieldform', [
|
||||
return $this->renderPage($response, 'userfieldform', [
|
||||
'mode' => 'edit',
|
||||
'userfield' => $this->UserfieldsService->GetField($args['userfieldId']),
|
||||
'userfieldTypes' => $this->UserfieldsService->GetFieldTypes(),
|
||||
'entities' => $this->UserfieldsService->GetEntities()
|
||||
'userfield' => $this->getUserfieldsService()->GetField($args['userfieldId']),
|
||||
'userfieldTypes' => $this->getUserfieldsService()->GetFieldTypes(),
|
||||
'entities' => $this->getUserfieldsService()->GetEntities()
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function UserentityEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UserentityEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['userentityId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'userentityform', [
|
||||
return $this->renderPage($response, 'userentityform', [
|
||||
'mode' => 'create'
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'userentityform', [
|
||||
return $this->renderPage($response, 'userentityform', [
|
||||
'mode' => 'edit',
|
||||
'userentity' => $this->Database->userentities($args['userentityId'])
|
||||
'userentity' => $this->getDatabase()->userentities($args['userentityId'])
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function UserobjectEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UserobjectEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$userentity = $this->Database->userentities()->where('name = :1', $args['userentityName'])->fetch();
|
||||
$userentity = $this->getDatabase()->userentities()->where('name = :1', $args['userentityName'])->fetch();
|
||||
|
||||
if ($args['userobjectId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'userobjectform', [
|
||||
return $this->renderPage($response, 'userobjectform', [
|
||||
'userentity' => $userentity,
|
||||
'mode' => 'create',
|
||||
'userfields' => $this->UserfieldsService->GetFields('userentity-' . $args['userentityName'])
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('userentity-' . $args['userentityName'])
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'userobjectform', [
|
||||
return $this->renderPage($response, 'userobjectform', [
|
||||
'userentity' => $userentity,
|
||||
'mode' => 'edit',
|
||||
'userobject' => $this->Database->userobjects($args['userobjectId']),
|
||||
'userfields' => $this->UserfieldsService->GetFields('userentity-' . $args['userentityName'])
|
||||
'userobject' => $this->getDatabase()->userobjects($args['userobjectId']),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('userentity-' . $args['userentityName'])
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@@ -2,34 +2,27 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\SessionService;
|
||||
use \Grocy\Services\DatabaseMigrationService;
|
||||
use \Grocy\Services\DemoDataGeneratorService;
|
||||
|
||||
class LoginController extends BaseController
|
||||
{
|
||||
public function __construct(\Slim\Container $container, string $sessionCookieName)
|
||||
public function __construct(\DI\Container $container, string $sessionCookieName)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->SessionService = new SessionService();
|
||||
$this->SessionCookieName = $sessionCookieName;
|
||||
}
|
||||
|
||||
protected $SessionService;
|
||||
protected $SessionCookieName;
|
||||
|
||||
public function ProcessLogin(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ProcessLogin(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$postParams = $request->getParsedBody();
|
||||
if (isset($postParams['username']) && isset($postParams['password']))
|
||||
{
|
||||
$user = $this->Database->users()->where('username', $postParams['username'])->fetch();
|
||||
$user = $this->getDatabase()->users()->where('username', $postParams['username'])->fetch();
|
||||
$inputPassword = $postParams['password'];
|
||||
$stayLoggedInPermanently = $postParams['stay_logged_in'] == 'on';
|
||||
|
||||
if ($user !== null && password_verify($inputPassword, $user->password))
|
||||
{
|
||||
$sessionKey = $this->SessionService->CreateSession($user->id, $stayLoggedInPermanently);
|
||||
$sessionKey = $this->getSessionService()->CreateSession($user->id, $stayLoggedInPermanently);
|
||||
setcookie($this->SessionCookieName, $sessionKey, PHP_INT_SIZE == 4 ? PHP_INT_MAX : PHP_INT_MAX>>32); // Cookie expires never, but session validity is up to SessionService
|
||||
|
||||
if (password_needs_rehash($user->password, PASSWORD_DEFAULT))
|
||||
@@ -39,28 +32,28 @@ class LoginController extends BaseController
|
||||
));
|
||||
}
|
||||
|
||||
return $response->withRedirect($this->AppContainer->UrlManager->ConstructUrl('/'));
|
||||
return $response->withRedirect($this->AppContainer->get('UrlManager')->ConstructUrl('/'));
|
||||
}
|
||||
else
|
||||
{
|
||||
return $response->withRedirect($this->AppContainer->UrlManager->ConstructUrl('/login?invalid=true'));
|
||||
return $response->withRedirect($this->AppContainer->get('UrlManager')->ConstructUrl('/login?invalid=true'));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return $response->withRedirect($this->AppContainer->UrlManager->ConstructUrl('/login?invalid=true'));
|
||||
return $response->withRedirect($this->AppContainer->get('UrlManager')->ConstructUrl('/login?invalid=true'));
|
||||
}
|
||||
}
|
||||
|
||||
public function LoginPage(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function LoginPage(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'login');
|
||||
return $this->renderPage($response, 'login');
|
||||
}
|
||||
|
||||
public function Logout(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Logout(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$this->SessionService->RemoveSession($_COOKIE[$this->SessionCookieName]);
|
||||
return $response->withRedirect($this->AppContainer->UrlManager->ConstructUrl('/'));
|
||||
$this->getSessionService()->RemoveSession($_COOKIE[$this->SessionCookieName]);
|
||||
return $response->withRedirect($this->AppContainer->get('UrlManager')->ConstructUrl('/'));
|
||||
}
|
||||
|
||||
public function GetSessionCookieName()
|
||||
|
@@ -2,48 +2,42 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\ApplicationService;
|
||||
use \Grocy\Services\ApiKeyService;
|
||||
|
||||
class OpenApiController extends BaseApiController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->ApiKeyService = new ApiKeyService();
|
||||
}
|
||||
|
||||
protected $ApiKeyService;
|
||||
|
||||
public function DocumentationUi(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function DocumentationUi(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'openapiui');
|
||||
return $this->render($response, 'openapiui');
|
||||
}
|
||||
|
||||
public function DocumentationSpec(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function DocumentationSpec(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$applicationService = new ApplicationService();
|
||||
$applicationService = $this->getApplicationService();
|
||||
|
||||
$versionInfo = $applicationService->GetInstalledVersion();
|
||||
$this->OpenApiSpec->info->version = $versionInfo->Version;
|
||||
$this->OpenApiSpec->info->description = str_replace('PlaceHolderManageApiKeysUrl', $this->AppContainer->UrlManager->ConstructUrl('/manageapikeys'), $this->OpenApiSpec->info->description);
|
||||
$this->OpenApiSpec->servers[0]->url = $this->AppContainer->UrlManager->ConstructUrl('/api');
|
||||
$this->getOpenApiSpec()->info->version = $versionInfo->Version;
|
||||
$this->getOpenApiSpec()->info->description = str_replace('PlaceHolderManageApiKeysUrl', $this->AppContainer->get('UrlManager')->ConstructUrl('/manageapikeys'), $this->getOpenApiSpec()->info->description);
|
||||
$this->getOpenApiSpec()->servers[0]->url = $this->AppContainer->get('UrlManager')->ConstructUrl('/api');
|
||||
|
||||
return $this->ApiResponse($this->OpenApiSpec);
|
||||
return $this->ApiResponse($response, $this->getOpenApiSpec());
|
||||
}
|
||||
|
||||
public function ApiKeysList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ApiKeysList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'manageapikeys', [
|
||||
'apiKeys' => $this->Database->api_keys(),
|
||||
'users' => $this->Database->users()
|
||||
return $this->renderPage($response, 'manageapikeys', [
|
||||
'apiKeys' => $this->getDatabase()->api_keys(),
|
||||
'users' => $this->getDatabase()->users()
|
||||
]);
|
||||
}
|
||||
|
||||
public function CreateNewApiKey(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function CreateNewApiKey(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$newApiKey = $this->ApiKeyService->CreateApiKey();
|
||||
$newApiKeyId = $this->ApiKeyService->GetApiKeyId($newApiKey);
|
||||
return $response->withRedirect($this->AppContainer->UrlManager->ConstructUrl("/manageapikeys?CreatedApiKeyId=$newApiKeyId"));
|
||||
$newApiKey = $this->getApiKeyService()->CreateApiKey();
|
||||
$newApiKeyId = $this->getApiKeyService()->GetApiKeyId($newApiKey);
|
||||
return $response->withRedirect($this->AppContainer->get('UrlManager')->ConstructUrl("/manageapikeys?CreatedApiKeyId=$newApiKeyId"));
|
||||
}
|
||||
}
|
||||
|
@@ -2,19 +2,14 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\RecipesService;
|
||||
|
||||
class RecipesApiController extends BaseApiController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->RecipesService = new RecipesService();
|
||||
}
|
||||
|
||||
protected $RecipesService;
|
||||
|
||||
public function AddNotFulfilledProductsToShoppingList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function AddNotFulfilledProductsToShoppingList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
$excludedProductIds = null;
|
||||
@@ -23,16 +18,16 @@ class RecipesApiController extends BaseApiController
|
||||
{
|
||||
$excludedProductIds = $requestBody['excludedProductIds'];
|
||||
}
|
||||
|
||||
$this->RecipesService->AddNotFulfilledProductsToShoppingList($args['recipeId'], $excludedProductIds);
|
||||
|
||||
$this->getRecipesService()->AddNotFulfilledProductsToShoppingList($args['recipeId'], $excludedProductIds);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
|
||||
public function ConsumeRecipe(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ConsumeRecipe(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$this->RecipesService->ConsumeRecipe($args['recipeId']);
|
||||
$this->getRecipesService()->ConsumeRecipe($args['recipeId']);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -41,25 +36,25 @@ class RecipesApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function GetRecipeFulfillment(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function GetRecipeFulfillment(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
{
|
||||
if(!isset($args['recipeId']))
|
||||
{
|
||||
return $this->ApiResponse($this->RecipesService->GetRecipesResolved());
|
||||
return $this->ApiResponse($response, $this->getRecipesService()->GetRecipesResolved());
|
||||
}
|
||||
|
||||
$recipeResolved = FindObjectInArrayByPropertyValue($this->RecipesService->GetRecipesResolved(), 'recipe_id', $args['recipeId']);
|
||||
$recipeResolved = FindObjectInArrayByPropertyValue($this->getRecipesService()->GetRecipesResolved(), 'recipe_id', $args['recipeId']);
|
||||
if(!$recipeResolved)
|
||||
{
|
||||
throw new \Exception('Recipe does not exist');
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->ApiResponse($recipeResolved);
|
||||
return $this->ApiResponse($response, $recipeResolved);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
return $this->GenericErrorResponse($response, $ex->getMessage());
|
||||
|
@@ -3,138 +3,150 @@
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\RecipesService;
|
||||
use \Grocy\Services\UserfieldsService;
|
||||
|
||||
class RecipesController extends BaseController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->RecipesService = new RecipesService();
|
||||
$this->UserfieldsService = new UserfieldsService();
|
||||
}
|
||||
|
||||
protected $RecipesService;
|
||||
protected $UserfieldsService;
|
||||
|
||||
public function Overview(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Overview(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if (isset($request->getQueryParams()['include-internal']))
|
||||
{
|
||||
$recipes = $this->Database->recipes()->orderBy('name');
|
||||
}
|
||||
else
|
||||
{
|
||||
$recipes = $this->Database->recipes()->where('type', RecipesService::RECIPE_TYPE_NORMAL)->orderBy('name');
|
||||
}
|
||||
$recipesResolved = $this->RecipesService->GetRecipesResolved();
|
||||
$recipes = $this->getDatabase()->recipes()->where('type', RecipesService::RECIPE_TYPE_NORMAL)->orderBy('name');
|
||||
$recipesResolved = $this->getRecipesService()->GetRecipesResolved();
|
||||
|
||||
$selectedRecipe = null;
|
||||
$selectedRecipePositionsResolved = null;
|
||||
if (isset($request->getQueryParams()['recipe']))
|
||||
{
|
||||
$selectedRecipe = $this->Database->recipes($request->getQueryParams()['recipe']);
|
||||
$selectedRecipePositionsResolved = $this->Database->recipes_pos_resolved()->where('recipe_id', $request->getQueryParams()['recipe'])->orderBy('ingredient_group');
|
||||
$selectedRecipe = $this->getDatabase()->recipes($request->getQueryParams()['recipe']);
|
||||
$selectedRecipePositionsResolved = $this->getDatabase()->recipes_pos_resolved()->where('recipe_id = :1 AND is_nested_recipe_pos = 0', $request->getQueryParams()['recipe'])->orderBy('ingredient_group', 'ASC', 'product_group', 'ASC');
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach ($recipes as $recipe)
|
||||
{
|
||||
$selectedRecipe = $recipe;
|
||||
$selectedRecipePositionsResolved = $this->Database->recipes_pos_resolved()->where('recipe_id', $recipe->id)->orderBy('ingredient_group');
|
||||
$selectedRecipePositionsResolved = $this->getDatabase()->recipes_pos_resolved()->where('recipe_id = :1 AND is_nested_recipe_pos = 0', $recipe->id)->orderBy('ingredient_group', 'ASC', 'product_group', 'ASC');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$selectedRecipeSubRecipes = $this->Database->recipes()->where('id IN (SELECT includes_recipe_id FROM recipes_nestings_resolved WHERE recipe_id = :1 AND includes_recipe_id != :1)', $selectedRecipe->id)->orderBy('name')->fetchAll();
|
||||
$selectedRecipeSubRecipesPositions = $this->Database->recipes_pos_resolved()->where('recipe_id = :1', $selectedRecipe->id)->orderBy('ingredient_group')->fetchAll();
|
||||
|
||||
$includedRecipeIdsAbsolute = array();
|
||||
$includedRecipeIdsAbsolute[] = $selectedRecipe->id;
|
||||
foreach($selectedRecipeSubRecipes as $subRecipe)
|
||||
if ($selectedRecipe)
|
||||
{
|
||||
$includedRecipeIdsAbsolute[] = $subRecipe->id;
|
||||
$selectedRecipeSubRecipes = $this->getDatabase()->recipes()->where('id IN (SELECT includes_recipe_id FROM recipes_nestings_resolved WHERE recipe_id = :1 AND includes_recipe_id != :1)', $selectedRecipe->id)->orderBy('name')->fetchAll();
|
||||
$selectedRecipeSubRecipesPositions = $this->getDatabase()->recipes_pos_resolved()->where('recipe_id = :1', $selectedRecipe->id)->orderBy('ingredient_group', 'ASC', 'product_group', 'ASC')->fetchAll();
|
||||
|
||||
$includedRecipeIdsAbsolute = array();
|
||||
$includedRecipeIdsAbsolute[] = $selectedRecipe->id;
|
||||
foreach($selectedRecipeSubRecipes as $subRecipe)
|
||||
{
|
||||
$includedRecipeIdsAbsolute[] = $subRecipe->id;
|
||||
}
|
||||
|
||||
$renderArray = [
|
||||
'recipes' => $recipes,
|
||||
'recipesResolved' => $recipesResolved,
|
||||
'recipePositionsResolved' => $this->getDatabase()->recipes_pos_resolved()->where('recipe_type', RecipesService::RECIPE_TYPE_NORMAL),
|
||||
'selectedRecipe' => $selectedRecipe,
|
||||
'selectedRecipePositionsResolved' => $selectedRecipePositionsResolved,
|
||||
'products' => $this->getDatabase()->products(),
|
||||
'quantityUnits' => $this->getDatabase()->quantity_units(),
|
||||
'selectedRecipeSubRecipes' => $selectedRecipeSubRecipes,
|
||||
'selectedRecipeSubRecipesPositions' => $selectedRecipeSubRecipesPositions,
|
||||
'includedRecipeIdsAbsolute' => $includedRecipeIdsAbsolute,
|
||||
'selectedRecipeTotalCosts' => FindObjectInArrayByPropertyValue($recipesResolved, 'recipe_id', $selectedRecipe->id)->costs,
|
||||
'selectedRecipeTotalCalories' => FindObjectInArrayByPropertyValue($recipesResolved, 'recipe_id', $selectedRecipe->id)->calories,
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('recipes'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('recipes'),
|
||||
'quantityUnitConversionsResolved' => $this->getDatabase()->quantity_unit_conversions_resolved()
|
||||
];
|
||||
}
|
||||
else
|
||||
{
|
||||
$renderArray = [
|
||||
'recipes' => $recipes,
|
||||
'recipesResolved' => $recipesResolved,
|
||||
'recipePositionsResolved' => $this->getDatabase()->recipes_pos_resolved()->where('recipe_type', RecipesService::RECIPE_TYPE_NORMAL),
|
||||
'selectedRecipe' => $selectedRecipe,
|
||||
'selectedRecipePositionsResolved' => $selectedRecipePositionsResolved,
|
||||
'products' => $this->getDatabase()->products(),
|
||||
'quantityUnits' => $this->getDatabase()->quantity_units(),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('recipes'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('recipes'),
|
||||
'quantityUnitConversionsResolved' => $this->getDatabase()->quantity_unit_conversions_resolved()
|
||||
];
|
||||
}
|
||||
|
||||
return $this->AppContainer->view->render($response, 'recipes', [
|
||||
'recipes' => $recipes,
|
||||
'recipesResolved' => $recipesResolved,
|
||||
'recipePositionsResolved' => $this->Database->recipes_pos_resolved(),
|
||||
'selectedRecipe' => $selectedRecipe,
|
||||
'selectedRecipePositionsResolved' => $selectedRecipePositionsResolved,
|
||||
'products' => $this->Database->products(),
|
||||
'quantityUnits' => $this->Database->quantity_units(),
|
||||
'selectedRecipeSubRecipes' => $selectedRecipeSubRecipes,
|
||||
'selectedRecipeSubRecipesPositions' => $selectedRecipeSubRecipesPositions,
|
||||
'includedRecipeIdsAbsolute' => $includedRecipeIdsAbsolute,
|
||||
'selectedRecipeTotalCosts' => FindObjectInArrayByPropertyValue($recipesResolved, 'recipe_id', $selectedRecipe->id)->costs,
|
||||
'selectedRecipeTotalCalories' => FindObjectInArrayByPropertyValue($recipesResolved, 'recipe_id', $selectedRecipe->id)->calories,
|
||||
'userfields' => $this->UserfieldsService->GetFields('recipes'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('recipes'),
|
||||
'quantityUnitConversionsResolved' => $this->Database->quantity_unit_conversions_resolved()
|
||||
]);
|
||||
return $this->renderPage($response, 'recipes', $renderArray);
|
||||
}
|
||||
|
||||
public function RecipeEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function RecipeEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$recipeId = $args['recipeId'];
|
||||
if ($recipeId == 'new')
|
||||
{
|
||||
$newRecipe = $this->Database->recipes()->where('type', RecipesService::RECIPE_TYPE_NORMAL)->createRow(array(
|
||||
'name' => $this->LocalizationService->__t('New recipe')
|
||||
$newRecipe = $this->getDatabase()->recipes()->where('type', RecipesService::RECIPE_TYPE_NORMAL)->createRow(array(
|
||||
'name' => $this->getLocalizationService()->__t('New recipe')
|
||||
));
|
||||
$newRecipe->save();
|
||||
|
||||
$recipeId = $this->Database->lastInsertId();
|
||||
$recipeId = $this->getDatabase()->lastInsertId();
|
||||
}
|
||||
|
||||
return $this->AppContainer->view->render($response, 'recipeform', [
|
||||
'recipe' => $this->Database->recipes($recipeId),
|
||||
'recipePositions' => $this->Database->recipes_pos()->where('recipe_id', $recipeId),
|
||||
|
||||
return $this->renderPage($response, 'recipeform', [
|
||||
'recipe' => $this->getDatabase()->recipes($recipeId),
|
||||
'recipePositions' => $this->getDatabase()->recipes_pos()->where('recipe_id', $recipeId),
|
||||
'mode' => 'edit',
|
||||
'products' => $this->Database->products(),
|
||||
'quantityunits' => $this->Database->quantity_units(),
|
||||
'recipePositionsResolved' => $this->RecipesService->GetRecipesPosResolved(),
|
||||
'recipesResolved' => $this->RecipesService->GetRecipesResolved(),
|
||||
'recipes' => $this->Database->recipes()->where('type', RecipesService::RECIPE_TYPE_NORMAL)->orderBy('name'),
|
||||
'recipeNestings' => $this->Database->recipes_nestings()->where('recipe_id', $recipeId),
|
||||
'userfields' => $this->UserfieldsService->GetFields('recipes'),
|
||||
'quantityUnitConversionsResolved' => $this->Database->quantity_unit_conversions_resolved()
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'quantityunits' => $this->getDatabase()->quantity_units(),
|
||||
'recipePositionsResolved' => $this->getRecipesService()->GetRecipesPosResolved(),
|
||||
'recipesResolved' => $this->getRecipesService()->GetRecipesResolved(),
|
||||
'recipes' => $this->getDatabase()->recipes()->where('type', RecipesService::RECIPE_TYPE_NORMAL)->orderBy('name'),
|
||||
'recipeNestings' => $this->getDatabase()->recipes_nestings()->where('recipe_id', $recipeId),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('recipes'),
|
||||
'quantityUnitConversionsResolved' => $this->getDatabase()->quantity_unit_conversions_resolved()
|
||||
]);
|
||||
}
|
||||
|
||||
public function RecipePosEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function RecipePosEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['recipePosId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'recipeposform', [
|
||||
return $this->renderPage($response, 'recipeposform', [
|
||||
'mode' => 'create',
|
||||
'recipe' => $this->Database->recipes($args['recipeId']),
|
||||
'recipe' => $this->getDatabase()->recipes($args['recipeId']),
|
||||
'recipePos' => new \stdClass(),
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'quantityUnits' => $this->Database->quantity_units()->orderBy('name'),
|
||||
'quantityUnitConversionsResolved' => $this->Database->quantity_unit_conversions_resolved()
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'quantityUnits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'quantityUnitConversionsResolved' => $this->getDatabase()->quantity_unit_conversions_resolved()
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'recipeposform', [
|
||||
return $this->renderPage($response, 'recipeposform', [
|
||||
'mode' => 'edit',
|
||||
'recipe' => $this->Database->recipes($args['recipeId']),
|
||||
'recipePos' => $this->Database->recipes_pos($args['recipePosId']),
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'quantityUnits' => $this->Database->quantity_units()->orderBy('name'),
|
||||
'quantityUnitConversionsResolved' => $this->Database->quantity_unit_conversions_resolved()
|
||||
'recipe' => $this->getDatabase()->recipes($args['recipeId']),
|
||||
'recipePos' => $this->getDatabase()->recipes_pos($args['recipePosId']),
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'quantityUnits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'quantityUnitConversionsResolved' => $this->getDatabase()->quantity_unit_conversions_resolved()
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function MealPlan(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function RecipesSettings(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$recipes = $this->Database->recipes()->where('type', RecipesService::RECIPE_TYPE_NORMAL)->fetchAll();
|
||||
return $this->renderPage($response, 'recipessettings');
|
||||
}
|
||||
|
||||
public function MealPlan(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$recipes = $this->getDatabase()->recipes()->where('type', RecipesService::RECIPE_TYPE_NORMAL)->fetchAll();
|
||||
|
||||
$events = array();
|
||||
foreach($this->Database->meal_plan() as $mealPlanEntry)
|
||||
foreach($this->getDatabase()->meal_plan() as $mealPlanEntry)
|
||||
{
|
||||
$recipe = FindObjectInArrayByPropertyValue($recipes, 'id', $mealPlanEntry['recipe_id']);
|
||||
$title = '';
|
||||
@@ -143,21 +155,32 @@ class RecipesController extends BaseController
|
||||
$title = $recipe->name;
|
||||
}
|
||||
|
||||
$productDetails = null;
|
||||
if ($mealPlanEntry['product_id'] !== null)
|
||||
{
|
||||
$productDetails = $this->getStockService()->GetProductDetails($mealPlanEntry['product_id']);
|
||||
}
|
||||
|
||||
$events[] = array(
|
||||
'id' => $mealPlanEntry['id'],
|
||||
'title' => $title,
|
||||
'start' => $mealPlanEntry['day'],
|
||||
'date_format' => 'date',
|
||||
'recipe' => json_encode($recipe),
|
||||
'mealPlanEntry' => json_encode($mealPlanEntry)
|
||||
'mealPlanEntry' => json_encode($mealPlanEntry),
|
||||
'type' => $mealPlanEntry['type'],
|
||||
'productDetails' => json_encode($productDetails)
|
||||
);
|
||||
}
|
||||
|
||||
return $this->AppContainer->view->render($response, 'mealplan', [
|
||||
return $this->renderPage($response, 'mealplan', [
|
||||
'fullcalendarEventSources' => $events,
|
||||
'recipes' => $recipes,
|
||||
'internalRecipes' => $this->Database->recipes()->whereNot('type', RecipesService::RECIPE_TYPE_NORMAL)->fetchAll(),
|
||||
'recipesResolved' => $this->RecipesService->GetRecipesResolved()
|
||||
'internalRecipes' => $this->getDatabase()->recipes()->whereNot('type', RecipesService::RECIPE_TYPE_NORMAL)->fetchAll(),
|
||||
'recipesResolved' => $this->getRecipesService()->GetRecipesResolved(),
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'quantityUnits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'quantityUnitConversionsResolved' => $this->getDatabase()->quantity_unit_conversions_resolved()
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@@ -6,19 +6,16 @@ use \Grocy\Services\StockService;
|
||||
|
||||
class StockApiController extends BaseApiController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->StockService = new StockService();
|
||||
}
|
||||
|
||||
protected $StockService;
|
||||
|
||||
public function ProductDetails(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ProductDetails(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
return $this->ApiResponse($this->StockService->GetProductDetails($args['productId']));
|
||||
return $this->ApiResponse($response, $this->getStockService()->GetProductDetails($args['productId']));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -26,12 +23,12 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function ProductDetailsByBarcode(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ProductDetailsByBarcode(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$productId = $this->StockService->GetProductIdFromBarcode($args['barcode']);
|
||||
return $this->ApiResponse($this->StockService->GetProductDetails($productId));
|
||||
$productId = $this->getStockService()->GetProductIdFromBarcode($args['barcode']);
|
||||
return $this->ApiResponse($response, $this->getStockService()->GetProductDetails($productId));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -39,11 +36,11 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function ProductPriceHistory(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ProductPriceHistory(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
return $this->ApiResponse($this->StockService->GetProductPriceHistory($args['productId']));
|
||||
return $this->ApiResponse($response, $this->getStockService()->GetProductPriceHistory($args['productId']));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -51,7 +48,7 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function AddProduct(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function AddProduct(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
@@ -85,14 +82,20 @@ class StockApiController extends BaseApiController
|
||||
$locationId = $requestBody['location_id'];
|
||||
}
|
||||
|
||||
$shoppingLocationId = null;
|
||||
if (array_key_exists('shopping_location_id', $requestBody) && is_numeric($requestBody['shopping_location_id']))
|
||||
{
|
||||
$shoppingLocationId = $requestBody['shopping_location_id'];
|
||||
}
|
||||
|
||||
$transactionType = StockService::TRANSACTION_TYPE_PURCHASE;
|
||||
if (array_key_exists('transaction_type', $requestBody) && !empty($requestBody['transactiontype']))
|
||||
{
|
||||
$transactionType = $requestBody['transactiontype'];
|
||||
}
|
||||
|
||||
$bookingId = $this->StockService->AddProduct($args['productId'], $requestBody['amount'], $bestBeforeDate, $transactionType, date('Y-m-d'), $price, $locationId);
|
||||
return $this->ApiResponse($this->Database->stock_log($bookingId));
|
||||
$bookingId = $this->getStockService()->AddProduct($args['productId'], $requestBody['amount'], $bestBeforeDate, $transactionType, date('Y-m-d'), $price, $locationId, $shoppingLocationId);
|
||||
return $this->ApiResponse($response, $this->getDatabase()->stock_log($bookingId));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -100,11 +103,11 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function AddProductByBarcode(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function AddProductByBarcode(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$args['productId'] = $this->StockService->GetProductIdFromBarcode($args['barcode']);
|
||||
$args['productId'] = $this->getStockService()->GetProductIdFromBarcode($args['barcode']);
|
||||
return $this->AddProduct($request, $response, $args);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -113,10 +116,115 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function ConsumeProduct(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function EditStockEntry(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
try
|
||||
{
|
||||
if ($requestBody === null)
|
||||
{
|
||||
throw new \Exception('Request body could not be parsed (probably invalid JSON format or missing/wrong Content-Type header)');
|
||||
}
|
||||
|
||||
if (!array_key_exists('amount', $requestBody))
|
||||
{
|
||||
throw new \Exception('An amount is required');
|
||||
}
|
||||
|
||||
$bestBeforeDate = null;
|
||||
if (array_key_exists('best_before_date', $requestBody) && IsIsoDate($requestBody['best_before_date']))
|
||||
{
|
||||
$bestBeforeDate = $requestBody['best_before_date'];
|
||||
}
|
||||
|
||||
$price = null;
|
||||
if (array_key_exists('price', $requestBody) && is_numeric($requestBody['price']))
|
||||
{
|
||||
$price = $requestBody['price'];
|
||||
}
|
||||
|
||||
$locationId = null;
|
||||
if (array_key_exists('location_id', $requestBody) && is_numeric($requestBody['location_id']))
|
||||
{
|
||||
$locationId = $requestBody['location_id'];
|
||||
}
|
||||
|
||||
$shoppingLocationId = null;
|
||||
if (array_key_exists('shopping_location_id', $requestBody) && is_numeric($requestBody['shopping_location_id']))
|
||||
{
|
||||
$shoppingLocationId = $requestBody['shopping_location_id'];
|
||||
}
|
||||
|
||||
$bookingId = $this->getStockService()->EditStockEntry($args['entryId'], $requestBody['amount'], $bestBeforeDate, $locationId, $shoppingLocationId, $price, $requestBody['open'], $requestBody['purchased_date']);
|
||||
return $this->ApiResponse($response, $this->getDatabase()->stock_log($bookingId));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
return $this->GenericErrorResponse($response, $ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function TransferProduct(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
try
|
||||
{
|
||||
if ($requestBody === null)
|
||||
{
|
||||
throw new \Exception('Request body could not be parsed (probably invalid JSON format or missing/wrong Content-Type header)');
|
||||
}
|
||||
|
||||
if (!array_key_exists('amount', $requestBody))
|
||||
{
|
||||
throw new \Exception('An amount is required');
|
||||
}
|
||||
|
||||
if (!array_key_exists('location_id_from', $requestBody))
|
||||
{
|
||||
throw new \Exception('A transfer from location is required');
|
||||
}
|
||||
|
||||
if (!array_key_exists('location_id_to', $requestBody))
|
||||
{
|
||||
throw new \Exception('A transfer to location is required');
|
||||
}
|
||||
|
||||
$specificStockEntryId = 'default';
|
||||
if (array_key_exists('stock_entry_id', $requestBody) && !empty($requestBody['stock_entry_id']))
|
||||
{
|
||||
$specificStockEntryId = $requestBody['stock_entry_id'];
|
||||
}
|
||||
|
||||
$bookingId = $this->getStockService()->TransferProduct($args['productId'], $requestBody['amount'], $requestBody['location_id_from'], $requestBody['location_id_to'], $specificStockEntryId);
|
||||
return $this->ApiResponse($response, $this->getDatabase()->stock_log($bookingId));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
return $this->GenericErrorResponse($response, $ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function TransferProductByBarcode(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$args['productId'] = $this->getStockService()->GetProductIdFromBarcode($args['barcode']);
|
||||
return $this->TransferProduct($request, $response, $args);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
return $this->GenericErrorResponse($response, $ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function ConsumeProduct(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
$result = null;
|
||||
|
||||
try
|
||||
{
|
||||
if ($requestBody === null)
|
||||
@@ -147,26 +255,33 @@ class StockApiController extends BaseApiController
|
||||
$specificStockEntryId = $requestBody['stock_entry_id'];
|
||||
}
|
||||
|
||||
$locationId = null;
|
||||
if (array_key_exists('location_id', $requestBody) && !empty($requestBody['location_id']) && is_numeric($requestBody['location_id']))
|
||||
{
|
||||
$locationId = $requestBody['location_id'];
|
||||
}
|
||||
|
||||
$recipeId = null;
|
||||
if (array_key_exists('recipe_id', $requestBody) && is_numeric($requestBody['recipe_id']))
|
||||
{
|
||||
$recipeId = $requestBody['recipe_id'];
|
||||
}
|
||||
|
||||
$bookingId = $this->StockService->ConsumeProduct($args['productId'], $requestBody['amount'], $spoiled, $transactionType, $specificStockEntryId, $recipeId);
|
||||
return $this->ApiResponse($this->Database->stock_log($bookingId));
|
||||
$bookingId = $this->getStockService()->ConsumeProduct($args['productId'], $requestBody['amount'], $spoiled, $transactionType, $specificStockEntryId, $recipeId, $locationId);
|
||||
return $this->ApiResponse($response, $this->getDatabase()->stock_log($bookingId));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
return $this->GenericErrorResponse($response, $ex->getMessage());
|
||||
$result = $this->GenericErrorResponse($response, $ex->getMessage());
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function ConsumeProductByBarcode(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ConsumeProductByBarcode(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$args['productId'] = $this->StockService->GetProductIdFromBarcode($args['barcode']);
|
||||
$args['productId'] = $this->getStockService()->GetProductIdFromBarcode($args['barcode']);
|
||||
return $this->ConsumeProduct($request, $response, $args);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -175,7 +290,7 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function InventoryProduct(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function InventoryProduct(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
@@ -209,8 +324,14 @@ class StockApiController extends BaseApiController
|
||||
$price = $requestBody['price'];
|
||||
}
|
||||
|
||||
$bookingId = $this->StockService->InventoryProduct($args['productId'], $requestBody['new_amount'], $bestBeforeDate, $locationId, $price);
|
||||
return $this->ApiResponse($this->Database->stock_log($bookingId));
|
||||
$shoppingLocationId = null;
|
||||
if (array_key_exists('shopping_location_id', $requestBody) && is_numeric($requestBody['shopping_location_id']))
|
||||
{
|
||||
$shoppingLocationId = $requestBody['shopping_location_id'];
|
||||
}
|
||||
|
||||
$bookingId = $this->getStockService()->InventoryProduct($args['productId'], $requestBody['new_amount'], $bestBeforeDate, $locationId, $price, $shoppingLocationId);
|
||||
return $this->ApiResponse($response, $this->getDatabase()->stock_log($bookingId));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -218,11 +339,11 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function InventoryProductByBarcode(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function InventoryProductByBarcode(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$args['productId'] = $this->StockService->GetProductIdFromBarcode($args['barcode']);
|
||||
$args['productId'] = $this->getStockService()->GetProductIdFromBarcode($args['barcode']);
|
||||
return $this->InventoryProduct($request, $response, $args);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -231,7 +352,7 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function OpenProduct(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function OpenProduct(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
@@ -253,8 +374,8 @@ class StockApiController extends BaseApiController
|
||||
$specificStockEntryId = $requestBody['stock_entry_id'];
|
||||
}
|
||||
|
||||
$bookingId = $this->StockService->OpenProduct($args['productId'], $requestBody['amount'], $specificStockEntryId);
|
||||
return $this->ApiResponse($this->Database->stock_log($bookingId));
|
||||
$bookingId = $this->getStockService()->OpenProduct($args['productId'], $requestBody['amount'], $specificStockEntryId);
|
||||
return $this->ApiResponse($response, $this->getDatabase()->stock_log($bookingId));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -262,11 +383,11 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function OpenProductByBarcode(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function OpenProductByBarcode(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$args['productId'] = $this->StockService->GetProductIdFromBarcode($args['barcode']);
|
||||
$args['productId'] = $this->getStockService()->GetProductIdFromBarcode($args['barcode']);
|
||||
return $this->OpenProduct($request, $response, $args);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -275,12 +396,12 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function CurrentStock(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function CurrentStock(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->ApiResponse($this->StockService->GetCurrentStock());
|
||||
return $this->ApiResponse($response, $this->getStockService()->GetCurrentStock());
|
||||
}
|
||||
|
||||
public function CurrentVolatilStock(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function CurrentVolatileStock(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$nextXDays = 5;
|
||||
if (isset($request->getQueryParams()['expiring_days']) && !empty($request->getQueryParams()['expiring_days']) && is_numeric($request->getQueryParams()['expiring_days']))
|
||||
@@ -288,17 +409,17 @@ class StockApiController extends BaseApiController
|
||||
$nextXDays = $request->getQueryParams()['expiring_days'];
|
||||
}
|
||||
|
||||
$expiringProducts = $this->StockService->GetExpiringProducts($nextXDays, true);
|
||||
$expiredProducts = $this->StockService->GetExpiringProducts(-1);
|
||||
$missingProducts = $this->StockService->GetMissingProducts();
|
||||
return $this->ApiResponse(array(
|
||||
$expiringProducts = $this->getStockService()->GetExpiringProducts($nextXDays, true);
|
||||
$expiredProducts = $this->getStockService()->GetExpiringProducts(-1);
|
||||
$missingProducts = $this->getStockService()->GetMissingProducts();
|
||||
return $this->ApiResponse($response, array(
|
||||
'expiring_products' => $expiringProducts,
|
||||
'expired_products' => $expiredProducts,
|
||||
'missing_products' => $missingProducts
|
||||
));
|
||||
}
|
||||
|
||||
public function AddMissingProductsToShoppingList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function AddMissingProductsToShoppingList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -310,7 +431,7 @@ class StockApiController extends BaseApiController
|
||||
$listId = intval($requestBody['list_id']);
|
||||
}
|
||||
|
||||
$this->StockService->AddMissingProductsToShoppingList($listId);
|
||||
$this->getStockService()->AddMissingProductsToShoppingList($listId);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -319,7 +440,7 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function ClearShoppingList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ClearShoppingList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -331,7 +452,7 @@ class StockApiController extends BaseApiController
|
||||
$listId = intval($requestBody['list_id']);
|
||||
}
|
||||
|
||||
$this->StockService->ClearShoppingList($listId);
|
||||
$this->getStockService()->ClearShoppingList($listId);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -341,7 +462,48 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
|
||||
|
||||
public function AddItemToShoppingList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function AddProductToShoppingList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
$listId = 1;
|
||||
$amount = 1;
|
||||
$productId = null;
|
||||
$note = null;
|
||||
if (array_key_exists('list_id', $requestBody) && !empty($requestBody['list_id']) && is_numeric($requestBody['list_id']))
|
||||
{
|
||||
$listId = intval($requestBody['list_id']);
|
||||
}
|
||||
if (array_key_exists('product_amount', $requestBody) && !empty($requestBody['product_amount']) && is_numeric($requestBody['product_amount']))
|
||||
{
|
||||
$amount = intval($requestBody['product_amount']);
|
||||
}
|
||||
if (array_key_exists('product_id', $requestBody) && !empty($requestBody['product_id']) && is_numeric($requestBody['product_id']))
|
||||
{
|
||||
$productId = intval($requestBody['product_id']);
|
||||
}
|
||||
if (array_key_exists('note', $requestBody) && !empty($requestBody['note']))
|
||||
{
|
||||
$note = $requestBody['note'];
|
||||
}
|
||||
|
||||
if ($productId == null)
|
||||
{
|
||||
throw new \Exception("No product id was supplied");
|
||||
}
|
||||
|
||||
$this->getStockService()->AddProductToShoppingList($productId, $amount, $note, $listId);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
return $this->GenericErrorResponse($response, $ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function RemoveProductFromShoppingList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -368,7 +530,7 @@ class StockApiController extends BaseApiController
|
||||
throw new \Exception("No product id was supplied");
|
||||
}
|
||||
|
||||
$this->StockService->AddProductToShoppingList($productId, $amount, $listId);
|
||||
$this->getStockService()->RemoveProductFromShoppingList($productId, $amount, $listId);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -377,43 +539,7 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function RemoveItemFromShoppingList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
$listId = 1;
|
||||
$amount = 1;
|
||||
$productId = null;
|
||||
if (array_key_exists('list_id', $requestBody) && !empty($requestBody['list_id']) && is_numeric($requestBody['list_id']))
|
||||
{
|
||||
$listId = intval($requestBody['list_id']);
|
||||
}
|
||||
if (array_key_exists('product_amount', $requestBody) && !empty($requestBody['product_amount']) && is_numeric($requestBody['product_amount']))
|
||||
{
|
||||
$amount = intval($requestBody['product_amount']);
|
||||
}
|
||||
if (array_key_exists('product_id', $requestBody) && !empty($requestBody['product_id']) && is_numeric($requestBody['product_id']))
|
||||
{
|
||||
$productId = intval($requestBody['product_id']);
|
||||
}
|
||||
|
||||
if ($productId == null)
|
||||
{
|
||||
throw new \Exception("No product id was supplied");
|
||||
}
|
||||
|
||||
$this->StockService->RemoveProductFromShoppingList($productId, $amount, $listId);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
return $this->GenericErrorResponse($response, $ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function ExternalBarcodeLookup(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ExternalBarcodeLookup(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -423,7 +549,7 @@ class StockApiController extends BaseApiController
|
||||
$addFoundProduct = true;
|
||||
}
|
||||
|
||||
return $this->ApiResponse($this->StockService->ExternalBarcodeLookup($args['barcode'], $addFoundProduct));
|
||||
return $this->ApiResponse($response, $this->getStockService()->ExternalBarcodeLookup($args['barcode'], $addFoundProduct));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -431,11 +557,11 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function UndoBooking(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UndoBooking(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$this->ApiResponse($this->StockService->UndoBooking($args['bookingId']));
|
||||
$this->ApiResponse($response, $this->getStockService()->UndoBooking($args['bookingId']));
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -444,23 +570,71 @@ class StockApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function ProductStockEntries(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
{
|
||||
return $this->ApiResponse($this->StockService->GetProductStockEntries($args['productId']));
|
||||
}
|
||||
|
||||
public function StockBooking(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UndoTransaction(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$stockLogRow = $this->Database->stock_log($args['bookingId']);
|
||||
$this->ApiResponse($response, $this->getStockService()->UndoTransaction($args['transactionId']));
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
return $this->GenericErrorResponse($response, $ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function ProductStockEntries(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$allowSubproductSubstitution = false;
|
||||
if (isset($request->getQueryParams()['include_sub_products']) && filter_var($request->getQueryParams()['include_sub_products'], FILTER_VALIDATE_BOOLEAN))
|
||||
{
|
||||
$allowSubproductSubstitution = true;
|
||||
}
|
||||
|
||||
return $this->ApiResponse($response, $this->getStockService()->GetProductStockEntries($args['productId'], false, $allowSubproductSubstitution));
|
||||
}
|
||||
|
||||
public function ProductStockLocations(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->ApiResponse($response, $this->getStockService()->GetProductStockLocations($args['productId']));
|
||||
}
|
||||
|
||||
public function StockEntry(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->ApiResponse($response, $this->getStockService()->GetStockEntry($args['entryId']));
|
||||
}
|
||||
|
||||
public function StockBooking(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$stockLogRow = $this->getDatabase()->stock_log($args['bookingId']);
|
||||
|
||||
if ($stockLogRow === null)
|
||||
{
|
||||
throw new \Exception('Stock booking does not exist');
|
||||
}
|
||||
|
||||
return $this->ApiResponse($stockLogRow);
|
||||
return $this->ApiResponse($response, $stockLogRow);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
return $this->GenericErrorResponse($response, $ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function StockTransactions(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$transactionRows = $this->getDatabase()->stock_log()->where('transaction_id = :1', $args['transactionId'])->fetchAll();
|
||||
|
||||
if (count($transactionRows) === 0)
|
||||
{
|
||||
throw new \Exception('No transaction was found by the given transaction id');
|
||||
}
|
||||
|
||||
return $this->ApiResponse($response, $transactionRows);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
|
@@ -2,67 +2,99 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\StockService;
|
||||
use \Grocy\Services\UsersService;
|
||||
use \Grocy\Services\UserfieldsService;
|
||||
|
||||
class StockController extends BaseController
|
||||
{
|
||||
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->StockService = new StockService();
|
||||
$this->UserfieldsService = new UserfieldsService();
|
||||
}
|
||||
|
||||
protected $StockService;
|
||||
protected $UserfieldsService;
|
||||
|
||||
public function Overview(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Overview(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$usersService = new UsersService();
|
||||
$usersService = $this->getUsersService();
|
||||
$nextXDays = $usersService->GetUserSettings(GROCY_USER_ID)['stock_expring_soon_days'];
|
||||
|
||||
return $this->AppContainer->view->render($response, 'stockoverview', [
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'quantityunits' => $this->Database->quantity_units()->orderBy('name'),
|
||||
'locations' => $this->Database->locations()->orderBy('name'),
|
||||
'currentStock' => $this->StockService->GetCurrentStock(),
|
||||
'currentStockLocations' => $this->StockService->GetCurrentStockLocations(),
|
||||
'missingProducts' => $this->StockService->GetMissingProducts(),
|
||||
return $this->renderPage($response, 'stockoverview', [
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name'),
|
||||
'currentStock' => $this->getStockService()->GetCurrentStock(true),
|
||||
'currentStockLocations' => $this->getStockService()->GetCurrentStockLocations(),
|
||||
'missingProducts' => $this->getStockService()->GetMissingProducts(),
|
||||
'nextXDays' => $nextXDays,
|
||||
'productGroups' => $this->Database->product_groups()->orderBy('name'),
|
||||
'userfields' => $this->UserfieldsService->GetFields('products'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('products')
|
||||
'productGroups' => $this->getDatabase()->product_groups()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('products'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('products'),
|
||||
'shoppingListItems' => $this->getDatabase()->shopping_list(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function Purchase(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Stockentries(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'purchase', [
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'locations' => $this->Database->locations()->orderBy('name')
|
||||
$usersService = $this->getUsersService();
|
||||
$nextXDays = $usersService->GetUserSettings(GROCY_USER_ID)['stock_expring_soon_days'];
|
||||
|
||||
return $this->renderPage($response, 'stockentries', [
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name'),
|
||||
'shoppinglocations' => $this->getDatabase()->shopping_locations()->orderBy('name'),
|
||||
'stockEntries' => $this->getDatabase()->stock()->orderBy('product_id'),
|
||||
'currentStockLocations' => $this->getStockService()->GetCurrentStockLocations(),
|
||||
'nextXDays' => $nextXDays,
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('products'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('products')
|
||||
]);
|
||||
}
|
||||
|
||||
public function Consume(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Purchase(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'consume', [
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'recipes' => $this->Database->recipes()->orderBy('name')
|
||||
return $this->renderPage($response, 'purchase', [
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'shoppinglocations' => $this->getDatabase()->shopping_locations()->orderBy('name'),
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
|
||||
public function Inventory(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Consume(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'inventory', [
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'locations' => $this->Database->locations()->orderBy('name')
|
||||
return $this->renderPage($response, 'consume', [
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'recipes' => $this->getDatabase()->recipes()->orderBy('name'),
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
|
||||
public function ShoppingList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Transfer(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->renderPage($response, 'transfer', [
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'recipes' => $this->getDatabase()->recipes()->orderBy('name'),
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
|
||||
public function Inventory(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->renderPage($response, 'inventory', [
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'shoppinglocations' => $this->getDatabase()->shopping_locations()->orderBy('name'),
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
|
||||
public function StockEntryEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->renderPage($response, 'stockentryform', [
|
||||
'stockEntry' => $this->getDatabase()->stock()->where('id', $args['entryId'])->fetch(),
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'shoppinglocations' => $this->getDatabase()->shopping_locations()->orderBy('name'),
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
|
||||
public function ShoppingList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$listId = 1;
|
||||
if (isset($request->getQueryParams()['list']))
|
||||
@@ -70,263 +102,299 @@ class StockController extends BaseController
|
||||
$listId = $request->getQueryParams()['list'];
|
||||
}
|
||||
|
||||
return $this->AppContainer->view->render($response, 'shoppinglist', [
|
||||
'listItems' => $this->Database->shopping_list()->where('shopping_list_id = :1', $listId),
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'quantityunits' => $this->Database->quantity_units()->orderBy('name'),
|
||||
'missingProducts' => $this->StockService->GetMissingProducts(),
|
||||
'productGroups' => $this->Database->product_groups()->orderBy('name'),
|
||||
'shoppingLists' => $this->Database->shopping_lists()->orderBy('name'),
|
||||
return $this->renderPage($response, 'shoppinglist', [
|
||||
'listItems' => $this->getDatabase()->shopping_list()->where('shopping_list_id = :1', $listId),
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'missingProducts' => $this->getStockService()->GetMissingProducts(),
|
||||
'productGroups' => $this->getDatabase()->product_groups()->orderBy('name'),
|
||||
'shoppingLists' => $this->getDatabase()->shopping_lists()->orderBy('name'),
|
||||
'selectedShoppingListId' => $listId,
|
||||
'userfields' => $this->UserfieldsService->GetFields('products'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('products')
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('products'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('products')
|
||||
]);
|
||||
}
|
||||
|
||||
public function ProductsList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ProductsList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'products', [
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'locations' => $this->Database->locations()->orderBy('name'),
|
||||
'quantityunits' => $this->Database->quantity_units()->orderBy('name'),
|
||||
'productGroups' => $this->Database->product_groups()->orderBy('name'),
|
||||
'userfields' => $this->UserfieldsService->GetFields('products'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('products')
|
||||
return $this->renderPage($response, 'products', [
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name'),
|
||||
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'productGroups' => $this->getDatabase()->product_groups()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('products'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('products')
|
||||
]);
|
||||
}
|
||||
|
||||
public function StockSettings(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function StockSettings(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'stocksettings', [
|
||||
'locations' => $this->Database->locations()->orderBy('name'),
|
||||
'quantityunits' => $this->Database->quantity_units()->orderBy('name'),
|
||||
'productGroups' => $this->Database->product_groups()->orderBy('name')
|
||||
return $this->renderPage($response, 'stocksettings', [
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name'),
|
||||
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'productGroups' => $this->getDatabase()->product_groups()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
|
||||
public function LocationsList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function LocationsList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'locations', [
|
||||
'locations' => $this->Database->locations()->orderBy('name'),
|
||||
'userfields' => $this->UserfieldsService->GetFields('locations'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('locations')
|
||||
return $this->renderPage($response, 'locations', [
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('locations'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('locations')
|
||||
]);
|
||||
}
|
||||
|
||||
public function ProductGroupsList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ShoppingLocationsList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'productgroups', [
|
||||
'productGroups' => $this->Database->product_groups()->orderBy('name'),
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'userfields' => $this->UserfieldsService->GetFields('product_groups'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('product_groups')
|
||||
return $this->renderPage($response, 'shoppinglocations', [
|
||||
'shoppinglocations' => $this->getDatabase()->shopping_locations()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('shopping_locations'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('shopping_locations')
|
||||
]);
|
||||
}
|
||||
|
||||
public function QuantityUnitsList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ProductGroupsList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'quantityunits', [
|
||||
'quantityunits' => $this->Database->quantity_units()->orderBy('name'),
|
||||
'userfields' => $this->UserfieldsService->GetFields('quantity_units'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('quantity_units')
|
||||
return $this->renderPage($response, 'productgroups', [
|
||||
'productGroups' => $this->getDatabase()->product_groups()->orderBy('name'),
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('product_groups'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('product_groups')
|
||||
]);
|
||||
}
|
||||
|
||||
public function ProductEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function QuantityUnitsList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->renderPage($response, 'quantityunits', [
|
||||
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('quantity_units'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('quantity_units')
|
||||
]);
|
||||
}
|
||||
|
||||
public function ProductEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['productId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'productform', [
|
||||
'locations' => $this->Database->locations()->orderBy('name'),
|
||||
'quantityunits' => $this->Database->quantity_units()->orderBy('name'),
|
||||
'productgroups' => $this->Database->product_groups()->orderBy('name'),
|
||||
'userfields' => $this->UserfieldsService->GetFields('products'),
|
||||
'products' => $this->Database->products()->where('parent_product_id IS NULL')->orderBy('name'),
|
||||
return $this->renderPage($response, 'productform', [
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name'),
|
||||
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'shoppinglocations' => $this->getDatabase()->shopping_locations()->orderBy('name'),
|
||||
'productgroups' => $this->getDatabase()->product_groups()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('products'),
|
||||
'products' => $this->getDatabase()->products()->where('parent_product_id IS NULL')->orderBy('name'),
|
||||
'isSubProductOfOthers' => false,
|
||||
'mode' => 'create'
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$product = $this->Database->products($args['productId']);
|
||||
$product = $this->getDatabase()->products($args['productId']);
|
||||
|
||||
return $this->AppContainer->view->render($response, 'productform', [
|
||||
return $this->renderPage($response, 'productform', [
|
||||
'product' => $product,
|
||||
'locations' => $this->Database->locations()->orderBy('name'),
|
||||
'quantityunits' => $this->Database->quantity_units()->orderBy('name'),
|
||||
'productgroups' => $this->Database->product_groups()->orderBy('name'),
|
||||
'userfields' => $this->UserfieldsService->GetFields('products'),
|
||||
'products' => $this->Database->products()->where('id != :1 AND parent_product_id IS NULL', $product->id)->orderBy('name'),
|
||||
'isSubProductOfOthers' => $this->Database->products()->where('parent_product_id = :1', $product->id)->count() !== 0,
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name'),
|
||||
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'shoppinglocations' => $this->getDatabase()->shopping_locations()->orderBy('name'),
|
||||
'productgroups' => $this->getDatabase()->product_groups()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('products'),
|
||||
'products' => $this->getDatabase()->products()->where('id != :1 AND parent_product_id IS NULL', $product->id)->orderBy('name'),
|
||||
'isSubProductOfOthers' => $this->getDatabase()->products()->where('parent_product_id = :1', $product->id)->count() !== 0,
|
||||
'mode' => 'edit',
|
||||
'quConversions' => $this->Database->quantity_unit_conversions()
|
||||
'quConversions' => $this->getDatabase()->quantity_unit_conversions()
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function LocationEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function LocationEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['locationId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'locationform', [
|
||||
return $this->renderPage($response, 'locationform', [
|
||||
'mode' => 'create',
|
||||
'userfields' => $this->UserfieldsService->GetFields('locations')
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('locations')
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'locationform', [
|
||||
'location' => $this->Database->locations($args['locationId']),
|
||||
return $this->renderPage($response, 'locationform', [
|
||||
'location' => $this->getDatabase()->locations($args['locationId']),
|
||||
'mode' => 'edit',
|
||||
'userfields' => $this->UserfieldsService->GetFields('locations')
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('locations')
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function ProductGroupEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ShoppingLocationEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['shoppingLocationId'] == 'new')
|
||||
{
|
||||
return $this->renderPage($response, 'shoppinglocationform', [
|
||||
'mode' => 'create',
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('shopping_locations')
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->renderPage($response, 'shoppinglocationform', [
|
||||
'shoppinglocation' => $this->getDatabase()->shopping_locations($args['shoppingLocationId']),
|
||||
'mode' => 'edit',
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('shopping_locations')
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function ProductGroupEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['productGroupId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'productgroupform', [
|
||||
return $this->renderPage($response, 'productgroupform', [
|
||||
'mode' => 'create',
|
||||
'userfields' => $this->UserfieldsService->GetFields('product_groups')
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('product_groups')
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'productgroupform', [
|
||||
'group' => $this->Database->product_groups($args['productGroupId']),
|
||||
return $this->renderPage($response, 'productgroupform', [
|
||||
'group' => $this->getDatabase()->product_groups($args['productGroupId']),
|
||||
'mode' => 'edit',
|
||||
'userfields' => $this->UserfieldsService->GetFields('product_groups')
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('product_groups')
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function QuantityUnitEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function QuantityUnitEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['quantityunitId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'quantityunitform', [
|
||||
return $this->renderPage($response, 'quantityunitform', [
|
||||
'mode' => 'create',
|
||||
'userfields' => $this->UserfieldsService->GetFields('quantity_units'),
|
||||
'pluralCount' => $this->LocalizationService->GetPluralCount(),
|
||||
'pluralRule' => $this->LocalizationService->GetPluralDefinition()
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('quantity_units'),
|
||||
'pluralCount' => $this->getLocalizationService()->GetPluralCount(),
|
||||
'pluralRule' => $this->getLocalizationService()->GetPluralDefinition()
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$quantityUnit = $this->Database->quantity_units($args['quantityunitId']);
|
||||
$quantityUnit = $this->getDatabase()->quantity_units($args['quantityunitId']);
|
||||
|
||||
return $this->AppContainer->view->render($response, 'quantityunitform', [
|
||||
return $this->renderPage($response, 'quantityunitform', [
|
||||
'quantityUnit' => $quantityUnit,
|
||||
'mode' => 'edit',
|
||||
'userfields' => $this->UserfieldsService->GetFields('quantity_units'),
|
||||
'pluralCount' => $this->LocalizationService->GetPluralCount(),
|
||||
'pluralRule' => $this->LocalizationService->GetPluralDefinition(),
|
||||
'defaultQuConversions' => $this->Database->quantity_unit_conversions()->where('from_qu_id = :1 AND product_id IS NULL', $quantityUnit->id),
|
||||
'quantityUnits' => $this->Database->quantity_units()
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('quantity_units'),
|
||||
'pluralCount' => $this->getLocalizationService()->GetPluralCount(),
|
||||
'pluralRule' => $this->getLocalizationService()->GetPluralDefinition(),
|
||||
'defaultQuConversions' => $this->getDatabase()->quantity_unit_conversions()->where('from_qu_id = :1 AND product_id IS NULL', $quantityUnit->id),
|
||||
'quantityUnits' => $this->getDatabase()->quantity_units()
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function ShoppingListItemEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ShoppingListItemEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['itemId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'shoppinglistitemform', [
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'shoppingLists' => $this->Database->shopping_lists()->orderBy('name'),
|
||||
return $this->renderPage($response, 'shoppinglistitemform', [
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'shoppingLists' => $this->getDatabase()->shopping_lists()->orderBy('name'),
|
||||
'mode' => 'create'
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'shoppinglistitemform', [
|
||||
'listItem' => $this->Database->shopping_list($args['itemId']),
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'shoppingLists' => $this->Database->shopping_lists()->orderBy('name'),
|
||||
return $this->renderPage($response, 'shoppinglistitemform', [
|
||||
'listItem' => $this->getDatabase()->shopping_list($args['itemId']),
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'shoppingLists' => $this->getDatabase()->shopping_lists()->orderBy('name'),
|
||||
'mode' => 'edit'
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function ShoppingListEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ShoppingListEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['listId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'shoppinglistform', [
|
||||
return $this->renderPage($response, 'shoppinglistform', [
|
||||
'mode' => 'create'
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'shoppinglistform', [
|
||||
'shoppingList' => $this->Database->shopping_lists($args['listId']),
|
||||
return $this->renderPage($response, 'shoppinglistform', [
|
||||
'shoppingList' => $this->getDatabase()->shopping_lists($args['listId']),
|
||||
'mode' => 'edit'
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function Journal(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function ShoppingListSettings(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'stockjournal', [
|
||||
'stockLog' => $this->Database->stock_log()->orderBy('row_created_timestamp', 'DESC'),
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'quantityunits' => $this->Database->quantity_units()->orderBy('name')
|
||||
return $this->renderPage($response, 'shoppinglistsettings');
|
||||
}
|
||||
|
||||
public function Journal(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->renderPage($response, 'stockjournal', [
|
||||
'stockLog' => $this->getDatabase()->stock_log()->orderBy('row_created_timestamp', 'DESC'),
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name'),
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
|
||||
public function LocationContentSheet(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function LocationContentSheet(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'locationcontentsheet', [
|
||||
'products' => $this->Database->products()->orderBy('name'),
|
||||
'quantityunits' => $this->Database->quantity_units()->orderBy('name'),
|
||||
'locations' => $this->Database->locations()->orderBy('name'),
|
||||
'currentStockLocationContent' => $this->StockService->GetCurrentStockLocationContent()
|
||||
return $this->renderPage($response, 'locationcontentsheet', [
|
||||
'products' => $this->getDatabase()->products()->orderBy('name'),
|
||||
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'locations' => $this->getDatabase()->locations()->orderBy('name'),
|
||||
'currentStockLocationContent' => $this->getStockService()->GetCurrentStockLocationContent()
|
||||
]);
|
||||
}
|
||||
|
||||
public function QuantityUnitConversionEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function QuantityUnitConversionEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$product = null;
|
||||
if (isset($request->getQueryParams()['product']))
|
||||
{
|
||||
$product = $this->Database->products($request->getQueryParams()['product']);
|
||||
$product = $this->getDatabase()->products($request->getQueryParams()['product']);
|
||||
}
|
||||
|
||||
$defaultQuUnit = null;
|
||||
if (isset($request->getQueryParams()['qu-unit']))
|
||||
{
|
||||
$defaultQuUnit = $this->Database->quantity_units($request->getQueryParams()['qu-unit']);
|
||||
$defaultQuUnit = $this->getDatabase()->quantity_units($request->getQueryParams()['qu-unit']);
|
||||
}
|
||||
|
||||
if ($args['quConversionId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'quantityunitconversionform', [
|
||||
return $this->renderPage($response, 'quantityunitconversionform', [
|
||||
'mode' => 'create',
|
||||
'userfields' => $this->UserfieldsService->GetFields('quantity_unit_conversions'),
|
||||
'quantityunits' => $this->Database->quantity_units()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('quantity_unit_conversions'),
|
||||
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'product' => $product,
|
||||
'defaultQuUnit' => $defaultQuUnit
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'quantityunitconversionform', [
|
||||
'quConversion' => $this->Database->quantity_unit_conversions($args['quConversionId']),
|
||||
return $this->renderPage($response, 'quantityunitconversionform', [
|
||||
'quConversion' => $this->getDatabase()->quantity_unit_conversions($args['quConversionId']),
|
||||
'mode' => 'edit',
|
||||
'userfields' => $this->UserfieldsService->GetFields('quantity_unit_conversions'),
|
||||
'quantityunits' => $this->Database->quantity_units()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('quantity_unit_conversions'),
|
||||
'quantityunits' => $this->getDatabase()->quantity_units()->orderBy('name'),
|
||||
'product' => $product,
|
||||
'defaultQuUnit' => $defaultQuUnit
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function QuantityUnitPluralFormTesting(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function QuantityUnitPluralFormTesting(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'quantityunitpluraltesting', [
|
||||
'quantityUnits' => $this->Database->quantity_units()->orderBy('name')
|
||||
return $this->renderPage($response, 'quantityunitpluraltesting', [
|
||||
'quantityUnits' => $this->getDatabase()->quantity_units()->orderBy('name')
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@@ -2,29 +2,50 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\DatabaseService;
|
||||
use \Grocy\Services\ApplicationService;
|
||||
|
||||
class SystemApiController extends BaseApiController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->DatabaseService = new DatabaseService();
|
||||
$this->ApplicationService = new ApplicationService();
|
||||
}
|
||||
|
||||
protected $DatabaseService;
|
||||
protected $ApplicationService;
|
||||
|
||||
public function GetDbChangedTime(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function GetDbChangedTime(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->ApiResponse(array(
|
||||
'changed_time' => $this->DatabaseService->GetDbChangedTime()
|
||||
));
|
||||
return $this->ApiResponse($response, array(
|
||||
'changed_time' => $this->getDatabaseService()->GetDbChangedTime()
|
||||
));
|
||||
}
|
||||
|
||||
public function LogMissingLocalization(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function GetConfig(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$constants = get_defined_constants();
|
||||
|
||||
// Some GROCY_* constants are not really config settings and therefore should not be exposed
|
||||
unset($constants['GROCY_AUTHENTICATED']);
|
||||
unset($constants['GROCY_DATAPATH']);
|
||||
unset($constants['GROCY_IS_EMBEDDED_INSTALL']);
|
||||
unset($constants['GROCY_USER_ID']);
|
||||
|
||||
$returnArray = array();
|
||||
foreach ($constants as $constant => $value)
|
||||
{
|
||||
if (substr($constant, 0, 6) === 'GROCY_')
|
||||
{
|
||||
$returnArray[substr($constant, 6)] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
return $this->ApiResponse($response, $returnArray);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
return $this->GenericErrorResponse($response, $ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function LogMissingLocalization(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if (GROCY_MODE === 'dev')
|
||||
{
|
||||
@@ -32,18 +53,18 @@ class SystemApiController extends BaseApiController
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
$this->LocalizationService->CheckAndAddMissingTranslationToPot($requestBody['text']);
|
||||
$this->getLocalizationService()->CheckAndAddMissingTranslationToPot($requestBody['text']);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
return $this->GenericErrorResponse($response, $ex->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function GetSystemInfo(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function GetSystemInfo(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->ApiResponse($this->ApplicationService->GetSystemInfo());
|
||||
return $this->ApiResponse($response, $this->getApplicationService()->GetSystemInfo());
|
||||
}
|
||||
}
|
||||
|
@@ -2,33 +2,30 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\ApplicationService;
|
||||
use \Grocy\Services\DatabaseMigrationService;
|
||||
use \Grocy\Services\DemoDataGeneratorService;
|
||||
|
||||
class SystemController extends BaseController
|
||||
{
|
||||
protected $ApplicationService;
|
||||
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->ApplicationService = new ApplicationService();
|
||||
}
|
||||
|
||||
public function Root(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Root(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
// Schema migration is done here
|
||||
$databaseMigrationService = new DatabaseMigrationService();
|
||||
$databaseMigrationService = DatabaseMigrationService::getInstance();
|
||||
$databaseMigrationService->MigrateDatabase();
|
||||
|
||||
if (GROCY_IS_DEMO_INSTALL)
|
||||
if (GROCY_MODE === 'dev' || GROCY_MODE === 'demo' || GROCY_MODE === 'prerelease')
|
||||
{
|
||||
$demoDataGeneratorService = new DemoDataGeneratorService();
|
||||
$demoDataGeneratorService = DemoDataGeneratorService::getInstance();
|
||||
$demoDataGeneratorService->PopulateDemoData();
|
||||
}
|
||||
|
||||
return $response->withRedirect($this->AppContainer->UrlManager->ConstructUrl($this->GetEntryPageRelative()));
|
||||
return $response->withRedirect($this->AppContainer->get('UrlManager')->ConstructUrl($this->GetEntryPageRelative()));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -86,19 +83,24 @@ class SystemController extends BaseController
|
||||
return '/calendar';
|
||||
}
|
||||
|
||||
// Meal Plan
|
||||
if ($entryPage === 'mealplan' && constant('GROCY_FEATURE_FLAG_RECIPES')) {
|
||||
return '/mealplan';
|
||||
}
|
||||
|
||||
return '/about';
|
||||
}
|
||||
|
||||
public function About(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function About(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'about', [
|
||||
'system_info' => $this->ApplicationService->GetSystemInfo(),
|
||||
'changelog' => $this->ApplicationService->GetChangelog()
|
||||
return $this->renderPage($response, 'about', [
|
||||
'system_info' => $this->getApplicationService()->GetSystemInfo(),
|
||||
'changelog' => $this->getApplicationService()->GetChangelog()
|
||||
]);
|
||||
}
|
||||
|
||||
public function BarcodeScannerTesting(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function BarcodeScannerTesting(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'barcodescannertesting');
|
||||
return $this->renderPage($response, 'barcodescannertesting');
|
||||
}
|
||||
}
|
||||
|
@@ -2,24 +2,19 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\TasksService;
|
||||
|
||||
class TasksApiController extends BaseApiController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->TasksService = new TasksService();
|
||||
}
|
||||
|
||||
protected $TasksService;
|
||||
|
||||
public function Current(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Current(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->ApiResponse($this->TasksService->GetCurrent());
|
||||
return $this->ApiResponse($response, $this->getTasksService()->GetCurrent());
|
||||
}
|
||||
|
||||
public function MarkTaskAsCompleted(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function MarkTaskAsCompleted(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
@@ -31,7 +26,7 @@ class TasksApiController extends BaseApiController
|
||||
$doneTime = $requestBody['done_time'];
|
||||
}
|
||||
|
||||
$this->TasksService->MarkTaskAsCompleted($args['taskId'], $doneTime);
|
||||
$this->getTasksService()->MarkTaskAsCompleted($args['taskId'], $doneTime);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -40,11 +35,11 @@ class TasksApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function UndoTask(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UndoTask(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$this->TasksService->UndoTask($args['taskId']);
|
||||
$this->getTasksService()->UndoTask($args['taskId']);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
|
@@ -2,99 +2,90 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\TasksService;
|
||||
use \Grocy\Services\UsersService;
|
||||
use \Grocy\Services\UserfieldsService;
|
||||
|
||||
class TasksController extends BaseController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->TasksService = new TasksService();
|
||||
$this->UserfieldsService = new UserfieldsService();
|
||||
}
|
||||
|
||||
protected $TasksService;
|
||||
protected $UserfieldsService;
|
||||
|
||||
public function Overview(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function Overview(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if (isset($request->getQueryParams()['include_done']))
|
||||
{
|
||||
$tasks = $this->Database->tasks()->orderBy('name');
|
||||
$tasks = $this->getDatabase()->tasks()->orderBy('name');
|
||||
}
|
||||
else
|
||||
{
|
||||
$tasks = $this->TasksService->GetCurrent();
|
||||
$tasks = $this->getTasksService()->GetCurrent();
|
||||
}
|
||||
|
||||
$usersService = new UsersService();
|
||||
$usersService = $this->getUsersService();
|
||||
$nextXDays = $usersService->GetUserSettings(GROCY_USER_ID)['tasks_due_soon_days'];
|
||||
|
||||
return $this->AppContainer->view->render($response, 'tasks', [
|
||||
return $this->renderPage($response, 'tasks', [
|
||||
'tasks' => $tasks,
|
||||
'nextXDays' => $nextXDays,
|
||||
'taskCategories' => $this->Database->task_categories()->orderBy('name'),
|
||||
'users' => $this->Database->users(),
|
||||
'userfields' => $this->UserfieldsService->GetFields('tasks'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('tasks')
|
||||
'taskCategories' => $this->getDatabase()->task_categories()->orderBy('name'),
|
||||
'users' => $this->getDatabase()->users(),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('tasks'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('tasks')
|
||||
]);
|
||||
}
|
||||
|
||||
public function TaskEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function TaskEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['taskId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'taskform', [
|
||||
return $this->renderPage($response, 'taskform', [
|
||||
'mode' => 'create',
|
||||
'taskCategories' => $this->Database->task_categories()->orderBy('name'),
|
||||
'users' => $this->Database->users()->orderBy('username'),
|
||||
'userfields' => $this->UserfieldsService->GetFields('tasks')
|
||||
'taskCategories' => $this->getDatabase()->task_categories()->orderBy('name'),
|
||||
'users' => $this->getDatabase()->users()->orderBy('username'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('tasks')
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'taskform', [
|
||||
'task' => $this->Database->tasks($args['taskId']),
|
||||
return $this->renderPage($response, 'taskform', [
|
||||
'task' => $this->getDatabase()->tasks($args['taskId']),
|
||||
'mode' => 'edit',
|
||||
'taskCategories' => $this->Database->task_categories()->orderBy('name'),
|
||||
'users' => $this->Database->users()->orderBy('username'),
|
||||
'userfields' => $this->UserfieldsService->GetFields('tasks')
|
||||
'taskCategories' => $this->getDatabase()->task_categories()->orderBy('name'),
|
||||
'users' => $this->getDatabase()->users()->orderBy('username'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('tasks')
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function TaskCategoriesList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function TaskCategoriesList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'taskcategories', [
|
||||
'taskCategories' => $this->Database->task_categories()->orderBy('name'),
|
||||
'userfields' => $this->UserfieldsService->GetFields('task_categories'),
|
||||
'userfieldValues' => $this->UserfieldsService->GetAllValues('task_categories')
|
||||
return $this->renderPage($response, 'taskcategories', [
|
||||
'taskCategories' => $this->getDatabase()->task_categories()->orderBy('name'),
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('task_categories'),
|
||||
'userfieldValues' => $this->getUserfieldsService()->GetAllValues('task_categories')
|
||||
]);
|
||||
}
|
||||
|
||||
public function TaskCategoryEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function TaskCategoryEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['categoryId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'taskcategoryform', [
|
||||
return $this->renderPage($response, 'taskcategoryform', [
|
||||
'mode' => 'create',
|
||||
'userfields' => $this->UserfieldsService->GetFields('task_categories')
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('task_categories')
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'taskcategoryform', [
|
||||
'category' => $this->Database->task_categories($args['categoryId']),
|
||||
return $this->renderPage($response, 'taskcategoryform', [
|
||||
'category' => $this->getDatabase()->task_categories($args['categoryId']),
|
||||
'mode' => 'edit',
|
||||
'userfields' => $this->UserfieldsService->GetFields('task_categories')
|
||||
'userfields' => $this->getUserfieldsService()->GetFields('task_categories')
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function TasksSettings(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function TasksSettings(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'taskssettings');
|
||||
return $this->renderPage($response, 'taskssettings');
|
||||
}
|
||||
}
|
||||
|
@@ -2,23 +2,18 @@
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use \Grocy\Services\UsersService;
|
||||
|
||||
class UsersApiController extends BaseApiController
|
||||
{
|
||||
public function __construct(\Slim\Container $container)
|
||||
public function __construct(\DI\Container $container)
|
||||
{
|
||||
parent::__construct($container);
|
||||
$this->UsersService = new UsersService();
|
||||
}
|
||||
|
||||
protected $UsersService;
|
||||
|
||||
public function GetUsers(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function GetUsers(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
return $this->ApiResponse($this->UsersService->GetUsersAsDto());
|
||||
return $this->ApiResponse($response, $this->getUsersService()->GetUsersAsDto());
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -26,7 +21,7 @@ class UsersApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function CreateUser(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function CreateUser(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
@@ -37,7 +32,7 @@ class UsersApiController extends BaseApiController
|
||||
throw new \Exception('Request body could not be parsed (probably invalid JSON format or missing/wrong Content-Type header)');
|
||||
}
|
||||
|
||||
$this->UsersService->CreateUser($requestBody['username'], $requestBody['first_name'], $requestBody['last_name'], $requestBody['password']);
|
||||
$this->getUsersService()->CreateUser($requestBody['username'], $requestBody['first_name'], $requestBody['last_name'], $requestBody['password']);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -46,11 +41,11 @@ class UsersApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function DeleteUser(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function DeleteUser(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$this->UsersService->DeleteUser($args['userId']);
|
||||
$this->getUsersService()->DeleteUser($args['userId']);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -59,13 +54,13 @@ class UsersApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function EditUser(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function EditUser(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
try
|
||||
{
|
||||
$this->UsersService->EditUser($args['userId'], $requestBody['username'], $requestBody['first_name'], $requestBody['last_name'], $requestBody['password']);
|
||||
$this->getUsersService()->EditUser($args['userId'], $requestBody['username'], $requestBody['first_name'], $requestBody['last_name'], $requestBody['password']);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
@@ -74,12 +69,11 @@ class UsersApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function GetUserSetting(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function GetUserSettings(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$value = $this->UsersService->GetUserSetting(GROCY_USER_ID, $args['settingKey']);
|
||||
return $this->ApiResponse(array('value' => $value));
|
||||
return $this->ApiResponse($response, $this->getUsersService()->GetUserSettings(GROCY_USER_ID));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
@@ -87,13 +81,26 @@ class UsersApiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function SetUserSetting(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function GetUserSetting(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$value = $this->getUsersService()->GetUserSetting(GROCY_USER_ID, $args['settingKey']);
|
||||
return $this->ApiResponse($response, array('value' => $value));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
return $this->GenericErrorResponse($response, $ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function SetUserSetting(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
try
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
|
||||
$value = $this->UsersService->SetUserSetting(GROCY_USER_ID, $args['settingKey'], $requestBody['value']);
|
||||
$value = $this->getUsersService()->SetUserSetting(GROCY_USER_ID, $args['settingKey'], $requestBody['value']);
|
||||
return $this->EmptyApiResponse($response);
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
|
@@ -4,25 +4,25 @@ namespace Grocy\Controllers;
|
||||
|
||||
class UsersController extends BaseController
|
||||
{
|
||||
public function UsersList(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UsersList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'users', [
|
||||
'users' => $this->Database->users()->orderBy('username')
|
||||
return $this->renderPage($response, 'users', [
|
||||
'users' => $this->getDatabase()->users()->orderBy('username')
|
||||
]);
|
||||
}
|
||||
|
||||
public function UserEditForm(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
public function UserEditForm(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
{
|
||||
if ($args['userId'] == 'new')
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'userform', [
|
||||
return $this->renderPage($response, 'userform', [
|
||||
'mode' => 'create'
|
||||
]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->AppContainer->view->render($response, 'userform', [
|
||||
'user' => $this->Database->users($args['userId']),
|
||||
return $this->renderPage($response, 'userform', [
|
||||
'user' => $this->getDatabase()->users($args['userId']),
|
||||
'mode' => 'edit'
|
||||
]);
|
||||
}
|
||||
|
1
data/.htaccess
Normal file
1
data/.htaccess
Normal file
@@ -0,0 +1 @@
|
||||
Deny from all
|
@@ -14,7 +14,7 @@ class DemoBarcodeLookupPlugin extends BaseBarcodeLookupPlugin
|
||||
|
||||
/*
|
||||
To try it:
|
||||
Call the API function at /api/stock/external-barcode-lookup/{barcode}
|
||||
Call the API function at /api/stock/barcodes/external-lookup/{barcode}
|
||||
|
||||
When you also add ?add=true as a query parameter to the API call,
|
||||
on a successful lookup the product is added to the database and in the output
|
||||
|
File diff suppressed because it is too large
Load Diff
62
helpers/PrerequisiteChecker.php
Normal file
62
helpers/PrerequisiteChecker.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
class ERequirementNotMet extends Exception { }
|
||||
|
||||
const REQUIRED_PHP_EXTENSIONS = array('fileinfo', 'pdo_sqlite', 'gd');
|
||||
|
||||
class PrerequisiteChecker
|
||||
{
|
||||
public function checkRequirements()
|
||||
{
|
||||
self::checkForConfigFile();
|
||||
self::checkForConfigDistFile();
|
||||
self::checkForComposer();
|
||||
self::checkForYarn();
|
||||
self::checkForPhpExtensions();
|
||||
}
|
||||
|
||||
|
||||
private function checkForConfigFile()
|
||||
{
|
||||
if (!file_exists(__DIR__ . '/../data/config.php'))
|
||||
{
|
||||
throw new ERequirementNotMet('/data/config.php not found. Have you copied config-dist.php to the data directory and renamed it to config.php?');
|
||||
}
|
||||
}
|
||||
|
||||
private function checkForConfigDistFile()
|
||||
{
|
||||
if (!file_exists(__DIR__ . '/../config-dist.php'))
|
||||
{
|
||||
throw new ERequirementNotMet('config-dist.php not found. Please do not remove this file.');
|
||||
}
|
||||
}
|
||||
|
||||
private function checkForComposer()
|
||||
{
|
||||
if (!file_exists(__DIR__ . '/../vendor/autoload.php'))
|
||||
{
|
||||
throw new ERequirementNotMet('/vendor/autoload.php not found. Have you run Composer?');
|
||||
}
|
||||
}
|
||||
|
||||
private function checkForYarn()
|
||||
{
|
||||
if (!file_exists(__DIR__ . '/../public/node_modules'))
|
||||
{
|
||||
throw new ERequirementNotMet('/public/node_modules not found. Have you run Yarn?');
|
||||
}
|
||||
}
|
||||
|
||||
private function checkForPhpExtensions()
|
||||
{
|
||||
$loadedExtensions = get_loaded_extensions();
|
||||
foreach (REQUIRED_PHP_EXTENSIONS as $extension)
|
||||
{
|
||||
if (!in_array($extension, $loadedExtensions))
|
||||
{
|
||||
throw new ERequirementNotMet("PHP module '{$extension}' not installed, but required.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -82,7 +82,7 @@ function SumArrayValue($array, $propertyName)
|
||||
$sum = 0;
|
||||
foreach($array as $object)
|
||||
{
|
||||
$sum += $object->{$propertyName};
|
||||
$sum += floatval($object->{$propertyName});
|
||||
}
|
||||
|
||||
return $sum;
|
||||
@@ -138,6 +138,20 @@ function BoolToString(bool $bool)
|
||||
return $bool ? 'true' : 'false';
|
||||
}
|
||||
|
||||
function ExternalSettingValue(string $value)
|
||||
{
|
||||
$tvalue = rtrim($value, "\r\n");
|
||||
$lvalue = strtolower($tvalue);
|
||||
if ($lvalue === "true"){
|
||||
return true;
|
||||
}
|
||||
elseif ($lvalue === "false")
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return $tvalue;
|
||||
}
|
||||
|
||||
function Setting(string $name, $value)
|
||||
{
|
||||
if (!defined('GROCY_' . $name))
|
||||
@@ -146,22 +160,11 @@ function Setting(string $name, $value)
|
||||
$settingOverrideFile = GROCY_DATAPATH . '/settingoverrides/' . $name . '.txt';
|
||||
if (file_exists($settingOverrideFile))
|
||||
{
|
||||
define('GROCY_' . $name, file_get_contents($settingOverrideFile));
|
||||
define('GROCY_' . $name, ExternalSettingValue(file_get_contents($settingOverrideFile)));
|
||||
}
|
||||
elseif (getenv('GROCY_' . $name) !== false) // An environment variable with the same name and prefix GROCY_ overwrites the given setting
|
||||
{
|
||||
if (strtolower(getenv('GROCY_' . $name)) === "true")
|
||||
{
|
||||
define('GROCY_' . $name, true);
|
||||
}
|
||||
elseif (strtolower(getenv('GROCY_' . $name)) === "false")
|
||||
{
|
||||
define('GROCY_' . $name, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
define('GROCY_' . $name, getenv('GROCY_' . $name));
|
||||
}
|
||||
define('GROCY_' . $name, ExternalSettingValue(getenv('GROCY_'. $name)));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -26,3 +26,6 @@ msgstr ""
|
||||
|
||||
msgid "monthly"
|
||||
msgstr ""
|
||||
|
||||
msgid "yearly"
|
||||
msgstr ""
|
||||
|
29
localization/cs/chore_assignment_types.po
Normal file
29
localization/cs/chore_assignment_types.po
Normal file
@@ -0,0 +1,29 @@
|
||||
# Translators:
|
||||
# Radim Kabeláč <radim.ekk@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-09-17 10:45+0000\n"
|
||||
"Last-Translator: Radim Kabeláč <radim.ekk@gmail.com>, 2020\n"
|
||||
"Language-Team: Czech (https://www.transifex.com/grocy/teams/93189/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
"X-Domain: grocy/chore_assignment_types\n"
|
||||
|
||||
msgid "no-assignment"
|
||||
msgstr "bez-přiřazení"
|
||||
|
||||
msgid "who-least-did-first"
|
||||
msgstr "poslední-je-první"
|
||||
|
||||
msgid "random"
|
||||
msgstr "náhodně"
|
||||
|
||||
msgid "in-alphabetical-order"
|
||||
msgstr "řazení-podle-abecedy"
|
36
localization/cs/chore_period_types.po
Normal file
36
localization/cs/chore_period_types.po
Normal file
@@ -0,0 +1,36 @@
|
||||
# Translators:
|
||||
# Tomas Reznicek <tomas.reznicek@gmail.com>, 2019
|
||||
# Michal Petříček <michal@petricek.org>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Michal Petříček <michal@petricek.org>, 2019\n"
|
||||
"Language-Team: Czech (https://www.transifex.com/grocy/teams/93189/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
"X-Domain: grocy/chore_types\n"
|
||||
|
||||
msgid "manually"
|
||||
msgstr "Manuální"
|
||||
|
||||
msgid "dynamic-regular"
|
||||
msgstr "Dynamický"
|
||||
|
||||
msgid "daily"
|
||||
msgstr "Denní"
|
||||
|
||||
msgid "weekly"
|
||||
msgstr "Týdně"
|
||||
|
||||
msgid "monthly"
|
||||
msgstr "Měsíčně"
|
||||
|
||||
msgid "yearly"
|
||||
msgstr "Ročně"
|
50
localization/cs/component_translations.po
Normal file
50
localization/cs/component_translations.po
Normal file
@@ -0,0 +1,50 @@
|
||||
# Translators:
|
||||
# Tomas Reznicek <tomas.reznicek@gmail.com>, 2019
|
||||
# Radim Kabeláč <radim.ekk@gmail.com>, 2020
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2020\n"
|
||||
"Language-Team: Czech (https://www.transifex.com/grocy/teams/93189/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
"X-Domain: grocy/component_translations\n"
|
||||
|
||||
msgid "timeago_locale"
|
||||
msgstr "cs"
|
||||
|
||||
msgid "timeago_nan"
|
||||
msgstr "před NaN lety"
|
||||
|
||||
msgid "moment_locale"
|
||||
msgstr "cs"
|
||||
|
||||
msgid "datatables_localization"
|
||||
msgstr ""
|
||||
"{\"sEmptyTable\":\"Tabulka neobsahuje žádná data\",\"sInfo\":\"Zobrazuji "
|
||||
"_START_ až _END_ z celkem _TOTAL_ záznamů\",\"sInfoEmpty\":\"Zobrazuji 0 až "
|
||||
"0 z 0 záznamů\",\"sInfoFiltered\":\"(filtrováno z celkem _MAX_ "
|
||||
"záznamů)\",\"sInfoPostFix\":\"\",\"sInfoThousands\":\" "
|
||||
"\",\"sLengthMenu\":\"Zobraz záznamů "
|
||||
"_MENU_\",\"sLoadingRecords\":\"Načítám...\",\"sProcessing\":\"Provádím...\",\"sSearch\":\"Hledat:\",\"sZeroRecords\":\"Žádné"
|
||||
" záznamy nebyly "
|
||||
"nalezeny\",\"oPaginate\":{\"sFirst\":\"První\",\"sLast\":\"Poslední\",\"sNext\":\"Další\",\"sPrevious\":\"Předchozí\"},\"oAria\":{\"sSortAscending\":\":"
|
||||
" aktivujte pro řazení sloupce vzestupně\",\"sSortDescending\":\": aktivujte "
|
||||
"pro řazení sloupce sestupně\"}}"
|
||||
|
||||
msgid "summernote_locale"
|
||||
msgstr "cs-CZ"
|
||||
|
||||
msgid "fullcalendar_locale"
|
||||
msgstr "cs"
|
||||
|
||||
msgid "bootstrap-select_locale"
|
||||
msgstr "cs_CZ"
|
383
localization/cs/demo_data.po
Normal file
383
localization/cs/demo_data.po
Normal file
@@ -0,0 +1,383 @@
|
||||
# Translators:
|
||||
# Michal Petříček <michal@petricek.org>, 2019
|
||||
# Ondřej Suk <ondra.suk.55@gmail.com>, 2020
|
||||
# Radim Kabeláč <radim.ekk@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Radim Kabeláč <radim.ekk@gmail.com>, 2020\n"
|
||||
"Language-Team: Czech (https://www.transifex.com/grocy/teams/93189/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
"X-Domain: grocy/demo_data\n"
|
||||
|
||||
msgid "Cookies"
|
||||
msgstr "Sušenky"
|
||||
|
||||
msgid "Chocolate"
|
||||
msgstr "Čokoláda"
|
||||
|
||||
msgid "Pantry"
|
||||
msgstr "Spíž"
|
||||
|
||||
msgid "Candy cupboard"
|
||||
msgstr "Skříňka s cukrovím"
|
||||
|
||||
msgid "Tinned food cupboard"
|
||||
msgstr "Skříňka s konzervami"
|
||||
|
||||
msgid "Fridge"
|
||||
msgstr "Lednička"
|
||||
|
||||
msgid "Piece"
|
||||
msgid_plural "Pieces"
|
||||
msgstr[0] "Kus"
|
||||
msgstr[1] "Kusů"
|
||||
msgstr[2] "Kusů"
|
||||
msgstr[3] "Kusů"
|
||||
|
||||
msgid "Pack"
|
||||
msgid_plural "Packs"
|
||||
msgstr[0] "Balení"
|
||||
msgstr[1] "Balení"
|
||||
msgstr[2] "Balení"
|
||||
msgstr[3] "Balení"
|
||||
|
||||
msgid "Glass"
|
||||
msgid_plural "Glasses"
|
||||
msgstr[0] "Sklenice"
|
||||
msgstr[1] "Sklenic"
|
||||
msgstr[2] "Sklenic"
|
||||
msgstr[3] "Sklenic"
|
||||
|
||||
msgid "Tin"
|
||||
msgid_plural "Tins"
|
||||
msgstr[0] "Plechovka"
|
||||
msgstr[1] "Plechovek"
|
||||
msgstr[2] "Plechovek"
|
||||
msgstr[3] "Plechovek"
|
||||
|
||||
msgid "Can"
|
||||
msgid_plural "Cans"
|
||||
msgstr[0] "Konzerva"
|
||||
msgstr[1] "Konzerv"
|
||||
msgstr[2] "Konzerv"
|
||||
msgstr[3] "Konzerv"
|
||||
|
||||
msgid "Bunch"
|
||||
msgid_plural "Bunches"
|
||||
msgstr[0] "Svazek"
|
||||
msgstr[1] "Svazky"
|
||||
msgstr[2] "Svazky"
|
||||
msgstr[3] "Svazky"
|
||||
|
||||
msgid "Gummy bears"
|
||||
msgstr "Gumoví medvídci"
|
||||
|
||||
msgid "Crisps"
|
||||
msgstr "Brambůrky"
|
||||
|
||||
msgid "Eggs"
|
||||
msgstr "Vajíčka"
|
||||
|
||||
msgid "Noodles"
|
||||
msgstr "Nudle"
|
||||
|
||||
msgid "Pickles"
|
||||
msgstr "Kyselé okurky"
|
||||
|
||||
msgid "Gulash soup"
|
||||
msgstr "Gulášová polévka"
|
||||
|
||||
msgid "Yogurt"
|
||||
msgstr "Jogurt"
|
||||
|
||||
msgid "Cheese"
|
||||
msgstr "Sýr"
|
||||
|
||||
msgid "Cold cuts"
|
||||
msgstr "Uzeniny"
|
||||
|
||||
msgid "Paprika"
|
||||
msgstr "Paprika"
|
||||
|
||||
msgid "Cucumber"
|
||||
msgstr "Okurka"
|
||||
|
||||
msgid "Radish"
|
||||
msgstr "Ředkev"
|
||||
|
||||
msgid "Tomato"
|
||||
msgstr "Rajče"
|
||||
|
||||
msgid "Changed towels in the bathroom"
|
||||
msgstr "Vyměněny ručníky v koupeně"
|
||||
|
||||
msgid "Cleaned the kitchen floor"
|
||||
msgstr "Vytřena podlaha v kuchyni"
|
||||
|
||||
msgid "Warranty ends"
|
||||
msgstr "Záruka končí"
|
||||
|
||||
msgid "TV remote control"
|
||||
msgstr "Dálkový ovladač k TV"
|
||||
|
||||
msgid "Alarm clock"
|
||||
msgstr "Budík"
|
||||
|
||||
msgid "Heat remote control"
|
||||
msgstr "Dálkové ovládání k topení"
|
||||
|
||||
msgid "Lawn mowed in the garden"
|
||||
msgstr "Posekán trávník na zahradě"
|
||||
|
||||
msgid "Some good snacks"
|
||||
msgstr "Nějaké dobroty"
|
||||
|
||||
msgid "Pizza dough"
|
||||
msgstr "Těsto na pizzu"
|
||||
|
||||
msgid "Sieved tomatoes"
|
||||
msgstr "Drcená rajčata"
|
||||
|
||||
msgid "Salami"
|
||||
msgstr "Salám"
|
||||
|
||||
msgid "Toast"
|
||||
msgstr "Toast"
|
||||
|
||||
msgid "Minced meat"
|
||||
msgstr "Mleté maso"
|
||||
|
||||
msgid "Pizza"
|
||||
msgstr "Pizza"
|
||||
|
||||
msgid "Spaghetti bolognese"
|
||||
msgstr "Boloňské špagety"
|
||||
|
||||
msgid "Sandwiches"
|
||||
msgstr "Sendviče"
|
||||
|
||||
msgid "English"
|
||||
msgstr "Angličtina"
|
||||
|
||||
msgid "German"
|
||||
msgstr "Němčina"
|
||||
|
||||
msgid "Italian"
|
||||
msgstr "Italština"
|
||||
|
||||
msgid "This is the note content of the recipe ingredient"
|
||||
msgstr "Toto je poznámka u suroviny receptu"
|
||||
|
||||
msgid "Demo User"
|
||||
msgstr "Demo uživatel"
|
||||
|
||||
msgid "Gram"
|
||||
msgid_plural "Grams"
|
||||
msgstr[0] "Gram"
|
||||
msgstr[1] "Gramů"
|
||||
msgstr[2] "Gramů"
|
||||
msgstr[3] "Gramů"
|
||||
|
||||
msgid "Flour"
|
||||
msgstr "Mouka"
|
||||
|
||||
msgid "Pancakes"
|
||||
msgstr "Palačinky"
|
||||
|
||||
msgid "Sugar"
|
||||
msgstr "Cukr"
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Domov"
|
||||
|
||||
msgid "Life"
|
||||
msgstr "Život"
|
||||
|
||||
msgid "Projects"
|
||||
msgstr "Projekty"
|
||||
|
||||
msgid "Repair the garage door"
|
||||
msgstr "Opravit garážová vrata"
|
||||
|
||||
msgid "Fork and improve grocy"
|
||||
msgstr "Forknout a vylepšit grocy"
|
||||
|
||||
msgid "Find a solution for what to do when I forget the door keys"
|
||||
msgstr "Najít řešení situace, když si zapomenu klíče od domova"
|
||||
|
||||
msgid "Sweets"
|
||||
msgstr "Sladkosti"
|
||||
|
||||
msgid "Bakery products"
|
||||
msgstr "Pečivo"
|
||||
|
||||
msgid "Tinned food"
|
||||
msgstr "Konzervované potraviny"
|
||||
|
||||
msgid "Butchery products"
|
||||
msgstr "Maso a uzeniny"
|
||||
|
||||
msgid "Vegetables/Fruits"
|
||||
msgstr "Ovoce a zelenina"
|
||||
|
||||
msgid "Refrigerated products"
|
||||
msgstr "Chlazené potraviny"
|
||||
|
||||
msgid "Coffee machine"
|
||||
msgstr "Kávovar"
|
||||
|
||||
msgid "Dishwasher"
|
||||
msgstr "Myčka nádobí"
|
||||
|
||||
msgid "Liter"
|
||||
msgstr "Litr"
|
||||
|
||||
msgid "Liters"
|
||||
msgstr "Litry"
|
||||
|
||||
msgid "Bottle"
|
||||
msgstr "Láhev"
|
||||
|
||||
msgid "Bottles"
|
||||
msgstr "Láhve"
|
||||
|
||||
msgid "Milk"
|
||||
msgstr "Mléko"
|
||||
|
||||
msgid "Chocolate sauce"
|
||||
msgstr "Čokoládová poleva"
|
||||
|
||||
msgid "Milliliters"
|
||||
msgstr "Mililitry"
|
||||
|
||||
msgid "Milliliter"
|
||||
msgstr "Mililitr"
|
||||
|
||||
msgid "Bottom"
|
||||
msgstr "Dno"
|
||||
|
||||
msgid "Topping"
|
||||
msgstr "Poleva"
|
||||
|
||||
msgid "French"
|
||||
msgstr "Francouzština"
|
||||
|
||||
msgid "Turkish"
|
||||
msgstr "Turečtina"
|
||||
|
||||
msgid "Spanish"
|
||||
msgstr "Španělština"
|
||||
|
||||
msgid "Russian"
|
||||
msgstr "Ruština"
|
||||
|
||||
msgid "The thing which happens on the 5th of every month"
|
||||
msgstr "Událost opakující se 5. den každý měsíc"
|
||||
|
||||
msgid "The thing which happens daily"
|
||||
msgstr "Událost opakující se každý den"
|
||||
|
||||
msgid "The thing which happens on Mondays and Wednesdays"
|
||||
msgstr "Událost opakující se každé pondělí a středu"
|
||||
|
||||
msgid "Swedish"
|
||||
msgstr "Švédština"
|
||||
|
||||
msgid "Polish"
|
||||
msgstr "Polština"
|
||||
|
||||
msgid "Milk Chocolate"
|
||||
msgstr "Mléčná čokoláda"
|
||||
|
||||
msgid "Dark Chocolate"
|
||||
msgstr "Hořká čokoláda"
|
||||
|
||||
msgid "Slice"
|
||||
msgid_plural "Slices"
|
||||
msgstr[0] "Plátek"
|
||||
msgstr[1] "Plátky"
|
||||
msgstr[2] "Plátky"
|
||||
msgstr[3] "Plátky"
|
||||
|
||||
msgid "Example userentity"
|
||||
msgstr "Příklad uživatelské entity"
|
||||
|
||||
msgid "This is an example user entity..."
|
||||
msgstr "Toto je ukázková položka uživatelské entity"
|
||||
|
||||
msgid "Custom field"
|
||||
msgstr "Vlastní pole"
|
||||
|
||||
msgid "Example field value..."
|
||||
msgstr "Příklad hodnoty pole..."
|
||||
|
||||
msgid "Waffle rolls"
|
||||
msgstr "Oplatky"
|
||||
|
||||
msgid "Danish"
|
||||
msgstr "Dánština"
|
||||
|
||||
msgid "Dutch"
|
||||
msgstr "Holandština"
|
||||
|
||||
msgid "Norwegian"
|
||||
msgstr "Norština"
|
||||
|
||||
msgid "Demo"
|
||||
msgstr "Demo"
|
||||
|
||||
msgid "Stable version"
|
||||
msgstr "Stabilní verze"
|
||||
|
||||
msgid "Preview version"
|
||||
msgstr "Preview verze"
|
||||
|
||||
msgid "current release"
|
||||
msgstr "aktuální vydání"
|
||||
|
||||
msgid "not yet released"
|
||||
msgstr "zatím nevydáno"
|
||||
|
||||
msgid "Portuguese (Brazil)"
|
||||
msgstr "Portugalština (Brazílie)"
|
||||
|
||||
msgid "This is a note"
|
||||
msgstr "Toto je poznámka"
|
||||
|
||||
msgid "Freezer"
|
||||
msgstr "Mrazák"
|
||||
|
||||
msgid "Hungarian"
|
||||
msgstr "Maďarština"
|
||||
|
||||
msgid "Slovak"
|
||||
msgstr "Slovenština"
|
||||
|
||||
msgid "Czech"
|
||||
msgstr ""
|
||||
|
||||
msgid "Portuguese (Portugal)"
|
||||
msgstr ""
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket1"
|
||||
msgstr ""
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket2"
|
||||
msgstr ""
|
||||
|
||||
msgid "Japanese"
|
||||
msgstr ""
|
||||
|
||||
msgid "Chinese (Taiwan)"
|
||||
msgstr ""
|
1982
localization/cs/strings.po
Normal file
1982
localization/cs/strings.po
Normal file
File diff suppressed because it is too large
Load Diff
48
localization/cs/userfield_types.po
Normal file
48
localization/cs/userfield_types.po
Normal file
@@ -0,0 +1,48 @@
|
||||
# Translators:
|
||||
# Tomas Reznicek <tomas.reznicek@gmail.com>, 2019
|
||||
# Michal Franc, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:43+0000\n"
|
||||
"Last-Translator: Michal Franc, 2020\n"
|
||||
"Language-Team: Czech (https://www.transifex.com/grocy/teams/93189/cs/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: cs\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
|
||||
"X-Domain: grocy/userfield_types\n"
|
||||
|
||||
msgid "text-single-line"
|
||||
msgstr "Text (jeden řádek)"
|
||||
|
||||
msgid "text-multi-line"
|
||||
msgstr "Text (více řádků)"
|
||||
|
||||
msgid "number-integral"
|
||||
msgstr "Celé číslo"
|
||||
|
||||
msgid "number-decimal"
|
||||
msgstr "Číslo s desetinami"
|
||||
|
||||
msgid "date"
|
||||
msgstr "Datum"
|
||||
|
||||
msgid "datetime"
|
||||
msgstr "Datum a čas"
|
||||
|
||||
msgid "checkbox"
|
||||
msgstr "Zaškrtávací políčko"
|
||||
|
||||
msgid "preset-list"
|
||||
msgstr "Seznam"
|
||||
|
||||
msgid "preset-checklist"
|
||||
msgstr "Zaškrtávací seznam"
|
||||
|
||||
msgid "link"
|
||||
msgstr "Odkaz"
|
@@ -1,5 +1,7 @@
|
||||
# Translators:
|
||||
# Troels Siggaard <troels@siggaard.com>, 2019
|
||||
# Rasmus Bojsen <rasmus@bojsen.cn>, 2019
|
||||
# Brian Moos Lindberg <brian@blueeel.dk>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -7,7 +9,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Troels Siggaard <troels@siggaard.com>, 2019\n"
|
||||
"Last-Translator: Brian Moos Lindberg <brian@blueeel.dk>, 2019\n"
|
||||
"Language-Team: Danish (https://www.transifex.com/grocy/teams/93189/da/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -20,7 +22,7 @@ msgid "manually"
|
||||
msgstr "manuelt"
|
||||
|
||||
msgid "dynamic-regular"
|
||||
msgstr "gentagende-dynamisk"
|
||||
msgstr "dynamisk-regelmæssig"
|
||||
|
||||
msgid "daily"
|
||||
msgstr "daglig"
|
||||
@@ -30,3 +32,6 @@ msgstr "ugentlig"
|
||||
|
||||
msgid "monthly"
|
||||
msgstr "månedlig"
|
||||
|
||||
msgid "yearly"
|
||||
msgstr "årlig"
|
||||
|
@@ -1,6 +1,8 @@
|
||||
# Translators:
|
||||
# dark159123 <r.j.hansen@protonmail.com>, 2019
|
||||
# Troels Siggaard <troels@siggaard.com>, 2019
|
||||
# Rasmus Bojsen <rasmus@bojsen.cn>, 2019
|
||||
# Brian Moos Lindberg <brian@blueeel.dk>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -8,7 +10,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Troels Siggaard <troels@siggaard.com>, 2019\n"
|
||||
"Last-Translator: Brian Moos Lindberg <brian@blueeel.dk>, 2019\n"
|
||||
"Language-Team: Danish (https://www.transifex.com/grocy/teams/93189/da/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -37,8 +39,8 @@ msgstr "Køleskab"
|
||||
|
||||
msgid "Piece"
|
||||
msgid_plural "Pieces"
|
||||
msgstr[0] "Styk"
|
||||
msgstr[1] "Stykker"
|
||||
msgstr[0] "stk"
|
||||
msgstr[1] "stk"
|
||||
|
||||
msgid "Pack"
|
||||
msgid_plural "Packs"
|
||||
@@ -81,7 +83,7 @@ msgid "Pickles"
|
||||
msgstr "Syltede agurker"
|
||||
|
||||
msgid "Gulash soup"
|
||||
msgstr "Gulash"
|
||||
msgstr "Gullashsuppe"
|
||||
|
||||
msgid "Yogurt"
|
||||
msgstr "Yoghurt"
|
||||
@@ -161,14 +163,11 @@ msgstr "Tysk"
|
||||
msgid "Italian"
|
||||
msgstr "Italiensk"
|
||||
|
||||
msgid "Demo in different language"
|
||||
msgstr "Demo på et andet sprog"
|
||||
|
||||
msgid "This is the note content of the recipe ingredient"
|
||||
msgstr "Dette er indholdet af opskrift-ingrediensens notefeltet"
|
||||
|
||||
msgid "Demo User"
|
||||
msgstr "Demo Bruger"
|
||||
msgstr "Demobruger"
|
||||
|
||||
msgid "Gram"
|
||||
msgid_plural "Grams"
|
||||
@@ -218,7 +217,7 @@ msgid "Vegetables/Fruits"
|
||||
msgstr "Frugt og grønt"
|
||||
|
||||
msgid "Refrigerated products"
|
||||
msgstr "Køleskabsprodukter"
|
||||
msgstr "Køleskabsvarer"
|
||||
|
||||
msgid "Coffee machine"
|
||||
msgstr "Kaffemaskine"
|
||||
@@ -284,27 +283,86 @@ msgid "Polish"
|
||||
msgstr "Polsk"
|
||||
|
||||
msgid "Milk Chocolate"
|
||||
msgstr ""
|
||||
msgstr "Mælkechokolade"
|
||||
|
||||
msgid "Dark Chocolate"
|
||||
msgstr ""
|
||||
msgstr "Mørk chokolade"
|
||||
|
||||
msgid "Slice"
|
||||
msgid_plural "Slices"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[0] "Skive"
|
||||
msgstr[1] "Skiver"
|
||||
|
||||
msgid "Example userentity"
|
||||
msgstr ""
|
||||
msgstr "Eksempel-brugerenhed"
|
||||
|
||||
msgid "This is an example user entity..."
|
||||
msgstr ""
|
||||
msgstr "Dette er en eksempel-brugerenhed..."
|
||||
|
||||
msgid "Custom field"
|
||||
msgstr ""
|
||||
msgstr "Brugerdefineret felt"
|
||||
|
||||
msgid "Example field value..."
|
||||
msgstr ""
|
||||
msgstr "Eksempel-feltværdi..."
|
||||
|
||||
msgid "Waffle rolls"
|
||||
msgstr "Vaffelruller"
|
||||
|
||||
msgid "Danish"
|
||||
msgstr "Dansk"
|
||||
|
||||
msgid "Dutch"
|
||||
msgstr "Hollandsk"
|
||||
|
||||
msgid "Norwegian"
|
||||
msgstr "Norsk"
|
||||
|
||||
msgid "Demo"
|
||||
msgstr "Demo"
|
||||
|
||||
msgid "Stable version"
|
||||
msgstr "Stabil version"
|
||||
|
||||
msgid "Preview version"
|
||||
msgstr "Forhåndsvisningsversion"
|
||||
|
||||
msgid "current release"
|
||||
msgstr "aktuel udgivelse"
|
||||
|
||||
msgid "not yet released"
|
||||
msgstr "Ikke frigivet endnu"
|
||||
|
||||
msgid "Portuguese (Brazil)"
|
||||
msgstr "Portugisisk (Brasilien)"
|
||||
|
||||
msgid "This is a note"
|
||||
msgstr ""
|
||||
|
||||
msgid "Freezer"
|
||||
msgstr ""
|
||||
|
||||
msgid "Hungarian"
|
||||
msgstr ""
|
||||
|
||||
msgid "Slovak"
|
||||
msgstr ""
|
||||
|
||||
msgid "Czech"
|
||||
msgstr ""
|
||||
|
||||
msgid "Portuguese (Portugal)"
|
||||
msgstr ""
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket1"
|
||||
msgstr ""
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket2"
|
||||
msgstr ""
|
||||
|
||||
msgid "Japanese"
|
||||
msgstr ""
|
||||
|
||||
msgid "Chinese (Taiwan)"
|
||||
msgstr ""
|
||||
|
@@ -1,5 +1,6 @@
|
||||
# Translators:
|
||||
# Troels Siggaard <troels@siggaard.com>, 2019
|
||||
# Brian Moos Lindberg <brian@blueeel.dk>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -7,7 +8,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Troels Siggaard <troels@siggaard.com>, 2019\n"
|
||||
"Last-Translator: Brian Moos Lindberg <brian@blueeel.dk>, 2019\n"
|
||||
"Language-Team: Danish (https://www.transifex.com/grocy/teams/93189/da/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -19,6 +20,12 @@ msgstr ""
|
||||
msgid "purchase"
|
||||
msgstr "køb"
|
||||
|
||||
msgid "transfer_from"
|
||||
msgstr "flyt_fra"
|
||||
|
||||
msgid "transfer_to"
|
||||
msgstr "flyt_til"
|
||||
|
||||
msgid "consume"
|
||||
msgstr "forbrug"
|
||||
|
||||
@@ -27,3 +34,12 @@ msgstr "beholdningsrettelse"
|
||||
|
||||
msgid "product-opened"
|
||||
msgstr "produkt-åbnet"
|
||||
|
||||
msgid "stock-edit-old"
|
||||
msgstr "lager-redigering-gammel"
|
||||
|
||||
msgid "stock-edit-new"
|
||||
msgstr "lager-redigering-ny"
|
||||
|
||||
msgid "self-production"
|
||||
msgstr ""
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,3 +1,5 @@
|
||||
# Translators:
|
||||
# Brian Moos Lindberg <brian@blueeel.dk>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -5,6 +7,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:43+0000\n"
|
||||
"Last-Translator: Brian Moos Lindberg <brian@blueeel.dk>, 2019\n"
|
||||
"Language-Team: Danish (https://www.transifex.com/grocy/teams/93189/da/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -14,22 +17,31 @@ msgstr ""
|
||||
"X-Domain: grocy/userfield_types\n"
|
||||
|
||||
msgid "text-single-line"
|
||||
msgstr ""
|
||||
msgstr "tekst-enkelt-linje"
|
||||
|
||||
msgid "text-multi-line"
|
||||
msgstr ""
|
||||
msgstr "tekst-flere-linjer"
|
||||
|
||||
msgid "number-integral"
|
||||
msgstr ""
|
||||
msgstr "tal-heltal"
|
||||
|
||||
msgid "number-decimal"
|
||||
msgstr ""
|
||||
msgstr "tal-decimal"
|
||||
|
||||
msgid "date"
|
||||
msgstr ""
|
||||
msgstr "dato"
|
||||
|
||||
msgid "datetime"
|
||||
msgstr ""
|
||||
msgstr "datotid"
|
||||
|
||||
msgid "checkbox"
|
||||
msgstr ""
|
||||
msgstr "afkrydsningsfelt"
|
||||
|
||||
msgid "preset-list"
|
||||
msgstr "forudindstillet-liste"
|
||||
|
||||
msgid "preset-checklist"
|
||||
msgstr "forudindstillet-tjekliste"
|
||||
|
||||
msgid "link"
|
||||
msgstr "link"
|
||||
|
@@ -30,3 +30,6 @@ msgstr "Wöchentlich"
|
||||
|
||||
msgid "monthly"
|
||||
msgstr "Monatlich"
|
||||
|
||||
msgid "yearly"
|
||||
msgstr "Jährlich"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -7,7 +7,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2019\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2020\n"
|
||||
"Language-Team: German (https://www.transifex.com/grocy/teams/93189/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -160,9 +160,6 @@ msgstr "Deutsch"
|
||||
msgid "Italian"
|
||||
msgstr "Italienisch"
|
||||
|
||||
msgid "Demo in different language"
|
||||
msgstr "Demo in anderer Sprache"
|
||||
|
||||
msgid "This is the note content of the recipe ingredient"
|
||||
msgstr "Dies ist der Inhalt der Notiz der Zutat"
|
||||
|
||||
@@ -313,3 +310,56 @@ msgstr "Dänisch"
|
||||
|
||||
msgid "Dutch"
|
||||
msgstr "Niederländisch"
|
||||
|
||||
msgid "Norwegian"
|
||||
msgstr "Norwegisch"
|
||||
|
||||
msgid "Demo"
|
||||
msgstr "Demo"
|
||||
|
||||
msgid "Stable version"
|
||||
msgstr "Stabile Version"
|
||||
|
||||
msgid "Preview version"
|
||||
msgstr "Vorschauversion"
|
||||
|
||||
msgid "current release"
|
||||
msgstr "aktuelles Release"
|
||||
|
||||
msgid "not yet released"
|
||||
msgstr "noch nicht freigegeben"
|
||||
|
||||
msgid "Portuguese (Brazil)"
|
||||
msgstr "Portugiesisch (Brasilien)"
|
||||
|
||||
msgid "This is a note"
|
||||
msgstr "Dies ist eine Notiz"
|
||||
|
||||
msgid "Freezer"
|
||||
msgstr "Gefrierschrank"
|
||||
|
||||
msgid "Hungarian"
|
||||
msgstr "Ungarisch"
|
||||
|
||||
msgid "Slovak"
|
||||
msgstr "Slowakisch"
|
||||
|
||||
msgid "Czech"
|
||||
msgstr "Tschechisch"
|
||||
|
||||
msgid "Portuguese (Portugal)"
|
||||
msgstr "Portugiesisch (Portugal)"
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket1"
|
||||
msgstr "Aldi"
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket2"
|
||||
msgstr "Rewe"
|
||||
|
||||
msgid "Japanese"
|
||||
msgstr "Japanisch"
|
||||
|
||||
msgid "Chinese (Taiwan)"
|
||||
msgstr "Chinesisch (Taiwan)"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -7,7 +7,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2019\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2020\n"
|
||||
"Language-Team: German (https://www.transifex.com/grocy/teams/93189/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -19,6 +19,12 @@ msgstr ""
|
||||
msgid "purchase"
|
||||
msgstr "Einkauf"
|
||||
|
||||
msgid "transfer_from"
|
||||
msgstr "Umlagerung von"
|
||||
|
||||
msgid "transfer_to"
|
||||
msgstr "Umlagerung nach"
|
||||
|
||||
msgid "consume"
|
||||
msgstr "Verbrauch"
|
||||
|
||||
@@ -27,3 +33,12 @@ msgstr "Inventur-Korrektur"
|
||||
|
||||
msgid "product-opened"
|
||||
msgstr "Produkt geöffnet"
|
||||
|
||||
msgid "stock-edit-old"
|
||||
msgstr "Bestandseintrag bearbeitet (alte Werte)"
|
||||
|
||||
msgid "stock-edit-new"
|
||||
msgstr "Bestandseintrag bearbeitet (neue Werte)"
|
||||
|
||||
msgid "self-production"
|
||||
msgstr "Eigenproduktion"
|
||||
|
@@ -1,5 +1,6 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Hagen Tasche <github@fvbor.de>, 2020
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -7,7 +8,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2019\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2020\n"
|
||||
"Language-Team: German (https://www.transifex.com/grocy/teams/93189/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -75,7 +76,7 @@ msgid "Shopping list"
|
||||
msgstr "Einkaufszettel"
|
||||
|
||||
msgid "Chore tracking"
|
||||
msgstr "Hausarbeiten-Ausführung"
|
||||
msgstr "Hausarbeit-Ausführung"
|
||||
|
||||
msgid "Battery tracking"
|
||||
msgstr "Batterie-Ladezyklus"
|
||||
@@ -83,6 +84,9 @@ msgstr "Batterie-Ladezyklus"
|
||||
msgid "Locations"
|
||||
msgstr "Standorte"
|
||||
|
||||
msgid "Stores"
|
||||
msgstr "Geschäfte"
|
||||
|
||||
msgid "Quantity units"
|
||||
msgstr "Mengeneinheiten"
|
||||
|
||||
@@ -129,7 +133,7 @@ msgid "Last purchased"
|
||||
msgstr "Zuletzt gekauft"
|
||||
|
||||
msgid "Last used"
|
||||
msgstr "Zuletzt benutzt"
|
||||
msgstr "Zuletzt verbraucht"
|
||||
|
||||
msgid "Spoiled"
|
||||
msgstr "Verdorben"
|
||||
@@ -221,6 +225,9 @@ msgstr "Faktor Mengeneinheit Einkauf zu Mengeneinheit Bestand"
|
||||
msgid "Create location"
|
||||
msgstr "Standort erstellen"
|
||||
|
||||
msgid "Create store"
|
||||
msgstr "Geschäft erstellen"
|
||||
|
||||
msgid "Create quantity unit"
|
||||
msgstr "Mengeneinheit erstellen"
|
||||
|
||||
@@ -254,6 +261,9 @@ msgstr "Produkt bearbeiten"
|
||||
msgid "Edit location"
|
||||
msgstr "Standort bearbeiten"
|
||||
|
||||
msgid "Edit store"
|
||||
msgstr "Geschäft bearbeiten"
|
||||
|
||||
msgid "Record data"
|
||||
msgstr "Daten erfassen"
|
||||
|
||||
@@ -330,6 +340,9 @@ msgstr "Produkt \"%s\" wirklich löschen?"
|
||||
msgid "Are you sure to delete location \"%s\"?"
|
||||
msgstr "Standort \"%s\" wirklich löschen?"
|
||||
|
||||
msgid "Are you sure to delete store \"%s\"?"
|
||||
msgstr "Geschäft \"%s\" wirklich löschen?"
|
||||
|
||||
msgid "Manage API keys"
|
||||
msgstr "API-Keys verwalten"
|
||||
|
||||
@@ -676,7 +689,7 @@ msgstr ""
|
||||
msgid "Consume all ingredients needed by this recipe"
|
||||
msgstr ""
|
||||
"Alle Zutaten, die von diesem Rezept benötigt werden, aus dem Bestand "
|
||||
"enternen"
|
||||
"entfernen"
|
||||
|
||||
msgid "Click to show technical details"
|
||||
msgstr "Klick um technische Details anzuzeigen"
|
||||
@@ -847,16 +860,16 @@ msgid "Instruction manual"
|
||||
msgstr "Bedienungsanleitung"
|
||||
|
||||
msgid "The selected equipment has no instruction manual"
|
||||
msgstr "Das ausgewählte Gerät hat keine Bedienungsanleitung"
|
||||
msgstr "Die ausgewählte Ausstattung hat keine Bedienungsanleitung"
|
||||
|
||||
msgid "Notes"
|
||||
msgstr "Notizen"
|
||||
|
||||
msgid "Edit equipment"
|
||||
msgstr "Geräte bearbeiten"
|
||||
msgstr "Ausstattung bearbeiten"
|
||||
|
||||
msgid "Create equipment"
|
||||
msgstr "Geräte erstellen"
|
||||
msgstr "Ausstattung erstellen"
|
||||
|
||||
msgid ""
|
||||
"If you don't select a file, the current instruction manual will not be "
|
||||
@@ -871,7 +884,8 @@ msgstr "Keine Bedienungsanleitung vorhanden"
|
||||
msgid ""
|
||||
"The current instruction manual will be deleted when you save the equipment"
|
||||
msgstr ""
|
||||
"Die aktuelle Bedienungsanleitung wird beim Speichern des Geräts gelöscht"
|
||||
"Die aktuelle Bedienungsanleitung wird beim Speichern der Ausstattung "
|
||||
"gelöscht"
|
||||
|
||||
msgid "No picture available"
|
||||
msgstr "Kein Bild vorhanden"
|
||||
@@ -974,12 +988,12 @@ msgid "Mark %1$s of %2$s as open"
|
||||
msgstr "%1$s %2$s als geöffnet markieren"
|
||||
|
||||
msgid ""
|
||||
"When a product was marked as opened, the best before date will be replaced "
|
||||
"by today + this amount of days (a value of 0 disables this)"
|
||||
"When this product was marked as opened, the best before date will be "
|
||||
"replaced by today + this amount of days (a value of 0 disables this)"
|
||||
msgstr ""
|
||||
"Wenn ein Produkt als geöffnet markiert wurde, wird das "
|
||||
"Wenn dieses Produkt als geöffnet markiert wurde, wird das "
|
||||
"Mindesthaltbarkeitsdatum durch heute + diese Anzahl von Tagen ersetzt (ein "
|
||||
"Wert von 0 deaktiviert dies)"
|
||||
"Wert von 0 deaktiviert dies) "
|
||||
|
||||
msgid "Default best before days after opened"
|
||||
msgstr "Standard Haltbarkeit in Tagen nach dem Öffnen"
|
||||
@@ -990,9 +1004,6 @@ msgstr "%1$s %2$s als geöffnet markiert"
|
||||
msgid "Mark as opened"
|
||||
msgstr "Als geöffnet markieren"
|
||||
|
||||
msgid "Expires on %1$s; Bought on %2$s"
|
||||
msgstr "Läuft ab am %1$s; Gekauft am %2$s"
|
||||
|
||||
msgid "Not opened"
|
||||
msgstr "Nicht geöffnet"
|
||||
|
||||
@@ -1018,7 +1029,7 @@ msgid "Show clock in header"
|
||||
msgstr "Uhr in der Kopfzeile anzeigen"
|
||||
|
||||
msgid "Stock settings"
|
||||
msgstr "Bestandseinstellungen"
|
||||
msgstr "Bestand-Einstellungen"
|
||||
|
||||
msgid "Shopping list to stock workflow"
|
||||
msgstr "Einkaufsliste -> Bestand Workflow"
|
||||
@@ -1117,6 +1128,9 @@ msgstr ""
|
||||
msgid "You have to select a location"
|
||||
msgstr "Ein Standort muss ausgewählt werden"
|
||||
|
||||
msgid "You have to select a store"
|
||||
msgstr "Ein Geschäft muss ausgewählt werden"
|
||||
|
||||
msgid "List"
|
||||
msgstr "Liste"
|
||||
|
||||
@@ -1150,7 +1164,7 @@ msgstr "Systeminformationen"
|
||||
msgid "Changelog"
|
||||
msgstr "Änderungsprotokoll"
|
||||
|
||||
msgid "will be multiplied a factor of %1$s to get %2$s"
|
||||
msgid "will be multiplied by a factor of %1$s to get %2$s"
|
||||
msgstr "wird mit dem Faktor %1$s multipliziert um %2$s zu erhalten"
|
||||
|
||||
msgid "The given date is earlier than today, are you sure?"
|
||||
@@ -1308,6 +1322,9 @@ msgstr "Nicht ausreichend im Bestand"
|
||||
msgid "Expiring soon days"
|
||||
msgstr "\"Bald ablaufend\"-Tage"
|
||||
|
||||
msgid "Default location"
|
||||
msgstr "Standard Standort"
|
||||
|
||||
msgid "Default amount for purchase"
|
||||
msgstr "Standardmenge für Einkauf"
|
||||
|
||||
@@ -1338,8 +1355,8 @@ msgstr "Verbrauche %1$s %2$s"
|
||||
msgid "Meal plan"
|
||||
msgstr "Speiseplan"
|
||||
|
||||
msgid "Add recipe to %s"
|
||||
msgstr "Rezept zu %s hinzufügen"
|
||||
msgid "Add recipe on %s"
|
||||
msgstr "Rezept am %s hinzufügen"
|
||||
|
||||
msgid "%s serving"
|
||||
msgid_plural "%s servings"
|
||||
@@ -1670,3 +1687,319 @@ msgstr "Erfolgreich"
|
||||
|
||||
msgid "Miss"
|
||||
msgstr "Fehler"
|
||||
|
||||
msgid "Display recipe"
|
||||
msgstr "Rezept anzeigen"
|
||||
|
||||
msgid "Accumulate sub products min. stock amount"
|
||||
msgstr "Mindestbestände von untergeordneten Produkten aufsummieren"
|
||||
|
||||
msgid ""
|
||||
"If enabled, the min. stock amount of sub products will be accumulated into "
|
||||
"this product, means the sub product will never be \"missing\", only this "
|
||||
"product"
|
||||
msgstr ""
|
||||
"Wenn aktiviert, werden die Mindestbestände von untergeordneten Produkten "
|
||||
"aufsummiert, heißt das untergeordnete Produkt wird nie \"fehlen\", nur "
|
||||
"dieses"
|
||||
|
||||
msgid "Are you sure to remove this conversion?"
|
||||
msgstr "Diese Umrechnung wirklich löschen?"
|
||||
|
||||
msgid "Unit price"
|
||||
msgstr "Einzelpreis"
|
||||
|
||||
msgid "Total price"
|
||||
msgstr "Gesamtpreis"
|
||||
|
||||
msgid "in %s and based on the purchase quantity unit"
|
||||
msgstr "In %s und bezogen auf die Einkaufsmengeneinheit"
|
||||
|
||||
msgid "Unlimited"
|
||||
msgstr "Unbegrenzt"
|
||||
|
||||
msgid "Clear"
|
||||
msgstr "Löschen"
|
||||
|
||||
msgid "Are you sure to remove the included recipe \"%s\"?"
|
||||
msgstr "Das enthaltene Rezept \"%s\" wirklich löschen?"
|
||||
|
||||
msgid "Period interval"
|
||||
msgstr "Periodenintervall"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore should only be scheduled every "
|
||||
"%s days"
|
||||
msgstr ""
|
||||
"Das bedeutet, dass eine erneute Ausführung der Hausarbeit nur alle %s Tage "
|
||||
"geplant wird"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore should only be scheduled every "
|
||||
"%s weeks"
|
||||
msgstr ""
|
||||
"Das bedeutet, dass eine erneute Ausführung der Hausarbeit nur alle %s Wochen"
|
||||
" geplant wird"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore should only be scheduled every "
|
||||
"%s months"
|
||||
msgstr ""
|
||||
"Das bedeutet, dass eine erneute Ausführung der Hausarbeit nur alle %s Monate"
|
||||
" geplant wird"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore is scheduled 1 year after the "
|
||||
"last execution"
|
||||
msgstr ""
|
||||
"Das bedeutet, dass eine erneute Ausführung der Hausarbeit 1 Jahr nach der "
|
||||
"letzten Ausführung geplant wird"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore should only be scheduled every "
|
||||
"%s years"
|
||||
msgstr ""
|
||||
"Das bedeutet, dass eine erneute Ausführung der Hausarbeit nur alle %s Jahre "
|
||||
"geplant wird"
|
||||
|
||||
msgid "Transfer"
|
||||
msgstr "Umlagern"
|
||||
|
||||
msgid "From location"
|
||||
msgstr "Von Standort"
|
||||
|
||||
msgid "To location"
|
||||
msgstr "Nach Standort"
|
||||
|
||||
msgid "There are no units available at this location"
|
||||
msgstr "Keine Einheiten an diesem Standort verfügbar"
|
||||
|
||||
msgid "Amount: %1$s; Expires on %2$s; Bought on %3$s"
|
||||
msgstr "Menge: %1$s; Läuft ab am %2$s; Gekauft am %3$s "
|
||||
|
||||
msgid "Transfered %1$s of %2$s from %3$s to %4$s"
|
||||
msgstr "%1$s %2$s von %3$s nach %4$s verschoben"
|
||||
|
||||
msgid "Show stock entries"
|
||||
msgstr "Bestandseinträge anzeigen"
|
||||
|
||||
msgid "Stock entries"
|
||||
msgstr "Bestandseinträge"
|
||||
|
||||
msgid "Best before date"
|
||||
msgstr "MHD"
|
||||
|
||||
msgid "Purchased date"
|
||||
msgstr "Einkaufsdatum"
|
||||
|
||||
msgid "Consume all %s for this stock entry"
|
||||
msgstr "Verbrauche alle %s dieses Bestandseintrags"
|
||||
|
||||
msgid "The amount cannot be lower than %1$s"
|
||||
msgstr "Die Menge darf nicht kleiner als %1$s sein"
|
||||
|
||||
msgid "Stock entry successfully updated"
|
||||
msgstr "Bestandseintrag wurde erfolgreich aktualisiert"
|
||||
|
||||
msgid "Edit stock entry"
|
||||
msgstr "Bestandseintrag bearbeiten"
|
||||
|
||||
msgid ""
|
||||
"Camera access is only possible when supported and allowed by your browser "
|
||||
"and when grocy is served via a secure (https://) connection"
|
||||
msgstr ""
|
||||
"Der Kamerazugriff ist nur möglich, wenn dein Browser dies unterstützt und "
|
||||
"zulässt und wenn auf grocy über eine sichere Verbindung (https://) "
|
||||
"zugegriffen wird"
|
||||
|
||||
msgid "Keep screen on"
|
||||
msgstr "Bildschirm eingeschaltet lassen"
|
||||
|
||||
msgid "Keep screen on while displaying a \"fullscreen-card\""
|
||||
msgstr ""
|
||||
"Bildschirm eingeschaltet lassen während eine \"fullscreen-card\" angezeigt "
|
||||
"wird"
|
||||
|
||||
msgid "A purchased date is required"
|
||||
msgstr "Ein Einkaufsdatum ist erforderlich"
|
||||
|
||||
msgid ""
|
||||
"When a product is selected, one unit (per serving in purchase quantity unit)"
|
||||
" will be added to stock on consuming this recipe"
|
||||
msgstr ""
|
||||
"Wenn ein Produkt ausgewählt ist, wird beim Verbrauch dieses Rezeptes eine "
|
||||
"Einheit (pro Portion in Einkaufsmengeneinheit) dem Bestand hinzugefügt"
|
||||
|
||||
msgid "Produces product"
|
||||
msgstr "Produziertes Produkt"
|
||||
|
||||
msgid "This booking cannot be undone"
|
||||
msgstr "Die Buchung kann nicht rückgängig gemacht werden"
|
||||
|
||||
msgid "Booking does not exist or was already undone"
|
||||
msgstr "Buchung existiert nicht oder wurde bereits rückgängig gemacht"
|
||||
|
||||
msgid "Are you sure to delete API key \"%s\"?"
|
||||
msgstr "API key \"%s\" wirklich löschen?"
|
||||
|
||||
msgid "Add note"
|
||||
msgstr "Notiz hinzufügen"
|
||||
|
||||
msgid "Add note on %s"
|
||||
msgstr "Notiz am %s hinzufügen"
|
||||
|
||||
msgid "per day"
|
||||
msgstr "pro Tag"
|
||||
|
||||
msgid "Compact view"
|
||||
msgstr "Kompakte Ansicht"
|
||||
|
||||
msgid "Normal view"
|
||||
msgstr "Normale Ansicht"
|
||||
|
||||
msgid "Only undone items"
|
||||
msgstr "Nur unerledigte Einträge"
|
||||
|
||||
msgid "Add product"
|
||||
msgstr "Produkt hinzufügen"
|
||||
|
||||
msgid "Add product on %s"
|
||||
msgstr "Produkt am %s hinzufügen"
|
||||
|
||||
msgid "Consume all ingredients needed by this weeks recipes or products"
|
||||
msgstr ""
|
||||
"Alle Zutaten, die diese Woche von Rezepten oder Produkten benötigt werden, "
|
||||
"aus dem Bestand entfernen"
|
||||
|
||||
msgid "Meal plan recipe"
|
||||
msgstr "Speiseplan Rezept"
|
||||
|
||||
msgid "Meal plan note"
|
||||
msgstr "Speiseplan Notiz"
|
||||
|
||||
msgid "Meal plan product"
|
||||
msgstr "Speiseplan Produkt"
|
||||
|
||||
msgid "Scan mode"
|
||||
msgstr "Scan-Modus"
|
||||
|
||||
msgid "on"
|
||||
msgstr "an"
|
||||
|
||||
msgid "off"
|
||||
msgstr "aus"
|
||||
|
||||
msgid ""
|
||||
"Scan mode is on but not all required fields could be populated automatically"
|
||||
msgstr ""
|
||||
"Scan-Modus ist eingeschaltet, aber nicht alle erforderlichen Felder konnten "
|
||||
"automatisch ausgefüllt werden"
|
||||
|
||||
msgid "Is freezer"
|
||||
msgstr "Ist ein Gefrier-Standort (also z. B. ein Gefrierschrank)"
|
||||
|
||||
msgid ""
|
||||
"When moving products from/to a freezer location, the products best before "
|
||||
"date is automatically adjusted according to the product settings"
|
||||
msgstr ""
|
||||
"Beim Umlagen von Produkten von/zu einem Gefrier-Standort wird das "
|
||||
"Mindesthaltbarkeitsdatum der Produkte automatisch entsprechend den "
|
||||
"Produkteinstellungen angepasst"
|
||||
|
||||
msgid ""
|
||||
"On moving this product to a freezer location (so when freezing it), the best"
|
||||
" before date will be replaced by today + this amount of days"
|
||||
msgstr ""
|
||||
"Wenn dieses Produkt zu einem Gefrier-Standort umgelagert (sprich "
|
||||
"eingefroren) wird, wird das Mindesthaltbarkeitsdatum durch heute + diese "
|
||||
"Anzahl von Tagen ersetzt"
|
||||
|
||||
msgid "Default best before days after freezing"
|
||||
msgstr "Standard Haltbartkeit in Tagen nach dem Einfrieren"
|
||||
|
||||
msgid ""
|
||||
"On moving this product from a freezer location (so when thawing it), the "
|
||||
"best before date will be replaced by today + this amount of days"
|
||||
msgstr ""
|
||||
"Wenn dieses Produkt von einem Gefrier-Standort umgelagert (sprich aufgetaut)"
|
||||
" wird, wird das Mindesthaltbarkeitsdatum durch heute + diese Anzahl von "
|
||||
"Tagen ersetzt"
|
||||
|
||||
msgid "Default best before days after thawing"
|
||||
msgstr "Standard Haltbartkeit in Tagen nach dem Auftauen"
|
||||
|
||||
msgid "This cannot be the same as the \"From\" location"
|
||||
msgstr "Dies kann nicht derselbe Standort wie \"Von Standort\" sein"
|
||||
|
||||
msgid "Thawed"
|
||||
msgstr "Aufgetaut"
|
||||
|
||||
msgid "Frozen"
|
||||
msgstr "Eingefroren"
|
||||
|
||||
msgid "Are you sure to delete userentity \"%s\"?"
|
||||
msgstr "Benutzerentität \"%s\" wirklich löschen?"
|
||||
|
||||
msgid "Shopping list settings"
|
||||
msgstr "Einkaufszettel-Einstellungen"
|
||||
|
||||
msgid "Show a month-view calendar"
|
||||
msgstr "Einen Kalender (Monatsansicht) anzeigen"
|
||||
|
||||
msgid "Don't automatically switch to the compact view on mobile devices"
|
||||
msgstr "Nicht automatisch zur Kompaktansicht wechseln auf mobilen Geräten"
|
||||
|
||||
msgid "Edit note on %s"
|
||||
msgstr "Notiz am %s bearbeiten"
|
||||
|
||||
msgid "Edit product on %s"
|
||||
msgstr "Produkt am %s bearbeiten"
|
||||
|
||||
msgid "Edit recipe on %s"
|
||||
msgstr "Rezept am %s bearbeiten"
|
||||
|
||||
msgid "Desired servings"
|
||||
msgstr "Gewünschte Portionen"
|
||||
|
||||
msgid "Base: %s"
|
||||
msgstr "Basis: %s"
|
||||
|
||||
msgid "Recipes settings"
|
||||
msgstr "Rezept-Einstellungen"
|
||||
|
||||
msgid "Recipe card"
|
||||
msgstr "Rezept-Karte"
|
||||
|
||||
msgid "Group ingredients by their product group"
|
||||
msgstr "Zutaten nach Produktgruppen gruppieren"
|
||||
|
||||
msgid "Unknown store"
|
||||
msgstr "Unbekanntes Geschäft"
|
||||
|
||||
msgid "Store"
|
||||
msgstr "Geschäft"
|
||||
|
||||
msgid "Transaction successfully undone"
|
||||
msgstr "Transaktion erfolgreich rückgängig gemacht"
|
||||
|
||||
msgid "Default store"
|
||||
msgstr "Standard Geschäft"
|
||||
|
||||
msgid "Consume this stock entry"
|
||||
msgstr "Verbrauche diesen Bestandseintrag"
|
||||
|
||||
msgid "Mark this stock entry as open"
|
||||
msgstr "Diesen Bestandseintrag als geöffnet markieren"
|
||||
|
||||
msgid "Mark this item as done"
|
||||
msgstr "Diesen Eintrag als erledigt markieren"
|
||||
|
||||
msgid "Edit this item"
|
||||
msgstr "Diesen Eintrag löschen"
|
||||
|
||||
msgid "Delete this item"
|
||||
msgstr "Diesen Eintrag bearbeiten"
|
||||
|
||||
msgid "Show an icon if the product is already on the shopping list"
|
||||
msgstr ""
|
||||
"Ein Symbol anzeigen, wenn das Produkt bereits auf dem Einkaufszettel steht"
|
||||
|
@@ -156,9 +156,6 @@ msgstr ""
|
||||
msgid "Italian"
|
||||
msgstr ""
|
||||
|
||||
msgid "Demo in different language"
|
||||
msgstr ""
|
||||
|
||||
msgid "This is the note content of the recipe ingredient"
|
||||
msgstr ""
|
||||
|
||||
@@ -310,3 +307,55 @@ msgstr ""
|
||||
msgid "Dutch"
|
||||
msgstr ""
|
||||
|
||||
msgid "Norwegian"
|
||||
msgstr ""
|
||||
|
||||
msgid "Demo"
|
||||
msgstr ""
|
||||
|
||||
msgid "Stable version"
|
||||
msgstr ""
|
||||
|
||||
msgid "Preview version"
|
||||
msgstr ""
|
||||
|
||||
msgid "current release"
|
||||
msgstr ""
|
||||
|
||||
msgid "not yet released"
|
||||
msgstr ""
|
||||
|
||||
msgid "Portuguese (Brazil)"
|
||||
msgstr ""
|
||||
|
||||
msgid "This is a note"
|
||||
msgstr ""
|
||||
|
||||
msgid "Freezer"
|
||||
msgstr ""
|
||||
|
||||
msgid "Hungarian"
|
||||
msgstr ""
|
||||
|
||||
msgid "Slovak"
|
||||
msgstr ""
|
||||
|
||||
msgid "Czech"
|
||||
msgstr ""
|
||||
|
||||
msgid "Portuguese (Portugal)"
|
||||
msgstr ""
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket1"
|
||||
msgstr ""
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket2"
|
||||
msgstr ""
|
||||
|
||||
msgid "Japanese"
|
||||
msgstr ""
|
||||
|
||||
msgid "Chinese (Taiwan)"
|
||||
msgstr ""
|
||||
|
@@ -27,3 +27,6 @@ msgstr "Weekly"
|
||||
|
||||
msgid "monthly"
|
||||
msgstr "Monthly"
|
||||
|
||||
msgid "yearly"
|
||||
msgstr "Yearly"
|
||||
|
@@ -284,3 +284,9 @@ msgstr "Swedish"
|
||||
|
||||
msgid "Polish"
|
||||
msgstr "Polish"
|
||||
|
||||
msgid "DemoSupermarket1"
|
||||
msgstr "Walmart"
|
||||
|
||||
msgid "DemoSupermarket2"
|
||||
msgstr "Kroger"
|
||||
|
@@ -15,6 +15,12 @@ msgstr ""
|
||||
msgid "purchase"
|
||||
msgstr "Purchase"
|
||||
|
||||
msgid "transfer_to"
|
||||
msgstr "Transfer To"
|
||||
|
||||
msgid "transfer_from"
|
||||
msgstr "Transfer From"
|
||||
|
||||
msgid "consume"
|
||||
msgstr "Consume"
|
||||
|
||||
@@ -23,3 +29,12 @@ msgstr "Inventory correction"
|
||||
|
||||
msgid "product-opened"
|
||||
msgstr "Product opened"
|
||||
|
||||
msgid "stock-edit-old"
|
||||
msgstr "Stock entry edited (old values)"
|
||||
|
||||
msgid "stock-edit-new"
|
||||
msgstr "Stock entry edited (new values)"
|
||||
|
||||
msgid "self-production"
|
||||
msgstr "Self-production"
|
||||
|
@@ -66,6 +66,9 @@ msgstr "Products"
|
||||
msgid "Locations"
|
||||
msgstr "Locations"
|
||||
|
||||
msgid "Shopping locations"
|
||||
msgstr "Shopping locations"
|
||||
|
||||
msgid "Quantity units"
|
||||
msgstr "Quantity units"
|
||||
|
||||
@@ -162,6 +165,9 @@ msgstr "Name"
|
||||
msgid "Location"
|
||||
msgstr "Location"
|
||||
|
||||
msgid "Shopping location"
|
||||
msgstr "Shopping location"
|
||||
|
||||
msgid "Min. stock amount"
|
||||
msgstr "Min. stock amount"
|
||||
|
||||
@@ -201,6 +207,9 @@ msgstr "Factor purchase to stock quantity unit"
|
||||
msgid "Create location"
|
||||
msgstr "Create location"
|
||||
|
||||
msgid "Create shopping location"
|
||||
msgstr "Create shopping location"
|
||||
|
||||
msgid "Create quantity unit"
|
||||
msgstr "Create quantity unit"
|
||||
|
||||
@@ -234,6 +243,9 @@ msgstr "Edit product"
|
||||
msgid "Edit location"
|
||||
msgstr "Edit location"
|
||||
|
||||
msgid "Edit shopping location"
|
||||
msgstr "Edit shopping location"
|
||||
|
||||
msgid "Record data"
|
||||
msgstr "Record data"
|
||||
|
||||
@@ -306,6 +318,9 @@ msgstr "Are you sure to delete product \"%s\"?"
|
||||
msgid "Are you sure to delete location \"%s\"?"
|
||||
msgstr "Are you sure to delete location \"%s\"?"
|
||||
|
||||
msgid "Are you sure to delete shopping location \"%s\"?"
|
||||
msgstr "Are you sure to delete shopping location \"%s\"?"
|
||||
|
||||
msgid "Manage API keys"
|
||||
msgstr "Manage API keys"
|
||||
|
||||
@@ -1035,6 +1050,9 @@ msgstr "Tare weight handling enabled - please weigh the whole container, the amo
|
||||
msgid "You have to select a location"
|
||||
msgstr "You have to select a location"
|
||||
|
||||
msgid "You have to select a shopping location"
|
||||
msgstr "You have to select a shopping location"
|
||||
|
||||
msgid "List"
|
||||
msgstr "List"
|
||||
|
||||
|
@@ -1,26 +1,25 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-09-17 10:45+0000\n"
|
||||
"Language-Team: English (United Kingdom) (https://www.transifex.com/grocy/teams/93189/en_GB/)\n"
|
||||
"Last-Translator: Translation migration from old PHP array files\n"
|
||||
"Language-Team: http://www.transifex.com/grocy/grocy/language/en\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: en_GB\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"Language: en\n"
|
||||
"X-Domain: grocy/chore_assignment_types\n"
|
||||
|
||||
msgid "no-assignment"
|
||||
msgstr ""
|
||||
msgstr "No assignment"
|
||||
|
||||
msgid "who-least-did-first"
|
||||
msgstr ""
|
||||
msgstr "Who least did first"
|
||||
|
||||
msgid "random"
|
||||
msgstr ""
|
||||
msgstr "Random"
|
||||
|
||||
msgid "in-alphabetical-order"
|
||||
msgstr ""
|
||||
msgstr "In alphabetical order"
|
||||
|
@@ -4,26 +4,29 @@ msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Language-Team: English (United Kingdom) (https://www.transifex.com/grocy/teams/93189/en_GB/)\n"
|
||||
"PO-Revision-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"Last-Translator: Translation migration from old PHP array files\n"
|
||||
"Language-Team: http://www.transifex.com/grocy/grocy/language/en\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: en_GB\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Language: en\n"
|
||||
"X-Domain: grocy/chore_types\n"
|
||||
|
||||
msgid "manually"
|
||||
msgstr ""
|
||||
msgstr "Manually"
|
||||
|
||||
msgid "dynamic-regular"
|
||||
msgstr ""
|
||||
msgstr "Dynamic regular"
|
||||
|
||||
msgid "daily"
|
||||
msgstr ""
|
||||
msgstr "Daily"
|
||||
|
||||
msgid "weekly"
|
||||
msgstr ""
|
||||
msgstr "Weekly"
|
||||
|
||||
msgid "monthly"
|
||||
msgstr ""
|
||||
msgstr "Monthly"
|
||||
|
||||
msgid "yearly"
|
||||
msgstr "Yearly"
|
||||
|
@@ -1,19 +1,15 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2019\n"
|
||||
"Language-Team: English (United Kingdom) (https://www.transifex.com/grocy/teams/93189/en_GB/)\n"
|
||||
"Last-Translator: Translation migration from old PHP array files\n"
|
||||
"Language-Team: http://www.transifex.com/grocy/grocy/language/en\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: en_GB\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"Language: en\n"
|
||||
"X-Domain: grocy/component_translations\n"
|
||||
|
||||
msgid "timeago_locale"
|
||||
@@ -23,26 +19,16 @@ msgid "timeago_nan"
|
||||
msgstr "NaN years ago"
|
||||
|
||||
msgid "moment_locale"
|
||||
msgstr "en-gb"
|
||||
msgstr "x"
|
||||
|
||||
msgid "datatables_localization"
|
||||
msgstr ""
|
||||
"{\"sEmptyTable\":\"No data available in table\",\"sInfo\":\"Showing _START_ "
|
||||
"to _END_ of _TOTAL_ entries\",\"sInfoEmpty\":\"Showing 0 to 0 of 0 "
|
||||
"entries\",\"sInfoFiltered\":\"(filtered from _MAX_ total "
|
||||
"entries)\",\"sInfoPostFix\":\"\",\"sInfoThousands\":\",\",\"sLengthMenu\":\"Show"
|
||||
" _MENU_ "
|
||||
"entries\",\"sLoadingRecords\":\"Loading...\",\"sProcessing\":\"Processing...\",\"sSearch\":\"Search:\",\"sZeroRecords\":\"No"
|
||||
" matching records "
|
||||
"found\",\"oPaginate\":{\"sFirst\":\"First\",\"sLast\":\"Last\",\"sNext\":\"Next\",\"sPrevious\":\"Previous\"},\"oAria\":{\"sSortAscending\":\":"
|
||||
" activate to sort column ascending\",\"sSortDescending\":\": activate to "
|
||||
"sort column descending\"}}"
|
||||
msgstr "{\"sEmptyTable\":\"No data available in table\",\"sInfo\":\"Showing _START_ to _END_ of _TOTAL_ entries\",\"sInfoEmpty\":\"Showing 0 to 0 of 0 entries\",\"sInfoFiltered\":\"(filtered from _MAX_ total entries)\",\"sInfoPostFix\":\"\",\"sInfoThousands\":\",\",\"sLengthMenu\":\"Show _MENU_ entries\",\"sLoadingRecords\":\"Loading...\",\"sProcessing\":\"Processing...\",\"sSearch\":\"Search:\",\"sZeroRecords\":\"No matching records found\",\"oPaginate\":{\"sFirst\":\"First\",\"sLast\":\"Last\",\"sNext\":\"Next\",\"sPrevious\":\"Previous\"},\"oAria\":{\"sSortAscending\":\": activate to sort column ascending\",\"sSortDescending\":\": activate to sort column descending\"}}"
|
||||
|
||||
msgid "summernote_locale"
|
||||
msgstr "en-gb"
|
||||
msgstr "x"
|
||||
|
||||
msgid "fullcalendar_locale"
|
||||
msgstr "en-gb"
|
||||
msgstr "x"
|
||||
|
||||
msgid "bootstrap-select_locale"
|
||||
msgstr "x"
|
||||
|
@@ -1,3 +1,5 @@
|
||||
# Translators:
|
||||
# Jonathan Adams <jonathan@connockadams.uk>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -5,6 +7,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Jonathan Adams <jonathan@connockadams.uk>, 2020\n"
|
||||
"Language-Team: English (United Kingdom) (https://www.transifex.com/grocy/teams/93189/en_GB/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -14,299 +17,349 @@ msgstr ""
|
||||
"X-Domain: grocy/demo_data\n"
|
||||
|
||||
msgid "Cookies"
|
||||
msgstr ""
|
||||
msgstr "Cookies"
|
||||
|
||||
msgid "Chocolate"
|
||||
msgstr ""
|
||||
msgstr "Chocolate"
|
||||
|
||||
msgid "Pantry"
|
||||
msgstr ""
|
||||
msgstr "Pantry"
|
||||
|
||||
msgid "Candy cupboard"
|
||||
msgstr ""
|
||||
msgstr "Candy cupboard"
|
||||
|
||||
msgid "Tinned food cupboard"
|
||||
msgstr ""
|
||||
msgstr "Tinned food cupboard"
|
||||
|
||||
msgid "Fridge"
|
||||
msgstr ""
|
||||
msgstr "Fridge"
|
||||
|
||||
msgid "Piece"
|
||||
msgid_plural "Pieces"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[0] "Piece"
|
||||
msgstr[1] "Pieces"
|
||||
|
||||
msgid "Pack"
|
||||
msgid_plural "Packs"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[0] "Pack"
|
||||
msgstr[1] "Packs"
|
||||
|
||||
msgid "Glass"
|
||||
msgid_plural "Glasses"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[0] "Glass"
|
||||
msgstr[1] "Glasses"
|
||||
|
||||
msgid "Tin"
|
||||
msgid_plural "Tins"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[0] "Tin"
|
||||
msgstr[1] "Tins"
|
||||
|
||||
msgid "Can"
|
||||
msgid_plural "Cans"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[0] "Can"
|
||||
msgstr[1] "Cans"
|
||||
|
||||
msgid "Bunch"
|
||||
msgid_plural "Bunches"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[0] "Bunch"
|
||||
msgstr[1] "Bunches"
|
||||
|
||||
msgid "Gummy bears"
|
||||
msgstr ""
|
||||
msgstr "Gummy bears"
|
||||
|
||||
msgid "Crisps"
|
||||
msgstr ""
|
||||
msgstr "Crisps"
|
||||
|
||||
msgid "Eggs"
|
||||
msgstr ""
|
||||
msgstr "Eggs"
|
||||
|
||||
msgid "Noodles"
|
||||
msgstr ""
|
||||
msgstr "Noodles"
|
||||
|
||||
msgid "Pickles"
|
||||
msgstr ""
|
||||
msgstr "Pickles"
|
||||
|
||||
msgid "Gulash soup"
|
||||
msgstr ""
|
||||
msgstr "Gulash soup"
|
||||
|
||||
msgid "Yogurt"
|
||||
msgstr ""
|
||||
msgstr "Yogurt"
|
||||
|
||||
msgid "Cheese"
|
||||
msgstr ""
|
||||
msgstr "Cheese"
|
||||
|
||||
msgid "Cold cuts"
|
||||
msgstr ""
|
||||
msgstr "Cold cuts"
|
||||
|
||||
msgid "Paprika"
|
||||
msgstr ""
|
||||
msgstr "Paprika"
|
||||
|
||||
msgid "Cucumber"
|
||||
msgstr ""
|
||||
msgstr "Cucumber"
|
||||
|
||||
msgid "Radish"
|
||||
msgstr ""
|
||||
msgstr "Radish"
|
||||
|
||||
msgid "Tomato"
|
||||
msgstr ""
|
||||
msgstr "Tomato"
|
||||
|
||||
msgid "Changed towels in the bathroom"
|
||||
msgstr ""
|
||||
msgstr "Changed towels in the bathroom"
|
||||
|
||||
msgid "Cleaned the kitchen floor"
|
||||
msgstr ""
|
||||
msgstr "Cleaned the kitchen floor"
|
||||
|
||||
msgid "Warranty ends"
|
||||
msgstr ""
|
||||
msgstr "Warranty ends"
|
||||
|
||||
msgid "TV remote control"
|
||||
msgstr ""
|
||||
msgstr "TV remote control"
|
||||
|
||||
msgid "Alarm clock"
|
||||
msgstr ""
|
||||
msgstr "Alarm clock"
|
||||
|
||||
msgid "Heat remote control"
|
||||
msgstr ""
|
||||
msgstr "Heat remote control"
|
||||
|
||||
msgid "Lawn mowed in the garden"
|
||||
msgstr ""
|
||||
msgstr "Lawn mowed in the garden"
|
||||
|
||||
msgid "Some good snacks"
|
||||
msgstr ""
|
||||
msgstr "Some good snacks"
|
||||
|
||||
msgid "Pizza dough"
|
||||
msgstr ""
|
||||
msgstr "Pizza dough"
|
||||
|
||||
msgid "Sieved tomatoes"
|
||||
msgstr ""
|
||||
msgstr "Sieved tomatoes"
|
||||
|
||||
msgid "Salami"
|
||||
msgstr ""
|
||||
msgstr "Salami"
|
||||
|
||||
msgid "Toast"
|
||||
msgstr ""
|
||||
msgstr "Toast"
|
||||
|
||||
msgid "Minced meat"
|
||||
msgstr ""
|
||||
msgstr "Minced meat"
|
||||
|
||||
msgid "Pizza"
|
||||
msgstr ""
|
||||
msgstr "Pizza"
|
||||
|
||||
msgid "Spaghetti bolognese"
|
||||
msgstr ""
|
||||
msgstr "Spaghetti bolognese"
|
||||
|
||||
msgid "Sandwiches"
|
||||
msgstr ""
|
||||
msgstr "Sandwiches"
|
||||
|
||||
msgid "English"
|
||||
msgstr ""
|
||||
msgstr "English"
|
||||
|
||||
msgid "German"
|
||||
msgstr ""
|
||||
msgstr "German"
|
||||
|
||||
msgid "Italian"
|
||||
msgstr ""
|
||||
|
||||
msgid "Demo in different language"
|
||||
msgstr ""
|
||||
msgstr "Italian"
|
||||
|
||||
msgid "This is the note content of the recipe ingredient"
|
||||
msgstr ""
|
||||
msgstr "This is the note content of the recipe ingredient"
|
||||
|
||||
msgid "Demo User"
|
||||
msgstr ""
|
||||
msgstr "Demo User"
|
||||
|
||||
msgid "Gram"
|
||||
msgid_plural "Grams"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[0] "Gram"
|
||||
msgstr[1] "Grams"
|
||||
|
||||
msgid "Flour"
|
||||
msgstr ""
|
||||
msgstr "Flour"
|
||||
|
||||
msgid "Pancakes"
|
||||
msgstr ""
|
||||
msgstr "Pancakes"
|
||||
|
||||
msgid "Sugar"
|
||||
msgstr ""
|
||||
msgstr "Sugar"
|
||||
|
||||
msgid "Home"
|
||||
msgstr ""
|
||||
msgstr "Home"
|
||||
|
||||
msgid "Life"
|
||||
msgstr ""
|
||||
msgstr "Life"
|
||||
|
||||
msgid "Projects"
|
||||
msgstr ""
|
||||
msgstr "Projects"
|
||||
|
||||
msgid "Repair the garage door"
|
||||
msgstr ""
|
||||
msgstr "Repair the garage door"
|
||||
|
||||
msgid "Fork and improve grocy"
|
||||
msgstr ""
|
||||
msgstr "Fork and improve grocy"
|
||||
|
||||
msgid "Find a solution for what to do when I forget the door keys"
|
||||
msgstr ""
|
||||
msgstr "Find a solution for what to do when I forget the door keys"
|
||||
|
||||
msgid "Sweets"
|
||||
msgstr ""
|
||||
msgstr "Sweets"
|
||||
|
||||
msgid "Bakery products"
|
||||
msgstr ""
|
||||
msgstr "Bakery products"
|
||||
|
||||
msgid "Tinned food"
|
||||
msgstr ""
|
||||
msgstr "Tinned food"
|
||||
|
||||
msgid "Butchery products"
|
||||
msgstr ""
|
||||
msgstr "Butchery products"
|
||||
|
||||
msgid "Vegetables/Fruits"
|
||||
msgstr ""
|
||||
msgstr "Vegetables/Fruits"
|
||||
|
||||
msgid "Refrigerated products"
|
||||
msgstr ""
|
||||
msgstr "Refrigerated products"
|
||||
|
||||
msgid "Coffee machine"
|
||||
msgstr ""
|
||||
msgstr "Coffee machine"
|
||||
|
||||
msgid "Dishwasher"
|
||||
msgstr ""
|
||||
msgstr "Dishwasher"
|
||||
|
||||
msgid "Liter"
|
||||
msgstr ""
|
||||
msgstr "Liter"
|
||||
|
||||
msgid "Liters"
|
||||
msgstr ""
|
||||
msgstr "Liters"
|
||||
|
||||
msgid "Bottle"
|
||||
msgstr ""
|
||||
msgstr "Bottle"
|
||||
|
||||
msgid "Bottles"
|
||||
msgstr ""
|
||||
msgstr "Bottles"
|
||||
|
||||
msgid "Milk"
|
||||
msgstr ""
|
||||
msgstr "Milk"
|
||||
|
||||
msgid "Chocolate sauce"
|
||||
msgstr ""
|
||||
msgstr "Chocolate sauce"
|
||||
|
||||
msgid "Milliliters"
|
||||
msgstr ""
|
||||
msgstr "Milliliters"
|
||||
|
||||
msgid "Milliliter"
|
||||
msgstr ""
|
||||
msgstr "Milliliter"
|
||||
|
||||
msgid "Bottom"
|
||||
msgstr ""
|
||||
msgstr "Bottom"
|
||||
|
||||
msgid "Topping"
|
||||
msgstr ""
|
||||
msgstr "Topping"
|
||||
|
||||
msgid "French"
|
||||
msgstr ""
|
||||
msgstr "French"
|
||||
|
||||
msgid "Turkish"
|
||||
msgstr ""
|
||||
msgstr "Turkish"
|
||||
|
||||
msgid "Spanish"
|
||||
msgstr ""
|
||||
msgstr "Spanish"
|
||||
|
||||
msgid "Russian"
|
||||
msgstr ""
|
||||
msgstr "Russian"
|
||||
|
||||
msgid "The thing which happens on the 5th of every month"
|
||||
msgstr ""
|
||||
msgstr "The thing which happens on the 5th of every month"
|
||||
|
||||
msgid "The thing which happens daily"
|
||||
msgstr ""
|
||||
msgstr "The thing which happens daily"
|
||||
|
||||
msgid "The thing which happens on Mondays and Wednesdays"
|
||||
msgstr ""
|
||||
msgstr "The thing which happens on Mondays and Wednesdays"
|
||||
|
||||
msgid "Swedish"
|
||||
msgstr ""
|
||||
msgstr "Swedish"
|
||||
|
||||
msgid "Polish"
|
||||
msgstr ""
|
||||
msgstr "Polish"
|
||||
|
||||
msgid "Milk Chocolate"
|
||||
msgstr ""
|
||||
msgstr "Milk Chocolate"
|
||||
|
||||
msgid "Dark Chocolate"
|
||||
msgstr ""
|
||||
msgstr "Dark Chocolate"
|
||||
|
||||
msgid "Slice"
|
||||
msgid_plural "Slices"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[0] "Slice"
|
||||
msgstr[1] "Slices"
|
||||
|
||||
msgid "Example userentity"
|
||||
msgstr ""
|
||||
msgstr "Example userentity"
|
||||
|
||||
msgid "This is an example user entity..."
|
||||
msgstr ""
|
||||
msgstr "This is an example user entity..."
|
||||
|
||||
msgid "Custom field"
|
||||
msgstr ""
|
||||
msgstr "Custom field"
|
||||
|
||||
msgid "Example field value..."
|
||||
msgstr ""
|
||||
msgstr "Example field value..."
|
||||
|
||||
msgid "Waffle rolls"
|
||||
msgstr ""
|
||||
msgstr "Waffle rolls"
|
||||
|
||||
msgid "Danish"
|
||||
msgstr ""
|
||||
msgstr "Danish"
|
||||
|
||||
msgid "Dutch"
|
||||
msgstr "Dutch"
|
||||
|
||||
msgid "Norwegian"
|
||||
msgstr "Norwegian"
|
||||
|
||||
msgid "Demo"
|
||||
msgstr "Demo"
|
||||
|
||||
msgid "Stable version"
|
||||
msgstr "Stable version"
|
||||
|
||||
msgid "Preview version"
|
||||
msgstr "Preview version"
|
||||
|
||||
msgid "current release"
|
||||
msgstr "current release"
|
||||
|
||||
msgid "not yet released"
|
||||
msgstr "not yet released"
|
||||
|
||||
msgid "Portuguese (Brazil)"
|
||||
msgstr "Portuguese (Brazil)"
|
||||
|
||||
msgid "This is a note"
|
||||
msgstr ""
|
||||
|
||||
msgid "Freezer"
|
||||
msgstr ""
|
||||
|
||||
msgid "Hungarian"
|
||||
msgstr ""
|
||||
|
||||
msgid "Slovak"
|
||||
msgstr ""
|
||||
|
||||
msgid "Czech"
|
||||
msgstr ""
|
||||
|
||||
msgid "Portuguese (Portugal)"
|
||||
msgstr ""
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket1"
|
||||
msgstr ""
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket2"
|
||||
msgstr ""
|
||||
|
||||
msgid "Japanese"
|
||||
msgstr ""
|
||||
|
||||
msgid "Chinese (Taiwan)"
|
||||
msgstr ""
|
||||
|
@@ -1,26 +1,40 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Language-Team: English (United Kingdom) (https://www.transifex.com/grocy/teams/93189/en_GB/)\n"
|
||||
"Last-Translator: Translation migration from old PHP array files\n"
|
||||
"Language-Team: http://www.transifex.com/grocy/grocy/language/en\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: en_GB\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"Language: en\n"
|
||||
"X-Domain: grocy/stock_transaction_types\n"
|
||||
|
||||
msgid "purchase"
|
||||
msgstr ""
|
||||
msgstr "Purchase"
|
||||
|
||||
msgid "transfer_to"
|
||||
msgstr "Transfer To"
|
||||
|
||||
msgid "transfer_from"
|
||||
msgstr "Transfer From"
|
||||
|
||||
msgid "consume"
|
||||
msgstr ""
|
||||
msgstr "Consume"
|
||||
|
||||
msgid "inventory-correction"
|
||||
msgstr ""
|
||||
msgstr "Inventory correction"
|
||||
|
||||
msgid "product-opened"
|
||||
msgstr ""
|
||||
msgstr "Product opened"
|
||||
|
||||
msgid "stock-edit-old"
|
||||
msgstr "Stock entry edited (old values)"
|
||||
|
||||
msgid "stock-edit-new"
|
||||
msgstr "Stock entry edited (new values)"
|
||||
|
||||
msgid "self-production"
|
||||
msgstr "Self-production"
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,44 +1,43 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:43+0000\n"
|
||||
"Language-Team: English (United Kingdom) (https://www.transifex.com/grocy/teams/93189/en_GB/)\n"
|
||||
"Last-Translator: Translation migration from old PHP array files\n"
|
||||
"Language-Team: http://www.transifex.com/grocy/grocy/language/en\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: en_GB\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"Language: en\n"
|
||||
"X-Domain: grocy/userfield_types\n"
|
||||
|
||||
msgid "text-single-line"
|
||||
msgstr ""
|
||||
msgstr "Text (single line)"
|
||||
|
||||
msgid "text-multi-line"
|
||||
msgstr ""
|
||||
msgstr "Text (multi line)"
|
||||
|
||||
msgid "number-integral"
|
||||
msgstr ""
|
||||
msgstr "Number (integral)"
|
||||
|
||||
msgid "number-decimal"
|
||||
msgstr ""
|
||||
msgstr "Number (decimal)"
|
||||
|
||||
msgid "date"
|
||||
msgstr ""
|
||||
msgstr "Date (without time)"
|
||||
|
||||
msgid "datetime"
|
||||
msgstr ""
|
||||
msgstr "Date & time"
|
||||
|
||||
msgid "checkbox"
|
||||
msgstr ""
|
||||
msgstr "Checkbox"
|
||||
|
||||
msgid "preset-list"
|
||||
msgstr ""
|
||||
msgstr "Select list (a single item can be selected)"
|
||||
|
||||
msgid "preset-checklist"
|
||||
msgstr ""
|
||||
msgstr "Select list (multiple items can be selected)"
|
||||
|
||||
msgid "link"
|
||||
msgstr ""
|
||||
msgstr "Link"
|
||||
|
@@ -1,5 +1,6 @@
|
||||
# Translators:
|
||||
# Fernando Sánchez <fernando.l.sanchez@gmail.com>, 2019
|
||||
# Igor Perez <igordiablo@hotmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -7,7 +8,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-09-17 10:45+0000\n"
|
||||
"Last-Translator: Fernando Sánchez <fernando.l.sanchez@gmail.com>, 2019\n"
|
||||
"Last-Translator: Igor Perez <igordiablo@hotmail.com>, 2020\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/grocy/teams/93189/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -26,4 +27,4 @@ msgid "random"
|
||||
msgstr "al-azar"
|
||||
|
||||
msgid "in-alphabetical-order"
|
||||
msgstr "orden-alfabético"
|
||||
msgstr "por-orden-alfabético"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Jose Rugel <joserugel@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -7,7 +7,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2019\n"
|
||||
"Last-Translator: Jose Rugel <joserugel@gmail.com>, 2020\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/grocy/teams/93189/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -17,16 +17,19 @@ msgstr ""
|
||||
"X-Domain: grocy/chore_types\n"
|
||||
|
||||
msgid "manually"
|
||||
msgstr "Manualmente"
|
||||
msgstr "manualmente"
|
||||
|
||||
msgid "dynamic-regular"
|
||||
msgstr "Dinámico regular"
|
||||
msgstr "dinamico-regular"
|
||||
|
||||
msgid "daily"
|
||||
msgstr "Diario"
|
||||
msgstr "diariamente"
|
||||
|
||||
msgid "weekly"
|
||||
msgstr "Semanal"
|
||||
msgstr "semanalmente"
|
||||
|
||||
msgid "monthly"
|
||||
msgstr "Mensual"
|
||||
msgstr "mensualmente"
|
||||
|
||||
msgid "yearly"
|
||||
msgstr "Anualmente"
|
||||
|
@@ -1,5 +1,6 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Jose Rugel <joserugel@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -7,7 +8,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2019\n"
|
||||
"Last-Translator: Jose Rugel <joserugel@gmail.com>, 2020\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/grocy/teams/93189/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -27,16 +28,31 @@ msgstr "es"
|
||||
|
||||
msgid "datatables_localization"
|
||||
msgstr ""
|
||||
"{\"sEmptyTable\":\"Sin datos en la tabla\",\"sInfo\":\"Mostrando de _START_"
|
||||
" a _END_ de _TOTAL_ entradas\",\"sInfoEmpty\":\"Mostrando de 0 a 0 de 0 "
|
||||
"entradas\",\"sInfoFiltered\":\"(filtrando a _MAX_ entradas "
|
||||
"máximas)\",\"sInfoPostFix\":\"\",\"sInfoThousands\":\",\",\"sLengthMenu\":\"Mostrar"
|
||||
" _MENU_ "
|
||||
"entradas\",\"sLoadingRecords\":\"Cargando...\",\"sProcessing\":\"Procesando...\",\"sSearch\":\"Buscar:\",\"sZeroRecords\":\"No"
|
||||
" se han encontrado resultados "
|
||||
"coincidentes\",\"oPaginate\":{\"sFirst\":\"Primero\",\"sLast\":\"Último\",\"sNext\":\"Siguiente\",\"sPrevious\":\"Anterior\"},\"oAria\":{\"sSortAscending\":\":"
|
||||
" activar para ordenar ascendentemente\",\"sSortDescending\":\": activar para"
|
||||
" ordenar descendentemente\"}}"
|
||||
"{\n"
|
||||
"\"sEmptyTable\":\"Sin datos en la tabla\"\n"
|
||||
",\"sInfo\":\"Mostrando de _START_ a _END_ de _TOTAL_ entradas\"\n"
|
||||
",\"sInfoEmpty\":\"Mostrando de 0 a 0 de 0 entradas\"\n"
|
||||
",\"sInfoFiltered\":\"(filtrando a _MAX_ entradas máximas)\"\n"
|
||||
",\"sInfoPostFix\":\"\"\n"
|
||||
",\"sInfoThousands\":\",\"\n"
|
||||
",\"sLengthMenu\":\"Mostrar _MENU_ entradas\"\n"
|
||||
",\"sLoadingRecords\":\"Cargando ...\"\n"
|
||||
",\"sProcessing\":\"Procesando ...\"\n"
|
||||
",\"sSearch\":\"Buscar\"\n"
|
||||
",\"sZeroRecords\":\"No se han encontrado resultados coincidentes\"\n"
|
||||
",\"oPaginate\":\n"
|
||||
"{\n"
|
||||
"\"sFirst\":\"Primero\"\n"
|
||||
",\"sLast\":\"Último\"\n"
|
||||
",\"sNext\":\"Siguiente\"\n"
|
||||
",\"sPrevious\":\"Anterior\"\n"
|
||||
"}\n"
|
||||
",\"oAria\":\n"
|
||||
"{\n"
|
||||
"\"sSortAscending\":\"orden ascendente\"\n"
|
||||
",\"sSortDescending\":\"orden descendente\"\n"
|
||||
"}\n"
|
||||
"}"
|
||||
|
||||
msgid "summernote_locale"
|
||||
msgstr "es-ES"
|
||||
|
@@ -1,7 +1,8 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Ankue <ankue.spam@gmail.com>, 2019
|
||||
# Fernando Sánchez <fernando.l.sanchez@gmail.com>, 2019
|
||||
# Igor Perez <igordiablo@hotmail.com>, 2020
|
||||
# Jose Rugel <joserugel@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -9,7 +10,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Fernando Sánchez <fernando.l.sanchez@gmail.com>, 2019\n"
|
||||
"Last-Translator: Jose Rugel <joserugel@gmail.com>, 2020\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/grocy/teams/93189/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -34,7 +35,7 @@ msgid "Tinned food cupboard"
|
||||
msgstr "Estante de las latas"
|
||||
|
||||
msgid "Fridge"
|
||||
msgstr "Nevera"
|
||||
msgstr "Refrigerador"
|
||||
|
||||
msgid "Piece"
|
||||
msgid_plural "Pieces"
|
||||
@@ -54,12 +55,12 @@ msgstr[1] "Vasos"
|
||||
msgid "Tin"
|
||||
msgid_plural "Tins"
|
||||
msgstr[0] "Envases"
|
||||
msgstr[1] "Envases"
|
||||
msgstr[1] "Latas"
|
||||
|
||||
msgid "Can"
|
||||
msgid_plural "Cans"
|
||||
msgstr[0] "Lata"
|
||||
msgstr[1] "Latas"
|
||||
msgstr[1] "Envases"
|
||||
|
||||
msgid "Bunch"
|
||||
msgid_plural "Bunches"
|
||||
@@ -67,7 +68,7 @@ msgstr[0] "Puñados"
|
||||
msgstr[1] "Puñados"
|
||||
|
||||
msgid "Gummy bears"
|
||||
msgstr "Ositos"
|
||||
msgstr "Ositos de goma"
|
||||
|
||||
msgid "Crisps"
|
||||
msgstr "Patatas fritas"
|
||||
@@ -82,7 +83,7 @@ msgid "Pickles"
|
||||
msgstr "Pepinillos"
|
||||
|
||||
msgid "Gulash soup"
|
||||
msgstr "Sopa"
|
||||
msgstr "Sopa Gulash"
|
||||
|
||||
msgid "Yogurt"
|
||||
msgstr "Yogurt"
|
||||
@@ -115,13 +116,13 @@ msgid "Warranty ends"
|
||||
msgstr "Final de la garantía"
|
||||
|
||||
msgid "TV remote control"
|
||||
msgstr "Mando de la TV"
|
||||
msgstr "Control remoto del televisor"
|
||||
|
||||
msgid "Alarm clock"
|
||||
msgstr "Despertador"
|
||||
|
||||
msgid "Heat remote control"
|
||||
msgstr "Mando de la calefacción"
|
||||
msgstr "Control remoto de la calefacción"
|
||||
|
||||
msgid "Lawn mowed in the garden"
|
||||
msgstr "Cortar el césped del jardín"
|
||||
@@ -133,10 +134,10 @@ msgid "Pizza dough"
|
||||
msgstr "Masa de pizza"
|
||||
|
||||
msgid "Sieved tomatoes"
|
||||
msgstr "Tomate triturado"
|
||||
msgstr "Tomates triturados"
|
||||
|
||||
msgid "Salami"
|
||||
msgstr "Salami"
|
||||
msgstr "Salame"
|
||||
|
||||
msgid "Toast"
|
||||
msgstr "Tostada"
|
||||
@@ -148,10 +149,10 @@ msgid "Pizza"
|
||||
msgstr "Pizza"
|
||||
|
||||
msgid "Spaghetti bolognese"
|
||||
msgstr "Spaghetti boloñesa"
|
||||
msgstr "Spaghetti a la boloñesa"
|
||||
|
||||
msgid "Sandwiches"
|
||||
msgstr "Bocadillos"
|
||||
msgstr "Sándwiches"
|
||||
|
||||
msgid "English"
|
||||
msgstr "Inglés"
|
||||
@@ -162,9 +163,6 @@ msgstr "Alemán"
|
||||
msgid "Italian"
|
||||
msgstr "Italiano"
|
||||
|
||||
msgid "Demo in different language"
|
||||
msgstr "Demo en otro idioma"
|
||||
|
||||
msgid "This is the note content of the recipe ingredient"
|
||||
msgstr "Este es el contenido de la nota del ingrediente de la receta"
|
||||
|
||||
@@ -180,13 +178,13 @@ msgid "Flour"
|
||||
msgstr "Harina"
|
||||
|
||||
msgid "Pancakes"
|
||||
msgstr "Tortitas"
|
||||
msgstr "Panqueques"
|
||||
|
||||
msgid "Sugar"
|
||||
msgstr "Azucar"
|
||||
msgstr "Azúcar"
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Casa"
|
||||
msgstr "Inicio"
|
||||
|
||||
msgid "Life"
|
||||
msgstr "Vida"
|
||||
@@ -255,16 +253,16 @@ msgid "Bottom"
|
||||
msgstr "Fondo"
|
||||
|
||||
msgid "Topping"
|
||||
msgstr "Parte superior"
|
||||
msgstr "Cobertura"
|
||||
|
||||
msgid "French"
|
||||
msgstr "Francés"
|
||||
|
||||
msgid "Turkish"
|
||||
msgstr "Turkish"
|
||||
msgstr "Turco"
|
||||
|
||||
msgid "Spanish"
|
||||
msgstr "Spanish"
|
||||
msgstr "Español"
|
||||
|
||||
msgid "Russian"
|
||||
msgstr "Ruso"
|
||||
@@ -276,7 +274,7 @@ msgid "The thing which happens daily"
|
||||
msgstr "Lo que ocurre diariamente"
|
||||
|
||||
msgid "The thing which happens on Mondays and Wednesdays"
|
||||
msgstr "Lo que ocurre los lunes y los miércoles"
|
||||
msgstr "Lo que ocurre los Lunes y los Miércoles"
|
||||
|
||||
msgid "Swedish"
|
||||
msgstr "Sueco"
|
||||
@@ -293,25 +291,78 @@ msgstr "Chocolate negro"
|
||||
msgid "Slice"
|
||||
msgid_plural "Slices"
|
||||
msgstr[0] "Lonchas"
|
||||
msgstr[1] "Lonchas"
|
||||
msgstr[1] "Rebanadas"
|
||||
|
||||
msgid "Example userentity"
|
||||
msgstr ""
|
||||
msgstr "Entidad de usuario de ejemplo"
|
||||
|
||||
msgid "This is an example user entity..."
|
||||
msgstr ""
|
||||
msgstr "Esto es un ejemplo de una entidad personalizada ..."
|
||||
|
||||
msgid "Custom field"
|
||||
msgstr ""
|
||||
msgstr "Campo personalizado"
|
||||
|
||||
msgid "Example field value..."
|
||||
msgstr ""
|
||||
msgstr "Valor del campo de ejemplo ..."
|
||||
|
||||
msgid "Waffle rolls"
|
||||
msgstr ""
|
||||
msgstr "Canutillos"
|
||||
|
||||
msgid "Danish"
|
||||
msgstr ""
|
||||
msgstr "Danés"
|
||||
|
||||
msgid "Dutch"
|
||||
msgstr ""
|
||||
msgstr "Holandés"
|
||||
|
||||
msgid "Norwegian"
|
||||
msgstr "Noruego"
|
||||
|
||||
msgid "Demo"
|
||||
msgstr "Demo"
|
||||
|
||||
msgid "Stable version"
|
||||
msgstr "Versión estable"
|
||||
|
||||
msgid "Preview version"
|
||||
msgstr "Versión previa"
|
||||
|
||||
msgid "current release"
|
||||
msgstr "Elaboración actual"
|
||||
|
||||
msgid "not yet released"
|
||||
msgstr "Todavía no elaborado"
|
||||
|
||||
msgid "Portuguese (Brazil)"
|
||||
msgstr "Portugués (Brasil)"
|
||||
|
||||
msgid "This is a note"
|
||||
msgstr "Esto es una nota"
|
||||
|
||||
msgid "Freezer"
|
||||
msgstr "Congelador"
|
||||
|
||||
msgid "Hungarian"
|
||||
msgstr "Húngaro"
|
||||
|
||||
msgid "Slovak"
|
||||
msgstr "Eslovaco"
|
||||
|
||||
msgid "Czech"
|
||||
msgstr "Checo"
|
||||
|
||||
msgid "Portuguese (Portugal)"
|
||||
msgstr "Portugués (Portugal)"
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket1"
|
||||
msgstr "DemoSupermercado1"
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket2"
|
||||
msgstr "DemoSupermercado2"
|
||||
|
||||
msgid "Japanese"
|
||||
msgstr "Japonés"
|
||||
|
||||
msgid "Chinese (Taiwan)"
|
||||
msgstr "Chino (Taiwan)"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Jose Rugel <joserugel@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -7,7 +7,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2019\n"
|
||||
"Last-Translator: Jose Rugel <joserugel@gmail.com>, 2020\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/grocy/teams/93189/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -17,13 +17,28 @@ msgstr ""
|
||||
"X-Domain: grocy/stock_transaction_types\n"
|
||||
|
||||
msgid "purchase"
|
||||
msgstr "Compra"
|
||||
msgstr "compra"
|
||||
|
||||
msgid "transfer_from"
|
||||
msgstr "trasladar_desde"
|
||||
|
||||
msgid "transfer_to"
|
||||
msgstr "trasladar_a"
|
||||
|
||||
msgid "consume"
|
||||
msgstr "Consumo"
|
||||
msgstr "consumo"
|
||||
|
||||
msgid "inventory-correction"
|
||||
msgstr "Corrección de inventario"
|
||||
msgstr "inventario-correccion"
|
||||
|
||||
msgid "product-opened"
|
||||
msgstr "Producto abierto"
|
||||
msgstr "producto-abierto"
|
||||
|
||||
msgid "stock-edit-old"
|
||||
msgstr "existencia-editar-viejo"
|
||||
|
||||
msgid "stock-edit-new"
|
||||
msgstr "existencia-editar-nuevo"
|
||||
|
||||
msgid "self-production"
|
||||
msgstr "produccion-propia"
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Fernando Sánchez <fernando.l.sanchez@gmail.com>, 2019
|
||||
# Jose Rugel <joserugel@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -8,7 +8,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:43+0000\n"
|
||||
"Last-Translator: Fernando Sánchez <fernando.l.sanchez@gmail.com>, 2019\n"
|
||||
"Last-Translator: Jose Rugel <joserugel@gmail.com>, 2020\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/grocy/teams/93189/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -18,25 +18,25 @@ msgstr ""
|
||||
"X-Domain: grocy/userfield_types\n"
|
||||
|
||||
msgid "text-single-line"
|
||||
msgstr "Texto (una línea)"
|
||||
msgstr "texto-unica-linea"
|
||||
|
||||
msgid "text-multi-line"
|
||||
msgstr "Texto (múltiples líneas)"
|
||||
msgstr "texto-multi-linea"
|
||||
|
||||
msgid "number-integral"
|
||||
msgstr "Número (entero)"
|
||||
msgstr "numero-entero"
|
||||
|
||||
msgid "number-decimal"
|
||||
msgstr "Número (decimal)"
|
||||
msgstr "numero-decimal"
|
||||
|
||||
msgid "date"
|
||||
msgstr "Fecha (sin hora)"
|
||||
msgstr "fecha"
|
||||
|
||||
msgid "datetime"
|
||||
msgstr "Fecha y hora"
|
||||
msgstr "fecha-hora"
|
||||
|
||||
msgid "checkbox"
|
||||
msgstr "Casilla de verificación"
|
||||
msgstr "casilla-verificacion"
|
||||
|
||||
msgid "preset-list"
|
||||
msgstr "lista-predefinida"
|
||||
|
@@ -1,6 +1,7 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Alex Deneuvillers <alex.deneuvillers@gmail.com>, 2019
|
||||
# Antonin DESFONTAINES <antonin.desfontaines@outlook.com>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -8,7 +9,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Alex Deneuvillers <alex.deneuvillers@gmail.com>, 2019\n"
|
||||
"Last-Translator: Antonin DESFONTAINES <antonin.desfontaines@outlook.com>, 2019\n"
|
||||
"Language-Team: French (https://www.transifex.com/grocy/teams/93189/fr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -31,3 +32,6 @@ msgstr "Hebdomadaire"
|
||||
|
||||
msgid "monthly"
|
||||
msgstr "Mensuelle"
|
||||
|
||||
msgid "yearly"
|
||||
msgstr "Annuelle"
|
||||
|
@@ -2,6 +2,11 @@
|
||||
# Cedric Octave <transifex@octvcdrc.fr>, 2019
|
||||
# bigoudo, 2019
|
||||
# Matthieu K, 2019
|
||||
# Antonin DESFONTAINES <antonin.desfontaines@outlook.com>, 2019
|
||||
# Zkryvix <angelo.frangione@gmail.com>, 2020
|
||||
# Laurent Mox <laurent@laurent.sh>, 2020
|
||||
# Nicolas Moisson <nicolas.moisson@protonmail.com>, 2020
|
||||
# Nikola Kotur <nikola.kotur@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -9,7 +14,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Matthieu K, 2019\n"
|
||||
"Last-Translator: Nikola Kotur <nikola.kotur@gmail.com>, 2020\n"
|
||||
"Language-Team: French (https://www.transifex.com/grocy/teams/93189/fr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -145,7 +150,7 @@ msgid "Minced meat"
|
||||
msgstr "Viande hachée"
|
||||
|
||||
msgid "Pizza"
|
||||
msgstr "PIzza"
|
||||
msgstr "Pizza"
|
||||
|
||||
msgid "Spaghetti bolognese"
|
||||
msgstr "Spaghetti bolognaise"
|
||||
@@ -162,9 +167,6 @@ msgstr "Allemand"
|
||||
msgid "Italian"
|
||||
msgstr "Italien"
|
||||
|
||||
msgid "Demo in different language"
|
||||
msgstr "Démo dans une langue différente"
|
||||
|
||||
msgid "This is the note content of the recipe ingredient"
|
||||
msgstr "Ceci est le contenu de la note concernant l'ingrédient de la recette"
|
||||
|
||||
@@ -224,7 +226,7 @@ msgid "Refrigerated products"
|
||||
msgstr "Produits réfrigérés"
|
||||
|
||||
msgid "Coffee machine"
|
||||
msgstr "Machie à café"
|
||||
msgstr "Machine à café"
|
||||
|
||||
msgid "Dishwasher"
|
||||
msgstr "Lave-vaisselle"
|
||||
@@ -287,27 +289,86 @@ msgid "Polish"
|
||||
msgstr "Polonais"
|
||||
|
||||
msgid "Milk Chocolate"
|
||||
msgstr ""
|
||||
msgstr "Chocolat au lait"
|
||||
|
||||
msgid "Dark Chocolate"
|
||||
msgstr ""
|
||||
msgstr "Chocolat noir"
|
||||
|
||||
msgid "Slice"
|
||||
msgid_plural "Slices"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
msgstr[0] "Tranche"
|
||||
msgstr[1] "Tranches"
|
||||
|
||||
msgid "Example userentity"
|
||||
msgstr ""
|
||||
msgstr "Exemple entité utilisateur"
|
||||
|
||||
msgid "This is an example user entity..."
|
||||
msgstr ""
|
||||
msgstr "Ceci est un exemple d'entité utilisateur"
|
||||
|
||||
msgid "Custom field"
|
||||
msgstr ""
|
||||
msgstr "Champ personnalisé"
|
||||
|
||||
msgid "Example field value..."
|
||||
msgstr ""
|
||||
msgstr "Exemple de valeur de champ..."
|
||||
|
||||
msgid "Waffle rolls"
|
||||
msgstr ""
|
||||
msgstr "Gaufrettes roulées"
|
||||
|
||||
msgid "Danish"
|
||||
msgstr "Danois"
|
||||
|
||||
msgid "Dutch"
|
||||
msgstr "Néerlandais"
|
||||
|
||||
msgid "Norwegian"
|
||||
msgstr "Norvégien"
|
||||
|
||||
msgid "Demo"
|
||||
msgstr "Démo"
|
||||
|
||||
msgid "Stable version"
|
||||
msgstr "Version stable"
|
||||
|
||||
msgid "Preview version"
|
||||
msgstr "Version d'aperçu"
|
||||
|
||||
msgid "current release"
|
||||
msgstr "Version actuelle"
|
||||
|
||||
msgid "not yet released"
|
||||
msgstr "pas encore publiée"
|
||||
|
||||
msgid "Portuguese (Brazil)"
|
||||
msgstr "Portugais (Brésil)"
|
||||
|
||||
msgid "This is a note"
|
||||
msgstr "Ceci est une note"
|
||||
|
||||
msgid "Freezer"
|
||||
msgstr "Congélateur"
|
||||
|
||||
msgid "Hungarian"
|
||||
msgstr "Hongrois"
|
||||
|
||||
msgid "Slovak"
|
||||
msgstr "Slovaque"
|
||||
|
||||
msgid "Czech"
|
||||
msgstr "Tchèque"
|
||||
|
||||
msgid "Portuguese (Portugal)"
|
||||
msgstr "Portugais (Portugal)"
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket1"
|
||||
msgstr "DemoSupermarché1"
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket2"
|
||||
msgstr "DemoSupermarché2"
|
||||
|
||||
msgid "Japanese"
|
||||
msgstr "Japonais"
|
||||
|
||||
msgid "Chinese (Taiwan)"
|
||||
msgstr "Chinois (Taïwan)"
|
||||
|
@@ -1,5 +1,7 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Guillaume RICHARD <giz.richard@gmail.com>, 2020
|
||||
# Zkryvix <angelo.frangione@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -7,7 +9,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2019\n"
|
||||
"Last-Translator: Zkryvix <angelo.frangione@gmail.com>, 2020\n"
|
||||
"Language-Team: French (https://www.transifex.com/grocy/teams/93189/fr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -19,6 +21,12 @@ msgstr ""
|
||||
msgid "purchase"
|
||||
msgstr "Achat"
|
||||
|
||||
msgid "transfer_from"
|
||||
msgstr "transféré depuis"
|
||||
|
||||
msgid "transfer_to"
|
||||
msgstr "transféré à"
|
||||
|
||||
msgid "consume"
|
||||
msgstr "Consommation"
|
||||
|
||||
@@ -27,3 +35,12 @@ msgstr "Correction d'inventaire"
|
||||
|
||||
msgid "product-opened"
|
||||
msgstr "Produit ouvert"
|
||||
|
||||
msgid "stock-edit-old"
|
||||
msgstr "Éditer l'ancien stock"
|
||||
|
||||
msgid "stock-edit-new"
|
||||
msgstr "Éditer le nouveau stock"
|
||||
|
||||
msgid "self-production"
|
||||
msgstr "Autoproduction"
|
||||
|
@@ -5,7 +5,20 @@
|
||||
# Cedric Octave <transifex@octvcdrc.fr>, 2019
|
||||
# Hydreliox Hydreliox <hydreliox@gmail.com>, 2019
|
||||
# Matthieu K, 2019
|
||||
# Jérémy Tisserand <jeremy.tisserand@gmail.com>, 2019
|
||||
# Mathieu Fortin <mathieugfortin@gmail.com>, 2019
|
||||
# Pierre-Emmanuel Colas <transiflex@atnock.fr>, 2019
|
||||
# Antonin DESFONTAINES <antonin.desfontaines@outlook.com>, 2019
|
||||
# Adrien Guillement <adrien.guillement@gmail.com>, 2019
|
||||
# Matthias Baumgartner <dersoistargate@gmail.com>, 2019
|
||||
# Zkryvix <angelo.frangione@gmail.com>, 2020
|
||||
# Guillaume RICHARD <giz.richard@gmail.com>, 2020
|
||||
# Bastien SOL <agentcobra57@gmail.com>, 2020
|
||||
# Bruno D'agen <iamlionem@gmail.com>, 2020
|
||||
# Laurent Mox <laurent@laurent.sh>, 2020
|
||||
# Nicolas Moisson <nicolas.moisson@protonmail.com>, 2020
|
||||
# Gregory Pelletier <gpelletier@ip512.com>, 2020
|
||||
# nerdinator <florian.dupret@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -13,7 +26,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Mathieu Fortin <mathieugfortin@gmail.com>, 2019\n"
|
||||
"Last-Translator: nerdinator <florian.dupret@gmail.com>, 2020\n"
|
||||
"Language-Team: French (https://www.transifex.com/grocy/teams/93189/fr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -66,7 +79,7 @@ msgid "Chores overview"
|
||||
msgstr "Aperçu des corvées"
|
||||
|
||||
msgid "Batteries overview"
|
||||
msgstr "Piles"
|
||||
msgstr "Aperçu des piles"
|
||||
|
||||
msgid "Purchase"
|
||||
msgstr "Achat"
|
||||
@@ -89,6 +102,9 @@ msgstr "Suivi des piles"
|
||||
msgid "Locations"
|
||||
msgstr "Emplacements"
|
||||
|
||||
msgid "Stores"
|
||||
msgstr "Magasins"
|
||||
|
||||
msgid "Quantity units"
|
||||
msgstr "Formats"
|
||||
|
||||
@@ -96,7 +112,7 @@ msgid "Chores"
|
||||
msgstr "Corvées"
|
||||
|
||||
msgid "Batteries"
|
||||
msgstr "Batteries"
|
||||
msgstr "Piles"
|
||||
|
||||
msgid "Chore"
|
||||
msgstr "Corvée"
|
||||
@@ -153,7 +169,7 @@ msgid "New amount"
|
||||
msgstr "Nouvelle quantité"
|
||||
|
||||
msgid "Note"
|
||||
msgstr "Remarques"
|
||||
msgstr "Remarque"
|
||||
|
||||
msgid "Tracked time"
|
||||
msgstr "Réalisé le"
|
||||
@@ -165,7 +181,7 @@ msgid "Tracked count"
|
||||
msgstr "Nombre de réalisations"
|
||||
|
||||
msgid "Battery overview"
|
||||
msgstr "Aperçu des batteries"
|
||||
msgstr "Aperçu des piles"
|
||||
|
||||
msgid "Charge cycles count"
|
||||
msgstr "Nombre de charges"
|
||||
@@ -227,6 +243,9 @@ msgstr "Facteur entre la quantité à l'achat et la quantité en stock"
|
||||
msgid "Create location"
|
||||
msgstr "Créer un emplacement"
|
||||
|
||||
msgid "Create store"
|
||||
msgstr "Créer magasin"
|
||||
|
||||
msgid "Create quantity unit"
|
||||
msgstr "Créer un format"
|
||||
|
||||
@@ -243,10 +262,10 @@ msgid "Used in"
|
||||
msgstr "Utilisé dans"
|
||||
|
||||
msgid "Create battery"
|
||||
msgstr "Créer une batterie"
|
||||
msgstr "Créer une pile"
|
||||
|
||||
msgid "Edit battery"
|
||||
msgstr "Modifier une batterie"
|
||||
msgstr "Modifier une pile"
|
||||
|
||||
msgid "Edit chore"
|
||||
msgstr "Modifier une corvée"
|
||||
@@ -260,6 +279,9 @@ msgstr "Modifier le produit"
|
||||
msgid "Edit location"
|
||||
msgstr "Modifier l'emplacement"
|
||||
|
||||
msgid "Edit store"
|
||||
msgstr "Mettre à jour magasin"
|
||||
|
||||
msgid "Record data"
|
||||
msgstr "Enregistrer les données"
|
||||
|
||||
@@ -337,6 +359,9 @@ msgstr "Voulez-vous vraiment supprimer le produit \"%s\" ?"
|
||||
msgid "Are you sure to delete location \"%s\"?"
|
||||
msgstr "Voulez-vous vraiment supprimer l'emplacement \"%s\" ?"
|
||||
|
||||
msgid "Are you sure to delete store \"%s\"?"
|
||||
msgstr ""
|
||||
|
||||
msgid "Manage API keys"
|
||||
msgstr "Gérer les clefs API"
|
||||
|
||||
@@ -368,14 +393,14 @@ msgid "This means %s will be removed from stock"
|
||||
msgstr "%s sera supprimé du stock"
|
||||
|
||||
msgid ""
|
||||
"This means it is estimated that a new execution of this chore is tracked %s "
|
||||
"days after the last was tracked"
|
||||
"This means the next execution of this chore is scheduled %s days after the "
|
||||
"last execution"
|
||||
msgstr ""
|
||||
"La prochaine exécution de cette corvée sera programmée %s jours après sa "
|
||||
"La prochaine exécution de cette corvée sera programmée %s jours après la "
|
||||
"dernière exécution"
|
||||
|
||||
msgid "Removed %1$s of %2$s from stock"
|
||||
msgstr "%1$senlevé du stock de%2$s "
|
||||
msgstr "%1$s enlevée du stock de%2$s "
|
||||
|
||||
msgid "About grocy"
|
||||
msgstr "À propos de grocy"
|
||||
@@ -426,7 +451,7 @@ msgid "You have to select a chore"
|
||||
msgstr "Vous devez sélectionner une corvée"
|
||||
|
||||
msgid "You have to select a battery"
|
||||
msgstr "Vous devez sélectionner une batterie"
|
||||
msgstr "Vous devez sélectionner une pile"
|
||||
|
||||
msgid "A name is required"
|
||||
msgstr "Un nom est requis"
|
||||
@@ -524,7 +549,7 @@ msgid "Not enough in stock, %1$s missing, %2$s already on shopping list"
|
||||
msgstr "Pas assez en stock, %1$s manque, %2$s déjà dans la liste de courses"
|
||||
|
||||
msgid "Show notes"
|
||||
msgstr "Afficher les notes"
|
||||
msgstr "Afficher les remarques"
|
||||
|
||||
msgid "Put missing amount on shopping list"
|
||||
msgstr "Ajouter la quantité manquante dans la liste de courses"
|
||||
@@ -663,8 +688,8 @@ msgid ""
|
||||
"Only check if a single unit is in stock (a different quantity can then be "
|
||||
"used above)"
|
||||
msgstr ""
|
||||
"Vérifier uniquement si une unité est en stock (une quantité différente peut "
|
||||
"alors être utilisée au dessus)"
|
||||
"Vérifier uniquement si le stock contient au moins une unité (une quantité "
|
||||
"supérieure pourra alors être utilisée)"
|
||||
|
||||
msgid ""
|
||||
"Are you sure to consume all ingredients needed by recipe \"%s\" (ingredients"
|
||||
@@ -790,7 +815,7 @@ msgid "View settings"
|
||||
msgstr "Voir les paramètres"
|
||||
|
||||
msgid "Auto reload on external changes"
|
||||
msgstr "Mettre à jour automatiquement lors d'un changement externe"
|
||||
msgstr "MàJ automatique lors de changements externe"
|
||||
|
||||
msgid "Enable night mode"
|
||||
msgstr "Activer le mode nuit"
|
||||
@@ -851,7 +876,7 @@ msgid "The selected equipment has no instruction manual"
|
||||
msgstr "L'équipement sélectionné n'a pas de manuel d'utilisation"
|
||||
|
||||
msgid "Notes"
|
||||
msgstr "Notes"
|
||||
msgstr "Remarques"
|
||||
|
||||
msgid "Edit equipment"
|
||||
msgstr "Modifier un équipement"
|
||||
@@ -926,7 +951,7 @@ msgid "Batteries journal"
|
||||
msgstr "Journal des batteries"
|
||||
|
||||
msgid "Filter by battery"
|
||||
msgstr "Filtrer par batterie"
|
||||
msgstr "Filtrer par pile"
|
||||
|
||||
msgid "Undo charge cycle"
|
||||
msgstr "Annuler le cycle de charge"
|
||||
@@ -976,12 +1001,12 @@ msgid "Mark %1$s of %2$s as open"
|
||||
msgstr "Indiquer%1$s de %2$s comme ouvert"
|
||||
|
||||
msgid ""
|
||||
"When a product was marked as opened, the best before date will be replaced "
|
||||
"by today + this amount of days (a value of 0 disables this)"
|
||||
"When this product was marked as opened, the best before date will be "
|
||||
"replaced by today + this amount of days (a value of 0 disables this)"
|
||||
msgstr ""
|
||||
"Quand un produit est marqué comme ouvert, la date de péremption sera "
|
||||
"remplacée par la date du jour + ce nombre de jours (une valeur de 0 "
|
||||
"désactive ce changement)"
|
||||
"Lorsque ce produit est marqué comme ouvert, la date \"À consommer de "
|
||||
"préférence avant\" sera remplacée par aujourd'hui + le nombre de jours (une "
|
||||
"valeur de 0 désactive ceci)"
|
||||
|
||||
msgid "Default best before days after opened"
|
||||
msgstr "Date de péremption en jours par défaut après ouverture"
|
||||
@@ -992,9 +1017,6 @@ msgstr "Indiqué%1$s de %2$s comme ouvert"
|
||||
msgid "Mark as opened"
|
||||
msgstr "Indiquer comme ouvert"
|
||||
|
||||
msgid "Expires on %1$s; Bought on %2$s"
|
||||
msgstr "Se périmera le%1$s; Acheté le %2$s"
|
||||
|
||||
msgid "Not opened"
|
||||
msgstr "Non ouvert"
|
||||
|
||||
@@ -1117,6 +1139,9 @@ msgstr ""
|
||||
msgid "You have to select a location"
|
||||
msgstr "Vous devez sélectionner un endroit"
|
||||
|
||||
msgid "You have to select a store"
|
||||
msgstr "Vous devez sélectionner un magasin"
|
||||
|
||||
msgid "List"
|
||||
msgstr "Liste"
|
||||
|
||||
@@ -1139,10 +1164,10 @@ msgid "Journal for this chore"
|
||||
msgstr "Journal de la corvée"
|
||||
|
||||
msgid "Show battery details"
|
||||
msgstr "Voir les détails"
|
||||
msgstr "Voir les détails de la pile"
|
||||
|
||||
msgid "Journal for this battery"
|
||||
msgstr "Journal individuel"
|
||||
msgstr "Journal de cette pile"
|
||||
|
||||
msgid "System info"
|
||||
msgstr "Informations système"
|
||||
@@ -1150,8 +1175,8 @@ msgstr "Informations système"
|
||||
msgid "Changelog"
|
||||
msgstr "Journalisation"
|
||||
|
||||
msgid "will be multiplied a factor of %1$s to get %2$s"
|
||||
msgstr "sera multiplié par %1$s pour obtenir %2$s"
|
||||
msgid "will be multiplied by a factor of %1$s to get %2$s"
|
||||
msgstr ""
|
||||
|
||||
msgid "The given date is earlier than today, are you sure?"
|
||||
msgstr "La date saisie est antérieure à aujourd'hui, êtes-vous sûr?"
|
||||
@@ -1202,7 +1227,7 @@ msgid "Average shelf life"
|
||||
msgstr "Durée moyenne de conservation "
|
||||
|
||||
msgid "Spoil rate"
|
||||
msgstr "Taux de gâte"
|
||||
msgstr "Taux de péremption"
|
||||
|
||||
msgid "Show more"
|
||||
msgstr "Afficher plus"
|
||||
@@ -1238,7 +1263,7 @@ msgid "Sunday"
|
||||
msgstr "Dimanche"
|
||||
|
||||
msgid "Configure userfields"
|
||||
msgstr "Configurer les attributs personalisés"
|
||||
msgstr "Configurer les attributs personnalisés"
|
||||
|
||||
msgid "Userfields"
|
||||
msgstr "Attributs personalisés"
|
||||
@@ -1308,6 +1333,9 @@ msgstr "Pas assez en stock"
|
||||
msgid "Expiring soon days"
|
||||
msgstr "Jours avant péremption"
|
||||
|
||||
msgid "Default location"
|
||||
msgstr "Emplacement par défaut"
|
||||
|
||||
msgid "Default amount for purchase"
|
||||
msgstr "Quantité ajoutée par défaut lors d'un achat"
|
||||
|
||||
@@ -1337,8 +1365,8 @@ msgstr "Consommer %1$s de %2$s"
|
||||
msgid "Meal plan"
|
||||
msgstr "Prévisions des menus"
|
||||
|
||||
msgid "Add recipe to %s"
|
||||
msgstr "Ajouter la recette à %s"
|
||||
msgid "Add recipe on %s"
|
||||
msgstr "Ajouter une recette dans %s"
|
||||
|
||||
msgid "%s serving"
|
||||
msgid_plural "%s servings"
|
||||
@@ -1367,25 +1395,613 @@ msgid "Products"
|
||||
msgstr "Produits"
|
||||
|
||||
msgid "Marked task %s as completed on %s"
|
||||
msgstr ""
|
||||
msgstr "%s tâche marquée complétée sur %s"
|
||||
|
||||
msgid "Booking has subsequent dependent bookings, undo not possible"
|
||||
msgstr "La réservation a des dépendances, impossible de revenir en arrière"
|
||||
|
||||
msgid "per serving"
|
||||
msgstr ""
|
||||
msgstr "par portion"
|
||||
|
||||
msgid "Never"
|
||||
msgstr ""
|
||||
msgstr "Jamais"
|
||||
|
||||
msgid "Today"
|
||||
msgstr ""
|
||||
msgstr "Aujourd'hui"
|
||||
|
||||
msgid "Consume %1$s of %2$s as spoiled"
|
||||
msgstr ""
|
||||
msgstr "Consommer %1$s de %2$s comme périmée"
|
||||
|
||||
msgid "Not all ingredients of recipe \"%s\" are in stock, nothing removed"
|
||||
msgstr ""
|
||||
"Des ingrédients de la recette \"%s\" sont manquants,\n"
|
||||
"rien n'est retiré"
|
||||
|
||||
msgid "Undo task \"%s\""
|
||||
msgstr "Annuler tâche \"%s\""
|
||||
|
||||
msgid "Due date rollover"
|
||||
msgstr "Report de la date d'échéance"
|
||||
|
||||
msgid ""
|
||||
"When enabled the chore can never be overdue, the due date will shift forward"
|
||||
" each day when due"
|
||||
msgstr ""
|
||||
"Si activé la corvée ne sera jamais due, la date d'échéance sera avancée "
|
||||
"quand atteinte."
|
||||
|
||||
msgid "Location Content Sheet"
|
||||
msgstr "Emplacement du stock"
|
||||
|
||||
msgid "Print"
|
||||
msgstr "Imprimer"
|
||||
|
||||
msgid "all locations"
|
||||
msgstr "Tous les emplacements"
|
||||
|
||||
msgid ""
|
||||
"Here you can print a page per location with the current stock, maybe to hang"
|
||||
" it there and note the consumed things on it."
|
||||
msgstr ""
|
||||
"Ici vous pouvez imprimer une fiche du stock actuel classé par emplacement, "
|
||||
"vous pouvez par exemple l'accrocher et noter les produits qui ont été "
|
||||
"consommés dessus."
|
||||
|
||||
msgid "this location"
|
||||
msgstr "Cet emplacement"
|
||||
|
||||
msgid "Consumend amount"
|
||||
msgstr "Quantité consommé"
|
||||
|
||||
msgid "Time of printing"
|
||||
msgstr "Temps d'impression"
|
||||
|
||||
msgid "Are you sure to delete equipment \"%s\"?"
|
||||
msgstr "Êtes-vous certain de vouloir effacer l'équipement \"%s\"?"
|
||||
|
||||
msgid "Parent product"
|
||||
msgstr "Produit parent"
|
||||
|
||||
msgid ""
|
||||
"Not possible because this product is already used as a parent product in "
|
||||
"another product"
|
||||
msgstr ""
|
||||
"Impossible, ce produit est déjà assigné comme parent sur un autre produit"
|
||||
|
||||
msgid "Default conversions"
|
||||
msgstr "Conversions par défaut"
|
||||
|
||||
msgid "Factor"
|
||||
msgstr "Facteur"
|
||||
|
||||
msgid "1 %s is the same as..."
|
||||
msgstr "1 %s corresponds aussi à..."
|
||||
|
||||
msgid "Create QU conversion"
|
||||
msgstr "Créer une conversion d'UQ"
|
||||
|
||||
msgid "Default for QU"
|
||||
msgstr "Défaut pour l'unité de quantité"
|
||||
|
||||
msgid "Quantity unit from"
|
||||
msgstr "De l'unité de quantité"
|
||||
|
||||
msgid "Quantity unit to"
|
||||
msgstr "À l'unité de quantité"
|
||||
|
||||
msgid ""
|
||||
"This cannot be lower than %1$s and must be a valid number with max. %2$s "
|
||||
"decimal places"
|
||||
msgstr ""
|
||||
"Cela ne peut être inférieur à %1$s et doit être un nombre valide avec "
|
||||
"maximum. %2$s décimales."
|
||||
|
||||
msgid "This cannot be equal to %s"
|
||||
msgstr "Ne peut être égale à %s"
|
||||
|
||||
msgid "This means 1 %1$s is the same as %2$s %3$s"
|
||||
msgstr "Signifie que 1 %1$s corresponds aussi à %2$s %3$s"
|
||||
|
||||
msgid "QU conversions"
|
||||
msgstr "Conversions d'UQ"
|
||||
|
||||
msgid "Product overrides"
|
||||
msgstr "Règles du produit"
|
||||
|
||||
msgid "Override for product"
|
||||
msgstr "Règle pour le produit"
|
||||
|
||||
msgid "This equals %1$s %2$s in stock"
|
||||
msgstr "Égal à %1$s%2$s en stock"
|
||||
|
||||
msgid "Edit QU conversion"
|
||||
msgstr "Éditer la conversion d'UQ"
|
||||
|
||||
msgid "An assignment type is required"
|
||||
msgstr "Un type de tâche est requis"
|
||||
|
||||
msgid "Assignment type"
|
||||
msgstr "Type de tâche"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore is scheduled 1 day after the "
|
||||
"last execution"
|
||||
msgstr ""
|
||||
"La prochaine exécution de cette corvée sera programmé 1 jour après la "
|
||||
"dernière exécution"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore is scheduled 1 day after the "
|
||||
"last execution, but only for the weekdays selected below"
|
||||
msgstr ""
|
||||
"Signifie que la prochaine exécution de cette corvée est programmé 1 jour "
|
||||
"après la dernière exécution, mais uniquement pour les jours sélectionnés ci-"
|
||||
"dessous"
|
||||
|
||||
msgid "This means the next execution of this chore is not scheduled"
|
||||
msgstr "Cette corvée n'a pas d'exécution de programmée. "
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore is scheduled on the below "
|
||||
"selected day of each month"
|
||||
msgstr ""
|
||||
"Signifie que la prochaine exécution de cette corvée sera programmé à la date"
|
||||
" sélectionnée ci-dessous chaque mois"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore will not be assigned to anyone"
|
||||
msgstr ""
|
||||
"Signifie que la prochaine exécution de cette corvée ne sera assigné à "
|
||||
"personne"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore will be assigned to the one who "
|
||||
"executed it least"
|
||||
msgstr ""
|
||||
"Signifie que la prochaine exécution de cette corvée sera assignée à celui "
|
||||
"qui l'a effectué en dernier"
|
||||
|
||||
msgid "This means the next execution of this chore will be assigned randomly"
|
||||
msgstr ""
|
||||
"Signifie que la prochaine exécution de cette corvée sera assignée "
|
||||
"aléatoirement"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore will be assigned to the next one"
|
||||
" in alphabetical order"
|
||||
msgstr ""
|
||||
"Signifie que la prochaine exécution de cette corvée sera assigné au prochain"
|
||||
" par ordre alphabétique"
|
||||
|
||||
msgid "Assign to"
|
||||
msgstr "Assigné à"
|
||||
|
||||
msgid "This assignment type requires that at least one is assigned"
|
||||
msgstr "Ce type de tâche nécessite au moins une personne assignée"
|
||||
|
||||
msgid "%s chore is assigned to me"
|
||||
msgid_plural "%s chores are assigned to me"
|
||||
msgstr[0] "%s corvée m'est assignée"
|
||||
msgstr[1] "%s corvées me sont assignées"
|
||||
|
||||
msgid "Assigned to me"
|
||||
msgstr "Assigné à moi"
|
||||
|
||||
msgid "assigned to %s"
|
||||
msgstr "assigné à %s"
|
||||
|
||||
msgid "Filter by assignment"
|
||||
msgstr "Filtrer par tâche"
|
||||
|
||||
msgid "Consume product on chore execution"
|
||||
msgstr "Consommer un produit lors de l'exécution de la corvée"
|
||||
|
||||
msgid "Are you sure to delete user field \"%s\"?"
|
||||
msgstr "Êtes-vous sûr de vouloir supprimer le champ utilisateur \"%s\" ?"
|
||||
|
||||
msgid "Userentities"
|
||||
msgstr "Entités utilisateur"
|
||||
|
||||
msgid "Create userentity"
|
||||
msgstr "Créer une entité utilisateur"
|
||||
|
||||
msgid "Show in sidebar menu"
|
||||
msgstr "Afficher dans le menu latérale"
|
||||
|
||||
msgid "Edit userentity"
|
||||
msgstr "Éditer l'entité utilisateur"
|
||||
|
||||
msgid "Edit %s"
|
||||
msgstr "Éditer %s"
|
||||
|
||||
msgid "Create %s"
|
||||
msgstr "Créer %s"
|
||||
|
||||
msgid "Are you sure to delete this userobject?"
|
||||
msgstr "Êtes-vous sûr de vouloir supprimer cet objet utilisateur ?"
|
||||
|
||||
msgid "Icon CSS class"
|
||||
msgstr "Classe CSS de l'icône"
|
||||
|
||||
msgid "For example"
|
||||
msgstr "Par exemple"
|
||||
|
||||
msgid "Configure fields"
|
||||
msgstr "Configurer les champs"
|
||||
|
||||
msgid "Quantity unit plural form testing"
|
||||
msgstr "Test de la forme pluriel de l'unité de quantité"
|
||||
|
||||
msgid "Result"
|
||||
msgstr "Résultat"
|
||||
|
||||
msgid "Test plural forms"
|
||||
msgstr "Tester les formes pluriel"
|
||||
|
||||
msgid "Scan a barcode"
|
||||
msgstr "Scanner un code barre"
|
||||
|
||||
msgid "Error while initializing the barcode scanning library"
|
||||
msgstr "Erreur lors de l'initialisation de la librairie de scan de code barre"
|
||||
|
||||
msgid ""
|
||||
"The resulting price of this ingredient will be multiplied by this factor"
|
||||
msgstr "Le prix final de cet ingrédient sera multiplié par ce facteur"
|
||||
|
||||
msgid "Price factor"
|
||||
msgstr "Facteur de prix"
|
||||
|
||||
msgid "Do you find grocy useful?"
|
||||
msgstr "Vous trouvez grocy utile ?"
|
||||
|
||||
msgid "Say thanks"
|
||||
msgstr "Remercier"
|
||||
|
||||
msgid "Search for recipes containing this product"
|
||||
msgstr "Chercher des recettes contenant ce produit"
|
||||
|
||||
msgid "Add to shopping list"
|
||||
msgstr "Ajouter à la liste de courses"
|
||||
|
||||
msgid "Added %1$s of %2$s to the shopping list \"%3$s\""
|
||||
msgstr "%1$s de %2$s ajouté à la liste de course \"%3$s\""
|
||||
|
||||
msgid "Output"
|
||||
msgstr "Sortie"
|
||||
|
||||
msgid "Energy (kcal)"
|
||||
msgstr "Énergie (kcal)"
|
||||
|
||||
msgid "Per stock quantity unit"
|
||||
msgstr "Unité de quantité par stock"
|
||||
|
||||
msgid "Barcode scanner testing"
|
||||
msgstr "Test du scanner de code barre"
|
||||
|
||||
msgid "Expected barcode"
|
||||
msgstr "Code barre attendu"
|
||||
|
||||
msgid "Scan field"
|
||||
msgstr "Champ du scan"
|
||||
|
||||
msgid "Scanned barcodes"
|
||||
msgstr "Codes barre scanné"
|
||||
|
||||
msgid "Hit"
|
||||
msgstr "Touché"
|
||||
|
||||
msgid "Miss"
|
||||
msgstr "Raté"
|
||||
|
||||
msgid "Display recipe"
|
||||
msgstr "Afficher la recette"
|
||||
|
||||
msgid "Accumulate sub products min. stock amount"
|
||||
msgstr "Accumuler le stock minimal des sous produits"
|
||||
|
||||
msgid ""
|
||||
"If enabled, the min. stock amount of sub products will be accumulated into "
|
||||
"this product, means the sub product will never be \"missing\", only this "
|
||||
"product"
|
||||
msgstr ""
|
||||
"Si activé, la somme du stock minimal des sous produits sera accumulé sur ce "
|
||||
"produit, signifiant que le sous produit ne sera jamais \"en manque\", "
|
||||
"seulement ce produit"
|
||||
|
||||
msgid "Are you sure to remove this conversion?"
|
||||
msgstr "Êtes-vous sûr de vouloir supprimer cette conversion ?"
|
||||
|
||||
msgid "Unit price"
|
||||
msgstr "Prix unitaire"
|
||||
|
||||
msgid "Total price"
|
||||
msgstr "Prix total"
|
||||
|
||||
msgid "in %s and based on the purchase quantity unit"
|
||||
msgstr "dans %s et basé sur la quantité unitaire d'achat"
|
||||
|
||||
msgid "Unlimited"
|
||||
msgstr "Illimité"
|
||||
|
||||
msgid "Clear"
|
||||
msgstr "Vider"
|
||||
|
||||
msgid "Are you sure to remove the included recipe \"%s\"?"
|
||||
msgstr "Êtes-vous sûr de vouloir supprimer la recette incluse \"%s\"?"
|
||||
|
||||
msgid "Period interval"
|
||||
msgstr "Intervalle de temps"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore should only be scheduled every "
|
||||
"%s days"
|
||||
msgstr ""
|
||||
"La prochaine exécution de cette corvée ne doit être uniquement programmée "
|
||||
"que tous les %s jours"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore should only be scheduled every "
|
||||
"%s weeks"
|
||||
msgstr ""
|
||||
"La prochaine exécution de cette corvée ne doit être uniquement programmée "
|
||||
"que toutes les %s semaines"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore should only be scheduled every "
|
||||
"%s months"
|
||||
msgstr ""
|
||||
"La prochaine exécution de cette corvée ne doit être uniquement programmée "
|
||||
"que tous les %s mois"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore is scheduled 1 year after the "
|
||||
"last execution"
|
||||
msgstr ""
|
||||
"La prochaine exécution de cette corvée sera programmé 1 an après la dernière"
|
||||
" exécution"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore should only be scheduled every "
|
||||
"%s years"
|
||||
msgstr ""
|
||||
"Signifie que la prochaine exécution de cette corvée ne doit uniquement être "
|
||||
"programmé que tous les %s ans"
|
||||
|
||||
msgid "Transfer"
|
||||
msgstr "Transfert"
|
||||
|
||||
msgid "From location"
|
||||
msgstr "De"
|
||||
|
||||
msgid "To location"
|
||||
msgstr "A"
|
||||
|
||||
msgid "There are no units available at this location"
|
||||
msgstr "Il n'y a pas d'unité disponible à cet endroit."
|
||||
|
||||
msgid "Amount: %1$s; Expires on %2$s; Bought on %3$s"
|
||||
msgstr "Quantité : %1$s; Expire le %2$s; Acheté le %3$s"
|
||||
|
||||
msgid "Transfered %1$s of %2$s from %3$s to %4$s"
|
||||
msgstr "A transferé%1$sde %2$svenant de %3$s à %4$s"
|
||||
|
||||
msgid "Show stock entries"
|
||||
msgstr "Afficher les entrées du stock"
|
||||
|
||||
msgid "Stock entries"
|
||||
msgstr "Entrées du stock"
|
||||
|
||||
msgid "Best before date"
|
||||
msgstr "A consommer de préférence avant le"
|
||||
|
||||
msgid "Purchased date"
|
||||
msgstr "Date d'achat"
|
||||
|
||||
msgid "Consume all %s for this stock entry"
|
||||
msgstr "Consommer tous les %s pour cette entrée du stock"
|
||||
|
||||
msgid "The amount cannot be lower than %1$s"
|
||||
msgstr "La quantité ne peut être inférieure à %s"
|
||||
|
||||
msgid "Stock entry successfully updated"
|
||||
msgstr "Entrée du stock mise à jour avec succès"
|
||||
|
||||
msgid "Edit stock entry"
|
||||
msgstr "Modifier l'entrée du stock"
|
||||
|
||||
msgid ""
|
||||
"Camera access is only possible when supported and allowed by your browser "
|
||||
"and when grocy is served via a secure (https://) connection"
|
||||
msgstr ""
|
||||
"L'accès à la caméra n'est possible que s'il est pris en charge et autorisé "
|
||||
"par votre navigateur et lorsque grocy utilise une connexion sécurisée "
|
||||
"(HTTPS)"
|
||||
|
||||
msgid "Keep screen on"
|
||||
msgstr "Garder l'écran allumé"
|
||||
|
||||
msgid "Keep screen on while displaying a \"fullscreen-card\""
|
||||
msgstr "Garder l'écran allumé lorsqu'une fiche est affichée en plein écran"
|
||||
|
||||
msgid "A purchased date is required"
|
||||
msgstr "Date d'achat obligatoire"
|
||||
|
||||
msgid ""
|
||||
"When a product is selected, one unit (per serving in purchase quantity unit)"
|
||||
" will be added to stock on consuming this recipe"
|
||||
msgstr ""
|
||||
"Lorsqu'un produit est sélectionné, une unité (par portion dans l'unité de "
|
||||
"quantité d'achat) sera ajoutée au stock lors de la consommation de cette "
|
||||
"recette"
|
||||
|
||||
msgid "Produces product"
|
||||
msgstr "Génère un produit"
|
||||
|
||||
msgid "This booking cannot be undone"
|
||||
msgstr "Cette réservation ne peut pas être annulée"
|
||||
|
||||
msgid "Booking does not exist or was already undone"
|
||||
msgstr "La réservation n'existe pas ou a déjà été annulée"
|
||||
|
||||
msgid "Are you sure to delete API key \"%s\"?"
|
||||
msgstr "Voulez-vous vraiment supprimer la clé API \"%s\" ?"
|
||||
|
||||
msgid "Add note"
|
||||
msgstr "Ajouter une remarque"
|
||||
|
||||
msgid "Add note on %s"
|
||||
msgstr "Ajouter une remarque dans %s"
|
||||
|
||||
msgid "per day"
|
||||
msgstr "par jour"
|
||||
|
||||
msgid "Compact view"
|
||||
msgstr "Vue compacte"
|
||||
|
||||
msgid "Normal view"
|
||||
msgstr "Vue normale"
|
||||
|
||||
msgid "Only undone items"
|
||||
msgstr "Uniquement les éléments annulés"
|
||||
|
||||
msgid "Add product"
|
||||
msgstr "Ajouter un produit"
|
||||
|
||||
msgid "Add product on %s"
|
||||
msgstr "Ajouter le produit à %s"
|
||||
|
||||
msgid "Consume all ingredients needed by this weeks recipes or products"
|
||||
msgstr ""
|
||||
"Consommer tous les ingrédients requis pour les recettes ou produits de cette"
|
||||
" semaine"
|
||||
|
||||
msgid "Meal plan recipe"
|
||||
msgstr "Recette des prévisions de repas"
|
||||
|
||||
msgid "Meal plan note"
|
||||
msgstr "Remarque sur les prévisions des menus"
|
||||
|
||||
msgid "Meal plan product"
|
||||
msgstr "Produit des prévisions de repas"
|
||||
|
||||
msgid "Scan mode"
|
||||
msgstr "Mode scanner"
|
||||
|
||||
msgid "on"
|
||||
msgstr "Allumé"
|
||||
|
||||
msgid "off"
|
||||
msgstr "Éteint"
|
||||
|
||||
msgid ""
|
||||
"Scan mode is on but not all required fields could be populated automatically"
|
||||
msgstr ""
|
||||
"Le mode \"scan\" est activé mais tous les champs obligatoires n'ont pas pu "
|
||||
"être automatiquement remplis"
|
||||
|
||||
msgid "Is freezer"
|
||||
msgstr "Est un congélateur"
|
||||
|
||||
msgid ""
|
||||
"When moving products from/to a freezer location, the products best before "
|
||||
"date is automatically adjusted according to the product settings"
|
||||
msgstr ""
|
||||
"Lorsque les produits entrent/sortent du congélateur, la date de durabilité "
|
||||
"minimale est mise à jour automatiquement en fonction des paramètres des "
|
||||
"produits"
|
||||
|
||||
msgid ""
|
||||
"On moving this product to a freezer location (so when freezing it), the best"
|
||||
" before date will be replaced by today + this amount of days"
|
||||
msgstr ""
|
||||
"Lorsque ce produit est placé dans le congélateur (congélation), la date de "
|
||||
"durabilité minimale sera remplacée par la date du jour + ce nombre de jours"
|
||||
|
||||
msgid "Default best before days after freezing"
|
||||
msgstr "Date de durabilité minimale après congélation par défaut en jours"
|
||||
|
||||
msgid ""
|
||||
"On moving this product from a freezer location (so when thawing it), the "
|
||||
"best before date will be replaced by today + this amount of days"
|
||||
msgstr ""
|
||||
"Lorsque ce produit est sorti du congélateur (décongélation), la date de "
|
||||
"durabilité minimale sera remplacée par la date du jour + ce nombre de jours"
|
||||
|
||||
msgid "Default best before days after thawing"
|
||||
msgstr "Date de durabilité minimale après décongélation par défaut en jours"
|
||||
|
||||
msgid "This cannot be the same as the \"From\" location"
|
||||
msgstr "Ce ne peut pas être le même endroit d'origine"
|
||||
|
||||
msgid "Thawed"
|
||||
msgstr "Décongelé"
|
||||
|
||||
msgid "Frozen"
|
||||
msgstr "Congelé"
|
||||
|
||||
msgid "Are you sure to delete userentity \"%s\"?"
|
||||
msgstr "Voulez-vous vraiment supprimer l'entité utilisateur \"%s\" ?"
|
||||
|
||||
msgid "Shopping list settings"
|
||||
msgstr "Paramètres de la liste de courses"
|
||||
|
||||
msgid "Show a month-view calendar"
|
||||
msgstr "Afficher le calendrier en vue mensuelle"
|
||||
|
||||
msgid "Don't automatically switch to the compact view on mobile devices"
|
||||
msgstr ""
|
||||
"Ne pas basculer automatiquement en vue compacte sur les appareils mobiles"
|
||||
|
||||
msgid "Edit note on %s"
|
||||
msgstr "Modifier la remarque dans %s"
|
||||
|
||||
msgid "Edit product on %s"
|
||||
msgstr "Modifier le produit dans %s"
|
||||
|
||||
msgid "Edit recipe on %s"
|
||||
msgstr "Modifier la recette dans %s"
|
||||
|
||||
msgid "Desired servings"
|
||||
msgstr "portions souhaitées"
|
||||
|
||||
msgid "Base: %s"
|
||||
msgstr "Base: %s"
|
||||
|
||||
msgid "Recipes settings"
|
||||
msgstr "Paramètres des recettes"
|
||||
|
||||
msgid "Recipe card"
|
||||
msgstr "Fiche de recette"
|
||||
|
||||
msgid "Group ingredients by their product group"
|
||||
msgstr "Regrouper les ingrédients par groupe de produits"
|
||||
|
||||
msgid "Unknown store"
|
||||
msgstr "Magasin inconnu"
|
||||
|
||||
msgid "Store"
|
||||
msgstr "Magasin"
|
||||
|
||||
msgid "Transaction successfully undone"
|
||||
msgstr ""
|
||||
|
||||
msgid "Default store"
|
||||
msgstr ""
|
||||
|
||||
msgid "Consume this stock entry"
|
||||
msgstr ""
|
||||
|
||||
msgid "Mark this stock entry as open"
|
||||
msgstr ""
|
||||
|
||||
msgid "Mark this item as done"
|
||||
msgstr ""
|
||||
|
||||
msgid "Edit this item"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete this item"
|
||||
msgstr ""
|
||||
|
||||
msgid "Show an icon if the product is already on the shopping list"
|
||||
msgstr ""
|
||||
|
@@ -1,5 +1,6 @@
|
||||
# Translators:
|
||||
# Hydreliox Hydreliox <hydreliox@gmail.com>, 2019
|
||||
# Antonin DESFONTAINES <antonin.desfontaines@outlook.com>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -7,7 +8,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:43+0000\n"
|
||||
"Last-Translator: Hydreliox Hydreliox <hydreliox@gmail.com>, 2019\n"
|
||||
"Last-Translator: Antonin DESFONTAINES <antonin.desfontaines@outlook.com>, 2019\n"
|
||||
"Language-Team: French (https://www.transifex.com/grocy/teams/93189/fr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -39,3 +40,9 @@ msgstr "case à cocher"
|
||||
|
||||
msgid "preset-list"
|
||||
msgstr "liste prédéfinie"
|
||||
|
||||
msgid "preset-checklist"
|
||||
msgstr "liste multiple prédéfinie"
|
||||
|
||||
msgid "link"
|
||||
msgstr "lien"
|
||||
|
30
localization/hu/chore_assignment_types.po
Normal file
30
localization/hu/chore_assignment_types.po
Normal file
@@ -0,0 +1,30 @@
|
||||
# Translators:
|
||||
# Márk Kökény <oregapamgroup@gmail.com>, 2019
|
||||
# Ádám Kovács <kovacsadam07@outlook.hu>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-09-17 10:45+0000\n"
|
||||
"Last-Translator: Ádám Kovács <kovacsadam07@outlook.hu>, 2019\n"
|
||||
"Language-Team: Hungarian (https://www.transifex.com/grocy/teams/93189/hu/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: hu\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Domain: grocy/chore_assignment_types\n"
|
||||
|
||||
msgid "no-assignment"
|
||||
msgstr "nincs-hozzárendelés"
|
||||
|
||||
msgid "who-least-did-first"
|
||||
msgstr "ki-legkevésbé-csinálta-először"
|
||||
|
||||
msgid "random"
|
||||
msgstr "véletlen"
|
||||
|
||||
msgid "in-alphabetical-order"
|
||||
msgstr "ABC sorrendben"
|
35
localization/hu/chore_period_types.po
Normal file
35
localization/hu/chore_period_types.po
Normal file
@@ -0,0 +1,35 @@
|
||||
# Translators:
|
||||
# Ádám Kovács <kovacsadam07@outlook.hu>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Ádám Kovács <kovacsadam07@outlook.hu>, 2019\n"
|
||||
"Language-Team: Hungarian (https://www.transifex.com/grocy/teams/93189/hu/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: hu\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Domain: grocy/chore_types\n"
|
||||
|
||||
msgid "manually"
|
||||
msgstr "manuálisan"
|
||||
|
||||
msgid "dynamic-regular"
|
||||
msgstr "változó gyakorisággal"
|
||||
|
||||
msgid "daily"
|
||||
msgstr "naponta"
|
||||
|
||||
msgid "weekly"
|
||||
msgstr "hetente"
|
||||
|
||||
msgid "monthly"
|
||||
msgstr "havonta"
|
||||
|
||||
msgid "yearly"
|
||||
msgstr "évente"
|
52
localization/hu/component_translations.po
Normal file
52
localization/hu/component_translations.po
Normal file
@@ -0,0 +1,52 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2020\n"
|
||||
"Language-Team: Hungarian (https://www.transifex.com/grocy/teams/93189/hu/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: hu\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Domain: grocy/component_translations\n"
|
||||
|
||||
msgid "timeago_locale"
|
||||
msgstr "hu"
|
||||
|
||||
msgid "timeago_nan"
|
||||
msgstr "NaN éve"
|
||||
|
||||
msgid "moment_locale"
|
||||
msgstr "hu"
|
||||
|
||||
msgid "datatables_localization"
|
||||
msgstr ""
|
||||
"{\"sEmptyTable\":\"Nincs rendelkezésre álló adat\",\"sInfo\":\"Találatok: "
|
||||
"_START_ - _END_ Összesen: _TOTAL_\",\"sInfoEmpty\":\"Nulla "
|
||||
"találat\",\"sInfoFiltered\":\"(_MAX_ összes rekord közül "
|
||||
"szűrve)\",\"sInfoPostFix\":\"\",\"sInfoThousands\":\" "
|
||||
"\",\"sLengthMenu\":\"_MENU_ találat "
|
||||
"oldalanként\",\"sLoadingRecords\":\"Betöltés...\",\"sProcessing\":\"Feldolgozás...\",\"sSearch\":\"Keresés:\",\"sZeroRecords\":\"Nincs"
|
||||
" a keresésnek megfelelő "
|
||||
"találat\",\"oPaginate\":{\"sFirst\":\"Első\",\"sPrevious\":\"Előző\",\"sNext\":\"Következő\",\"sLast\":\"Utolsó\"},\"oAria\":{\"sSortAscending\":\":"
|
||||
" aktiválja a növekvő rendezéshez\",\"sSortDescending\":\": aktiválja a "
|
||||
"csökkenő rendezéshez\"},\"select\":{\"rows\":{\"0\":\"\",\"1\":\"1 sor "
|
||||
"kiválasztva\",\"_\":\"%d sor "
|
||||
"kiválasztva\"}},\"buttons\":{\"print\":\"Nyomtatás\",\"colvis\":\"Oszlopok\",\"copy\":\"Másolás\",\"copyTitle\":\"Vágólapra"
|
||||
" másolás\",\"copySuccess\":{\"1\":\"1 sor másolva\",\"_\":\"%d sor "
|
||||
"másolva\"}}}"
|
||||
|
||||
msgid "summernote_locale"
|
||||
msgstr "hu-HU"
|
||||
|
||||
msgid "fullcalendar_locale"
|
||||
msgstr "hu"
|
||||
|
||||
msgid "bootstrap-select_locale"
|
||||
msgstr "hu_HU"
|
369
localization/hu/demo_data.po
Normal file
369
localization/hu/demo_data.po
Normal file
@@ -0,0 +1,369 @@
|
||||
# Translators:
|
||||
# Richard Szolár <szolar.richard@gmail.com>, 2019
|
||||
# Márk Kökény <oregapamgroup@gmail.com>, 2019
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2020
|
||||
# Gábor Szellő <gabor.szello@gmail.com>, 2020
|
||||
# Gabor Pilsits <gabor.pilsits@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Gabor Pilsits <gabor.pilsits@gmail.com>, 2020\n"
|
||||
"Language-Team: Hungarian (https://www.transifex.com/grocy/teams/93189/hu/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: hu\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Domain: grocy/demo_data\n"
|
||||
|
||||
msgid "Cookies"
|
||||
msgstr "Keksz"
|
||||
|
||||
msgid "Chocolate"
|
||||
msgstr "Csokoládé"
|
||||
|
||||
msgid "Pantry"
|
||||
msgstr "Éléskamra"
|
||||
|
||||
msgid "Candy cupboard"
|
||||
msgstr "Édességszekrény"
|
||||
|
||||
msgid "Tinned food cupboard"
|
||||
msgstr "Konzverves szekrény"
|
||||
|
||||
msgid "Fridge"
|
||||
msgstr "Hűtő"
|
||||
|
||||
msgid "Piece"
|
||||
msgid_plural "Pieces"
|
||||
msgstr[0] "Darab"
|
||||
msgstr[1] "Darab"
|
||||
|
||||
msgid "Pack"
|
||||
msgid_plural "Packs"
|
||||
msgstr[0] "Csomag"
|
||||
msgstr[1] "Csomag"
|
||||
|
||||
msgid "Glass"
|
||||
msgid_plural "Glasses"
|
||||
msgstr[0] "Üveg"
|
||||
msgstr[1] "Üveg"
|
||||
|
||||
msgid "Tin"
|
||||
msgid_plural "Tins"
|
||||
msgstr[0] "Konzerv"
|
||||
msgstr[1] "Konzerv"
|
||||
|
||||
msgid "Can"
|
||||
msgid_plural "Cans"
|
||||
msgstr[0] "Képes"
|
||||
msgstr[1] "Kancsó"
|
||||
|
||||
msgid "Bunch"
|
||||
msgid_plural "Bunches"
|
||||
msgstr[0] "Csokor"
|
||||
msgstr[1] "Csokor"
|
||||
|
||||
msgid "Gummy bears"
|
||||
msgstr "Gumimaci"
|
||||
|
||||
msgid "Crisps"
|
||||
msgstr "Ropogtatnivaló"
|
||||
|
||||
msgid "Eggs"
|
||||
msgstr "Tojás"
|
||||
|
||||
msgid "Noodles"
|
||||
msgstr "Tészta"
|
||||
|
||||
msgid "Pickles"
|
||||
msgstr "Savanyúság"
|
||||
|
||||
msgid "Gulash soup"
|
||||
msgstr "Gulyásleves"
|
||||
|
||||
msgid "Yogurt"
|
||||
msgstr "Joghurt"
|
||||
|
||||
msgid "Cheese"
|
||||
msgstr "Sajt"
|
||||
|
||||
msgid "Cold cuts"
|
||||
msgstr "Felvágott"
|
||||
|
||||
msgid "Paprika"
|
||||
msgstr "Paprika"
|
||||
|
||||
msgid "Cucumber"
|
||||
msgstr "Uborka"
|
||||
|
||||
msgid "Radish"
|
||||
msgstr "Retek"
|
||||
|
||||
msgid "Tomato"
|
||||
msgstr "Paradicsom"
|
||||
|
||||
msgid "Changed towels in the bathroom"
|
||||
msgstr "Törölközők cseréje a fürdőszobában"
|
||||
|
||||
msgid "Cleaned the kitchen floor"
|
||||
msgstr "Konyhapadló felmosása"
|
||||
|
||||
msgid "Warranty ends"
|
||||
msgstr "Garancia lejár"
|
||||
|
||||
msgid "TV remote control"
|
||||
msgstr "TV távirányító"
|
||||
|
||||
msgid "Alarm clock"
|
||||
msgstr "Ébresztőóra"
|
||||
|
||||
msgid "Heat remote control"
|
||||
msgstr "Termosztát"
|
||||
|
||||
msgid "Lawn mowed in the garden"
|
||||
msgstr "Fűnyírás a kertben"
|
||||
|
||||
msgid "Some good snacks"
|
||||
msgstr "Néhány jó kis nasi"
|
||||
|
||||
msgid "Pizza dough"
|
||||
msgstr "Pizzatekercs"
|
||||
|
||||
msgid "Sieved tomatoes"
|
||||
msgstr "Paradicsompüré"
|
||||
|
||||
msgid "Salami"
|
||||
msgstr "Szalámi"
|
||||
|
||||
msgid "Toast"
|
||||
msgstr "Toast kenyér"
|
||||
|
||||
msgid "Minced meat"
|
||||
msgstr "Darált hús"
|
||||
|
||||
msgid "Pizza"
|
||||
msgstr "Pizza"
|
||||
|
||||
msgid "Spaghetti bolognese"
|
||||
msgstr "Bolognai spagetti"
|
||||
|
||||
msgid "Sandwiches"
|
||||
msgstr "Szendvics"
|
||||
|
||||
msgid "English"
|
||||
msgstr "Angol"
|
||||
|
||||
msgid "German"
|
||||
msgstr "Német"
|
||||
|
||||
msgid "Italian"
|
||||
msgstr "Olasz"
|
||||
|
||||
msgid "This is the note content of the recipe ingredient"
|
||||
msgstr "Ez a recept hozzávalójának megjegyzés tartalma"
|
||||
|
||||
msgid "Demo User"
|
||||
msgstr "Demo felhasználó"
|
||||
|
||||
msgid "Gram"
|
||||
msgid_plural "Grams"
|
||||
msgstr[0] "Gramm"
|
||||
msgstr[1] "Gramm"
|
||||
|
||||
msgid "Flour"
|
||||
msgstr "Liszt"
|
||||
|
||||
msgid "Pancakes"
|
||||
msgstr "Palacsinta"
|
||||
|
||||
msgid "Sugar"
|
||||
msgstr "Cukor"
|
||||
|
||||
msgid "Home"
|
||||
msgstr "Otthon"
|
||||
|
||||
msgid "Life"
|
||||
msgstr "Élet"
|
||||
|
||||
msgid "Projects"
|
||||
msgstr "Projektek"
|
||||
|
||||
msgid "Repair the garage door"
|
||||
msgstr "Garázsajtó megjavítása"
|
||||
|
||||
msgid "Fork and improve grocy"
|
||||
msgstr "Forkold és fejleszd te is Grocyt"
|
||||
|
||||
msgid "Find a solution for what to do when I forget the door keys"
|
||||
msgstr "Megoldást találni, mit tennék akkor, ha elhagyom a lakáskulcsot"
|
||||
|
||||
msgid "Sweets"
|
||||
msgstr "Édességek"
|
||||
|
||||
msgid "Bakery products"
|
||||
msgstr "Péktermékek"
|
||||
|
||||
msgid "Tinned food"
|
||||
msgstr "Konzerves étel"
|
||||
|
||||
msgid "Butchery products"
|
||||
msgstr "Hentes termékek"
|
||||
|
||||
msgid "Vegetables/Fruits"
|
||||
msgstr "Zöldségek/Gyümölcsök"
|
||||
|
||||
msgid "Refrigerated products"
|
||||
msgstr "Hűtött termékek"
|
||||
|
||||
msgid "Coffee machine"
|
||||
msgstr "Kávéfőző"
|
||||
|
||||
msgid "Dishwasher"
|
||||
msgstr "Mosogató"
|
||||
|
||||
msgid "Liter"
|
||||
msgstr "Liter"
|
||||
|
||||
msgid "Liters"
|
||||
msgstr "Liter"
|
||||
|
||||
msgid "Bottle"
|
||||
msgstr "Üveg"
|
||||
|
||||
msgid "Bottles"
|
||||
msgstr "Üveg"
|
||||
|
||||
msgid "Milk"
|
||||
msgstr "Tej"
|
||||
|
||||
msgid "Chocolate sauce"
|
||||
msgstr "Csokiszósz"
|
||||
|
||||
msgid "Milliliters"
|
||||
msgstr "Milliliter"
|
||||
|
||||
msgid "Milliliter"
|
||||
msgstr "Milliliter"
|
||||
|
||||
msgid "Bottom"
|
||||
msgstr "Alsó"
|
||||
|
||||
msgid "Topping"
|
||||
msgstr "Feltét"
|
||||
|
||||
msgid "French"
|
||||
msgstr "Francia"
|
||||
|
||||
msgid "Turkish"
|
||||
msgstr "Török"
|
||||
|
||||
msgid "Spanish"
|
||||
msgstr "Spanyol"
|
||||
|
||||
msgid "Russian"
|
||||
msgstr "Orosz"
|
||||
|
||||
msgid "The thing which happens on the 5th of every month"
|
||||
msgstr "A dolog, amely minden hónap 5. napján megtörténik"
|
||||
|
||||
msgid "The thing which happens daily"
|
||||
msgstr "A dolog, amely minden nap megtörténik"
|
||||
|
||||
msgid "The thing which happens on Mondays and Wednesdays"
|
||||
msgstr "A dolog, amely minden hétfőn és szerdán megtörténik"
|
||||
|
||||
msgid "Swedish"
|
||||
msgstr "Svéd"
|
||||
|
||||
msgid "Polish"
|
||||
msgstr "Lengyel"
|
||||
|
||||
msgid "Milk Chocolate"
|
||||
msgstr "Tejcsokoládé"
|
||||
|
||||
msgid "Dark Chocolate"
|
||||
msgstr "Étcsokoládé"
|
||||
|
||||
msgid "Slice"
|
||||
msgid_plural "Slices"
|
||||
msgstr[0] "Szelet"
|
||||
msgstr[1] "Szelet"
|
||||
|
||||
msgid "Example userentity"
|
||||
msgstr "Példa felhasználóentitás"
|
||||
|
||||
msgid "This is an example user entity..."
|
||||
msgstr "Ez egy példa felhasználóentitás"
|
||||
|
||||
msgid "Custom field"
|
||||
msgstr "Egyéni mező"
|
||||
|
||||
msgid "Example field value..."
|
||||
msgstr "Példa egyéni mező érték..."
|
||||
|
||||
msgid "Waffle rolls"
|
||||
msgstr "Gofri tekercs"
|
||||
|
||||
msgid "Danish"
|
||||
msgstr "Dán"
|
||||
|
||||
msgid "Dutch"
|
||||
msgstr "Holland"
|
||||
|
||||
msgid "Norwegian"
|
||||
msgstr "Norvég"
|
||||
|
||||
msgid "Demo"
|
||||
msgstr "Demo"
|
||||
|
||||
msgid "Stable version"
|
||||
msgstr "Stabil verzió"
|
||||
|
||||
msgid "Preview version"
|
||||
msgstr "Előzetes verzió"
|
||||
|
||||
msgid "current release"
|
||||
msgstr "jelenlegi kiadás"
|
||||
|
||||
msgid "not yet released"
|
||||
msgstr "még nem megjelent"
|
||||
|
||||
msgid "Portuguese (Brazil)"
|
||||
msgstr "Portugál (Brazil)"
|
||||
|
||||
msgid "This is a note"
|
||||
msgstr "Ez egy jegyzet"
|
||||
|
||||
msgid "Freezer"
|
||||
msgstr "Fagyasztószekrény"
|
||||
|
||||
msgid "Hungarian"
|
||||
msgstr "Magyar"
|
||||
|
||||
msgid "Slovak"
|
||||
msgstr "Szlovák"
|
||||
|
||||
msgid "Czech"
|
||||
msgstr "Cseh"
|
||||
|
||||
msgid "Portuguese (Portugal)"
|
||||
msgstr "Portugál"
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket1"
|
||||
msgstr "DemoSupermarket1"
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket2"
|
||||
msgstr "DemoSupermarket2"
|
||||
|
||||
msgid "Japanese"
|
||||
msgstr ""
|
||||
|
||||
msgid "Chinese (Taiwan)"
|
||||
msgstr ""
|
45
localization/hu/stock_transaction_types.po
Normal file
45
localization/hu/stock_transaction_types.po
Normal file
@@ -0,0 +1,45 @@
|
||||
# Translators:
|
||||
# Márk Kökény <oregapamgroup@gmail.com>, 2019
|
||||
# Gabor Pilsits <gabor.pilsits@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Gabor Pilsits <gabor.pilsits@gmail.com>, 2020\n"
|
||||
"Language-Team: Hungarian (https://www.transifex.com/grocy/teams/93189/hu/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: hu\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Domain: grocy/stock_transaction_types\n"
|
||||
|
||||
msgid "purchase"
|
||||
msgstr "vásárlás"
|
||||
|
||||
msgid "transfer_from"
|
||||
msgstr "mozgatás innen"
|
||||
|
||||
msgid "transfer_to"
|
||||
msgstr "mozgatás ide"
|
||||
|
||||
msgid "consume"
|
||||
msgstr "elfogyasztás"
|
||||
|
||||
msgid "inventory-correction"
|
||||
msgstr "készlet-korrekció"
|
||||
|
||||
msgid "product-opened"
|
||||
msgstr "felbontott-termék"
|
||||
|
||||
msgid "stock-edit-old"
|
||||
msgstr "régi készlet szerkesztése"
|
||||
|
||||
msgid "stock-edit-new"
|
||||
msgstr "új készlet szerkesztése"
|
||||
|
||||
msgid "self-production"
|
||||
msgstr "sajátkészítés"
|
1919
localization/hu/strings.po
Normal file
1919
localization/hu/strings.po
Normal file
File diff suppressed because it is too large
Load Diff
49
localization/hu/userfield_types.po
Normal file
49
localization/hu/userfield_types.po
Normal file
@@ -0,0 +1,49 @@
|
||||
# Translators:
|
||||
# Márk Kökény <oregapamgroup@gmail.com>, 2019
|
||||
# Ádám Kovács <kovacsadam07@outlook.hu>, 2019
|
||||
# Gábor Szellő <gabor.szello@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:43+0000\n"
|
||||
"Last-Translator: Gábor Szellő <gabor.szello@gmail.com>, 2020\n"
|
||||
"Language-Team: Hungarian (https://www.transifex.com/grocy/teams/93189/hu/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: hu\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Domain: grocy/userfield_types\n"
|
||||
|
||||
msgid "text-single-line"
|
||||
msgstr "egysoros szöveg"
|
||||
|
||||
msgid "text-multi-line"
|
||||
msgstr "többsoros szöveg"
|
||||
|
||||
msgid "number-integral"
|
||||
msgstr "egész szám"
|
||||
|
||||
msgid "number-decimal"
|
||||
msgstr "decimális szám"
|
||||
|
||||
msgid "date"
|
||||
msgstr "dátum"
|
||||
|
||||
msgid "datetime"
|
||||
msgstr "dátumidőpont"
|
||||
|
||||
msgid "checkbox"
|
||||
msgstr "jelölőnégyzet"
|
||||
|
||||
msgid "preset-list"
|
||||
msgstr "előre beállított lista"
|
||||
|
||||
msgid "preset-checklist"
|
||||
msgstr "előre beállított jelölőlista"
|
||||
|
||||
msgid "link"
|
||||
msgstr "link"
|
@@ -1,6 +1,5 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Matteo Piotto <matteo.piotto@welaika.com>, 2019
|
||||
# Antonino Ursino <ninus_@libero.it>, 2019
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -8,7 +7,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Matteo Piotto <matteo.piotto@welaika.com>, 2019\n"
|
||||
"Last-Translator: Antonino Ursino <ninus_@libero.it>, 2019\n"
|
||||
"Language-Team: Italian (https://www.transifex.com/grocy/teams/93189/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -18,16 +17,19 @@ msgstr ""
|
||||
"X-Domain: grocy/chore_types\n"
|
||||
|
||||
msgid "manually"
|
||||
msgstr "Manualmente"
|
||||
msgstr "manualmente"
|
||||
|
||||
msgid "dynamic-regular"
|
||||
msgstr "Regolatore dinamico"
|
||||
msgstr "dinamica regolare"
|
||||
|
||||
msgid "daily"
|
||||
msgstr "Giornalmente"
|
||||
msgstr "giornalmente"
|
||||
|
||||
msgid "weekly"
|
||||
msgstr "Settimanalmente"
|
||||
msgstr "settimanalmente"
|
||||
|
||||
msgid "monthly"
|
||||
msgstr "Mensilmente"
|
||||
msgstr "mensilmente"
|
||||
|
||||
msgid "yearly"
|
||||
msgstr "annualmente"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# Translators:
|
||||
# Sergio Zampello <seriotv88@gmail.com>, 2019
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Antonino Ursino <ninus_@libero.it>, 2019
|
||||
# Antonino Ursino <ninus_@libero.it>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -9,7 +9,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Antonino Ursino <ninus_@libero.it>, 2019\n"
|
||||
"Last-Translator: Antonino Ursino <ninus_@libero.it>, 2020\n"
|
||||
"Language-Team: Italian (https://www.transifex.com/grocy/teams/93189/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -162,9 +162,6 @@ msgstr "Tedesco"
|
||||
msgid "Italian"
|
||||
msgstr "Italiano"
|
||||
|
||||
msgid "Demo in different language"
|
||||
msgstr "Demo in lingua diversa"
|
||||
|
||||
msgid "This is the note content of the recipe ingredient"
|
||||
msgstr "Questo è il contenuto della nota dell'ingrediente della ricetta"
|
||||
|
||||
@@ -316,3 +313,56 @@ msgstr "Danese"
|
||||
|
||||
msgid "Dutch"
|
||||
msgstr "Olandese"
|
||||
|
||||
msgid "Norwegian"
|
||||
msgstr "Norvegese"
|
||||
|
||||
msgid "Demo"
|
||||
msgstr "Dimostrazione"
|
||||
|
||||
msgid "Stable version"
|
||||
msgstr "Versione stabile"
|
||||
|
||||
msgid "Preview version"
|
||||
msgstr "Versione di anteprima"
|
||||
|
||||
msgid "current release"
|
||||
msgstr "versione attuale"
|
||||
|
||||
msgid "not yet released"
|
||||
msgstr "non ancora pubblicata"
|
||||
|
||||
msgid "Portuguese (Brazil)"
|
||||
msgstr "Portoghese (Brasile)"
|
||||
|
||||
msgid "This is a note"
|
||||
msgstr "Questa è una nota"
|
||||
|
||||
msgid "Freezer"
|
||||
msgstr "Congelatore"
|
||||
|
||||
msgid "Hungarian"
|
||||
msgstr "Ungherese"
|
||||
|
||||
msgid "Slovak"
|
||||
msgstr "Slovacco"
|
||||
|
||||
msgid "Czech"
|
||||
msgstr "Ceco"
|
||||
|
||||
msgid "Portuguese (Portugal)"
|
||||
msgstr "Portoghese (Portogallo)"
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket1"
|
||||
msgstr "DemoSupermercato1"
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket2"
|
||||
msgstr "DemoSupermercato2"
|
||||
|
||||
msgid "Japanese"
|
||||
msgstr "Giapponese"
|
||||
|
||||
msgid "Chinese (Taiwan)"
|
||||
msgstr "Cinese (Taiwan)"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# Translators:
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Antonino Ursino <ninus_@libero.it>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -7,7 +7,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2019\n"
|
||||
"Last-Translator: Antonino Ursino <ninus_@libero.it>, 2020\n"
|
||||
"Language-Team: Italian (https://www.transifex.com/grocy/teams/93189/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -17,13 +17,28 @@ msgstr ""
|
||||
"X-Domain: grocy/stock_transaction_types\n"
|
||||
|
||||
msgid "purchase"
|
||||
msgstr "Acquista"
|
||||
msgstr "comprare"
|
||||
|
||||
msgid "transfer_from"
|
||||
msgstr "trasferito_da"
|
||||
|
||||
msgid "transfer_to"
|
||||
msgstr "trasferito_a"
|
||||
|
||||
msgid "consume"
|
||||
msgstr "Consumare"
|
||||
msgstr "consumare"
|
||||
|
||||
msgid "inventory-correction"
|
||||
msgstr "Correzione dell'inventario"
|
||||
msgstr "rettifica-inventario"
|
||||
|
||||
msgid "product-opened"
|
||||
msgstr "Prodotto aperto"
|
||||
msgstr "prodotto-aperto"
|
||||
|
||||
msgid "stock-edit-old"
|
||||
msgstr "modifica-dispensa-vecchio"
|
||||
|
||||
msgid "stock-edit-new"
|
||||
msgstr "modifica-dispensa-nuovo"
|
||||
|
||||
msgid "self-production"
|
||||
msgstr "auto-produzione"
|
||||
|
@@ -2,8 +2,8 @@
|
||||
# Sergio Zampello <seriotv88@gmail.com>, 2019
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2019
|
||||
# Matteo Piotto <matteo.piotto@welaika.com>, 2019
|
||||
# Matteo Parolin <matteoparolin99@gmail.com>, 2019
|
||||
# Antonino Ursino <ninus_@libero.it>, 2019
|
||||
# 42d76af3cd20bc399c7e8a413695959f, 2019
|
||||
# Antonino Ursino <ninus_@libero.it>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -11,7 +11,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Antonino Ursino <ninus_@libero.it>, 2019\n"
|
||||
"Last-Translator: Antonino Ursino <ninus_@libero.it>, 2020\n"
|
||||
"Language-Team: Italian (https://www.transifex.com/grocy/teams/93189/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -21,7 +21,7 @@ msgstr ""
|
||||
"X-Domain: grocy/strings\n"
|
||||
|
||||
msgid "Stock overview"
|
||||
msgstr "Panoramica della dispensa"
|
||||
msgstr "Riepilogo della dispensa"
|
||||
|
||||
msgid "%s product expires"
|
||||
msgid_plural "%s products expiring"
|
||||
@@ -41,7 +41,8 @@ msgstr[1] "%s prodotti sono già scaduti"
|
||||
msgid "%s product is below defined min. stock amount"
|
||||
msgid_plural "%s products are below defined min. stock amount"
|
||||
msgstr[0] "%s prodotto sotto la quantità minima di dispensa definita"
|
||||
msgstr[1] "%s prodotti sono sotto la quantità minima di dispensa definita"
|
||||
msgstr[1] ""
|
||||
"%s prodotti sono al di sotto della quantità minima di dispensa definita"
|
||||
|
||||
msgid "Product"
|
||||
msgstr "Prodotto"
|
||||
@@ -87,6 +88,9 @@ msgstr "Dati batterie"
|
||||
msgid "Locations"
|
||||
msgstr "Posizioni"
|
||||
|
||||
msgid "Stores"
|
||||
msgstr "Negozi"
|
||||
|
||||
msgid "Quantity units"
|
||||
msgstr "Unità di misura"
|
||||
|
||||
@@ -225,6 +229,9 @@ msgstr "Fattore di conversione tra unità di acquisto e di dispensa"
|
||||
msgid "Create location"
|
||||
msgstr "Aggiungi posizione"
|
||||
|
||||
msgid "Create store"
|
||||
msgstr "Crea negozio"
|
||||
|
||||
msgid "Create quantity unit"
|
||||
msgstr "Aggiungi unità di misura"
|
||||
|
||||
@@ -258,6 +265,9 @@ msgstr "Modifica prodotto"
|
||||
msgid "Edit location"
|
||||
msgstr "Modifica posizione"
|
||||
|
||||
msgid "Edit store"
|
||||
msgstr "Modifica negozio"
|
||||
|
||||
msgid "Record data"
|
||||
msgstr "Registra dati"
|
||||
|
||||
@@ -335,6 +345,9 @@ msgstr "Sei sicuro di voler eliminare il prodotto \"%s\"?"
|
||||
msgid "Are you sure to delete location \"%s\"?"
|
||||
msgstr "Sei sicuro di voler eliminare la posizione \"%s\"?"
|
||||
|
||||
msgid "Are you sure to delete store \"%s\"?"
|
||||
msgstr "Sei sicuro di voler eliminare il negozio \"%s\"?"
|
||||
|
||||
msgid "Manage API keys"
|
||||
msgstr "Gestisci le chiavi API"
|
||||
|
||||
@@ -978,12 +991,12 @@ msgid "Mark %1$s of %2$s as open"
|
||||
msgstr "Segna %1$s di %2$s come aperti"
|
||||
|
||||
msgid ""
|
||||
"When a product was marked as opened, the best before date will be replaced "
|
||||
"by today + this amount of days (a value of 0 disables this)"
|
||||
"When this product was marked as opened, the best before date will be "
|
||||
"replaced by today + this amount of days (a value of 0 disables this)"
|
||||
msgstr ""
|
||||
"Quando un prodotto è stato contrassegnato come aperto, la data di scadenza "
|
||||
"verrà sostituita con oggi + questo numero di giorni (un valore di 0 lo "
|
||||
"disabilita)"
|
||||
"Quando questo prodotto è stato contrassegnato come aperto, la data di "
|
||||
"scadenza verrà sostituita con: \"oggi\" + \"questo numero di giorni\" (il "
|
||||
"valore 0 disabilita)"
|
||||
|
||||
msgid "Default best before days after opened"
|
||||
msgstr "Giorni di scadenza predefiniti dopo l'apertura"
|
||||
@@ -994,9 +1007,6 @@ msgstr "Segnato %1$s di %2$s come aperti"
|
||||
msgid "Mark as opened"
|
||||
msgstr "Segna come aperto"
|
||||
|
||||
msgid "Expires on %1$s; Bought on %2$s"
|
||||
msgstr "Scade il %1$s; Comprato il %2$s"
|
||||
|
||||
msgid "Not opened"
|
||||
msgstr "Non aperto"
|
||||
|
||||
@@ -1120,6 +1130,9 @@ msgstr ""
|
||||
msgid "You have to select a location"
|
||||
msgstr "Devi selezionare una posizione"
|
||||
|
||||
msgid "You have to select a store"
|
||||
msgstr "Devi selezionare un negozio"
|
||||
|
||||
msgid "List"
|
||||
msgstr "Elenco"
|
||||
|
||||
@@ -1153,7 +1166,7 @@ msgstr "Informazioni di sistema"
|
||||
msgid "Changelog"
|
||||
msgstr "Registro delle modifiche"
|
||||
|
||||
msgid "will be multiplied a factor of %1$s to get %2$s"
|
||||
msgid "will be multiplied by a factor of %1$s to get %2$s"
|
||||
msgstr "verrà moltiplicato per un fattore di %1$s per ottenere %2$s"
|
||||
|
||||
msgid "The given date is earlier than today, are you sure?"
|
||||
@@ -1312,6 +1325,9 @@ msgstr "Non abbastanza in dispensa"
|
||||
msgid "Expiring soon days"
|
||||
msgstr "In scadenza tra pochi giorni"
|
||||
|
||||
msgid "Default location"
|
||||
msgstr "Posizione predefinita"
|
||||
|
||||
msgid "Default amount for purchase"
|
||||
msgstr "Quantità predefinita per l'acquisto"
|
||||
|
||||
@@ -1342,7 +1358,7 @@ msgstr "Consumare %1$s di %2$s"
|
||||
msgid "Meal plan"
|
||||
msgstr "Piano dei pasti"
|
||||
|
||||
msgid "Add recipe to %s"
|
||||
msgid "Add recipe on %s"
|
||||
msgstr "Aggiungi ricetta a %s"
|
||||
|
||||
msgid "%s serving"
|
||||
@@ -1652,28 +1668,344 @@ msgid "Added %1$s of %2$s to the shopping list \"%3$s\""
|
||||
msgstr "Aggiunti %1$s di %2$s alla lista della spesa \"%3$s\""
|
||||
|
||||
msgid "Output"
|
||||
msgstr ""
|
||||
msgstr "Uscita"
|
||||
|
||||
msgid "Energy (kcal)"
|
||||
msgstr ""
|
||||
msgstr "Energia (kcal)"
|
||||
|
||||
msgid "Per stock quantity unit"
|
||||
msgstr ""
|
||||
msgstr "Unità quantitativa per dispensa"
|
||||
|
||||
msgid "Barcode scanner testing"
|
||||
msgstr ""
|
||||
msgstr "Test dello scanner di codici a barre"
|
||||
|
||||
msgid "Expected barcode"
|
||||
msgstr ""
|
||||
msgstr "Atteso Codice a barre"
|
||||
|
||||
msgid "Scan field"
|
||||
msgstr ""
|
||||
msgstr "Campo di scansione"
|
||||
|
||||
msgid "Scanned barcodes"
|
||||
msgstr ""
|
||||
msgstr "Codici a barre scansionati"
|
||||
|
||||
msgid "Hit"
|
||||
msgstr ""
|
||||
msgstr "Scansionato"
|
||||
|
||||
msgid "Miss"
|
||||
msgstr "Non scansionato"
|
||||
|
||||
msgid "Display recipe"
|
||||
msgstr "Mostra la ricetta"
|
||||
|
||||
msgid "Accumulate sub products min. stock amount"
|
||||
msgstr "Quantità in dispensa minima di sottoprodotti accumulati"
|
||||
|
||||
msgid ""
|
||||
"If enabled, the min. stock amount of sub products will be accumulated into "
|
||||
"this product, means the sub product will never be \"missing\", only this "
|
||||
"product"
|
||||
msgstr ""
|
||||
"Se abilitato,. la quantità min. di sottoprodotti sarà accumulata in questo "
|
||||
"prodotto, il che significa che il sottoprodotto non sarà mai \"mancante\", "
|
||||
"solo questo prodotto"
|
||||
|
||||
msgid "Are you sure to remove this conversion?"
|
||||
msgstr "Sei sicuro di rimuovere questa conversione?"
|
||||
|
||||
msgid "Unit price"
|
||||
msgstr "Prezzo unitario"
|
||||
|
||||
msgid "Total price"
|
||||
msgstr "Prezzo totale"
|
||||
|
||||
msgid "in %s and based on the purchase quantity unit"
|
||||
msgstr "in %se basato sull'unità quantitativa di acquisto"
|
||||
|
||||
msgid "Unlimited"
|
||||
msgstr "Illimitato"
|
||||
|
||||
msgid "Clear"
|
||||
msgstr "Liberato"
|
||||
|
||||
msgid "Are you sure to remove the included recipe \"%s\"?"
|
||||
msgstr "Rimuovere la ricetta inclusa \"%s\"?"
|
||||
|
||||
msgid "Period interval"
|
||||
msgstr "Intervallo di tempo"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore should only be scheduled every "
|
||||
"%s days"
|
||||
msgstr ""
|
||||
"Questo significa che la prossima esecuzione di questa faccenda dovrebbe "
|
||||
"essere programmata solo ogni %s giorni"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore should only be scheduled every "
|
||||
"%s weeks"
|
||||
msgstr ""
|
||||
"Questo significa che la prossima esecuzione di questa faccenda dovrebbe "
|
||||
"essere programmata solo ogni %s settimane"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore should only be scheduled every "
|
||||
"%s months"
|
||||
msgstr ""
|
||||
"Questo significa che la prossima esecuzione di questa faccenda dovrebbe "
|
||||
"essere programmata solo ogni %s mesi"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore is scheduled 1 year after the "
|
||||
"last execution"
|
||||
msgstr ""
|
||||
"Questo significa che la prossima esecuzione di questa faccenda è prevista 1 "
|
||||
"anno dopo l'ultima esecuzione"
|
||||
|
||||
msgid ""
|
||||
"This means the next execution of this chore should only be scheduled every "
|
||||
"%s years"
|
||||
msgstr ""
|
||||
"Questo significa che la prossima esecuzione di questa faccenda dovrebbe "
|
||||
"essere programmata solo ogni %s anni"
|
||||
|
||||
msgid "Transfer"
|
||||
msgstr "Trasferire"
|
||||
|
||||
msgid "From location"
|
||||
msgstr "Dalla posizione"
|
||||
|
||||
msgid "To location"
|
||||
msgstr "Alla posizione"
|
||||
|
||||
msgid "There are no units available at this location"
|
||||
msgstr "Non ci sono unità disponibili in questa posizione"
|
||||
|
||||
msgid "Amount: %1$s; Expires on %2$s; Bought on %3$s"
|
||||
msgstr "Quantità: %1$s; Scade il: %2$s; Comprato il: %3$s"
|
||||
|
||||
msgid "Transfered %1$s of %2$s from %3$s to %4$s"
|
||||
msgstr "Trasferiti %1$s di %2$s da %3$s a %4$s"
|
||||
|
||||
msgid "Show stock entries"
|
||||
msgstr "Mostra voci di dispensa"
|
||||
|
||||
msgid "Stock entries"
|
||||
msgstr "Voci di dispensa"
|
||||
|
||||
msgid "Best before date"
|
||||
msgstr "Data di scadenza"
|
||||
|
||||
msgid "Purchased date"
|
||||
msgstr "Data di acquisto"
|
||||
|
||||
msgid "Consume all %s for this stock entry"
|
||||
msgstr "Consuma tutte le %s per questa voce di dispensa"
|
||||
|
||||
msgid "The amount cannot be lower than %1$s"
|
||||
msgstr "La quantità non può essere inferiore a %1$s"
|
||||
|
||||
msgid "Stock entry successfully updated"
|
||||
msgstr "Voce di dispensa aggiornata correttamente"
|
||||
|
||||
msgid "Edit stock entry"
|
||||
msgstr "Modifica voce di dispensa"
|
||||
|
||||
msgid ""
|
||||
"Camera access is only possible when supported and allowed by your browser "
|
||||
"and when grocy is served via a secure (https://) connection"
|
||||
msgstr ""
|
||||
"L'accesso alla videocamera è possibile solo se supportato e consentito dal "
|
||||
"browser e quando grocy è connesso tramite una connessione sicura (https://)"
|
||||
|
||||
msgid "Keep screen on"
|
||||
msgstr "Mantieni lo schermo acceso"
|
||||
|
||||
msgid "Keep screen on while displaying a \"fullscreen-card\""
|
||||
msgstr ""
|
||||
"Mantieni lo schermo acceso mentre visualizzi una \"scheda a schermo intero\""
|
||||
|
||||
msgid "A purchased date is required"
|
||||
msgstr "È richiesta la data di acquisto"
|
||||
|
||||
msgid ""
|
||||
"When a product is selected, one unit (per serving in purchase quantity unit)"
|
||||
" will be added to stock on consuming this recipe"
|
||||
msgstr ""
|
||||
"Quando viene selezionato un prodotto, un'unità (per porzione nell'unità di "
|
||||
"quantità di acquisto) verrà aggiunta alla dispensa consumando questa ricetta"
|
||||
" "
|
||||
|
||||
msgid "Produces product"
|
||||
msgstr "Produce prodotto"
|
||||
|
||||
msgid "This booking cannot be undone"
|
||||
msgstr "Questa prenotazione non può essere annullata"
|
||||
|
||||
msgid "Booking does not exist or was already undone"
|
||||
msgstr "La prenotazione non esiste o è stata già annullata"
|
||||
|
||||
msgid "Are you sure to delete API key \"%s\"?"
|
||||
msgstr "Eliminare la chiave API \"%s\"?"
|
||||
|
||||
msgid "Add note"
|
||||
msgstr "Aggiungi nota"
|
||||
|
||||
msgid "Add note on %s"
|
||||
msgstr "Aggiungi nota a %s"
|
||||
|
||||
msgid "per day"
|
||||
msgstr "al giorno"
|
||||
|
||||
msgid "Compact view"
|
||||
msgstr "Vista compatta"
|
||||
|
||||
msgid "Normal view"
|
||||
msgstr "Vista normale"
|
||||
|
||||
msgid "Only undone items"
|
||||
msgstr "Solo oggetti annullati"
|
||||
|
||||
msgid "Add product"
|
||||
msgstr "Aggiungi prodotto"
|
||||
|
||||
msgid "Add product on %s"
|
||||
msgstr "Aggiungi prodotto a %s"
|
||||
|
||||
msgid "Consume all ingredients needed by this weeks recipes or products"
|
||||
msgstr ""
|
||||
"Consuma tutti gli ingredienti necessari per ricette o prodotti di questa "
|
||||
"settimana"
|
||||
|
||||
msgid "Meal plan recipe"
|
||||
msgstr "Ricetta del Piano dei pasti"
|
||||
|
||||
msgid "Meal plan note"
|
||||
msgstr "Nota del Piano dei pasti"
|
||||
|
||||
msgid "Meal plan product"
|
||||
msgstr "Prodotto del Piano dei pasti"
|
||||
|
||||
msgid "Scan mode"
|
||||
msgstr "Modalità di scansione"
|
||||
|
||||
msgid "on"
|
||||
msgstr "accesa"
|
||||
|
||||
msgid "off"
|
||||
msgstr "spenta"
|
||||
|
||||
msgid ""
|
||||
"Scan mode is on but not all required fields could be populated automatically"
|
||||
msgstr ""
|
||||
"La modalità di scansione è attiva ma non è possibile compilare "
|
||||
"automaticamente tutti i campi richiesti"
|
||||
|
||||
msgid "Is freezer"
|
||||
msgstr "È congelato"
|
||||
|
||||
msgid ""
|
||||
"When moving products from/to a freezer location, the products best before "
|
||||
"date is automatically adjusted according to the product settings"
|
||||
msgstr ""
|
||||
"Quando si spostano i prodotti da/verso un congelatore, la data di scadenza "
|
||||
"dei prodotti viene regolata automaticamente in base alle impostazioni del "
|
||||
"prodotto"
|
||||
|
||||
msgid ""
|
||||
"On moving this product to a freezer location (so when freezing it), the best"
|
||||
" before date will be replaced by today + this amount of days"
|
||||
msgstr ""
|
||||
"Spostando questo prodotto in una posizione di congelatore (quindi quando lo "
|
||||
"si congela), la data di scadenza verrà sostituita con: \"oggi\" + \"questa "
|
||||
"quantità di giorni\""
|
||||
|
||||
msgid "Default best before days after freezing"
|
||||
msgstr "Data di scadenza predefinita dopo il congelamento"
|
||||
|
||||
msgid ""
|
||||
"On moving this product from a freezer location (so when thawing it), the "
|
||||
"best before date will be replaced by today + this amount of days"
|
||||
msgstr ""
|
||||
"Quando si sposta questo prodotto da una posizione del congelatore (quindi "
|
||||
"quando lo si scongela), la data di scadenza verrà sostituita con: \"oggi\" +"
|
||||
" \"questa quantità di giorni\""
|
||||
|
||||
msgid "Default best before days after thawing"
|
||||
msgstr "Data di scadenza predefinita dopo lo scongelamento"
|
||||
|
||||
msgid "This cannot be the same as the \"From\" location"
|
||||
msgstr "Non può essere uguale alla posizione \"Da\""
|
||||
|
||||
msgid "Thawed"
|
||||
msgstr "Scongelato"
|
||||
|
||||
msgid "Frozen"
|
||||
msgstr "Congelato"
|
||||
|
||||
msgid "Are you sure to delete userentity \"%s\"?"
|
||||
msgstr "Sei sicuro di voler eliminare l'entità utente \"%s\"?"
|
||||
|
||||
msgid "Shopping list settings"
|
||||
msgstr "Impostazioni Lista della Spesa"
|
||||
|
||||
msgid "Show a month-view calendar"
|
||||
msgstr "Mostra un calendario con vista mensile"
|
||||
|
||||
msgid "Don't automatically switch to the compact view on mobile devices"
|
||||
msgstr ""
|
||||
"Non passare automaticamente alla visualizzazione compatta sui dispositivi "
|
||||
"mobili"
|
||||
|
||||
msgid "Edit note on %s"
|
||||
msgstr "Modifica nota a %s"
|
||||
|
||||
msgid "Edit product on %s"
|
||||
msgstr "Modifica prodotto a %s"
|
||||
|
||||
msgid "Edit recipe on %s"
|
||||
msgstr "Modifica ricetta a %s"
|
||||
|
||||
msgid "Desired servings"
|
||||
msgstr "Porzioni desiderate"
|
||||
|
||||
msgid "Base: %s"
|
||||
msgstr "Base: %s"
|
||||
|
||||
msgid "Recipes settings"
|
||||
msgstr "Impostazioni Ricette"
|
||||
|
||||
msgid "Recipe card"
|
||||
msgstr "Scheda ricetta"
|
||||
|
||||
msgid "Group ingredients by their product group"
|
||||
msgstr "Raggruppa gli ingredienti per il loro gruppo di prodotti"
|
||||
|
||||
msgid "Unknown store"
|
||||
msgstr "Negozio sconosciuto"
|
||||
|
||||
msgid "Store"
|
||||
msgstr "Negozio"
|
||||
|
||||
msgid "Transaction successfully undone"
|
||||
msgstr "Transazione annullata correttamente"
|
||||
|
||||
msgid "Default store"
|
||||
msgstr "Negozio predefinito"
|
||||
|
||||
msgid "Consume this stock entry"
|
||||
msgstr "Consuma questa voce di dispensa"
|
||||
|
||||
msgid "Mark this stock entry as open"
|
||||
msgstr "Segna questa voce di dispensa come aperta"
|
||||
|
||||
msgid "Mark this item as done"
|
||||
msgstr "Segna questo elemento come fatto"
|
||||
|
||||
msgid "Edit this item"
|
||||
msgstr "Modifica questo elemento"
|
||||
|
||||
msgid "Delete this item"
|
||||
msgstr "Elimina questo elemento"
|
||||
|
||||
msgid "Show an icon if the product is already on the shopping list"
|
||||
msgstr "Mostra un'icona se il prodotto è già nella lista della spesa"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# Translators:
|
||||
# Antonino Ursino <ninus_@libero.it>, 2019
|
||||
# Antonino Ursino <ninus_@libero.it>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
@@ -7,7 +7,7 @@ msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:43+0000\n"
|
||||
"Last-Translator: Antonino Ursino <ninus_@libero.it>, 2019\n"
|
||||
"Last-Translator: Antonino Ursino <ninus_@libero.it>, 2020\n"
|
||||
"Language-Team: Italian (https://www.transifex.com/grocy/teams/93189/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -44,4 +44,4 @@ msgid "preset-checklist"
|
||||
msgstr "Lista di controllo predefinita"
|
||||
|
||||
msgid "link"
|
||||
msgstr "collegamento"
|
||||
msgstr "Collegamento"
|
||||
|
29
localization/ja/chore_assignment_types.po
Normal file
29
localization/ja/chore_assignment_types.po
Normal file
@@ -0,0 +1,29 @@
|
||||
# Translators:
|
||||
# EbXpJ6bp <ebxpj6bp@outlook.jp>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-09-17 10:45+0000\n"
|
||||
"Last-Translator: EbXpJ6bp <ebxpj6bp@outlook.jp>, 2020\n"
|
||||
"Language-Team: Japanese (https://www.transifex.com/grocy/teams/93189/ja/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ja\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Domain: grocy/chore_assignment_types\n"
|
||||
|
||||
msgid "no-assignment"
|
||||
msgstr "割り当てなし"
|
||||
|
||||
msgid "who-least-did-first"
|
||||
msgstr "誰が最後にやったか"
|
||||
|
||||
msgid "random"
|
||||
msgstr "ランダム"
|
||||
|
||||
msgid "in-alphabetical-order"
|
||||
msgstr "アルファベット順"
|
35
localization/ja/chore_period_types.po
Normal file
35
localization/ja/chore_period_types.po
Normal file
@@ -0,0 +1,35 @@
|
||||
# Translators:
|
||||
# EbXpJ6bp <ebxpj6bp@outlook.jp>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: EbXpJ6bp <ebxpj6bp@outlook.jp>, 2020\n"
|
||||
"Language-Team: Japanese (https://www.transifex.com/grocy/teams/93189/ja/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ja\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Domain: grocy/chore_types\n"
|
||||
|
||||
msgid "manually"
|
||||
msgstr "手動"
|
||||
|
||||
msgid "dynamic-regular"
|
||||
msgstr "ダイナミックレギュラー"
|
||||
|
||||
msgid "daily"
|
||||
msgstr "毎日"
|
||||
|
||||
msgid "weekly"
|
||||
msgstr "毎週"
|
||||
|
||||
msgid "monthly"
|
||||
msgstr "毎月"
|
||||
|
||||
msgid "yearly"
|
||||
msgstr "毎年"
|
45
localization/ja/component_translations.po
Normal file
45
localization/ja/component_translations.po
Normal file
@@ -0,0 +1,45 @@
|
||||
# Translators:
|
||||
# EbXpJ6bp <ebxpj6bp@outlook.jp>, 2020
|
||||
# Bernd Bestel <bernd@berrnd.de>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: Bernd Bestel <bernd@berrnd.de>, 2020\n"
|
||||
"Language-Team: Japanese (https://www.transifex.com/grocy/teams/93189/ja/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ja\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Domain: grocy/component_translations\n"
|
||||
|
||||
msgid "timeago_locale"
|
||||
msgstr "ja"
|
||||
|
||||
msgid "timeago_nan"
|
||||
msgstr "約 NaN 年"
|
||||
|
||||
msgid "moment_locale"
|
||||
msgstr "ja"
|
||||
|
||||
msgid "datatables_localization"
|
||||
msgstr ""
|
||||
"{\"sEmptyTable\":\"テーブルにデータがありません\",\"sInfo\":\" _TOTAL_ 件中 _START_ から _END_"
|
||||
" まで表示\",\"sInfoEmpty\":\" 0 件中 0 から 0 まで表示\",\"sInfoFiltered\":\"(全 _MAX_ "
|
||||
"件より抽出)\",\"sInfoPostFix\":\"\",\"sInfoThousands\":\",\",\"sLengthMenu\":\"_MENU_"
|
||||
" "
|
||||
"件表示\",\"sLoadingRecords\":\"読み込み中...\",\"sProcessing\":\"処理中...\",\"sSearch\":\"検索:\",\"sZeroRecords\":\"一致するレコードがありません\",\"oPaginate\":{\"sFirst\":\"先頭\",\"sLast\":\"最終\",\"sNext\":\"次\",\"sPrevious\":\"前\"},\"oAria\":{\"sSortAscending\":\":"
|
||||
" 列を昇順に並べ替えるにはアクティブにする\",\"sSortDescending\":\": 列を降順に並べ替えるにはアクティブにする\"}}"
|
||||
|
||||
msgid "summernote_locale"
|
||||
msgstr "ja-JP"
|
||||
|
||||
msgid "fullcalendar_locale"
|
||||
msgstr "ja"
|
||||
|
||||
msgid "bootstrap-select_locale"
|
||||
msgstr "ja_JP"
|
352
localization/ja/demo_data.po
Normal file
352
localization/ja/demo_data.po
Normal file
@@ -0,0 +1,352 @@
|
||||
# Translators:
|
||||
# EbXpJ6bp <ebxpj6bp@outlook.jp>, 2020
|
||||
# 鳥山 陽平 <kagemomiji@gmail.com>, 2020
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-05-01T17:59:17+00:00\n"
|
||||
"PO-Revision-Date: 2019-05-01 17:42+0000\n"
|
||||
"Last-Translator: 鳥山 陽平 <kagemomiji@gmail.com>, 2020\n"
|
||||
"Language-Team: Japanese (https://www.transifex.com/grocy/teams/93189/ja/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ja\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Domain: grocy/demo_data\n"
|
||||
|
||||
msgid "Cookies"
|
||||
msgstr "クッキー"
|
||||
|
||||
msgid "Chocolate"
|
||||
msgstr "チョコレート"
|
||||
|
||||
msgid "Pantry"
|
||||
msgstr "パントリー"
|
||||
|
||||
msgid "Candy cupboard"
|
||||
msgstr "お菓子棚"
|
||||
|
||||
msgid "Tinned food cupboard"
|
||||
msgstr "缶詰の保管棚"
|
||||
|
||||
msgid "Fridge"
|
||||
msgstr "冷蔵庫"
|
||||
|
||||
msgid "Piece"
|
||||
msgid_plural "Pieces"
|
||||
msgstr[0] "ピース"
|
||||
|
||||
msgid "Pack"
|
||||
msgid_plural "Packs"
|
||||
msgstr[0] "パック"
|
||||
|
||||
msgid "Glass"
|
||||
msgid_plural "Glasses"
|
||||
msgstr[0] "眼鏡"
|
||||
|
||||
msgid "Tin"
|
||||
msgid_plural "Tins"
|
||||
msgstr[0] "小缶"
|
||||
|
||||
msgid "Can"
|
||||
msgid_plural "Cans"
|
||||
msgstr[0] "カン"
|
||||
|
||||
msgid "Bunch"
|
||||
msgid_plural "Bunches"
|
||||
msgstr[0] "房"
|
||||
|
||||
msgid "Gummy bears"
|
||||
msgstr "グミベア"
|
||||
|
||||
msgid "Crisps"
|
||||
msgstr "チップス"
|
||||
|
||||
msgid "Eggs"
|
||||
msgstr "卵"
|
||||
|
||||
msgid "Noodles"
|
||||
msgstr "麺類"
|
||||
|
||||
msgid "Pickles"
|
||||
msgstr "ピクルス"
|
||||
|
||||
msgid "Gulash soup"
|
||||
msgstr "グヤーシュ"
|
||||
|
||||
msgid "Yogurt"
|
||||
msgstr "ヨーグルト"
|
||||
|
||||
msgid "Cheese"
|
||||
msgstr "チーズ"
|
||||
|
||||
msgid "Cold cuts"
|
||||
msgstr "コールドカット"
|
||||
|
||||
msgid "Paprika"
|
||||
msgstr "パプリカ"
|
||||
|
||||
msgid "Cucumber"
|
||||
msgstr "きゅうり"
|
||||
|
||||
msgid "Radish"
|
||||
msgstr "だいこん"
|
||||
|
||||
msgid "Tomato"
|
||||
msgstr "トマト"
|
||||
|
||||
msgid "Changed towels in the bathroom"
|
||||
msgstr "浴室のタオルを変更"
|
||||
|
||||
msgid "Cleaned the kitchen floor"
|
||||
msgstr "キッチンの床掃除"
|
||||
|
||||
msgid "Warranty ends"
|
||||
msgstr "保証終了"
|
||||
|
||||
msgid "TV remote control"
|
||||
msgstr "TV リモコン"
|
||||
|
||||
msgid "Alarm clock"
|
||||
msgstr "時計のアラーム"
|
||||
|
||||
msgid "Heat remote control"
|
||||
msgstr "ヒータのリモコン"
|
||||
|
||||
msgid "Lawn mowed in the garden"
|
||||
msgstr "庭の芝刈り"
|
||||
|
||||
msgid "Some good snacks"
|
||||
msgstr "おやつ"
|
||||
|
||||
msgid "Pizza dough"
|
||||
msgstr "ピザ生地"
|
||||
|
||||
msgid "Sieved tomatoes"
|
||||
msgstr "トマトペースト"
|
||||
|
||||
msgid "Salami"
|
||||
msgstr "サラミ"
|
||||
|
||||
msgid "Toast"
|
||||
msgstr "トースト"
|
||||
|
||||
msgid "Minced meat"
|
||||
msgstr "ひき肉"
|
||||
|
||||
msgid "Pizza"
|
||||
msgstr "ピザ"
|
||||
|
||||
msgid "Spaghetti bolognese"
|
||||
msgstr "ボロネーゼスパゲッティ"
|
||||
|
||||
msgid "Sandwiches"
|
||||
msgstr "サンドイッチ"
|
||||
|
||||
msgid "English"
|
||||
msgstr "英語"
|
||||
|
||||
msgid "German"
|
||||
msgstr "ドイツ語"
|
||||
|
||||
msgid "Italian"
|
||||
msgstr "イタリア語"
|
||||
|
||||
msgid "This is the note content of the recipe ingredient"
|
||||
msgstr "レシピの材料のノート"
|
||||
|
||||
msgid "Demo User"
|
||||
msgstr "デモユーザー"
|
||||
|
||||
msgid "Gram"
|
||||
msgid_plural "Grams"
|
||||
msgstr[0] "グラム"
|
||||
|
||||
msgid "Flour"
|
||||
msgstr "小麦粉"
|
||||
|
||||
msgid "Pancakes"
|
||||
msgstr "パンケーキ"
|
||||
|
||||
msgid "Sugar"
|
||||
msgstr "砂糖"
|
||||
|
||||
msgid "Home"
|
||||
msgstr "家"
|
||||
|
||||
msgid "Life"
|
||||
msgstr "生活"
|
||||
|
||||
msgid "Projects"
|
||||
msgstr "プロジェクト"
|
||||
|
||||
msgid "Repair the garage door"
|
||||
msgstr "ガレージのドアを修復"
|
||||
|
||||
msgid "Fork and improve grocy"
|
||||
msgstr "grocy をフォークして改善"
|
||||
|
||||
msgid "Find a solution for what to do when I forget the door keys"
|
||||
msgstr "ドアの鍵を忘れたときの解決策を見つける"
|
||||
|
||||
msgid "Sweets"
|
||||
msgstr "お菓子"
|
||||
|
||||
msgid "Bakery products"
|
||||
msgstr "パン食品"
|
||||
|
||||
msgid "Tinned food"
|
||||
msgstr "缶詰"
|
||||
|
||||
msgid "Butchery products"
|
||||
msgstr "肉食品"
|
||||
|
||||
msgid "Vegetables/Fruits"
|
||||
msgstr "野菜/フルーツ"
|
||||
|
||||
msgid "Refrigerated products"
|
||||
msgstr "冷凍食品"
|
||||
|
||||
msgid "Coffee machine"
|
||||
msgstr "コーヒー マシーン"
|
||||
|
||||
msgid "Dishwasher"
|
||||
msgstr "食器洗い機"
|
||||
|
||||
msgid "Liter"
|
||||
msgstr "リットル"
|
||||
|
||||
msgid "Liters"
|
||||
msgstr "リットル"
|
||||
|
||||
msgid "Bottle"
|
||||
msgstr "本"
|
||||
|
||||
msgid "Bottles"
|
||||
msgstr "本"
|
||||
|
||||
msgid "Milk"
|
||||
msgstr "ミルク"
|
||||
|
||||
msgid "Chocolate sauce"
|
||||
msgstr "チョコレート ソース"
|
||||
|
||||
msgid "Milliliters"
|
||||
msgstr "ミリリットル"
|
||||
|
||||
msgid "Milliliter"
|
||||
msgstr "ミリリットル"
|
||||
|
||||
msgid "Bottom"
|
||||
msgstr "底"
|
||||
|
||||
msgid "Topping"
|
||||
msgstr "トッピング"
|
||||
|
||||
msgid "French"
|
||||
msgstr "フランス語"
|
||||
|
||||
msgid "Turkish"
|
||||
msgstr "トルコ語"
|
||||
|
||||
msgid "Spanish"
|
||||
msgstr "スペイン語"
|
||||
|
||||
msgid "Russian"
|
||||
msgstr "ロシア語"
|
||||
|
||||
msgid "The thing which happens on the 5th of every month"
|
||||
msgstr "毎月5日に起こること"
|
||||
|
||||
msgid "The thing which happens daily"
|
||||
msgstr "毎日起こること"
|
||||
|
||||
msgid "The thing which happens on Mondays and Wednesdays"
|
||||
msgstr "月曜日と水曜日に起こること"
|
||||
|
||||
msgid "Swedish"
|
||||
msgstr "スウェーデン語"
|
||||
|
||||
msgid "Polish"
|
||||
msgstr "ポーランド語"
|
||||
|
||||
msgid "Milk Chocolate"
|
||||
msgstr "ミルク チョコレート"
|
||||
|
||||
msgid "Dark Chocolate"
|
||||
msgstr "ダーク チョコレート"
|
||||
|
||||
msgid "Slice"
|
||||
msgid_plural "Slices"
|
||||
msgstr[0] "枚"
|
||||
|
||||
msgid "Example userentity"
|
||||
msgstr "ユーザーエントリーの例"
|
||||
|
||||
msgid "This is an example user entity..."
|
||||
msgstr "これはユーザー エントリーの例です..."
|
||||
|
||||
msgid "Custom field"
|
||||
msgstr "カスタム フィールド"
|
||||
|
||||
msgid "Example field value..."
|
||||
msgstr "フィールド値の例..."
|
||||
|
||||
msgid "Waffle rolls"
|
||||
msgstr "ワッフル・ロール"
|
||||
|
||||
msgid "Danish"
|
||||
msgstr "デンマーク語"
|
||||
|
||||
msgid "Dutch"
|
||||
msgstr "オランダ語"
|
||||
|
||||
msgid "Norwegian"
|
||||
msgstr "ノルウェー語"
|
||||
|
||||
msgid "Demo"
|
||||
msgstr "デモ"
|
||||
|
||||
msgid "Stable version"
|
||||
msgstr "安定板"
|
||||
|
||||
msgid "Preview version"
|
||||
msgstr "プレビュー版"
|
||||
|
||||
msgid "current release"
|
||||
msgstr "リリース済み"
|
||||
|
||||
msgid "not yet released"
|
||||
msgstr "未リリース"
|
||||
|
||||
msgid "Portuguese (Brazil)"
|
||||
msgstr "ポルトガル語 (ブラジル)"
|
||||
|
||||
msgid "This is a note"
|
||||
msgstr "てすと"
|
||||
|
||||
msgid "Freezer"
|
||||
msgstr "冷凍庫"
|
||||
|
||||
msgid "Hungarian"
|
||||
msgstr "ハンガリー語"
|
||||
|
||||
msgid "Slovak"
|
||||
msgstr "スロバキア語"
|
||||
|
||||
msgid "Czech"
|
||||
msgstr "チェコ語"
|
||||
|
||||
msgid "Portuguese (Portugal)"
|
||||
msgstr "ポルトガル語 (ポルトガル)"
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket1"
|
||||
msgstr "イオン1"
|
||||
|
||||
# Use a in your country well known supermarket name
|
||||
msgid "DemoSupermarket2"
|
||||
msgstr "イオン2"
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user