From b6b6d6cc1dd4f9c8277dd88250f54565fdb73cd5 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 17 Jan 2015 19:09:13 -0500 Subject: [PATCH] CRM-15812 - Fix missing ts ---------------------------------------- * CRM-15812: Translated strings not shown https://issues.civicrm.org/jira/browse/CRM-15812 --- CRM/Custom/Form/Group.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Custom/Form/Group.php b/CRM/Custom/Form/Group.php index ba2459484d..61b90ecd10 100644 --- a/CRM/Custom/Form/Group.php +++ b/CRM/Custom/Form/Group.php @@ -199,7 +199,7 @@ class CRM_Custom_Form_Group extends CRM_Core_Form { $contactTypes = array('Contact', 'Individual', 'Household', 'Organization'); $this->assign('contactTypes', json_encode($contactTypes)); - $sel1 = array("" => "- select -") + CRM_Core_SelectValues::customGroupExtends(); + $sel1 = array("" => ts("- select -")) + CRM_Core_SelectValues::customGroupExtends(); $sel2 = array(); $activityType = CRM_Core_PseudoConstant::activityType(FALSE, TRUE, FALSE, 'label', TRUE); @@ -273,7 +273,7 @@ class CRM_Custom_Form_Group extends CRM_Core_Form { $contactSubTypes[$key] = $key; } $sel2['Contact'] = array( - "" => "-- Any --", + "" => ("- Any -"), ) + $contactSubTypes; } else { @@ -391,7 +391,7 @@ class CRM_Custom_Form_Group extends CRM_Core_Form { } $this->addButtons($buttons); - // views are implemented as frozen form + // TODO: Is this condition ever true? Can this code be removed? if ($this->_action & CRM_Core_Action::VIEW) { $this->freeze(); $this->addElement('button', 'done', ts('Done'), array('onclick' => "location.href='civicrm/admin/custom/group?reset=1&action=browse'")); -- 2.25.1