From 5b304c5e9765fca6db7cd1a9b1d67007984d6183 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 10 Mar 2019 16:27:34 +0100 Subject: [PATCH] Added new changelog and update translations --- changelog/45_2.2.0_2019-03-10.md | 5 +++++ localization/de/strings.php | 5 +++-- localization/es/strings.php | 5 +++-- localization/fr/strings.php | 5 +++-- localization/no/strings.php | 5 +++-- localization/ru/strings.php | 5 +++-- localization/tr/strings.php | 5 +++-- 7 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 changelog/45_2.2.0_2019-03-10.md diff --git a/changelog/45_2.2.0_2019-03-10.md b/changelog/45_2.2.0_2019-03-10.md new file mode 100644 index 00000000..db7fb62f --- /dev/null +++ b/changelog/45_2.2.0_2019-03-10.md @@ -0,0 +1,5 @@ +- New API method to get a product by its barcode (`/stock/products/by-barcode/{barcode}`, thanks @matejdro) +- The best before date on the purchase and inventory page can now also be today or earlier, but when so, a short hint is displayed +- Fixed some UI bugs + - When consuming a product with "Allow partial units in stock" enabled from the stock overview page, the displayed amount after the stock booking was wrong + - The inventory form was not validated with certain click paths diff --git a/localization/de/strings.php b/localization/de/strings.php index 53f0674c..992a52f9 100644 --- a/localization/de/strings.php +++ b/localization/de/strings.php @@ -139,7 +139,7 @@ return array( 'This cannot be negative' => 'Dies darf nicht negativ sein', 'A quantity unit is required' => 'Eine Mengeneinheit muss ausgewählt werden', 'A period type is required' => 'Eine Periodentyp muss ausgewählt werden', - 'A best before date is required and must be later than today' => 'Ein Mindesthaltbarkeitsdatum ist erforderlich und muss später als heute sein', + 'A best before date is required' => 'Ein Mindesthaltbarkeitsdatum ist erforderlich', 'Settings' => 'Einstellungen', 'This can only be before now' => 'Dies kann nur vor jetzt sein', 'Calendar' => 'Kalender', @@ -354,5 +354,6 @@ return array( 'Journal for this battery' => 'Journal für diese Batterie', 'System info' => 'Systeminformationen', 'Changelog' => 'Änderungsprotokoll', - 'will be multiplied a factor of #1 to get #2' => 'wird mit dem Faktor #1 multipliziert um #2 zu erhalten' + 'will be multiplied a factor of #1 to get #2' => 'wird mit dem Faktor #1 multipliziert um #2 zu erhalten', + 'The given date is earlier than today, are you sure?' => 'Das angegebene Datum ist früher als heute, bist du sicher?' ); diff --git a/localization/es/strings.php b/localization/es/strings.php index 586583f9..6cd61853 100644 --- a/localization/es/strings.php +++ b/localization/es/strings.php @@ -139,7 +139,7 @@ return array( 'This cannot be negative' => 'Esto no puede ser negativo', 'A quantity unit is required' => 'Es necesaria una unidad', 'A period type is required' => 'Es necesario un tipo de periodo', - 'A best before date is required and must be later than today' => 'Es necesaria una fecha de caducidad y debe ser posterior a hoy', + 'A best before date is required' => 'A best before date is required', 'Settings' => 'Configuración', 'This can only be before now' => 'Sólo puede ser antes que ahora', 'Calendar' => 'Calendario', @@ -354,5 +354,6 @@ return array( 'Journal for this battery' => 'Journal for this battery', 'System info' => 'System info', 'Changelog' => 'Changelog', - 'will be multiplied a factor of #1 to get #2' => 'will be multiplied a factor of #1 to get #2' + 'will be multiplied a factor of #1 to get #2' => 'will be multiplied a factor of #1 to get #2', + 'The given date is earlier than today, are you sure?' => 'The given date is earlier than today, are you sure?' ); diff --git a/localization/fr/strings.php b/localization/fr/strings.php index a7a59b70..6ce1f9ba 100644 --- a/localization/fr/strings.php +++ b/localization/fr/strings.php @@ -139,7 +139,7 @@ return array( 'This cannot be negative' => 'Ne peut être négatif', 'A quantity unit is required' => 'Un format est requis', 'A period type is required' => 'Un type de période est requis', - 'A best before date is required and must be later than today' => 'Une date de péremption est requise et doit être supérieure à la date du jour', + 'A best before date is required' => 'A best before date is required', 'Settings' => 'Paramètres', 'This can only be before now' => 'Ne peut être qu\'antérieur à maintenant', 'Calendar' => 'Calendrier', @@ -354,5 +354,6 @@ return array( 'Journal for this battery' => 'Journal for this battery', 'System info' => 'System info', 'Changelog' => 'Changelog', - 'will be multiplied a factor of #1 to get #2' => 'will be multiplied a factor of #1 to get #2' + 'will be multiplied a factor of #1 to get #2' => 'will be multiplied a factor of #1 to get #2', + 'The given date is earlier than today, are you sure?' => 'The given date is earlier than today, are you sure?' ); diff --git a/localization/no/strings.php b/localization/no/strings.php index 1a99d461..10992585 100644 --- a/localization/no/strings.php +++ b/localization/no/strings.php @@ -139,7 +139,7 @@ return array( 'This cannot be negative' => 'Dette kan ikke være negativt', 'A quantity unit is required' => 'Forpakning antall/størrelse kreves', 'A period type is required' => 'En periodetype kreves', - 'A best before date is required and must be later than today' => 'En best før dato kreves, denne må være senere enn i dag', + 'A best before date is required' => 'A best before date is required', 'Settings' => 'Innstillinger', 'This can only be before now' => 'Dette kan kun være før nå', 'Calendar' => 'Kalender', @@ -354,5 +354,6 @@ return array( 'Journal for this battery' => 'Journal for this battery', 'System info' => 'System info', 'Changelog' => 'Changelog', - 'will be multiplied a factor of #1 to get #2' => 'will be multiplied a factor of #1 to get #2' + 'will be multiplied a factor of #1 to get #2' => 'will be multiplied a factor of #1 to get #2', + 'The given date is earlier than today, are you sure?' => 'The given date is earlier than today, are you sure?' ); diff --git a/localization/ru/strings.php b/localization/ru/strings.php index 16f2e151..5715af6e 100644 --- a/localization/ru/strings.php +++ b/localization/ru/strings.php @@ -139,7 +139,7 @@ return array( 'This cannot be negative' => 'Значение не может быть отрицательным', 'A quantity unit is required' => 'Необходима единица измерения', 'A period type is required' => 'Необходим тип периода', - 'A best before date is required and must be later than today' => 'Необходим срок годности и он должен быть не раньше сегодня', + 'A best before date is required' => 'A best before date is required', 'Settings' => 'Настройки', 'This can only be before now' => 'Данное поле должно быть раньше текущего времени', 'Calendar' => 'Календарь', @@ -355,5 +355,6 @@ return array( 'Journal for this battery' => 'Journal for this battery', 'System info' => 'System info', 'Changelog' => 'Changelog', - 'will be multiplied a factor of #1 to get #2' => 'will be multiplied a factor of #1 to get #2' + 'will be multiplied a factor of #1 to get #2' => 'will be multiplied a factor of #1 to get #2', + 'The given date is earlier than today, are you sure?' => 'The given date is earlier than today, are you sure?' ); diff --git a/localization/tr/strings.php b/localization/tr/strings.php index 61b79ca1..195d3928 100644 --- a/localization/tr/strings.php +++ b/localization/tr/strings.php @@ -139,7 +139,7 @@ return array( 'This cannot be negative' => 'Bu negatif olamaz', 'A quantity unit is required' => 'Miktar birim zorunlu', 'A period type is required' => 'Dönem tipi zorunlu', - 'A best before date is required and must be later than today' => 'Bugünden ileride bir son kullanma tarihi girmek zorunlu', + 'A best before date is required' => 'A best before date is required', 'Settings' => 'Ayarlar', 'This can only be before now' => 'Bu sadece şu andan önce olabilir', 'Calendar' => 'Takvim', @@ -354,5 +354,6 @@ return array( 'Journal for this battery' => 'Journal for this battery', 'System info' => 'System info', 'Changelog' => 'Changelog', - 'will be multiplied a factor of #1 to get #2' => 'will be multiplied a factor of #1 to get #2' + 'will be multiplied a factor of #1 to get #2' => 'will be multiplied a factor of #1 to get #2', + 'The given date is earlier than today, are you sure?' => 'The given date is earlier than today, are you sure?' );