Skip to content

Commit

Permalink
Dev: rtl fix for export result
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Jan 8, 2013
1 parent 4d788ed commit 4edc977
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion application/helpers/admin/exportresults_helper.php
Expand Up @@ -1672,7 +1672,20 @@ public function init(SurveyObj $survey, $sLanguageCode, FormattingOptions $oOpti
$this->pdf->SetFont($pdfdefaultfont, '', $pdffontsize);
$this->pdf->AddPage();
$this->pdf->intopdf("PDF export ".date("Y.m.d-H:i", time()));

//Set some pdf metadata
$lg=array();
$lg['a_meta_charset'] = 'UTF-8';
if (getLanguageRTL($sLanguageCode))
{
$lg['a_meta_dir'] = 'rtl';
}
else
{
$lg['a_meta_dir'] = 'ltr';
}
$lg['a_meta_language'] = $statlangcode;
$lg['w_page']=$statlang->gT("page");
$this->pdf->setLanguageArray($lg);

$this->separator="\t";

Expand Down

0 comments on commit 4edc977

Please sign in to comment.