Re: Two questions concerning i18n
eric casteleijn <[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
eric casteleijn wrote: > Luthiger Stoll Benno wrote: > >> Dear Eric >> >> Thanks for the "on hold" feedback. >> >> Concerning my second question I read an interesting hint titled "Zope, >> Formulator, Localization, and the Solution to Translating Option >> Values" while I was surfing through the Google world and passed by the >> blog on http://betabug.ch/blogs/ch-athens/categorylist_html?cat_id=9. >> >> What do you think? Is this a/the solution? > > > Yes, it's basically what I proposed (perhaps somewhat unclearly) in my > first reply. It's not a beautiful solution, as noted on that page, but > it will work and it isn't *too* horrible either. Also I would choose an even simpler solution, just to make the code more readable, and just have a script called something like getMyFormOptionList for each list you need and return a the correct list of translated strings from that. No need IMO to make this workaround very generic, unless you have hundreds of static option-lists in your forms. eric