On Fri, 6 Jun 2008 10:56:44 +0200, David Paleino wrote: > On Fri, 6 Jun 2008 10:49:47 +0200 (CEST), Andreas Tille wrote: > > > I tried this first because I completely agree that you should translate a > > complete sentence. The problem is that the PHP code seems to hide the > > template and the template oject is unknown if you try it this way. > > Yes, true (just tried now). > I'm looking for a way to expose some variables to PHP from within Python... Probably I got it: it seems nothing more than a hack to me, but should work (testing it right now): in update-tasks: node.CDD.raw = '<?php $CDD="%s"' % PRINTEDNAME[CDD] and, in tasks.tmpl, using something like: sprintf(_("Foo %s."), $CDD); That *should* work -- I'm testing it right now. Kindly, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
Attachment:
signature.asc
Description: PGP signature