Re: Localise a page link

2015-04-20 Thread Geoff Callender
I've found an answer. It involves the persistent locale, whereas I'd been trying to do it with ThreadLocale. // Save the current locale. Locale localeSnapshot = locale; // Temporarily set the persistent locale.

Re: Localise a page link

2015-04-20 Thread Lance Java
I think you can @Inject ThreadLocale and call ThreadLocale.setLocale(xxx). On 20 Apr 2015 10:09, "Geoff Callender" < geoff.callender.jumpst...@gmail.com> wrote: > I'm generating a page link with PageRenderLinkSource. No problem. Now I'd > like to generate it for a specific locale. > > I've tried

Localise a page link

2015-04-20 Thread Geoff Callender
I'm generating a page link with PageRenderLinkSource. No problem. Now I'd like to generate it for a specific locale. I've tried using LocalizationSetter#setNonPersistentLocaleFromLocaleName immediately before PageRenderLinkSource#createPageRenderLinkWithContext , but it has no effect. The aim