howto multilingual autocomplete ?
Thorsten Weber <[email protected]>
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Message-ID | <[email protected]> |
Dear Developer-List,
I would like to have multilingual autocompete fields in my zms.
therefore I have several items beginning with in the language
dictionary (IN_1, IN_2, and so on)
and - as it works for select fields - I thought it might work for
autocomplete fields as well:
here my code:
##################
<dtml-call "REQUEST.set('IN',[])"
><dtml-let lang_dict="getLangDict()"
><dtml-in lang_dict sort=key
><dtml-if "_['sequence-item']['key'].find('IN_') > -1"
><dtml-call "REQUEST['IN'].append(getLangStr(_['sequence-item']
['key'],lang)+'\n')"
></dtml-if
></dtml-in
></dtml-let
><dtml-return "''.join(REQUEST.get('IN'))">
################
unfortunatly this does not work :(
Any idea how to fix this?
best regards,
Thorsten Weber