Since i18n seems to be the topic of the day, I would really appreciate help
with this:
I have a master template to contain headers and so forth, with various pages
'inheriting'. So, master has:
<tal metal:define-slot="main">Main page content in div</tal>
and the pages will do:
<tal metal:use-macro="master">
<div metal:fill-slot="main">
Pretty standard stuff.
However, I can't manage to extract translation strings from the various
templates. If I add the full html header:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:tal="
http://xml.zope.org/namespaces/tal" xmlns:i18n="
http://xml.zope.org/namespaces/i18n" i18n:domain="myapplication">
it will work, but only if I also remove the macro code. Otherwise, the
extractor (lingua-xml) ignores the strings - presumably on the grounds that
the xml is not valid by itself.
Could somebody advise me as to the best way to do this? I've experimented
with variations on the theme of:
http://chameleon.repoze.org/docs/latest/i18n.html#relation-with-metal-processingbut
none seem to get me anywhere.
Ben
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.