You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Joseph Polanik <jP...@nc.rr.com> on 2005/09/30 14:08:36 UTC

Alternate languages within the same office

I am working on an application that needs to be internationalized and 
diversified at the same time. Specifically, we need an English and a 
Spanish version. Tapestry seems to have thought thru this issue and made 
it easy to internationalize an app.

But, we also need to allow users in adjacent cubicles of the same office 
to choose whether to see the English or the Spanish version. (A default 
language for each user based on a profile setting; but, also a button on 
the screen that switches languages based on the fly --- so that a 
bilingual user could switch back and forth based on the native language 
of the user's client.)

It seems this issue (which I'm calling 'diversification') is not so well 
resolved. Any thoughts on how best to go about this?

Joe

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Alternate languages within the same office

Posted by Kent Tong <ke...@cpttm.org.mo>.
Joseph Polanik <jPolanik <at> nc.rr.com> writes:

> But, we also need to allow users in adjacent cubicles of the same office 
> to choose whether to see the English or the Spanish version. (A default 
> language for each user based on a profile setting; but, also a button on 
> the screen that switches languages based on the fly --- so that a 
> bilingual user could switch back and forth based on the native language 
> of the user's client.)
> 
> It seems this issue (which I'm calling 'diversification') is not so well 
> resolved. Any thoughts on how best to go about this?

You can achieve this effect by setting the engine's locale and calling 
cleanup() on the request cycle before throwing a PageRedirectException.

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org