Skip to content

Commit

Permalink
Merge pull request #16638 from UshaMakoa/patch-1
Browse files Browse the repository at this point in the history
Contact Type Values with Cap in order to be well translated with ts()
  • Loading branch information
colemanw authored Feb 27, 2020
2 parents 5128655 + 0d98723 commit 7b6fb49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CRM/Contact/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public static function tasks() {
}

if (CRM_Contact_BAO_ContactType::isActive('Individual')) {
$label = CRM_Contact_BAO_ContactType::getLabel('individual');
$label = CRM_Contact_BAO_ContactType::getLabel('Individual');
self::$_tasks[self::INDIVIDUAL_CONTACTS] = array(
'title' => ts('Add relationship - to %1',
array(1 => $label)
Expand All @@ -170,7 +170,7 @@ public static function tasks() {
}

if (CRM_Contact_BAO_ContactType::isActive('Household')) {
$label = CRM_Contact_BAO_ContactType::getLabel('household');
$label = CRM_Contact_BAO_ContactType::getLabel('Household');
self::$_tasks[self::HOUSEHOLD_CONTACTS] = array(
'title' => ts('Add relationship - to %1',
array(1 => $label)
Expand All @@ -180,7 +180,7 @@ public static function tasks() {
}

if (CRM_Contact_BAO_ContactType::isActive('Organization')) {
$label = CRM_Contact_BAO_ContactType::getLabel('organization');
$label = CRM_Contact_BAO_ContactType::getLabel('Organization');
self::$_tasks[self::ORGANIZATION_CONTACTS] = array(
'title' => ts('Add relationship - to %1',
array(1 => $label)
Expand Down

0 comments on commit 7b6fb49

Please sign in to comment.