backupApp.controller('PauseController', function($scope, $location, gettextCatalog) {
     $scope.selection = $scope.$parent.state.CurrentItem;

     $scope.selection.time = 'infinite';
     $scope.labelPattern = '{{number}} Minutes';

     $scope.periods = [
          { id: 'fivemin', labelPattern: '{{number}} Minutes', value: '5m', translateParameter: { number: 5 } },
          { id: 'tenmin', labelPattern: '{{number}} Minutes', value: '10m', translateParameter: { number: 10 } },
          { id: 'fifteenmin', labelPattern: '{{number}} Minutes', value: '15m', translateParameter: { number: 15 } },
          { id: 'thirtymin', labelPattern: '{{number}} Minutes', value: '30m', translateParameter: { number: 30 } },
          { id: 'onehour', labelPattern: '{{number}} Hour', value: '1h', translateParameter: { number: 1 } },
          { id: 'fourhour', labelPattern: '{{number}} Hours', value: '4h', translateParameter: { number: 4 } },
          { id: 'eighthour', labelPattern: '{{number}} Hours', value: '8h', translateParameter: { number: 8 } },
          { id: 'twentyfourhour', labelPattern: '{{number}} Hours', value: '24h', translateParameter: { number: 24 } },
          { id: 'infinite', labelPattern: 'Until resumed', value: 'infinite', translateParameter: null },
     ]
});
