Hi,
to render report, i use node.js.
I try to use french localization.
I have a localization subdirectory (named localization) that contains all localization files.
in source file, I try
Stimulsoft.System.NodeJs.localizationPath = "localisation";
Stimulsoft.Base.Localization.StiLocalization.cultureName = "fr";
or
Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile("localization/fr.xml");
but in report, date is in english format.
Where is my error ?
Thanks,
Fabien.
Localization
-
- Posts: 6244
- Joined: Tue Mar 20, 2018 5:34 am
Re: Localization
Hello,
Please clarify which date do you mean? Localizations are changed only UI of the viewer, designer.
Also, please try to set the Culture property of the report.
Thank you.
Please clarify which date do you mean? Localizations are changed only UI of the viewer, designer.
Also, please try to set the Culture property of the report.
Thank you.
Re: Localization
Hi,
when i set Culture property in report, it works.
I am no need to specifiy Localization path in node.js : Stimulsoft.System.NodeJs.localizationPath = "localisation";
I suppose it's required for the designer and the viewer. Can you confirm ?
An another question : i try to localize designer.
I try to use Stimulsoft.Base.Localization.StiLocalization.setLocalization function. link : https://stimulsoft.zendesk.com/hc/en-us ... Reports-JS
Localization folder is a private folder that is accessible by php.
but i have javscript error. I try to remove carriage return, but it's the same.
I dont want to make public localization folder.
Thanks,
Fabien.
when i set Culture property in report, it works.
I am no need to specifiy Localization path in node.js : Stimulsoft.System.NodeJs.localizationPath = "localisation";
I suppose it's required for the designer and the viewer. Can you confirm ?
An another question : i try to localize designer.
I try to use Stimulsoft.Base.Localization.StiLocalization.setLocalization function. link : https://stimulsoft.zendesk.com/hc/en-us ... Reports-JS
Localization folder is a private folder that is accessible by php.
Code: Select all
<?php
$localisation = file_get_contents("localization/fr.xml");
?>
<script type="text/javascript">
Stimulsoft.Base.Localization.StiLocalization.setLocalization('<?php echo $localisation; ?>');
</script>
I dont want to make public localization folder.
Thanks,
Fabien.
-
- Posts: 6244
- Joined: Tue Mar 20, 2018 5:34 am
Re: Localization
Hello,
Please check the following article:
https://stimulsoft.zendesk.com/hc/en-us ... Reports-JS
Thank you.
Please check the following article:
https://stimulsoft.zendesk.com/hc/en-us ... Reports-JS
Thank you.
Re: Localization
Hi,
In my previous post, i have already check https://stimulsoft.zendesk.com/hc/en-us ... Reports-JS
i add an attachment who reproduce the issue.
when i use setLocalization method with data loaded from php, i get this error "Uncaught SyntaxError: '' string literal contains an unescaped line break"
I don't want localization files public.
If i use setLocalizationFile, it works, but localization files must be public.
What's the difference between SetLocalization and SetLocalizationFile ? a process to remove line break from localization file is performed in setLocalizationFile ?
Thanks,
Fabien.
In my previous post, i have already check https://stimulsoft.zendesk.com/hc/en-us ... Reports-JS
i add an attachment who reproduce the issue.
when i use setLocalization method with data loaded from php, i get this error "Uncaught SyntaxError: '' string literal contains an unescaped line break"
I don't want localization files public.
If i use setLocalizationFile, it works, but localization files must be public.
What's the difference between SetLocalization and SetLocalizationFile ? a process to remove line break from localization file is performed in setLocalizationFile ?
Thanks,
Fabien.
- Attachments
-
- localization.zip
- (72.76 KiB) Downloaded 119 times
-
- Posts: 6244
- Joined: Tue Mar 20, 2018 5:34 am
Re: Localization
Hello,
Please check the following code:
Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile
Stimulsoft.Base.Localization.StiLocalization.cultureName = "fr";
Thank you.
Please check the following code:
Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile
Stimulsoft.Base.Localization.StiLocalization.cultureName = "fr";
Thank you.
- Attachments
-
- Screenshot 2021-07-23 102740.png (555.02 KiB) Viewed 1682 times