Make cron patterns translatable
This commit is contained in:
+7
-7
@@ -10,7 +10,7 @@
|
||||
/* global Clipboard */
|
||||
/* global SECRET_PLACEHOLDER */
|
||||
|
||||
angular.module('Application').controller('AppController', ['$scope', '$location', '$timeout', '$interval', '$route', '$routeParams', 'Client', function ($scope, $location, $timeout, $interval, $route, $routeParams, Client) {
|
||||
angular.module('Application').controller('AppController', ['$scope', '$location', '$translate', '$timeout', '$interval', '$route', '$routeParams', 'Client', function ($scope, $location, $translate, $timeout, $interval, $route, $routeParams, Client) {
|
||||
// List is from http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
|
||||
$scope.s3Regions = [
|
||||
{ name: 'Asia Pacific (Mumbai)', value: 'ap-south-1' },
|
||||
@@ -904,12 +904,12 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
error: {},
|
||||
|
||||
commonPatterns: [
|
||||
{ value: '* * * * *', label: 'Every Minute' },
|
||||
{ value: '0 * * * *', label: 'Every Hour' },
|
||||
{ value: '*/30 * * * *', label: 'Twice per Hour' },
|
||||
{ value: '0 0 * * *', label: 'Every Day' },
|
||||
{ value: '0 */12 * * *', label: 'Twice per Day' },
|
||||
{ value: '0 0 * * 0', label: 'Every Sunday' }
|
||||
{ value: '* * * * *', label: $translate.instant('app.cron.commonPattern.everyMinute') },
|
||||
{ value: '0 * * * *', label: $translate.instant('app.cron.commonPattern.everyHour') },
|
||||
{ value: '*/30 * * * *', label: $translate.instant('app.cron.commonPattern.twicePerHour') },
|
||||
{ value: '0 0 * * *', label: $translate.instant('app.cron.commonPattern.everyDay') },
|
||||
{ value: '0 */12 * * *', label: $translate.instant('app.cron.commonPattern.twicePerDay') },
|
||||
{ value: '0 0 * * 0', label: $translate.instant('app.cron.commonPattern.everySunday') }
|
||||
],
|
||||
|
||||
crontab: '',
|
||||
|
||||
Reference in New Issue
Block a user