Hi all, I've been trying to workout a solution on the following: I want to show the translation of a string stored in the database in a template preferably with the use of "|capfirst" .. yeah yeah I know .. ;-)
The translatable: order.state = 'billed' .. The term 'billed' is what needs to be translated and shown in the template. A working solution is adding it to the django.po file manually like this: msgid "quoted" msgstr "jaja" But after every "django-admin.py makemessages" run it ends up like this: #~ msgid "quoted" #~ msgstr "jaja" It's in the template like this "{% trans order.state %}" so it's not picked up by the makemessages command. Then another option is putting the translation in the view, and manipulate it there just before it goes into rendering. But since there's no other actions to be performed there data-wise, I really don't want it there. Anybody have any experience on this? Thanx a lot. Gerard. -- urls = { 'fun': 'www.zonderbroodje.nl', 'tech': 'www.gp-net.nl' } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---