diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-10-09 08:03:35 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-10-09 08:03:35 +0400 |
commit | 81ccb29b440e98ed9147e84781df0fce34ee6542 (patch) | |
tree | 378a809d208f6a2cc188489017b87a98501023f2 /core/ReportRenderer/Pdf.php | |
parent | 98935b7cca73c74dac77d3661239a2055e6b8f8f (diff) |
Refs #4202 removing functions Piwik_Translate and Piwik_TranslateException
Diffstat (limited to 'core/ReportRenderer/Pdf.php')
-rw-r--r-- | core/ReportRenderer/Pdf.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/ReportRenderer/Pdf.php b/core/ReportRenderer/Pdf.php index 76a5d650c0..683904564f 100644 --- a/core/ReportRenderer/Pdf.php +++ b/core/ReportRenderer/Pdf.php @@ -12,6 +12,7 @@ namespace Piwik\ReportRenderer; use Piwik\Common; use Piwik\Filesystem; +use Piwik\Piwik; use Piwik\Plugins\API\API; use Piwik\ReportRenderer; use Piwik\TCPDF; @@ -153,7 +154,7 @@ class Pdf extends ReportRenderer public function renderFrontPage($reportTitle, $prettyDate, $description, $reportMetadata, $segment) { $reportTitle = $this->formatText($reportTitle); - $dateRange = $this->formatText(Piwik_Translate('General_DateRange') . " " . $prettyDate); + $dateRange = $this->formatText(Piwik::translate('General_DateRange') . " " . $prettyDate); // footer $this->TCPDF->SetFooterFont(array($this->reportFont, $this->reportFontStyle, $this->reportSimpleFontSize)); @@ -164,7 +165,7 @@ class Pdf extends ReportRenderer $this->TCPDF->AddPage(self::PORTRAIT); $this->TCPDF->AddFont($this->reportFont, '', '', false); $this->TCPDF->SetFont($this->reportFont, $this->reportFontStyle, $this->reportSimpleFontSize); - $this->TCPDF->Bookmark(Piwik_Translate('ScheduledReports_FrontPage')); + $this->TCPDF->Bookmark(Piwik::translate('ScheduledReports_FrontPage')); // logo $this->TCPDF->Image(API::getInstance()->getLogoUrl(true), $this->logoImagePosition[0], $this->logoImagePosition[1], 180 / $factor = 2, 0, $type = '', $link = '', $align = '', $resize = false, $dpi = 300); @@ -192,7 +193,7 @@ class Pdf extends ReportRenderer $this->TCPDF->Ln(); $this->TCPDF->SetFont($this->reportFont, '', $this->reportHeaderFontSize - 2); $this->TCPDF->SetTextColor($this->headerTextColor[0], $this->headerTextColor[1], $this->headerTextColor[2]); - $this->TCPDF->Write(1, $this->formatText(Piwik_Translate('ScheduledReports_CustomVisitorSegment') . ' ' . $segment['name'])); + $this->TCPDF->Write(1, $this->formatText(Piwik::translate('ScheduledReports_CustomVisitorSegment') . ' ' . $segment['name'])); } $this->TCPDF->Ln(8); @@ -300,7 +301,7 @@ class Pdf extends ReportRenderer $this->paintReportHeader(); if (!$this->reportHasData()) { - $this->paintMessage(Piwik_Translate('CoreHome_ThereIsNoDataForThisReport')); + $this->paintMessage(Piwik::translate('CoreHome_ThereIsNoDataForThisReport')); return; } |