The viewer supports full localization of its interface. To localize the interface into the language you need, you should set the required file name for the localization option of the viewer:

 

viewer.php

 

<?php

$options = new \Stimulsoft\Viewer\StiViewerOptions();

$options->localization = 'de.xml';

 

$viewer = new \Stimulsoft\Viewer\StiViewer($options);

$viewer->renderHtml();

?>

 

 

 

All available localization XML files are located in the resources of the installed product package. If necessary, you may download the localization file from any other location. You need to specify the full path to the XML file for the localization option:

 

viewer.php

 

<?php

$options = new \Stimulsoft\Viewer\StiViewerOptions();

$options->localization = '/resources/loc/de.xml';

 

$viewer = new \Stimulsoft\Viewer\StiViewer($options);

$viewer->renderHtml();

?>