diff --git a/modules/qlocrontaskmanager/classes/QctmCronExpressionTranslator.php b/modules/qlocrontaskmanager/classes/QctmCronExpressionTranslator.php
new file mode 100644
index 000000000..9f26af8a1
--- /dev/null
+++ b/modules/qlocrontaskmanager/classes/QctmCronExpressionTranslator.php
@@ -0,0 +1,355 @@
+ 'Sunday',
+ 1 => 'Monday',
+ 2 => 'Tuesday',
+ 3 => 'Wednesday',
+ 4 => 'Thursday',
+ 5 => 'Friday',
+ 6 => 'Saturday',
+ 7 => 'Sunday',
+ );
+
+ const MONTHS = array(
+ 1 => 'January',
+ 2 => 'February',
+ 3 => 'March',
+ 4 => 'April',
+ 5 => 'May',
+ 6 => 'June',
+ 7 => 'July',
+ 8 => 'August',
+ 9 => 'September',
+ 10 => 'October',
+ 11 => 'November',
+ 12 => 'December',
+ );
+
+ public static function translate($expression)
+ {
+ $parts = preg_split('/\s+/', trim($expression));
+
+ if (count($parts) !== 5) {
+ return self::trans('Invalid cron expression');
+ }
+
+ list($minute, $hour, $day, $month, $weekday) = $parts;
+
+ if ($expression === '* * * * *') {
+ return self::trans('Every minute');
+ }
+
+ if (preg_match('/^\*\/(\d+)$/', $minute, $m)
+ && $hour == '*' && $day == '*' && $month == '*' && $weekday == '*') {
+ return self::trans('Every %d minutes', (int) $m[1]);
+ }
+
+ if ($minute == '0' && $hour == '*' && $day == '*' && $month == '*' && $weekday == '*') {
+ return self::trans('Every hour');
+ }
+
+ if ($minute == '0'
+ && preg_match('/^\*\/(\d+)$/', $hour, $m)
+ && $day == '*' && $month == '*' && $weekday == '*') {
+ return self::trans('Every %d hours', (int) $m[1]);
+ }
+
+ if (self::isNumeric($hour) && self::isNumeric($minute) && $day == '*' && $month == '*' && $weekday == '*') {
+ return self::trans('Every day at %s', self::hourLabel($hour, $minute));
+ }
+
+ if (self::isNumeric($hour) && self::isNumeric($minute) && $day == '*' && $weekday == '*'
+ && preg_match('/^\*\/(\d+)$/', $month, $mm)) {
+ return self::trans(
+ 'Every day every %1$d months at %2$s',
+ array((int) $mm[1], self::hourLabel($hour, $minute))
+ );
+ }
+
+ if (self::isNumeric($hour) && self::isNumeric($minute) && $day == '*' && $month == '*' && $weekday == '1-5') {
+ return self::trans('Every weekday at %s', self::hourLabel($hour, $minute));
+ }
+
+ if (self::isNumeric($hour) && self::isNumeric($minute) && $day == '*' && $month == '*' && $weekday == '0,6') {
+ return self::trans('Every weekend at %s', self::hourLabel($hour, $minute));
+ }
+
+ if (self::isNumeric($hour) && self::isNumeric($minute) && $day == '*' && $month == '*' && self::isNumeric($weekday)) {
+ return self::trans(
+ 'Every %1$s at %2$s',
+ array(self::weekdayName($weekday), self::hourLabel($hour, $minute))
+ );
+ }
+
+ if (strpos($weekday, ',') !== false
+ && self::isNumeric($hour) && self::isNumeric($minute) && $day == '*' && $month == '*') {
+ return self::trans(
+ 'Every %1$s at %2$s',
+ array(self::joinNames($weekday, 'weekdayName'), self::hourLabel($hour, $minute))
+ );
+ }
+
+ if (self::isNumeric($day) && self::isNumeric($hour) && self::isNumeric($minute) && $month == '*' && $weekday == '*') {
+ return self::trans(
+ 'On the %1$s of every month at %2$s',
+ array(self::ordinal($day), self::hourLabel($hour, $minute))
+ );
+ }
+
+ if (preg_match('/^(\d+)-(\d+)$/', $day, $dm)
+ && self::isNumeric($hour) && self::isNumeric($minute) && $month == '*' && $weekday == '*') {
+ return self::trans(
+ 'Every day from the %1$s to the %2$s of each month at %3$s',
+ array(self::ordinal($dm[1]), self::ordinal($dm[2]), self::hourLabel($hour, $minute))
+ );
+ }
+
+ if (strpos($day, ',') !== false
+ && self::isNumeric($hour) && self::isNumeric($minute) && $month == '*' && $weekday == '*') {
+ return self::trans(
+ 'On the %1$s of each month at %2$s',
+ array(self::joinOrdinals($day), self::hourLabel($hour, $minute))
+ );
+ }
+
+ if (self::isNumeric($day) && self::isNumeric($month) && self::isNumeric($hour) && self::isNumeric($minute) && $weekday == '*') {
+ return self::trans(
+ 'Every %1$s %2$s at %3$s',
+ array(self::monthName($month), self::ordinal($day), self::hourLabel($hour, $minute))
+ );
+ }
+
+ if ($minute == '*' && $hour == '*' && $day == '*' && $month == '*' && self::isNumeric($weekday)) {
+ return self::trans('Every minute on %s', self::weekdayName($weekday));
+ }
+
+ if ($minute == '*' && $hour == '*' && $day == '*' && $month == '*' && $weekday == '1-5') {
+ return self::trans('Every minute on weekdays');
+ }
+
+ if ($minute == '*' && $hour == '*' && $day == '*' && $month == '*' && $weekday == '0,6') {
+ return self::trans('Every minute on weekends');
+ }
+
+ if (self::isNumeric($minute) && self::isNumeric($hour)) {
+ $when = self::trans('At %s', self::hourLabel($hour, $minute));
+ } else {
+ $minuteFreq = null;
+ if ($minute === '*') {
+ $minuteFreq = self::trans('Every minute');
+ } elseif (preg_match('/^\*\/(\d+)$/', $minute, $m)) {
+ $minuteFreq = self::trans('Every %d minutes', (int) $m[1]);
+ }
+
+ if (preg_match('/^(\d+)-(\d+)\/(\d+)$/', $hour, $hs) && self::isNumeric($minute)) {
+ $when = self::trans(
+ 'Every %1$d hours between %2$s and %3$s',
+ array((int) $hs[3], self::hourLabel($hs[1], $minute), self::hourLabel($hs[2], $minute))
+ );
+ } elseif ($minuteFreq !== null) {
+ if ($hour === '*') {
+ $when = $minuteFreq;
+ } elseif (self::isNumeric($hour)) {
+ $when = self::trans('%1$s, during hour %2$s', array($minuteFreq, $hour));
+ } elseif (preg_match('/^(\d+)-(\d+)$/', $hour, $hm)) {
+ $when = self::trans(
+ '%1$s between %2$s and %3$s',
+ array($minuteFreq, self::hourLabel($hm[1], 0), self::hourLabel($hm[2], 59))
+ );
+ } else {
+ $when = self::trans('%1$s, during hour %2$s', array($minuteFreq, $hour));
+ }
+ } elseif (self::isNumeric($minute) && $hour === '*') {
+ $when = self::trans('Every hour, at minute %s', $minute);
+ } elseif (self::isNumeric($minute) && preg_match('/^(\d+)-(\d+)$/', $hour, $hm)) {
+ $when = self::trans(
+ 'At minute %1$s, between %2$s and %3$s',
+ array($minute, self::hourLabel($hm[1], $minute), self::hourLabel($hm[2], $minute))
+ );
+ } else {
+ $when = self::trans('At minute %1$s, hour %2$s', array($minute, $hour));
+ }
+ }
+
+ $conditions = array();
+
+ if ($day !== '*') {
+ if (preg_match('/^(\d+)-(\d+)$/', $day, $dm)) {
+ $conditions[] = self::trans(
+ 'from the %1$s to the %2$s of the month',
+ array(self::ordinal($dm[1]), self::ordinal($dm[2]))
+ );
+ } elseif (strpos($day, ',') !== false) {
+ $conditions[] = self::trans('on the %s of the month', self::joinOrdinals($day));
+ } elseif (self::isNumeric($day)) {
+ $conditions[] = self::trans('on the %s of the month', self::ordinal($day));
+ } else {
+ $conditions[] = self::trans('on day %s of the month', $day);
+ }
+ }
+
+ if ($month !== '*') {
+ if (preg_match('/^\*\/(\d+)$/', $month, $mf)) {
+ $conditions[] = self::trans('every %d months', (int) $mf[1]);
+ } else {
+ if (preg_match('/^(\d+)-(\d+)$/', $month, $mm)) {
+ $monthDesc = self::trans('%1$s through %2$s', array(self::monthName($mm[1]), self::monthName($mm[2])));
+ } elseif (strpos($month, ',') !== false) {
+ $monthDesc = self::joinNames($month, 'monthName');
+ } else {
+ $monthDesc = self::monthName($month);
+ }
+ $conditions[] = self::trans('in %s', $monthDesc);
+ }
+ }
+
+ if ($weekday !== '*') {
+ if ($weekday === '1-5') {
+ $weekdayDesc = self::trans('weekdays');
+ } elseif ($weekday === '0,6' || $weekday === '6,0') {
+ $weekdayDesc = self::trans('weekends');
+ } elseif (preg_match('/^(\d+)-(\d+)$/', $weekday, $wm)) {
+ $weekdayDesc = self::trans('%1$s through %2$s', array(self::weekdayName($wm[1]), self::weekdayName($wm[2])));
+ } elseif (strpos($weekday, ',') !== false) {
+ $weekdayDesc = self::joinNames($weekday, 'weekdayName');
+ } else {
+ $weekdayDesc = self::weekdayName($weekday);
+ }
+ $conditions[] = self::trans('on %s', $weekdayDesc);
+ }
+
+ if (empty($conditions)) {
+ return $when;
+ }
+
+ return $when . ' ' . implode(', ', $conditions);
+ }
+
+ public static function trans($string, $sprintf = null)
+ {
+ return Translate::getModuleTranslation(self::MODULE_NAME, $string, 'QctmCronExpressionTranslator', $sprintf);
+ }
+
+ public static function isNumeric($value)
+ {
+ return preg_match('/^\d+$/', $value) === 1;
+ }
+
+ public static function weekdayName($weekday)
+ {
+ return (self::isNumeric($weekday) && isset(self::WEEKDAYS[(int) $weekday]))
+ ? self::trans(self::WEEKDAYS[(int) $weekday])
+ : $weekday;
+ }
+
+ public static function monthName($month)
+ {
+ return (self::isNumeric($month) && isset(self::MONTHS[(int) $month]))
+ ? self::trans(self::MONTHS[(int) $month])
+ : $month;
+ }
+
+ public static function hourLabel($hour, $minute = null)
+ {
+ $h = (int) $hour;
+ $suffix = $h >= 12 ? self::trans('PM') : self::trans('AM');
+ $h12 = $h % 12;
+
+ if ($h12 === 0) {
+ $h12 = 12;
+ }
+
+ return $minute === null
+ ? sprintf('%d %s', $h12, $suffix)
+ : sprintf('%d:%02d %s', $h12, (int) $minute, $suffix);
+ }
+
+ public static function joinNames($csv, $nameMethod)
+ {
+ $names = array();
+
+ foreach (explode(',', $csv) as $token) {
+ $names[] = self::$nameMethod($token);
+ }
+
+ if (count($names) === 1) {
+ return $names[0];
+ }
+
+ $last = array_pop($names);
+
+ return implode(', ', $names) . ' ' . self::trans('and') . ' ' . $last;
+ }
+
+ public static function ordinal($number)
+ {
+ $number = (int) $number;
+
+ if ($number % 100 >= 11 && $number % 100 <= 13) {
+ $suffix = 'th';
+ } else {
+ switch ($number % 10) {
+ case 1:
+ $suffix = 'st';
+ break;
+ case 2:
+ $suffix = 'nd';
+ break;
+ case 3:
+ $suffix = 'rd';
+ break;
+ default:
+ $suffix = 'th';
+ }
+ }
+
+ return $number . $suffix;
+ }
+
+ public static function joinOrdinals($csv)
+ {
+ $ordinals = array();
+
+ foreach (explode(',', $csv) as $token) {
+ $ordinals[] = self::isNumeric($token) ? self::ordinal($token) : $token;
+ }
+
+ if (count($ordinals) === 1) {
+ return $ordinals[0];
+ }
+
+ $last = array_pop($ordinals);
+
+ return implode(', ', $ordinals) . ' ' . self::trans('and') . ' ' . $last;
+ }
+}
diff --git a/modules/qlocrontaskmanager/classes/QctmRequiredClasses.php b/modules/qlocrontaskmanager/classes/QctmRequiredClasses.php
index e8ec7e004..9f2e9b4f4 100644
--- a/modules/qlocrontaskmanager/classes/QctmRequiredClasses.php
+++ b/modules/qlocrontaskmanager/classes/QctmRequiredClasses.php
@@ -24,4 +24,5 @@
require_once _PS_MODULE_DIR_.'qlocrontaskmanager/classes/QctmCronTaskManagerDb.php';
require_once _PS_MODULE_DIR_.'qlocrontaskmanager/classes/QctmCronTask.php';
require_once _PS_MODULE_DIR_.'qlocrontaskmanager/classes/QctmCronTaskLog.php';
+require_once _PS_MODULE_DIR_.'qlocrontaskmanager/classes/QctmCronExpressionTranslator.php';
require_once _PS_MODULE_DIR_.'qlocrontaskmanager/vendor/autoload.php';
diff --git a/modules/qlocrontaskmanager/composer.json b/modules/qlocrontaskmanager/composer.json
index 33e328f69..28ab8bb00 100644
--- a/modules/qlocrontaskmanager/composer.json
+++ b/modules/qlocrontaskmanager/composer.json
@@ -2,7 +2,6 @@
"name": "qloapps/qlocrontaskmanager",
"description": "Centralized cron task manager for QloApps modules",
"require": {
- "dragonmantank/cron-expression": "^3.0",
- "lorisleiva/cron-translator": "^0.3"
+ "dragonmantank/cron-expression": "^3.0"
}
}
diff --git a/modules/qlocrontaskmanager/controllers/admin/AdminCronTaskManagerController.php b/modules/qlocrontaskmanager/controllers/admin/AdminCronTaskManagerController.php
index 10a29b905..228a055f7 100644
--- a/modules/qlocrontaskmanager/controllers/admin/AdminCronTaskManagerController.php
+++ b/modules/qlocrontaskmanager/controllers/admin/AdminCronTaskManagerController.php
@@ -178,11 +178,7 @@ class AdminCronTaskManagerController extends ModuleAdminController
$isValidExpression = \Cron\CronExpression::isValidExpression($cronExpression);
if ($isValidExpression) {
- try {
- $readable = $this->l('Runs ') . \Lorisleiva\CronTranslator\CronTranslator::translate($cronExpression);
- } catch (\Exception $e) {
- $readable = '';
- }
+ $readable = $this->l('Runs ') . QctmCronExpressionTranslator::translate($cronExpression);
} else {
$readable = $this->l('Invalid cron expression.');
}
@@ -275,12 +271,8 @@ class AdminCronTaskManagerController extends ModuleAdminController
if (\Cron\CronExpression::isValidExpression($expression)) {
$result['valid'] = true;
- try {
- $result['readable'] = $this->l('Runs ') . \Lorisleiva\CronTranslator\CronTranslator::translate($expression);
- } catch (\Exception $e) {
- $result['readable'] = $this->l('Invalid cron expression');
- }
- }
+ $result['readable'] = $this->l('Runs ') . QctmCronExpressionTranslator::translate($expression);
+ }
die(Tools::jsonEncode($result));
}
@@ -397,11 +389,9 @@ class AdminCronTaskManagerController extends ModuleAdminController
public function getCronWithReadable($cronExpression, $row)
{
- try {
- $readable = \Lorisleiva\CronTranslator\CronTranslator::translate($cronExpression);
- } catch (\Exception $e) {
- $readable = $cronExpression;
- }
+ $readable = \Cron\CronExpression::isValidExpression($cronExpression)
+ ? QctmCronExpressionTranslator::translate($cronExpression)
+ : $cronExpression;
return '' . htmlspecialchars($cronExpression) . ''
. '
' . htmlspecialchars($readable) . '';
diff --git a/modules/qlocrontaskmanager/vendor/composer/autoload_psr4.php b/modules/qlocrontaskmanager/vendor/composer/autoload_psr4.php
index bc4d7c736..e12811ddf 100644
--- a/modules/qlocrontaskmanager/vendor/composer/autoload_psr4.php
+++ b/modules/qlocrontaskmanager/vendor/composer/autoload_psr4.php
@@ -6,6 +6,5 @@ $vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
- 'Lorisleiva\\CronTranslator\\' => array($vendorDir . '/lorisleiva/cron-translator/src'),
'Cron\\' => array($vendorDir . '/dragonmantank/cron-expression/src/Cron'),
);
diff --git a/modules/qlocrontaskmanager/vendor/composer/autoload_static.php b/modules/qlocrontaskmanager/vendor/composer/autoload_static.php
index f60e1ecf0..e173eaa32 100644
--- a/modules/qlocrontaskmanager/vendor/composer/autoload_static.php
+++ b/modules/qlocrontaskmanager/vendor/composer/autoload_static.php
@@ -7,10 +7,6 @@ namespace Composer\Autoload;
class ComposerStaticInitc2f08a32af23ee5d749fb28358c620b3
{
public static $prefixLengthsPsr4 = array (
- 'L' =>
- array (
- 'Lorisleiva\\CronTranslator\\' => 26,
- ),
'C' =>
array (
'Cron\\' => 5,
@@ -18,10 +14,6 @@ class ComposerStaticInitc2f08a32af23ee5d749fb28358c620b3
);
public static $prefixDirsPsr4 = array (
- 'Lorisleiva\\CronTranslator\\' =>
- array (
- 0 => __DIR__ . '/..' . '/lorisleiva/cron-translator/src',
- ),
'Cron\\' =>
array (
0 => __DIR__ . '/..' . '/dragonmantank/cron-expression/src/Cron',
diff --git a/modules/qlocrontaskmanager/vendor/composer/installed.json b/modules/qlocrontaskmanager/vendor/composer/installed.json
index f88a76e51..0228ed9d2 100644
--- a/modules/qlocrontaskmanager/vendor/composer/installed.json
+++ b/modules/qlocrontaskmanager/vendor/composer/installed.json
@@ -66,65 +66,6 @@
}
],
"install-path": "../dragonmantank/cron-expression"
- },
- {
- "name": "lorisleiva/cron-translator",
- "version": "v0.3.2",
- "version_normalized": "0.3.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/lorisleiva/cron-translator.git",
- "reference": "d49dd7732197c2e967a66968c9323c81826c86e5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/lorisleiva/cron-translator/zipball/d49dd7732197c2e967a66968c9323c81826c86e5",
- "reference": "d49dd7732197c2e967a66968c9323c81826c86e5",
- "shasum": ""
- },
- "require": {
- "php": "^7.4 || ^8.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^8.5.21 || ^9.5"
- },
- "time": "2022-06-16T07:37:33+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Lorisleiva\\CronTranslator\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Loris LEIVA",
- "email": "loris.leiva@gmail.com",
- "homepage": "https://lorisleiva.com"
- }
- ],
- "description": "Makes CRON expressions human-readable",
- "homepage": "https://github.com/lorisleiva/cron-translator",
- "keywords": [
- "cron",
- "expression",
- "human"
- ],
- "support": {
- "issues": "https://github.com/lorisleiva/cron-translator/issues",
- "source": "https://github.com/lorisleiva/cron-translator/tree/v0.3.2"
- },
- "funding": [
- {
- "url": "https://github.com/lorisleiva",
- "type": "github"
- }
- ],
- "install-path": "../lorisleiva/cron-translator"
}
],
"dev": true,
diff --git a/modules/qlocrontaskmanager/vendor/composer/installed.php b/modules/qlocrontaskmanager/vendor/composer/installed.php
index 0833755c0..65c12da9b 100644
--- a/modules/qlocrontaskmanager/vendor/composer/installed.php
+++ b/modules/qlocrontaskmanager/vendor/composer/installed.php
@@ -3,7 +3,7 @@
'name' => 'qloapps/qlocrontaskmanager',
'pretty_version' => 'dev-develop',
'version' => 'dev-develop',
- 'reference' => 'e05c7ad488aaf4098ed194c7ddf0024160987974',
+ 'reference' => 'f7d1d629ca72fc5ffd3349dea2877013367cea81',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@@ -19,15 +19,6 @@
'aliases' => array(),
'dev_requirement' => false,
),
- 'lorisleiva/cron-translator' => array(
- 'pretty_version' => 'v0.3.2',
- 'version' => '0.3.2.0',
- 'reference' => 'd49dd7732197c2e967a66968c9323c81826c86e5',
- 'type' => 'library',
- 'install_path' => __DIR__ . '/../lorisleiva/cron-translator',
- 'aliases' => array(),
- 'dev_requirement' => false,
- ),
'mtdowling/cron-expression' => array(
'dev_requirement' => false,
'replaced' => array(
@@ -37,7 +28,7 @@
'qloapps/qlocrontaskmanager' => array(
'pretty_version' => 'dev-develop',
'version' => 'dev-develop',
- 'reference' => 'e05c7ad488aaf4098ed194c7ddf0024160987974',
+ 'reference' => 'f7d1d629ca72fc5ffd3349dea2877013367cea81',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/.gitignore b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/.gitignore
deleted file mode 100644
index 2825f8dca..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-vendor
-composer.lock
-.phpunit.result.cache
-build
-.idea
\ No newline at end of file
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/LICENSE b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/LICENSE
deleted file mode 100644
index fdf460a8f..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2020 Loris Leiva
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/README.md b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/README.md
deleted file mode 100644
index 8fe69121c..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/README.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# CRON Translator
-⏰️ Makes CRON expressions human-readable
-
-
-
-## Installation
-
-```sh
-composer require lorisleiva/cron-translator
-```
-
-## Usage
-
-```php
-use Lorisleiva\CronTranslator\CronTranslator;
-
-CronTranslator::translate('* * * * *'); // => Every minute
-CronTranslator::translate('30 22 * * *'); // => Every day at 10:30pm
-CronTranslator::translate('0 16 * * 1'); // => Every Monday at 4:00pm
-CronTranslator::translate('0 0 1 1 *'); // => Every year on January the 1st at 12:00am
-CronTranslator::translate('0 0 1 * *'); // => The 1st of every month at 12:00am
-CronTranslator::translate('0 * * * 1'); // => Once an hour on Mondays
-CronTranslator::translate('* 1-20 * * *'); // => Every minute 20 hours a day
-CronTranslator::translate('0,30 * * * *'); // => Twice an hour
-CronTranslator::translate('0 1-5 * * *'); // => 5 times a day
-CronTranslator::translate('0 1 1-5 * *'); // => 5 days a month at 1:00am
-CronTranslator::translate('*/2 * * * *'); // => Every 2 minutes
-CronTranslator::translate('* 1/3 2 * *'); // => Every minute of every 3 hours on the 2nd of every month
-CronTranslator::translate('1-3/5 * * * *'); // => 3 times every 5 minutes
-CronTranslator::translate('1,2 0 */2 1,2 *'); // => Twice an hour every 2 days 2 months a year at 12am
-```
-
-You may also provide a locale as a second argument and whether to format the time using the 24-hour format as a third argument.
-
-
-```php
-CronTranslator::translate('30 18 * * *', 'fr'); // => Chaque jour à 6:30pm
-CronTranslator::translate('30 18 * * *', 'fr', true); // => Chaque jour à 18:30
-```
-
-The following locales are currently supported. Feel free to PR more locales if you need them. 🙂
-- `ar` — Arabic
-- `de` — German
-- `en` — English
-- `es` — Spanish
-- `fr` — French
-- `lv` — Latvian
-- `nl` — Dutch
-- `pt` — Portuguese
-- `zh` — Chinese
-- `sk` - Slovak
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/composer.json b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/composer.json
deleted file mode 100644
index 1853c3dca..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/composer.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "name": "lorisleiva/cron-translator",
- "description": "Makes CRON expressions human-readable",
- "keywords": [
- "cron",
- "expression",
- "human"
- ],
- "homepage": "https://github.com/lorisleiva/cron-translator",
- "license": "MIT",
- "authors": [
- {
- "name": "Loris LEIVA",
- "email": "loris.leiva@gmail.com",
- "homepage": "https://lorisleiva.com"
- }
- ],
- "require": {
- "php" : "^7.4 || ^8.0"
- },
- "require-dev": {
- "phpunit/phpunit" : "^8.5.21 || ^9.5"
- },
- "autoload": {
- "psr-4": {
- "Lorisleiva\\CronTranslator\\": "src"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "Lorisleiva\\CronTranslator\\Tests\\": "tests"
- }
- }
-}
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/CronExpression.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/CronExpression.php
deleted file mode 100644
index f129e1116..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/CronExpression.php
+++ /dev/null
@@ -1,110 +0,0 @@
-raw = $cron;
- $fields = explode(' ', $cron);
- $this->minute = new MinutesField($this, $fields[0]);
- $this->hour = new HoursField($this, $fields[1]);
- $this->day = new DaysOfMonthField($this, $fields[2]);
- $this->month = new MonthsField($this, $fields[3]);
- $this->weekday = new DaysOfWeekField($this, $fields[4]);
- $this->locale = $locale;
- $this->timeFormat24hours = $timeFormat24hours;
- $this->ensureLocaleExists();
- $this->loadTranslations();
- }
-
- public function getFields(): array
- {
- return [
- $this->minute,
- $this->hour,
- $this->day,
- $this->month,
- $this->weekday,
- ];
- }
-
- public function langCountable(string $type, int $number)
- {
- $array = $this->translations[$type];
-
- $value = $array[$number] ?? ($array['default'] ?: '');
-
- return str_replace(':number', $number, $value);
- }
-
- public function lang(string $key, array $replacements = [])
- {
- $translation = $this->getArrayDot($this->translations['fields'], $key);
-
- foreach ($replacements as $key => $value) {
- $translation = str_replace(':' . $key, $value, $translation);
- }
-
- return $translation;
- }
-
- protected function ensureLocaleExists(string $fallbackLocale = 'en')
- {
- if (! is_dir($this->getTranslationDirectory())) {
- $this->locale = $fallbackLocale;
- }
- }
-
- /**
- * @throws TranslationFileMissingException
- */
- protected function loadTranslations()
- {
- $this->translations = [
- 'days' => $this->loadTranslationFile('days'),
- 'fields' => $this->loadTranslationFile('fields'),
- 'months' => $this->loadTranslationFile('months'),
- 'ordinals' => $this->loadTranslationFile('ordinals'),
- 'times' => $this->loadTranslationFile('times'),
- ];
- }
-
- protected function loadTranslationFile(string $file)
- {
- $filename = sprintf('%s/%s.php', $this->getTranslationDirectory(), $file);
-
- if (! is_file($filename)) {
- throw new TranslationFileMissingException($this->locale, $file);
- }
-
- return include $filename;
- }
-
- protected function getTranslationDirectory(): string
- {
- return __DIR__ . '/lang/' . $this->locale;
- }
-
- protected function getArrayDot(array $array, string $key)
- {
- $keys = explode('.', $key);
-
- foreach ($keys as $key) {
- $array = $array[$key];
- }
-
- return $array;
- }
-}
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/CronParsingException.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/CronParsingException.php
deleted file mode 100644
index 06f8c7335..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/CronParsingException.php
+++ /dev/null
@@ -1,13 +0,0 @@
- '0 0 1 1 *',
- '@annually' => '0 0 1 1 *',
- '@monthly' => '0 0 1 * *',
- '@weekly' => '0 0 * * 0',
- '@daily' => '0 0 * * *',
- '@hourly' => '0 * * * *'
- ];
-
- public static function translate(string $cron, string $locale = 'en', bool $timeFormat24hours = false): string
- {
- if (isset(self::$extendedMap[$cron])) {
- $cron = self::$extendedMap[$cron];
- }
-
- try {
- $expression = new CronExpression($cron, $locale, $timeFormat24hours);
- $orderedFields = static::orderFields($expression->getFields());
-
- $translations = array_map(function (Field $field) {
- return $field->translate();
- }, $orderedFields);
-
- return ucfirst(implode(' ', array_filter($translations)));
- } catch (Throwable $th) {
- throw new CronParsingException($cron);
- }
- }
-
- protected static function orderFields(array $fields)
- {
- // Group fields by CRON types.
- $onces = static::filterType($fields, 'Once');
- $everys = static::filterType($fields, 'Every');
- $incrementsAndMultiples = static::filterType($fields, 'Increment', 'Multiple');
-
- // Decide whether to keep one or zero CRON type "Every".
- $firstEvery = reset($everys)->position ?? PHP_INT_MIN;
- $firstIncrementOrMultiple = reset($incrementsAndMultiples)->position ?? PHP_INT_MAX;
- $numberOfEverysKept = $firstIncrementOrMultiple < $firstEvery ? 0 : 1;
-
- // Mark fields that will not be displayed as dropped.
- // This allows other fields to check whether some
- // information is missing and adapt their translation.
- /** @var Field $field */
- foreach (array_slice($everys, $numberOfEverysKept) as $field) {
- $field->dropped = true;
- }
-
- return array_merge(
- // Place one or zero "Every" field at the beginning.
- array_slice($everys, 0, $numberOfEverysKept),
-
- // Place all "Increment" and "Multiple" fields in the middle.
- $incrementsAndMultiples,
-
- // Finish with the "Once" fields reversed (i.e. from months to minutes).
- array_reverse($onces)
- );
- }
-
- protected static function filterType(array $fields, ...$types): array
- {
- return array_filter($fields, function (Field $field) use ($types) {
- return $field->hasType(...$types);
- });
- }
-}
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/CronType.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/CronType.php
deleted file mode 100644
index 3c4629bed..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/CronType.php
+++ /dev/null
@@ -1,91 +0,0 @@
-type = $type;
- $this->value = $value;
- $this->count = $count;
- $this->increment = $increment;
- }
-
- public static function every(): CronType
- {
- return new static('Every');
- }
-
- public static function increment(int $increment, int $count = 1): CronType
- {
- return new static('Increment', null, $count, $increment);
- }
-
- public static function multiple(int $count): CronType
- {
- return new static('Multiple', null, $count);
- }
-
- public static function once(int $value): CronType
- {
- return new static('Once', $value);
- }
-
- /**
- * @throws CronParsingException
- */
- public static function parse(string $expression): CronType
- {
- // Parse "*".
- if ($expression === '*') {
- return static::every();
- }
-
- // Parse fixed values like "1".
- if (preg_match("/^[0-9]+$/", $expression)) {
- return static::once((int) $expression);
- }
-
- // Parse multiple selected values like "1,2,5".
- if (preg_match("/^[0-9]+(,[0-9]+)+$/", $expression)) {
- return static::multiple(count(explode(',', $expression)));
- }
-
- // Parse ranges of selected values like "1-5".
- if (preg_match("/^([0-9]+)\-([0-9]+)$/", $expression, $matches)) {
- $count = $matches[2] - $matches[1] + 1;
- return $count > 1
- ? static::multiple($count)
- : static::once((int) $matches[1]);
- }
-
- // Parse incremental expressions like "*/2", "1-4/10" or "1,3/4".
- if (preg_match("/(.+)\/([0-9]+)$/", $expression, $matches)) {
- $range = static::parse($matches[1]);
- if ($range->hasType('Once', 'Every')) {
- return static::Increment($matches[2]);
- }
- if ($range->hasType('Multiple')) {
- return static::Increment($matches[2], $range->count);
- }
- }
-
- // Unsupported expressions throw exceptions.
- throw new CronParsingException($expression);
- }
-
- public function hasType(): bool
- {
- return in_array($this->type, func_get_args());
- }
-}
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/DaysOfMonthField.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/DaysOfMonthField.php
deleted file mode 100644
index 16143f204..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/DaysOfMonthField.php
+++ /dev/null
@@ -1,68 +0,0 @@
-expression->weekday->hasType('Once')) {
- return $this->lang('days_of_week.every', [
- 'weekday' => $this->expression->weekday->format(),
- ]);
- }
-
- return $this->lang('days_of_month.every');
- }
-
- public function translateIncrement()
- {
- if ($this->getCount() > 1) {
- return $this->lang('days_of_month.multiple_per_increment', [
- 'count' => $this->getCount(),
- 'increment' => $this->getIncrement(),
- ]);
- }
-
- return $this->lang('days_of_month.increment', [
- 'increment' => $this->getIncrement(),
- ]);
- }
-
- public function translateMultiple()
- {
- return $this->lang('days_of_month.multiple_per_month', [
- 'count' => $this->getCount(),
- ]);
- }
-
- public function translateOnce(): ?string
- {
- $month = $this->expression->month;
-
- if ($month->hasType('Once')) {
- return null; // MonthsField adapts to "On January the 1st".
- }
-
- if ($month->hasType('Every') && ! $month->dropped) {
- return null; // MonthsField adapts to "The 1st of every month".
- }
-
- if ($month->hasType('Every') && $month->dropped) {
- return $this->lang('days_of_month.every_on_day', [
- 'day' => $this->format()
- ]);
- }
-
- return $this->lang('days_of_month.once_on_day', [
- 'day' => $this->format()
- ]);
- }
-
- public function format()
- {
- return $this->langCountable('ordinals', $this->getValue());
- }
-}
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/DaysOfWeekField.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/DaysOfWeekField.php
deleted file mode 100644
index 60a615a37..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/DaysOfWeekField.php
+++ /dev/null
@@ -1,56 +0,0 @@
-lang('years.every');
- }
-
- public function translateIncrement()
- {
- if ($this->getCount() > 1) {
- return $this->lang('days_of_week.multiple_per_increment', [
- 'count' => $this->getCount(),
- 'increment' => $this->getIncrement(),
- ]);
- }
-
- return $this->lang('days_of_week.increment', [
- 'increment' => $this->getIncrement(),
- ]);
- }
-
- public function translateMultiple()
- {
- return $this->lang('days_of_week.multiple_days_a_week', [
- 'count' => $this->getCount(),
- ]);
- }
-
- public function translateOnce()
- {
- if ($this->expression->day->hasType('Every') && ! $this->expression->day->dropped) {
- return; // DaysOfMonthField adapts to "Every Sunday".
- }
-
- return $this->lang('days_of_week.once_on_day', [
- 'day' => $this->format()
- ]);
- }
-
- public function format(): string
- {
- $weekday = $this->getValue() === 0 ? 7 : $this->getValue();
-
- if ($weekday < 1 || $weekday > 7) {
- throw new CronParsingException($this->expression->raw);
- }
-
- return $this->langCountable('days', $weekday);
- }
-}
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/Field.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/Field.php
deleted file mode 100644
index 83470b471..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/Field.php
+++ /dev/null
@@ -1,63 +0,0 @@
-expression = $expression;
- $this->rawField = $rawField;
- $this->type = CronType::parse($rawField);
- }
-
- public function translate()
- {
- $method = 'translate' . $this->type->type;
-
- if (method_exists($this, $method)) {
- return $this->{$method}();
- }
- }
-
- public function hasType(): bool
- {
- return $this->type->hasType(...func_get_args());
- }
-
- public function getValue(): ?int
- {
- return $this->type->value;
- }
-
- public function getCount(): ?int
- {
- return $this->type->count;
- }
-
- public function getIncrement(): ?int
- {
- return $this->type->increment;
- }
-
- public function getTimes()
- {
- return $this->langCountable('times', $this->getCount());
- }
-
- protected function langCountable(string $key, int $value)
- {
- return $this->expression->langCountable($key, $value);
- }
-
- protected function lang(string $key, array $replacements = [])
- {
- return $this->expression->lang($key, $replacements);
- }
-}
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/HoursField.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/HoursField.php
deleted file mode 100644
index 7bb91c39e..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/HoursField.php
+++ /dev/null
@@ -1,85 +0,0 @@
-expression->minute->hasType('Once')) {
- return $this->lang('hours.once_an_hour');
- }
-
- return $this->lang('hours.every');
- }
-
- public function translateIncrement()
- {
- if ($this->expression->minute->hasType('Once')) {
- return $this->lang('hours.times_per_increment', [
- 'times' => $this->getTimes(),
- 'increment' => $this->getIncrement(),
- ]);
- }
-
- if ($this->getCount() > 1) {
- return $this->lang('hours.multiple_per_increment', [
- 'count' => $this->getCount(),
- 'increment' => $this->getIncrement(),
- ]);
- }
-
- if ($this->expression->minute->hasType('Every')) {
- return $this->lang('hours.increment_chained', [
- 'increment' => $this->getIncrement(),
- ]);
- }
-
- return $this->lang('hours.increment', [
- 'increment' => $this->getIncrement(),
- ]);
- }
-
- public function translateMultiple()
- {
- if ($this->expression->minute->hasType('Once')) {
- return $this->lang('hours.times_per_day', [
- 'times' => $this->getTimes(),
- ]);
- }
-
- return $this->lang('hours.multiple_per_day', [
- 'count' => $this->getCount(),
- ]);
- }
-
- public function translateOnce()
- {
- $minute = $this->expression->minute->hasType('Once')
- ? $this->expression->minute
- : null;
-
- return $this->lang('hours.once_at_time', [
- 'time' => $this->format($minute)
- ]);
- }
-
- public function format(?MinutesField $minute = null): string
- {
- if ($this->expression->timeFormat24hours) {
- $hour = $this->getValue();
-
- return $minute ? "{$hour}:{$minute->format()}" : "{$hour}:00";
- }
-
- $amOrPm = $this->getValue() < 12 ? 'am' : 'pm';
- $hour = $this->getValue() % 12;
- $hour = $hour === 0 ? 12 : $hour;
-
- return $minute
- ? "{$hour}:{$minute->format()}{$amOrPm}"
- : "{$hour}{$amOrPm}";
- }
-}
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/MinutesField.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/MinutesField.php
deleted file mode 100644
index 926efb1be..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/MinutesField.php
+++ /dev/null
@@ -1,39 +0,0 @@
-lang('minutes.every');
- }
-
- public function translateIncrement()
- {
- if ($this->getCount() > 1) {
- return $this->lang('minutes.times_per_increment', [
- 'times' => $this->getTimes(),
- 'increment' => $this->getIncrement(),
- ]);
- }
-
- return $this->lang('minutes.increment', [
- 'increment' => $this->getIncrement(),
- ]);
- }
-
- public function translateMultiple()
- {
- return $this->lang('minutes.multiple', [
- 'times' => $this->getTimes(),
- ]);
- }
-
- public function format(): string
- {
- return ($this->getValue() < 10 ? '0' : '') . $this->getValue();
- }
-}
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/MonthsField.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/MonthsField.php
deleted file mode 100644
index 71b54a2b4..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/MonthsField.php
+++ /dev/null
@@ -1,66 +0,0 @@
-expression->day->hasType('Once')) {
- return $this->lang('months.every_on_day', [
- 'day' => $this->expression->day->format(),
- ]);
- }
-
- return $this->lang('months.every');
- }
-
- public function translateIncrement()
- {
- if ($this->getCount() > 1) {
- return $this->lang('months.multiple_per_increment', [
- 'count' => $this->getCount(),
- 'increment' => $this->getCount(),
- ]);
- }
-
- return $this->lang('months.increment', [
- 'increment' => $this->getIncrement(),
- ]);
- }
-
- public function translateMultiple()
- {
- return $this->lang('months.multiple_per_year', [
- 'count' => $this->getCount(),
- ]);
- }
-
- public function translateOnce()
- {
- if ($this->expression->day->hasType('Once')) {
- return $this->lang('months.once_on_day', [
- 'month' => $this->format(),
- 'day' => $this->expression->day->format(),
- ]);
- }
-
- return $this->lang('months.once_on_month', [
- 'month' => $this->format()
- ]);
- }
-
- /**
- * @throws CronParsingException
- */
- public function format()
- {
- if ($this->getValue() < 1 || $this->getValue() > 12) {
- throw new CronParsingException($this->expression->raw);
- }
-
- return $this->langCountable('months', $this->getValue());
- }
-}
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/TranslationFileMissingException.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/TranslationFileMissingException.php
deleted file mode 100644
index 541946731..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/TranslationFileMissingException.php
+++ /dev/null
@@ -1,13 +0,0 @@
- 'الإثنين',
- 2 => 'الثلاثاء',
- 3 => 'الأربعاء',
- 4 => 'الخميس',
- 5 => 'الجمعة',
- 6 => 'السبت',
- 7 => 'الأحد',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/ar/fields.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/ar/fields.php
deleted file mode 100644
index 9bf2551bd..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/ar/fields.php
+++ /dev/null
@@ -1,48 +0,0 @@
- [
- 'every' => 'كل دقيقة',
- 'increment' => 'كل :increment دقائق',
- 'times_per_increment' => ':times كل :increment دقائق',
- 'multiple' => ':times ساعات',
- ],
- 'hours' => [
- 'every' => 'كل ساعة',
- 'once_an_hour' => 'مرة في كل ساعة',
- 'increment' => 'كل :increment ساعات',
- 'multiple_per_increment' => ':count ساعات من :increment',
- 'times_per_increment' => ':times كل :increment ساعة',
- 'increment_chained' => 'كل :increment ساعة',
- 'multiple_per_day' => ':count ساعة كل يوم',
- 'times_per_day' => ':times في اليوم',
- 'once_at_time' => 'في :time',
- ],
- 'days_of_month' => [
- 'every' => 'كل يوم',
- 'increment' => 'كل :increment يوم',
- 'multiple_per_increment' => ':count أيام من :increment',
- 'multiple_per_month' => ':count أيام في الشهر',
- 'once_on_day' => 'في :day',
- 'every_on_day' => 'كل :day من كل شهر',
- ],
- 'months' => [
- 'every' => 'كل شهر',
- 'every_on_day' => ':day من كل شهر',
- 'increment' => 'كل :increment شهر',
- 'multiple_per_increment' => ':count أشهر من :increment',
- 'multiple_per_year' => ':count أشهر في العام',
- 'once_on_month' => 'في :month',
- 'once_on_day' => 'في :month ال :day',
- ],
- 'days_of_week' => [
- 'every' => 'كل :weekday',
- 'increment' => 'كل :increment أيام في الأسبوع',
- 'multiple_per_increment' => ':count أيام الأسبوع من :increment',
- 'multiple_days_a_week' => ':count أيام في الأسبوع',
- 'once_on_day' => 'في :days',
- ],
- 'years' => [
- 'every' => 'كل عام',
- ],
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/ar/months.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/ar/months.php
deleted file mode 100644
index d2e39e0b8..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/ar/months.php
+++ /dev/null
@@ -1,16 +0,0 @@
- 'يناير',
- 2 => 'فبراير',
- 3 => 'مارس',
- 4 => 'ابريل',
- 5 => 'مايو',
- 6 => 'يونيو',
- 7 => 'يوليو',
- 8 => 'أغسطس',
- 9 => 'سبتمبر',
- 10 => 'أكتوبر',
- 11 => 'نوفمبر',
- 12 => 'ديسمبر',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/ar/ordinals.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/ar/ordinals.php
deleted file mode 100644
index 5196797a6..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/ar/ordinals.php
+++ /dev/null
@@ -1,12 +0,0 @@
- ':numberth',
- 1 => 'الأول',
- 2 => 'الثاني',
- 3 => 'الثالث',
- 21 => 'الواحد و العشرون',
- 22 => 'الثاني و العشرون',
- 23 => 'الثالث و العشرون',
- 31 => 'الواحد و الثلاثون',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/ar/times.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/ar/times.php
deleted file mode 100644
index 97814a23a..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/ar/times.php
+++ /dev/null
@@ -1,7 +0,0 @@
- ':number أوقات',
- 1 => 'مرة',
- 2 => 'مرتان',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/days.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/days.php
deleted file mode 100644
index 6fe567556..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/days.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'Montag',
- 2 => 'Dienstag',
- 3 => 'Mittwoch',
- 4 => 'Donnerstag',
- 5 => 'Freitag',
- 6 => 'Samstag',
- 7 => 'Sonntag',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/fields.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/fields.php
deleted file mode 100644
index f82786f81..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/fields.php
+++ /dev/null
@@ -1,50 +0,0 @@
- [
- 'every' => 'jede Minute',
- 'increment' => 'jede :increment Minute',
- 'times_per_increment' => ':times mal alle :increment Minuten',
- 'multiple' => ':times mal pro Stunde',
- ],
- 'hours' => [
- 'every' => 'jede Stunde',
- 'once_an_hour' => 'ein mal pro Stunde',
- 'increment' => 'jede :increment Stunde',
- 'multiple_per_increment' => ':count Stunden aus :increment',
- 'times_per_increment' => ':times mal alle :increment Stunden',
- 'increment_chained' => 'alle :increment Stunden',
- 'multiple_per_day' => ':count Stunden pro Tag',
- 'times_per_day' => ':times mal am Tag',
- 'once_at_time' => 'um :time',
- ],
- 'days_of_month' => [
- 'every' => 'jeden Tag',
- 'increment' => 'alle :increment Tage',
- 'multiple_per_increment' => ':count Tage von :increment',
- 'multiple_per_month' => ':count Tage im Monat',
- 'once_on_day' => 'am :day',
- 'every_on_day' => 'am :day eines jeden Monats',
- ],
- 'months' => [
- 'every' => 'eines jeden Monat',
- 'every_on_day' => 'jeden :day eines jeden Monats',
- 'increment' => 'alle :increment Monate',
- 'multiple_per_increment' => ':count Monate von :increment',
- 'multiple_per_year' => ':count Monate im Jahr',
- 'once_on_month' => 'im :month',
- 'once_on_day' => 'im :month den :day',
- ],
- 'days_of_week' => [
- 'every' => 'jeden :weekday',
- 'increment' => 'jeden :increment Tag der Woche',
- 'multiple_per_increment' => ':count Tage in der Woche aus :increment',
- 'multiple_days_a_week' => ':count Tage in der Woche',
- #'once_on_day' => 'jeden :days',
- #'once_on_day' => 'am :days',
- 'once_on_day' => 'des :days',
- ],
- 'years' => [
- 'every' => 'jedes Jahr',
- ],
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/months.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/months.php
deleted file mode 100644
index c27991a1a..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/months.php
+++ /dev/null
@@ -1,16 +0,0 @@
- 'Januar',
- 2 => 'Februar',
- 3 => 'März',
- 4 => 'April',
- 5 => 'Mai',
- 6 => 'Juni',
- 7 => 'Juli',
- 8 => 'August',
- 9 => 'September',
- 10 => 'Oktober',
- 11 => 'November',
- 12 => 'Dezember',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/ordinals.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/ordinals.php
deleted file mode 100644
index 05b089b00..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/ordinals.php
+++ /dev/null
@@ -1,13 +0,0 @@
- ':number.',
- #'default' => str_pad(':number', 2, 0, STR_PAD_LEFT). '.',
- 1 => '1.',
- 2 => '2.',
- 3 => '3.',
- 21 => '21.',
- 22 => '22.',
- 23 => '23.',
- 31 => '31.',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/times.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/times.php
deleted file mode 100644
index 27be24004..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/de/times.php
+++ /dev/null
@@ -1,7 +0,0 @@
- ':number',
- 1 => 'Ein',
- 2 => 'Zwei',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/days.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/days.php
deleted file mode 100644
index 7df6a9b9f..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/days.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'Monday',
- 2 => 'Tuesday',
- 3 => 'Wednesday',
- 4 => 'Thursday',
- 5 => 'Friday',
- 6 => 'Saturday',
- 7 => 'Sunday',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/fields.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/fields.php
deleted file mode 100644
index 28da50251..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/fields.php
+++ /dev/null
@@ -1,48 +0,0 @@
- [
- 'every' => 'every minute',
- 'increment' => 'every :increment minutes',
- 'times_per_increment' => ':times every :increment minutes',
- 'multiple' => ':times an hour',
- ],
- 'hours' => [
- 'every' => 'every hour',
- 'once_an_hour' => 'once an hour',
- 'increment' => 'every :increment hours',
- 'multiple_per_increment' => ':count hours out of :increment',
- 'times_per_increment' => ':times every :increment hours',
- 'increment_chained' => 'of every :increment hours',
- 'multiple_per_day' => ':count hours a day',
- 'times_per_day' => ':times a day',
- 'once_at_time' => 'at :time',
- ],
- 'days_of_month' => [
- 'every' => 'every day',
- 'increment' => 'every :increment days',
- 'multiple_per_increment' => ':count days out of :increment',
- 'multiple_per_month' => ':count days a month',
- 'once_on_day' => 'on the :day',
- 'every_on_day' => 'on the :day of every month',
- ],
- 'months' => [
- 'every' => 'every month',
- 'every_on_day' => 'the :day of every month',
- 'increment' => 'every :increment months',
- 'multiple_per_increment' => ':count months out of :increment',
- 'multiple_per_year' => ':count months a year',
- 'once_on_month' => 'on :month',
- 'once_on_day' => 'on :month the :day',
- ],
- 'days_of_week' => [
- 'every' => 'every :weekday',
- 'increment' => 'every :increment days of the week',
- 'multiple_per_increment' => ':count days of the week out of :increment',
- 'multiple_days_a_week' => ':count days a week',
- 'once_on_day' => 'on :days',
- ],
- 'years' => [
- 'every' => 'every year',
- ],
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/months.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/months.php
deleted file mode 100644
index 159ba1891..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/months.php
+++ /dev/null
@@ -1,16 +0,0 @@
- 'January',
- 2 => 'February',
- 3 => 'March',
- 4 => 'April',
- 5 => 'May',
- 6 => 'June',
- 7 => 'July',
- 8 => 'August',
- 9 => 'September',
- 10 => 'October',
- 11 => 'November',
- 12 => 'December',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/ordinals.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/ordinals.php
deleted file mode 100644
index 47d3f593c..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/ordinals.php
+++ /dev/null
@@ -1,12 +0,0 @@
- ':numberth',
- 1 => '1st',
- 2 => '2nd',
- 3 => '3rd',
- 21 => '21st',
- 22 => '22nd',
- 23 => '23rd',
- 31 => '31st',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/times.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/times.php
deleted file mode 100644
index d651e4cba..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/en/times.php
+++ /dev/null
@@ -1,7 +0,0 @@
- ':number times',
- 1 => 'once',
- 2 => 'twice',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/days.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/days.php
deleted file mode 100644
index 77dd55118..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/days.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'lunes',
- 2 => 'martes',
- 3 => 'miércoles',
- 4 => 'jueves',
- 5 => 'viernes',
- 6 => 'sábado',
- 7 => 'domingo',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/fields.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/fields.php
deleted file mode 100644
index d4bbca445..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/fields.php
+++ /dev/null
@@ -1,48 +0,0 @@
- [
- 'every' => 'cada minuto',
- 'increment' => 'cada :increment minutos',
- 'times_per_increment' => ':times cada :increment minutos',
- 'multiple' => ':times cada hora',
- ],
- 'hours' => [
- 'every' => 'cada hora',
- 'once_an_hour' => 'una vez cada hora',
- 'increment' => 'cada :increment horas',
- 'multiple_per_increment' => ':count horas de cada :increment',
- 'times_per_increment' => ':times cada :increment horas',
- 'increment_chained' => 'de cada :increment horas',
- 'multiple_per_day' => ':count horas al día',
- 'times_per_day' => ':times al día',
- 'once_at_time' => 'a las :time',
- ],
- 'days_of_month' => [
- 'every' => 'diario',
- 'increment' => 'cada :increment días',
- 'multiple_per_increment' => ':count días de :increment',
- 'multiple_per_month' => ':count días al mes',
- 'once_on_day' => 'el :day',
- 'every_on_day' => 'el :day de cada mes',
- ],
- 'months' => [
- 'every' => 'cada mes',
- 'every_on_day' => 'el :day de cada mes',
- 'increment' => 'cada :increment meses',
- 'multiple_per_increment' => ':count meses de :increment',
- 'multiple_per_year' => ':count meses al año',
- 'once_on_month' => 'de :month',
- 'once_on_day' => 'en :month el :day',
- ],
- 'days_of_week' => [
- 'every' => 'cada :weekday',
- 'increment' => 'cada :increment días de la semana',
- 'multiple_per_increment' => ':count días a la semana de :increment',
- 'multiple_days_a_week' => ':count días a la semana',
- 'once_on_day' => 'los :days',
- ],
- 'years' => [
- 'every' => 'cada año',
- ],
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/months.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/months.php
deleted file mode 100644
index 2e988a449..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/months.php
+++ /dev/null
@@ -1,16 +0,0 @@
- 'enero',
- 2 => 'febrero',
- 3 => 'marzo',
- 4 => 'abril',
- 5 => 'mayo',
- 6 => 'junio',
- 7 => 'julio',
- 8 => 'agosto',
- 9 => 'septiembre',
- 10 => 'octubre',
- 11 => 'noviembre',
- 12 => 'diciembre',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/ordinals.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/ordinals.php
deleted file mode 100644
index 1f79960dc..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/ordinals.php
+++ /dev/null
@@ -1,5 +0,0 @@
- ':numberº',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/times.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/times.php
deleted file mode 100644
index 868156e00..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/es/times.php
+++ /dev/null
@@ -1,6 +0,0 @@
- ':number veces',
- 1 => 'una vez',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/days.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/days.php
deleted file mode 100644
index 2af7be296..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/days.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'lundi',
- 2 => 'mardi',
- 3 => 'mercredi',
- 4 => 'jeudi',
- 5 => 'vendredi',
- 6 => 'samedi',
- 7 => 'dimanche',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/fields.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/fields.php
deleted file mode 100644
index a339c9715..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/fields.php
+++ /dev/null
@@ -1,48 +0,0 @@
- [
- 'every' => 'chaque minute',
- 'increment' => 'toutes les :increment minutes',
- 'times_per_increment' => ':times toutes les :increment minutes',
- 'multiple' => ':times par heure',
- ],
- 'hours' => [
- 'every' => 'chaque heure',
- 'once_an_hour' => 'une fois par heure',
- 'increment' => 'toutes les :increment heures',
- 'multiple_per_increment' => ':count heures au-delà de :increment',
- 'times_per_increment' => ':times toutes les :increment heures',
- 'increment_chained' => 'toutes les :increment heures',
- 'multiple_per_day' => ':count heures par jour',
- 'times_per_day' => ':times par jour',
- 'once_at_time' => 'à :time',
- ],
- 'days_of_month' => [
- 'every' => 'chaque jour',
- 'increment' => 'tous les :increment jours',
- 'multiple_per_increment' => ':count jours sur :increment',
- 'multiple_per_month' => ':count jours par mois',
- 'once_on_day' => 'le :day',
- 'every_on_day' => 'le :day de chaque mois',
- ],
- 'months' => [
- 'every' => 'chaque mois',
- 'every_on_day' => 'le :day de chaque mois',
- 'increment' => 'tous les :increment mois',
- 'multiple_per_increment' => ':count mois sur :increment',
- 'multiple_per_year' => ':count mois par an',
- 'once_on_month' => 'en :month',
- 'once_on_day' => 'le :day :month',
- ],
- 'days_of_week' => [
- 'every' => 'chaque :weekday',
- 'increment' => 'tous les :increment jours de la semaine',
- 'multiple_per_increment' => ':count jours de la semaine sur :increment',
- 'multiple_days_a_week' => ':count jours par semaine',
- 'once_on_day' => 'les :days',
- ],
- 'years' => [
- 'every' => 'chaque année',
- ],
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/months.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/months.php
deleted file mode 100644
index 9b02c93fd..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/months.php
+++ /dev/null
@@ -1,16 +0,0 @@
- 'janvier',
- 2 => 'février',
- 3 => 'mars',
- 4 => 'avril',
- 5 => 'mai',
- 6 => 'juin',
- 7 => 'juillet',
- 8 => 'août',
- 9 => 'septembre',
- 10 => 'octobre',
- 11 => 'novembre',
- 12 => 'décembre',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/ordinals.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/ordinals.php
deleted file mode 100644
index 10a111e78..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/ordinals.php
+++ /dev/null
@@ -1,6 +0,0 @@
- ':number',
- 1 => '1er',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/times.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/times.php
deleted file mode 100644
index 1d29659b3..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/fr/times.php
+++ /dev/null
@@ -1,7 +0,0 @@
- ':number fois',
- 1 => 'une fois',
- 2 => 'deux fois',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/days.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/days.php
deleted file mode 100644
index ee858deff..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/days.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'pirmdien',
- 2 => 'otrdien',
- 3 => 'trešdien',
- 4 => 'ceturtdien',
- 5 => 'piektdien',
- 6 => 'sestdien',
- 7 => 'svētdien',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/fields.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/fields.php
deleted file mode 100644
index 2af59e309..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/fields.php
+++ /dev/null
@@ -1,48 +0,0 @@
- [
- 'every' => 'katru minūti',
- 'increment' => 'ik pēc :increment minūtēm',
- 'times_per_increment' => ':times ik pēc :increment minūtēm',
- 'multiple' => ':times stundā',
- ],
- 'hours' => [
- 'every' => 'katru stundu',
- 'once_an_hour' => 'vienreiz stundā',
- 'increment' => 'katras :increment stundas',
- 'multiple_per_increment' => ':count no :increment stundām',
- 'times_per_increment' => ':times katras :increment stundas',
- 'increment_chained' => 'ik pēc :increment stundām',
- 'multiple_per_day' => ':count stundas dienā',
- 'times_per_day' => ':times dienā',
- 'once_at_time' => 'plkst. :time',
- ],
- 'days_of_month' => [
- 'every' => 'katru dienu',
- 'increment' => 'ik pēc :increment dienām',
- 'multiple_per_increment' => ':count dienas no :increment',
- 'multiple_per_month' => ':count dienas mēnesī',
- 'once_on_day' => ':day. datumā',
- 'every_on_day' => 'katra mēneša :day. datumā',
- ],
- 'months' => [
- 'every' => 'katru mēnesi',
- 'every_on_day' => 'katra mēneša :day. datumā',
- 'increment' => 'katrus :increment mēnešus',
- 'multiple_per_increment' => ':count mēnešus no :increment',
- 'multiple_per_year' => ':count mēnešus gadā',
- 'once_on_month' => ':month',
- 'once_on_day' => ':day. :month',
- ],
- 'days_of_week' => [
- 'every' => 'katru :weekdayu',
- 'increment' => 'ik pēc :increment nedēļas dienām',
- 'multiple_per_increment' => ':count nedēļas dienas no :increment',
- 'multiple_days_a_week' => ':count dienas nedēļā',
- 'once_on_day' => ':dayās',
- ],
- 'years' => [
- 'every' => 'katru gadu',
- ],
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/months.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/months.php
deleted file mode 100644
index 23c210f6d..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/months.php
+++ /dev/null
@@ -1,16 +0,0 @@
- 'janvārī',
- 2 => 'februārī',
- 3 => 'martā',
- 4 => 'aprīlī',
- 5 => 'maijā',
- 6 => 'jūnijā',
- 7 => 'jūlijā',
- 8 => 'augustā',
- 9 => 'septembrī',
- 10 => 'oktobrī',
- 11 => 'novembrī',
- 12 => 'decembrī',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/ordinals.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/ordinals.php
deleted file mode 100644
index e160d8016..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/ordinals.php
+++ /dev/null
@@ -1,5 +0,0 @@
- ':number',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/times.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/times.php
deleted file mode 100644
index 9ada98fe3..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/lv/times.php
+++ /dev/null
@@ -1,7 +0,0 @@
- ':number reizes',
- 1 => 'vienreiz',
- 2 => 'divreiz',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/days.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/days.php
deleted file mode 100644
index 95fa5b769..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/days.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'Maandag',
- 2 => 'Dinsdag',
- 3 => 'Woensdag',
- 4 => 'Donderdag',
- 5 => 'Vrijdag',
- 6 => 'Zaterdag',
- 7 => 'Zondag',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/fields.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/fields.php
deleted file mode 100644
index 5a17ce00a..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/fields.php
+++ /dev/null
@@ -1,48 +0,0 @@
- [
- 'every' => 'elke minuut',
- 'increment' => 'elke :increment minuten',
- 'times_per_increment' => ':times elke :increment minuten',
- 'multiple' => ':times per uur',
- ],
- 'hours' => [
- 'every' => 'elk uur',
- 'once_an_hour' => 'eens per uur',
- 'increment' => 'elke :increment uur',
- 'multiple_per_increment' => ':count uur van de :increment',
- 'times_per_increment' => ':times elke :increment uur',
- 'increment_chained' => 'van elke :increment uur',
- 'multiple_per_day' => ':count uur per dag',
- 'times_per_day' => ':times per dag',
- 'once_at_time' => 'om :time',
- ],
- 'days_of_month' => [
- 'every' => 'elke dag',
- 'increment' => 'elke :increment dagen',
- 'multiple_per_increment' => ':count dagen van de :increment',
- 'multiple_per_month' => ':count dagen per maand',
- 'once_on_day' => 'op de :day',
- 'every_on_day' => 'op de :day van elke maand',
- ],
- 'months' => [
- 'every' => 'elke maand',
- 'every_on_day' => 'de :day van elke maand',
- 'increment' => 'elke :increment maanden',
- 'multiple_per_increment' => ':count maanden van de :increment',
- 'multiple_per_year' => ':count maanden per jaar',
- 'once_on_month' => 'in :month',
- 'once_on_day' => 'in :month de :day',
- ],
- 'days_of_week' => [
- 'every' => 'elke :weekday',
- 'increment' => 'elke :increment dag van de week',
- 'multiple_per_increment' => ':count dagen van de week op :increment',
- 'multiple_days_a_week' => ':count dagen per week ',
- 'once_on_day' => 'op :days',
- ],
- 'years' => [
- 'every' => 'elk jaar',
- ],
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/months.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/months.php
deleted file mode 100644
index 0214c8d9f..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/months.php
+++ /dev/null
@@ -1,16 +0,0 @@
- 'januari',
- 2 => 'februari',
- 3 => 'maart',
- 4 => 'april',
- 5 => 'mei',
- 6 => 'juni',
- 7 => 'juli',
- 8 => 'augustus',
- 9 => 'september',
- 10 => 'oktober',
- 11 => 'november',
- 12 => 'december',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/ordinals.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/ordinals.php
deleted file mode 100644
index 89fbe94ef..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/ordinals.php
+++ /dev/null
@@ -1,5 +0,0 @@
- ':numbere',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/times.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/times.php
deleted file mode 100644
index b550e5134..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/nl/times.php
+++ /dev/null
@@ -1,5 +0,0 @@
- ':number keer',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/days.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/days.php
deleted file mode 100644
index e4a1ca963..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/days.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'Segunda-feira',
- 2 => 'Terça-feira',
- 3 => 'Quarta-feira',
- 4 => 'Quinta-feira',
- 5 => 'Sexta-feira',
- 6 => 'Sábado',
- 7 => 'Domingo',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/fields.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/fields.php
deleted file mode 100644
index d126f4eb3..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/fields.php
+++ /dev/null
@@ -1,48 +0,0 @@
- [
- 'every' => 'todos os minutos',
- 'increment' => 'cada :increment minutos',
- 'times_per_increment' => ':times cada :increment minutos',
- 'multiple' => ':times por hora',
- ],
- 'hours' => [
- 'every' => 'todas as horas',
- 'once_an_hour' => 'uma vez por hora',
- 'increment' => 'cada :increment horas',
- 'multiple_per_increment' => ':count horas cada :increment',
- 'times_per_increment' => ':times cada :increment horas',
- 'increment_chained' => 'de cada :increment horas',
- 'multiple_per_day' => ':count horas por dia',
- 'times_per_day' => ':times por dia',
- 'once_at_time' => 'às :time',
- ],
- 'days_of_month' => [
- 'every' => 'todos os dias',
- 'increment' => 'cada :increment dias',
- 'multiple_per_increment' => ':count dias cada :increment',
- 'multiple_per_month' => ':count dias por mês',
- 'once_on_day' => 'no :day dia',
- 'every_on_day' => 'no :day dia de cada mês',
- ],
- 'months' => [
- 'every' => 'todos os meses',
- 'every_on_day' => 'no :day dia de cada mês',
- 'increment' => 'cada :increment meses',
- 'multiple_per_increment' => ':count meses cada :increment',
- 'multiple_per_year' => ':count meses por ano',
- 'once_on_month' => 'em :month',
- 'once_on_day' => 'no :day de :month',
- ],
- 'days_of_week' => [
- 'every' => 'cada :weekday',
- 'increment' => 'cada :increment dias da semana',
- 'multiple_per_increment' => ':count dias da semana cada :increment',
- 'multiple_days_a_week' => ':count dias da semana',
- 'once_on_day' => 'nas/nos :days',
- ],
- 'years' => [
- 'every' => 'todos os anos',
- ],
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/months.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/months.php
deleted file mode 100644
index b49d24e61..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/months.php
+++ /dev/null
@@ -1,16 +0,0 @@
- 'Janeiro',
- 2 => 'Fevereiro',
- 3 => 'Março',
- 4 => 'Abril',
- 5 => 'Maio',
- 6 => 'Junho',
- 7 => 'Julho',
- 8 => 'Agosto',
- 9 => 'Setembro',
- 10 => 'Outubro',
- 11 => 'Novembro',
- 12 => 'Dezembro',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/ordinals.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/ordinals.php
deleted file mode 100644
index 1f79960dc..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/ordinals.php
+++ /dev/null
@@ -1,5 +0,0 @@
- ':numberº',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/times.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/times.php
deleted file mode 100644
index e56f6099e..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/pt/times.php
+++ /dev/null
@@ -1,6 +0,0 @@
- ':number vezes',
- 1 => 'uma vez',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/days.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/days.php
deleted file mode 100644
index cb0927418..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/days.php
+++ /dev/null
@@ -1,11 +0,0 @@
- 'pondelok',
- 2 => 'utorok',
- 3 => 'streda',
- 4 => 'štvrtok',
- 5 => 'piatok',
- 6 => 'sobota',
- 7 => 'nedeľa',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/fields.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/fields.php
deleted file mode 100644
index 6aa909629..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/fields.php
+++ /dev/null
@@ -1,48 +0,0 @@
- [
- 'every' => 'každú minútu',
- 'increment' => 'každých :increment minút',
- 'times_per_increment' => ':times každých :increment minút',
- 'multiple' => ':times za hodinu',
- ],
- 'hours' => [
- 'every' => 'každú hodinu',
- 'once_an_hour' => 'raz za hodinu',
- 'increment' => 'každých :increment hodín',
- 'multiple_per_increment' => ':count hodín z :increment',
- 'times_per_increment' => ':times každých :increment hodín',
- 'increment_chained' => 'každých :increment hodín',
- 'multiple_per_day' => ':count hodín za deň',
- 'times_per_day' => ':times za deň',
- 'once_at_time' => 'o :time',
- ],
- 'days_of_month' => [
- 'every' => 'každý deň',
- 'increment' => 'každých :increment dní',
- 'multiple_per_increment' => ':count dní z :increment',
- 'multiple_per_month' => ':count dní v mesiaci',
- 'once_on_day' => ':day dňa v mesiaci',
- 'every_on_day' => 'na každý :day deň v mesiaci',
- ],
- 'months' => [
- 'every' => 'každý mesiac',
- 'every_on_day' => 'každý :day deň v mesiaci',
- 'increment' => 'každých :increment mesiacov',
- 'multiple_per_increment' => ':count mesiacov z :increment',
- 'multiple_per_year' => ':count mesiacov ročne',
- 'once_on_month' => 'v mesiaci :month',
- 'once_on_day' => 'na :day deň v mesiaci :month',
- ],
- 'days_of_week' => [
- 'every' => 'každá/ý :weekday',
- 'increment' => 'každých :increment dní v týždni',
- 'multiple_per_increment' => ':count dní v týždni z :increment',
- 'multiple_days_a_week' => ':count dní v týždni',
- 'once_on_day' => 'v :day',
- ],
- 'years' => [
- 'every' => 'každý rok',
- ],
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/months.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/months.php
deleted file mode 100644
index d3be7f015..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/months.php
+++ /dev/null
@@ -1,16 +0,0 @@
- 'január',
- 2 => 'február',
- 3 => 'marec',
- 4 => 'apríl',
- 5 => 'máj',
- 6 => 'jún',
- 7 => 'júl',
- 8 => 'august',
- 9 => 'september',
- 10 => 'október',
- 11 => 'november',
- 12 => 'december',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/ordinals.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/ordinals.php
deleted file mode 100644
index 7194b57a7..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/ordinals.php
+++ /dev/null
@@ -1,12 +0,0 @@
- ':number.',
- 1 => '1.',
- 2 => '2.',
- 3 => '3.',
- 21 => '21.',
- 22 => '22.',
- 23 => '23.',
- 31 => '31.',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/times.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/times.php
deleted file mode 100644
index a51eee42a..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/sk/times.php
+++ /dev/null
@@ -1,7 +0,0 @@
- ':number-krát',
- 1 => 'raz',
- 2 => 'dva razy',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/days.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/days.php
deleted file mode 100644
index 62eb6813f..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/days.php
+++ /dev/null
@@ -1,11 +0,0 @@
- '周一',
- 2 => '周二',
- 3 => '周三',
- 4 => '周四',
- 5 => '周五',
- 6 => '周六',
- 7 => '周日',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/fields.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/fields.php
deleted file mode 100644
index 630ed4769..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/fields.php
+++ /dev/null
@@ -1,48 +0,0 @@
- [
- 'every' => '每分钟',
- 'increment' => '每:increment分钟',
- 'times_per_increment' => '每:increment分钟:times',
- 'multiple' => '一小时:times',
- ],
- 'hours' => [
- 'every' => '每小时',
- 'once_an_hour' => '每整点',
- 'increment' => '每:increment小时',
- 'multiple_per_increment' => '每:increment小时中有:count小时',
- 'times_per_increment' => '每:increment小时:times',
- 'increment_chained' => '每:increment小时',
- 'multiple_per_day' => '每天有:count小时',
- 'times_per_day' => '每天:times',
- 'once_at_time' => '在:time',
- ],
- 'days_of_month' => [
- 'every' => '每天',
- 'increment' => '每:increment天',
- 'multiple_per_increment' => '每:increment天中有:count天',
- 'multiple_per_month' => '每月:count天',
- 'once_on_day' => '在:day号',
- 'every_on_day' => '在每月:day号',
- ],
- 'months' => [
- 'every' => '每月',
- 'every_on_day' => '每月:day号',
- 'increment' => '每:increment个月',
- 'multiple_per_increment' => '每:increment月中有:count月',
- 'multiple_per_year' => '每年:count个月',
- 'once_on_month' => '在:month',
- 'once_on_day' => '在:month:day号',
- ],
- 'days_of_week' => [
- 'every' => '每周:weekday',
- 'increment' => '每周:increment天',
- 'multiple_per_increment' => '每:increment周中有:count天',
- 'multiple_days_a_week' => '一周:count天',
- 'once_on_day' => '在:day',
- ],
- 'years' => [
- 'every' => '每年',
- ],
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/months.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/months.php
deleted file mode 100644
index 8451ff176..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/months.php
+++ /dev/null
@@ -1,16 +0,0 @@
- '一月',
- 2 => '二月',
- 3 => '三月',
- 4 => '四月',
- 5 => '五月',
- 6 => '六月',
- 7 => '七月',
- 8 => '八月',
- 9 => '九月',
- 10 => '十月',
- 11 => '十一月',
- 12 => '十二月',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/ordinals.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/ordinals.php
deleted file mode 100644
index e160d8016..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/ordinals.php
+++ /dev/null
@@ -1,5 +0,0 @@
- ':number',
-];
diff --git a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/times.php b/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/times.php
deleted file mode 100644
index 339427672..000000000
--- a/modules/qlocrontaskmanager/vendor/lorisleiva/cron-translator/src/lang/zh/times.php
+++ /dev/null
@@ -1,5 +0,0 @@
- ':number次',
-];
diff --git a/modules/qlocrontaskmanager/views/templates/admin/configure.tpl b/modules/qlocrontaskmanager/views/templates/admin/configure.tpl
index ad651a980..9ba2c5c27 100644
--- a/modules/qlocrontaskmanager/views/templates/admin/configure.tpl
+++ b/modules/qlocrontaskmanager/views/templates/admin/configure.tpl
@@ -29,7 +29,9 @@
{l s='Add the following cron entry to your server. This single command will manage all module cron tasks automatically.' mod='qlocrontaskmanager'}