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.
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
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