minor fixes
authordeb.monish <monish.deb@jmaconsulting.biz>
Mon, 30 Oct 2017 17:25:28 +0000 (22:55 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Mon, 4 Dec 2017 14:05:29 +0000 (19:35 +0530)
CRM/Admin/Form/Preferences/Mailing.php
ang/crmMailing/EditRecipCtrl.js

index 1abfbc26c7b2e45b7c0554ccdd835248e7a309ee..74639b944dc213faf4a7bb7fdefc064e4503404d 100644 (file)
@@ -106,13 +106,13 @@ class CRM_Admin_Form_Preferences_Mailing extends CRM_Admin_Form_Preferences {
           '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.'),
         ),
       ),
     );
index 05d3e13c15803c2f0877f08b30ff81f63ee88256..9fca637a73d8be3edf87b04e009f1487de97bffb 100644 (file)
 
     $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