Skip to content

Commit 4fe29c2

Browse files
authored
Update README.md
1 parent 2f73dff commit 4fe29c2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ public function xmlToPdf()
293293
$data_file = public_path() . '/report/CancelAck.xml';
294294
$driver = 'xml';
295295
$xml_xpath = '/CancelResponse/CancelResult/ID';
296+
$locale = 'en';
296297

297298
$php_jasper = new JasperPHP;
298299

@@ -301,7 +302,9 @@ public function xmlToPdf()
301302
$output,
302303
array($ext),
303304
array(),
304-
array('data_file' => $data_file, 'driver' => $driver, 'xml_xpath' => $xml_xpath))->execute();
305+
array('data_file' => $data_file, 'driver' => $driver, 'xml_xpath' => $xml_xpath),
306+
$locale
307+
)->execute();
305308

306309
header('Content-Description: File Transfer');
307310
header('Content-Type: application/octet-stream');
@@ -352,6 +355,7 @@ public function jsonToPdf()
352355
$driver = 'json';
353356
$json_query= "contacts.person";
354357
$data_file = public_path() . '/report/contacts.json';
358+
$locale = 'en';
355359

356360
$php_jasper = new JasperPHP;
357361

@@ -360,7 +364,9 @@ public function jsonToPdf()
360364
$output,
361365
array($ext),
362366
array(),
363-
array('data_file' => $data_file, 'driver' => $driver, 'json_query' => $json_query))->execute();
367+
array('data_file' => $data_file, 'driver' => $driver, 'json_query' => $json_query),
368+
$locale
369+
)->execute();
364370

365371
header('Content-Description: File Transfer');
366372
header('Content-Type: application/octet-stream');

0 commit comments

Comments
 (0)