[Seaside] Natural language translation
Boris Popov, DeepCove Labs
boris at deepcovelabs.com
Wed May 16 16:54:21 UTC 2012
As a hack, you could try doing this in String>>renderOn: as well.
-Boris
-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Boris
Popov, DeepCove Labs
Sent: Wednesday, May 16, 2012 12:52 PM
To: Seaside - general discussion
Subject: RE: [Seaside] Natural language translation
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