PlacelessTranslationService syntax
What's the correct ZPT syntax for PlacelessTranslationService? I tried this: <b i18n:translate="" i18n:domain="ibc" i18n:target="string:cz">Good morning</b> This gets rendered into: <b>Good morning</b> No translation, although I do have an entry for 'Good morning' in my .po file under an 'ibc' domain. Is my syntax wrong? -- Milos Prudek
Milos Prudek wrote:
What's the correct ZPT syntax for PlacelessTranslationService?
PTS is just a translation service for ZPT. It doesn't add any functionality to ZPT.
I tried this:
<b i18n:translate="" i18n:domain="ibc" i18n:target="string:cz">Good morning</b>
This gets rendered into: <b>Good morning</b>
No translation, although I do have an entry for 'Good morning' in my .po file under an 'ibc' domain.
Is my syntax wrong?
Maybe. Get i18ndude (google) and search for i18n docs for ZPT (google, too) :) Christian
<b i18n:translate="" i18n:domain="ibc" i18n:target="string:cz">Good morning</b> Is my syntax wrong? Maybe. Get i18ndude (google) and search for i18n docs for ZPT (google, too) :)
Believe me, I googled before I wrote my original post. The syntax I used is derived from documentation at http://dev.zope.org/Members/lalo/PlacelessTranslationService and http://dev.zope.org/Members/efge/TranslationService. And it does not work. That's why I ask here. -- Milos Prudek
I realize that my original post implied that I failed to do the homework. Here's the info: My .po file is OK. Zope 2.7 reads it correctly, as shown in startup log. When I test the translation in /Control_Panel/TranslationService/manage_main, it translates the message 'Good morning' correctly. I've read all docs that I could find. I need this for straight Zope (no CMF, no Plone). -- Milos Prudek
participants (2)
-
Christian Heimes -
Milos Prudek