Re: translation question ("how do I" question)

2007-10-25 Thread Kenneth Gonsalves
On 25-Oct-07, at 3:34 PM, alain D. wrote: > My question is : how can I use the django translation mecanism > (blocktrans tag & co) to translate that so that I will have > This object has been created by %(username)s" > in my po file ... you do it in the __unicode__() method in your user model

Re: translation question ("how do I" question)

2007-10-25 Thread alain D.
Absolutely ... the """ is misleading ... I added it only for clarity ... here is a chunk of the content of a xxx.html file (template) This object has been created by {{ myobject.owner.username }} My question is : how can I use the django translation mecanism (blocktrans tag & co) to tr

Re: translation question ("how do I" question)

2007-10-24 Thread Kenneth Gonsalves
On 24-Oct-07, at 9:24 PM, alain D. wrote: > """By %}>{{ myobject.owner.username }}""" > > of course, I'd like to have : """by %(username)s""" as a key in my > translation files ... frankly I dont understand the question - are you generating html code in your view? -- regards kg http://law

translation question ("how do I" question)

2007-10-24 Thread alain D.
Hi, Here is a chunk of django template ... I'd like to translate it using django i18n mecanism but I'm hitting a problem (I guess it's the same I was hitting a few months ago [see history]). I guess there is no perfect solution for that right now, but a working workaround would be good enough :