Well, that's because we never really thought anyone would want to set  
locale on a page by page basis ;)

I think you can do what you want in an ActionBean with code something  
like:
         
StripesRequestWrapper 
.findStripesWrapper(getContext().getRequest()).setLocale(Locale.EN_US);

-t

On Jun 11, 2008, at 6:34 PM, Alan Burlison wrote:

> Levi Hoogenberg wrote:
>
>> You can implement LocalePicker
>> (http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/localization/LocalePicker.html
>>  
>> )
>> and return "en" for all of your admin pages. Depending on the Stripes
>> version you're using, it's being picked up automatically (since 1.5)
>> or you need to configure it in the deployment descriptor (before 1.5,
>> see http://www.stripesframework.org/display/stripes/Configuration+Reference) 
>> .
>
> I want to do it on a per-page basis not globally, so I can turn it off
> on just the pages I need.  That way I can gradually localize the site.
> Doint it in the locale chooser means I'd have to keep a list of pages,
> which would be messy.
>
> There's a getLocale method on ActionBeanContext, but no corresponding
> setLocale.
>
> -- 
> Alan Burlison
> --
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to