List Info

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




translation question ("how do I" question)
country flaguser name
United States
2007-10-24 10:54:18
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 :

"""By <a href={% url user-homepage
myobject.owner.id
%}>{{ myobject.owner.username
}}</a>"""

of course, I'd like to have : """by
%(username)s""" as a key in my
translation files ...

Any idea ?

Regards,
--
AD


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )