Re: Two questions concerning i18n

eric casteleijn <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
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.