'html_type' => 'checkbox',
'title' => ts('Hashed Mailing URL\'s'),
'weight' => 11,
- 'description' => 'If enabled, a randomized hash key will be used to reference the mailing URL in the mailing.viewUrl token, instead of the mailing ID',
+ 'description' => ts('If enabled, a randomized hash key will be used to reference the mailing URL in the mailing.viewUrl token, instead of the mailing ID'),
),
'auto_recipient_rebuild' => array(
'html_type' => 'checkbox',
'title' => ts('Enable automatic CiviMail recipient count display'),
'weight' => 12,
- 'description' => 'Enable this setting to rebuild recipient list automatically during composing mail. Disable will allow you to rebuild recipient manually.',
+ 'description' => ts('Enable this setting to rebuild recipient list automatically during composing mail. Disable will allow you to rebuild recipient manually.'),
),
),
);
$scope.getRecipientCount = function() {
var ts = $scope.ts;
- if ($scope.recipients === 0 || $scope.outdated) {
- return $scope.permitRecipientRebuild ? ts('(unknown)') : ts('No Recipients');
+ if ($scope.recipients === 0) {
+ return ts('No Recipients');
+ }
+ else if ($scope.recipients > 0) {
+ return ts('~%1 recipients', {1 : $scope.recipients});
+ }
+ else if ($scope.outdated) {
+ return ts('(unknown)');
+ }
+ else {
+ return $scope.permitRecipientRebuild ? ts('(unknown)') : ts('Estimating...');
}
- return ($scope.recipients === 1) ? ts('~1 recipient') : ts('~%1 recipients', {1 : $scope.recipients});
};
// We monitor four fields -- use debounce so that changes across the