diff --git a/docs/settings.PNG b/docs/settings.PNG index fbb3a9f..9005ce9 100644 Binary files a/docs/settings.PNG and b/docs/settings.PNG differ diff --git a/src/Config/system.php b/src/Config/system.php index f9c2af9..5db4ec1 100644 --- a/src/Config/system.php +++ b/src/Config/system.php @@ -4,6 +4,7 @@ [ 'key' => 'catalog.inventory.notifications', 'name' => 'stocknotify::app.admin.section-title', + 'info' => 'stocknotify::app.admin.section-info', 'sort' => 2, 'fields' => [ [ @@ -15,6 +16,7 @@ 'name' => 'schedule', 'title' => 'stocknotify::app.admin.schedule', 'info' => 'stocknotify::app.admin.schedule-info', + 'depends' => 'status', 'type' => 'select', 'options' => [ [ @@ -28,12 +30,14 @@ 'value' => 'weekly', ] ], + 'default' => 'daily', 'channel_based' => false, ], [ 'name' => 'min-stock', 'title' => 'stocknotify::app.admin.min-stock', + 'depends' => 'status', 'type' => 'text', - 'default_value' => 0, + 'default' => 0, 'channel_based' => false, ] ] diff --git a/src/Resources/lang/ar/app.php b/src/Resources/lang/ar/app.php new file mode 100644 index 0000000..3eab373 --- /dev/null +++ b/src/Resources/lang/ar/app.php @@ -0,0 +1,23 @@ + [ + 'section-title' => 'إشعار المخزون', + 'section-info' => 'تعيين الفاصل الزمني وحد المنتج لتنبيهات تحديث المخزون', + 'status' => 'إرسال إشعار عندما تصل المنتجات إلى الحد الأدنى', + 'schedule' => 'جدولة الإشعار', + 'schedule-info' => 'متى يجب إرسال الإشعار؟', + 'interval' => [ + 'hourly' => 'كل ساعة', + 'daily' => 'يوميًا', + 'weekly' => 'أسبوعيًا' + ], + 'min-stock' => 'حد المنتج الأدنى' + ], + + 'mail' => [ + 'subject' => 'خدمات تقرير المخزون', + 'dear-reader' => 'عزيزي القارئ', + 'message' => 'في مرفقات هذا البريد الإلكتروني ستجد نظرة عامة على جميع المنتجات التي وصلت إلى حد المخزون الأدنى.' + ] +]; diff --git a/src/Resources/lang/de/app.php b/src/Resources/lang/de/app.php new file mode 100644 index 0000000..3157a0c --- /dev/null +++ b/src/Resources/lang/de/app.php @@ -0,0 +1,23 @@ + [ + 'section-title' => 'Lagerbenachrichtigung', + 'section-info' => 'Stellen Sie das Intervall und die Produktgrenze für Inventur-Update-Benachrichtigungen ein', + 'status' => 'Benachrichtigung senden, wenn Produkte den Schwellenwert erreichen', + 'schedule' => 'Benachrichtigung planen', + 'schedule-info' => 'Wann soll die Benachrichtigung gesendet werden?', + 'interval' => [ + 'hourly' => 'Stündlich', + 'daily' => 'Täglich', + 'weekly' => 'Wöchentlich' + ], + 'min-stock' => 'Produktschwelle' + ], + + 'mail' => [ + 'subject' => 'Bestandsmeldedienst', + 'dear-reader' => 'Sehr geehrter Leser', + 'message' => 'Im Anhang dieser E-Mail finden Sie eine Übersicht aller Produkte, die den Bestandsschwellenwert erreicht haben.' + ] +]; \ No newline at end of file diff --git a/src/Resources/lang/en/app.php b/src/Resources/lang/en/app.php index bf3ecb6..3305e96 100644 --- a/src/Resources/lang/en/app.php +++ b/src/Resources/lang/en/app.php @@ -3,6 +3,7 @@ return [ 'admin' => [ 'section-title' => 'Stock Notification', + 'section-info' => 'Set the interval and product limit for inventory update alerts', 'status' => 'Send a notification when products reach the threshold', 'schedule' => 'Schedule notification', 'schedule-info' => 'When should the notification be sent?', diff --git a/src/Resources/lang/fr/app.php b/src/Resources/lang/fr/app.php new file mode 100644 index 0000000..33b87ee --- /dev/null +++ b/src/Resources/lang/fr/app.php @@ -0,0 +1,23 @@ + [ + 'section-title' => 'Notification de Stock', + 'section-info' => 'Définir l\'intervalle et la limite de produit pour les alertes de mise à jour d\'inventaire', + 'status' => 'Envoyer une notification lorsque les produits atteignent le seuil', + 'schedule' => 'Programmer la notification', + 'schedule-info' => 'Quand la notification doit-elle être envoyée ?', + 'interval' => [ + 'hourly' => 'Toutes les heures', + 'daily' => 'Quotidien', + 'weekly' => 'Hebdomadaire' + ], + 'min-stock' => 'Seuil de produit' + ], + + 'mail' => [ + 'subject' => 'Services de Rapport d\'Inventaire', + 'dear-reader' => 'Cher lecteur', + 'message' => 'En pièce jointe de cet email, vous trouverez un aperçu de tous les produits ayant atteint le seuil d\'inventaire.' + ] +]; \ No newline at end of file diff --git a/src/Resources/lang/nl/app.php b/src/Resources/lang/nl/app.php index cfcf80c..7a21bf2 100644 --- a/src/Resources/lang/nl/app.php +++ b/src/Resources/lang/nl/app.php @@ -3,6 +3,7 @@ return [ 'admin' => [ 'section-title' => 'Voorraad Notificatie', + 'section-info' => 'Stel het interval en de productlimiet in voor meldingen van voorraadupdates', 'status' => 'Stuur een melding wanneer producten de drempel bereiken', 'schedule' => 'Notificatie plannen', 'schedule-info' => 'Wanneer moet de notificatie worden verzonden?', @@ -15,7 +16,7 @@ ], 'mail' => [ - 'subject' => 'Voorraad rapportage', + 'subject' => 'Voorraad rapport', 'dear-reader' => 'Geachte lezer', 'message' => 'In de bijlage van deze e-mail vindt u een overzicht van alle producten die de voorraaddrempel hebben bereikt.' ]