AW: How To i18n Spec. Objs Interface

"Thorsten Fox" <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Organization Fox NewMedia
Message-ID <001301c8f88b$12a2f070$37e8d150$@biz>
Peter,

the value of select/multiselect fields within ZMS Spec. Obj. Definition is a python list of lists with id/value pairs. Using wonderful dtml-code to hand-create the values and using a dictionary should solve your problem.
E.g., put this into your select field content, and each language author will have her translated menu:

<dtml-call "REQUEST.set('l',[])">
<dtml-call "REQUEST['l'].append(['1',getLangStr('auto',lang)])">
<dtml-call "REQUEST['l'].append(['2',getLangStr('win_self',lang)])">
<dtml-call "REQUEST['l'].append(['3',getLangStr('win_new',lang)])">
<dtml-return "REQUEST['l']">

Regards,
Thorsten Fox

Von: [email protected] [mailto:[email protected]] Im Auftrag von Peter Zechmeister
Gesendet: Donnerstag, 7. August 2008 14:10
An: ZMS-Developers
Betreff: [zms-developers] How To i18n Spec. Objs Interface
Hi,

can anybody tell me plz, how to i18n the editor's interface of spec.
objects. 

Ie. I have a select attr. with the values: 
- auto
- Selbes Fenster
- Neues Fenster

or a hint of this kind:
'Hier können Sie Elemente ablegen, die in der rechten Spalte angezeigt
werden. Sie können hier keine Eigenschaften bearbeiten. Wenn Sie dieses
Objekt anlegen wollen, klicken Sie auf "Einfügen". Wenn Sie den Inhalt
bearbeiten wollen, klicken Sie auf "Zurück"!'

I'd like have them also in english.

Or is there a tutorial anywhere?

Regards,
PeterZ
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.