[Seaside] Localization

Pennell, David DPennell at quallaby.com
Wed May 25 14:41:32 CEST 2005


Stephen Pair's DynamicBindings is a generalization of this approach.

> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-
> bounces at lists.squeakfoundation.org] On Behalf Of Brent Pinkney
> Sent: Wednesday, May 25, 2005 3:35 AM
> To: avi at beta4.com; The Squeak Enterprise Aubergines Server - general
> discussion.
> Subject: Re: [Seaside] Localization
> 
> Hi Avi,
> 
> > Certainly, there's a need for good localization support for Seaside.
> > It's been on my todo list for quite a while... :/
> 
> I have achieved quite good localisation in Seaside to support
per-session
> translation.
> 
> Basically, I followed the resumable exception strategy used by
> WACurrentSession: I introduced a CurrentTranslator exception which is
> signalled in String>>#translated.
> 
> If uncaught this excpetion's #defaultAction is to return
> "NaturalLanguageTranslator current" as in the stock 3.8 image. This
makes
> it fully compatible.
> 
> I have then modified a few methods in Seaside to catch this exception
and
> resume with the WASession's preferred translator. Determining the
current
> translator is application specific.
> 
> Let me know if you are interested in details - it should probably be
> generalised to catch the current preferred Locale - the
> NaturalLanguageTranslator is a function of a Locale.
> 
> Regards
> 
> Brent
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside


More information about the Seaside mailing list