From 3bd48a28dd669382dc2f70faa824ad0f8cf2652f Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 15 Nov 2014 20:46:53 -0500 Subject: [PATCH] CRM-15603 - Standardize case of 'Assigned to' --- CRM/ACL/Form/EntityRole.php | 2 +- CRM/Activity/Form/Activity.php | 4 ++-- CRM/Activity/Form/Task/Batch.php | 2 +- CRM/Case/XMLProcessor/Report.php | 2 +- CRM/Report/Form/Contact/Detail.php | 2 +- templates/CRM/ACL/Page/EntityRole.tpl | 2 +- templates/CRM/Activity/Form/Task/Print.tpl | 2 +- tests/phpunit/WebTest/Activity/ContactContextAddTest.php | 2 +- tests/phpunit/WebTest/Activity/StandaloneAddTest.php | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CRM/ACL/Form/EntityRole.php b/CRM/ACL/Form/EntityRole.php index 9e21e49334..23098448c2 100644 --- a/CRM/ACL/Form/EntityRole.php +++ b/CRM/ACL/Form/EntityRole.php @@ -64,7 +64,7 @@ class CRM_ACL_Form_EntityRole extends CRM_Admin_Form { - $label = ts('Assigned To'); + $label = ts('Assigned to'); $group = array('' => ts('- select group -')) + CRM_Core_PseudoConstant::staticGroup(FALSE, 'Access'); $this->add('select', 'entity_id', $label, $group, TRUE, array('class' => 'crm-select2 huge')); diff --git a/CRM/Activity/Form/Activity.php b/CRM/Activity/Form/Activity.php index 6ec2ae10a0..b314494f11 100644 --- a/CRM/Activity/Form/Activity.php +++ b/CRM/Activity/Form/Activity.php @@ -179,12 +179,12 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task { ), 'assignee_contact_id' => array( 'type' => 'entityRef', - 'label' => ts('Assigned To'), + 'label' => ts('Assigned to'), 'attributes' => array('multiple' => TRUE, 'create' => TRUE, 'api' => array('params' => array('is_deceased' => 0))), ), 'followup_assignee_contact_id' => array( 'type' => 'entityRef', - 'label' => ts('Assigned To'), + 'label' => ts('Assigned to'), 'attributes' => array('multiple' => TRUE, 'create' => TRUE, 'api' => array('params' => array('is_deceased' => 0))), ), 'followup_activity_type_id' => array( diff --git a/CRM/Activity/Form/Task/Batch.php b/CRM/Activity/Form/Task/Batch.php index e29bc0e634..999ba60a33 100755 --- a/CRM/Activity/Form/Task/Batch.php +++ b/CRM/Activity/Form/Task/Batch.php @@ -83,7 +83,7 @@ class CRM_Activity_Form_Task_Batch extends CRM_Activity_Form_Task { $contactDetails = CRM_Contact_BAO_Contact_Utils::contactDetails($this->_activityHolderIds, 'Activity', $returnProperties ); - $readOnlyFields['assignee_display_name'] = ts('Assigned To'); + $readOnlyFields['assignee_display_name'] = ts('Assigned to'); if(!empty($contactDetails)) { foreach($contactDetails as $key => $value){ $assignee = CRM_Activity_BAO_ActivityAssignment::retrieveAssigneeIdsByActivityId($key); diff --git a/CRM/Case/XMLProcessor/Report.php b/CRM/Case/XMLProcessor/Report.php index bdfc9c4ca1..6cef74c6e0 100644 --- a/CRM/Case/XMLProcessor/Report.php +++ b/CRM/Case/XMLProcessor/Report.php @@ -466,7 +466,7 @@ WHERE a.id = %1 } $assigneeContacts = implode(', ', $assignee_contact_names); $activity['fields'][] = array( - 'label' => ts('Assigned To'), + 'label' => ts('Assigned to'), 'value' => $assigneeContacts, 'type' => 'String', ); diff --git a/CRM/Report/Form/Contact/Detail.php b/CRM/Report/Form/Contact/Detail.php index 87917f3b13..32f0aa3594 100644 --- a/CRM/Report/Form/Contact/Detail.php +++ b/CRM/Report/Form/Contact/Detail.php @@ -335,7 +335,7 @@ class CRM_Report_Form_Contact_Detail extends CRM_Report_Form { 'fields' => array( 'assignee_contact_id' => - array('title' => ts('Assigned To'), + array('title' => ts('Assigned to'), 'name' => 'contact_id', 'default' => TRUE, ), diff --git a/templates/CRM/ACL/Page/EntityRole.tpl b/templates/CRM/ACL/Page/EntityRole.tpl index 5bfafb04fe..f815223df7 100644 --- a/templates/CRM/ACL/Page/EntityRole.tpl +++ b/templates/CRM/ACL/Page/EntityRole.tpl @@ -47,7 +47,7 @@ {ts}ACL Role{/ts} - {ts}Assigned To{/ts} + {ts}Assigned to{/ts} {ts}Enabled?{/ts} diff --git a/templates/CRM/Activity/Form/Task/Print.tpl b/templates/CRM/Activity/Form/Task/Print.tpl index 6412936abf..7dc0799c72 100644 --- a/templates/CRM/Activity/Form/Task/Print.tpl +++ b/templates/CRM/Activity/Form/Task/Print.tpl @@ -38,7 +38,7 @@ {ts}Subject{/ts} {ts}Added By{/ts} {ts}With{/ts} - {ts}Assigned To{/ts} + {ts}Assigned to{/ts} {ts}Date{/ts} {ts}Status{/ts} diff --git a/tests/phpunit/WebTest/Activity/ContactContextAddTest.php b/tests/phpunit/WebTest/Activity/ContactContextAddTest.php index c905623114..f6246c247f 100644 --- a/tests/phpunit/WebTest/Activity/ContactContextAddTest.php +++ b/tests/phpunit/WebTest/Activity/ContactContextAddTest.php @@ -141,7 +141,7 @@ class WebTest_Activity_ContactContextAddTest extends CiviSeleniumTestCase { $this->webtestVerifyTabularData( array( 'With Contact' => "Anderson, {$firstName2}", - 'Assigned To' => "Summerson, {$firstName1}", + 'Assigned to' => "Summerson, {$firstName1}", ), "/label" ); diff --git a/tests/phpunit/WebTest/Activity/StandaloneAddTest.php b/tests/phpunit/WebTest/Activity/StandaloneAddTest.php index 38f5e06af0..91c1e85f0a 100644 --- a/tests/phpunit/WebTest/Activity/StandaloneAddTest.php +++ b/tests/phpunit/WebTest/Activity/StandaloneAddTest.php @@ -158,7 +158,7 @@ class WebTest_Activity_StandaloneAddTest extends CiviSeleniumTestCase { $this->VerifyTabularData( array( 'With Contact' => "Anderson, {$firstName1}", - 'Assigned To' => "Summerson, {$firstName2}", + 'Assigned to' => "Summerson, {$firstName2}", ), "/label" ); -- 2.25.1