Re: Striping out html tags from translation string?
Stephan Richter <[email protected]>
| Newsgroups | gmane.comp.web.zope.internationalization |
|---|---|
| Organization | Web2k |
| Message-ID | <[email protected]> |
On Saturday 01 May 2004 09:04, Josef Albert Meile wrote: > Actually, I taugth it was possible. I saw the last example of this page: > > http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ZPTInterna >tionalizationExamples > > and that's what I understood. But after doing some test, I figured out that > it is > impossible. Yep. In the last example there all of the text, including all the list markup is translated. Also note that the extraction tool would not know what type of string should be extracted. Extraction is an important part. Note though that you could write your own translation service to handle the translatable strings as you wish. But then all the existing extraction tools will not work and you would have to provide custom versions of them as well. Anyways, I think you would open a can of worms that you do not want to open. Remember also, that not all languages are latin-alike. Some customary rules that work for English and German might not work for Asian languages for example. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training