Merge pull request #3836 from jmcclelland/api-trigger-rebuild
[civicrm-core.git] / CRM / Utils / DeprecatedUtils.php
index 9ec53a73ad9a08fc77ba6051b7b346a40cc2e8fe..4ec6275a363a9e75ca8b2c090152e23eb71a5a17 100644 (file)
@@ -415,7 +415,9 @@ function _civicrm_api3_deprecated_formatted_param($params, &$values, $create = F
               $contact->external_identifier = $externalId;
               $errorMsg = NULL;
               if (!$contact->find(TRUE)) {
-                $errorMsg = $contactId ? ts("Soft Credit ContactID - $contactId doesn't exist. Row was skipped.") : ts("Provided Soft Credit External Identifier - $externalIddoesn't exist. Row was skipped.");
+                $field = $contactId ? ts('Contact ID') : ts('External ID');
+                $errorMsg = ts("Soft Credit %1 - %2 doesn't exist. Row was skipped.",
+                  array(1 => $field, 2 => $contactId ? $contactId : $externalId));
               }
 
               if ($errorMsg) {