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

 

designer.php

 

<?php

$options = new \Stimulsoft\Designer\StiDesignerOptions();

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

 

$designer = new \Stimulsoft\Designer\StiDesigner($options);

$designer->renderHtml();

?>

 

 

 

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

 

designer.php

 

<?php

$options = new \Stimulsoft\Designer\StiDesignerOptions();

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

 

$designer = new \Stimulsoft\Designer\StiDesigner($options);

$designer->renderHtml();

?>

 

 

 

The designer has the functionality to select the required localization of the interface using a special menu on the toolbar. By default, the English (built-in) localization is added to this menu and set using the localization property. To add additional localizations to the menu, use the special addLocalization() function in the designer options. The localization file or the full path to this file is specified as a parameter:

 

designer.php

 

<?php

$options = new \Stimulsoft\Designer\StiDesignerOptions();

$options->addLocalization("fr.xml");

$options->addLocalization("it.xml");

$options->addLocalization("pl.xml");

 

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

 

$designer = new \Stimulsoft\Designer\StiDesigner($options);

$designer->renderHtml();

?>