#15774: UnicodeDecodeError with makemessages --------------------------------------+------------------------------------ Reporter: deschler | Owner: nobody Type: Bug | Status: new Milestone: | Component: Internationalization Version: 1.3 | Severity: Normal Resolution: | Keywords: Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | --------------------------------------+------------------------------------
Comment (by anonymous): Just ran into the same problem. I relocated the locale folder to my main application instead of my project root but still got the same error. I managed to pin point the offending code by removing all the templates from the template folder and then put them back one by one while doing a makemessage -a between each of them. It turned out that the error was triggered by a single file, which didn't seem to contain non-ascii character in any trans block.. So I did the same for the code, I removed it all and started to put it back chunk by chunk while doing a makemessages -a between each chunks. Which led me to find out that the offending non-ascii character was in a TEMPLATE COMMENT. IMO the translation module should ignore anything that isn't in a trans/blocktrans altogether. In my case we are French, so often in template we've put French comments. I'll probably have a lots of projects that will start to break the translation module because of this this.. -- Ticket URL: <http://code.djangoproject.com/ticket/15774#comment:3> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.