django-dbgettext and python 3

13 views
Skip to first unread message

Andreas Kuhne

unread,
Apr 2, 2014, 4:47:26 PM4/2/14
to django...@googlegroups.com
Hi all,

I am in the process of rewriting our e-commerce site. In doing so we also thought that we should upgrade all of our packages to the latest versions (django 1.6, python 3 and so on). I have been doing alot of troubleshooting just getting our site to work and trying to use all of the functionality that is implemented in django since our site was first implemented (it went live on django 1.1).

I am now trying to add django-dbgettext, which is not going so well. I have had to edit the source files because python 2 and 3 handle exceptions differently, which is ok, but when I try to run dbgettext-export I get very strange files. The contain binary strings instead of unicode strings which I guess comes down to the difference in how Python 2 and 3 handle unicode. 

So my question is, does anyone have a working version of django-dbgettext that they are willing to share, or has anyone an idea on how to get the same functionality?

What I really need is to be able to get the information in a field in the database into my .po files.

Regards,

Andréas
Reply all
Reply to author
Forward
0 new messages