RE: Two questions concerning i18n

"Luthiger Stoll Benno" <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
Dear Eric

> 1) ...
> Are you using Infrae's Silva specific patched version?
Silva specific patched version of what? 
i18nextract is: v 1.3 2004/11/26 14:38:48 faassen
I prepared the Formulator form.xml by adding '<i18n_domain>my_domain</i18n_domain>', I didn't prepare the metadata xml at all. However, looking at the result of the i18nextract  run I saw that all the texts of these xml have been neatly extracted. Therefore, I translated them, but now, I don't see the translations displayed.

Greetings,
Benno


> -----Original Message-----
> From: eric casteleijn [mailto:[email protected]]
> Sent: Donnerstag, 27. Oktober 2005 14:33
> To: Luthiger Stoll Benno
> Cc: [email protected]
> Subject: Re: [silva-dev] Two questions concerning i18n
> 
> 
> Hi Benno,
> 
> Luthiger Stoll Benno wrote:
> > Hello
> > 
> > I have two questions concerning i18n in the context of 
> Silva extensions.
> > 
> > 1) How can I make my translations of my metadata sets 
> displayed on the properties tab?
> > I've run 'i18nextract.py' to get my extension.pot file. 
> With that, I created the file 'extension-de.po' and 
> translated all messages found there. I then restarted my Zope 
> instance and found all texts translated except of the texts 
> in my metadata sets on the properties page.
> > Did I miss something?
> 
> Are you using Infrae's Silva specific patched version? I'm not sure 
> whether we have this up for public download yet, (and am too 
> lazy^H^H^H^Hbusy to check,) but I could send you a tarball off list.
> 
> It includes support to extract strings from the metadat xml files.
> 
> > 2) Translation of Formulator forms: Is it possible to 
> translate not only the titles and descriptions, but the value 
> labels too? For example, I have a ListField with the 
> following items to select:
> > ---
> >   <items type="list">[('all', '0'), ('files', '1'), 
> ('images', '2')]</items>
> > ---
> > I'd like to have the labels 'all', 'files', 'images' 
> translated to e.g. 'Alle', 'Datenfiles', 'Bilder'.
> 
> I'm not sure we've solved this ourselves yet. One possible 
> solution is 
> to use dynamic i18n-ed values in code or a script, and a tales 
> expression in your forms to retrieve them.
> 
> greetings,
> 
> eric
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.