[Seaside] Re: [Pharo-users] i18n tools

Panu Suominen panu.j.m.suominen at gmail.com
Sat Sep 11 17:29:42 UTC 2010

2010/9/11 Philippe Marschall <philippe.marschall at gmail.com>:
> I believe you can not get gettext from here [1].
Why is that? Following code seemed to do the loading fine.
Gofer new squeaksource: 'PharoNonCorePackages'; package:
'ConfigurationOfGettext'; load.
((Smalltalk at: #ConfigurationOfGettext) project version:'1.0') load.

Couple of questions:
1) What is the preferred method to use variable content in strings? Is it:
         'The time now is {1}' translated format: {Time now}

2) Is there already a plan to support above kind of parametrisation in Seaside?
3) Is there a way to translate magrittes validation errors?

Does it seem good idea to create class that is going to be translated
(but not yet is) and the translation
is resolved later. For example when seaside's render: method is
called. This way magritte errors
could be transalted when they get rendered. Actually translated method
could return this
kind of objects and the resulting object's asString (printOn:) and
renderOn: could do the actual

With same kind of idea one could also pass the arguments to the actual
translation. For example
t := 'The time is now {1}' translatedWith:{[Time now]}
"in seaside:"
html render: t

Does this make any sense? Or is there already a better solution/plan?

More information about the seaside mailing list