Open ithena opened 12 years ago
I'm rendering PDF in an event listener (platform-core) and it uses the default locale. I want it to render with a fixed locale. Is this pull request the only way to set locale or is there a current way of doing it? If not then please apply this pull request. Thanks.
The XhtmlDocumentService never allowed the locale in the request used by RenderEnvironment to be overridden with a custom locale. This patch will enable to Locale to be used for rendering to be overridden by the locale argument.
The test in PdfRenderingServiceSpec feels clunky, any suggestions on making it better are welcome.