[Seaside] Natural language translation

Lawrence Kellogg mac.hive at me.com
Wed May 16 16:56:59 UTC 2012


Thanks, Boris, that's exactly what I need. Unfortunately, I'm on Pharo.

Maybe I can write something similar on my own.

Larry

Sent from my iPhone

On May 16, 2012, at 12:52 PM, "Boris Popov, DeepCove Labs" <boris at deepcovelabs.com> wrote:

> Lawrence,
> 
> In VisualWorks you can use message catalogs to do the translation of
> UserMessage instances during rendering depending on the locale of the
> session,
> 
> (html label)
> for: 'form-company';
> with: #Company << #raven
> 
> en.lbl
> encoding: #UTF_8
> catalog: #raven
> cacheSize: 500
> Company='Company'
> 
> fr.lbl
> encoding: #UTF_8
> catalog: #raven
> cacheSize: 500
> Company='Entreprise'
> 
> de.lbl
> encoding: #UTF_8
> catalog: #raven
> cacheSize: 500
> Company='Firma'
> 
> HTH,
> 
> -Boris
> 
> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org
> [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of
> Lawrence Kellogg
> Sent: Wednesday, May 16, 2012 12:42 PM
> To: Seaside - general discussion
> Subject: [Seaside] Natural language translation
> 
>  So, I would like to translate my Seaside site into French and Spanish.
> I probably should have kept all of the text in one place for easy
> translation, but that didn't happen. :-)
> 
>  Is there some place I can hook into the Seaside rendering cycle so as
> to lookup text strings in a dictionary and substitute the translated
> string?
> 
> Regards,
> 
> Larry
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list