gpc / rendering

Provides rendering of GSPs as PDFs, JPEGs, GIFs and PNGs
http://gpc.github.com/rendering
Apache License 2.0
31 stars 45 forks source link

Locale passed in as parameter in args is now taken into account when rendering. #5

Open ithena opened 12 years ago

ithena commented 12 years ago

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.

goeh commented 11 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.