Translate and allow for the negative in operator as per comment from Dave
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 3 Dec 2015 20:06:48 +0000 (20:06 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 3 Dec 2015 20:06:48 +0000 (20:06 +0000)
CRM/Report/Form/Contact/Relationship.php

index 615f77320b73b556c8155be0aa00117e0879eb55..26d5d1e7d1234e462566e48107828cf470d304b8 100644 (file)
@@ -504,7 +504,8 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form {
         //for displaying relationship type filter
         if ($value['title'] == 'Relationship') {
           $relTypes = CRM_Core_PseudoConstant::relationshipType();
-          $op = 'Is one of ';
+          $op = CRM_Utils_array::value('relationship_type_id_op', $this->_params) == 'in' ? 
+            ts('Is one of') . ' ' : ts('Is not one of') . ' ';
           $relationshipTypes = array();
           foreach ($this->_params['relationship_type_id_value'] as $relationship) {
             $relationshipTypes[] = $relTypes[$relationship]['label_' . $this->relationType];