diff --git a/admin/callhistory.php b/admin/callhistory.php index 092d45c5..6ac3d177 100644 --- a/admin/callhistory.php +++ b/admin/callhistory.php @@ -133,7 +133,7 @@ if ($operator_id) while ($r = $rs->FetchRow()) { - translate_array($r,array("des")); + translate_array($r,array("descr")); echo $r['start_date'] . "," .$r['start_time'] . "," . $r['end'] . "," . $r['case_id'] . "," . $r['qd'] . "," . $r['spl'] . "," . $r['cpi'] . "," . $r['opname'] . "," . $r['descr'] . "," . $r['casenotes'] . "," . $r['firstName'] . "\n"; } @@ -151,7 +151,7 @@ if ($operator_id) } else { - translate_array($rs,array("des")); + translate_array($rs,array("descr")); $datacol = array("start_date", "start_time","end","case_id","qd","spl","cpi","opname","descr","casenotes","firstName"); $headers = array(T_("Date"), T_("Start time"), T_("End time"),T_("Case ID"),T_("Questionnaire"),T_("Sample"),T_("Phone number"),T_("Operator"),T_("Outcome"),T_("Case notes"),T_("Respondent")); diff --git a/admin/samplecallattempts.php b/admin/samplecallattempts.php index a8799217..e9e9d1d8 100644 --- a/admin/samplecallattempts.php +++ b/admin/samplecallattempts.php @@ -121,8 +121,6 @@ function sample_call_attempt_report($questionnaire_id = false, $sample_id = fals $outcomes = $db->GetAssoc($sql); - translate_array($outcomes,array("description")); - $rep = array("callattempts","sample"); $rept = array(T_("Call attempts made"),T_("Number of cases")); $totals = array("sample"); @@ -132,7 +130,7 @@ function sample_call_attempt_report($questionnaire_id = false, $sample_id = fals foreach($outcomes as $key => $val) { $rep[] = $key; - $rept[] = $val; + $rept[] = T_($val); $outcomesfilled[$key] = 0; }