srilatha44 / threepress

Automatically exported from code.google.com/p/threepress
Other
0 stars 0 forks source link

Create post-processing script to fix message file errors with newlines #127

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It's annoying that translators have to worry about these.  (There's an open
discussion in the Django dev list about this but it looks like it was never
actually addressed:
http://groups.google.com/group/django-developers/browse_thread/thread/60f0a0ac23
47c5f5)

It should be pretty easy to fix these, possibly by wrapping compilemessages:

/Users/liza/threepress/bookworm/locale/de/LC_MESSAGES/django.po:1756:
`msgid' and `msgstr' entries do not both begin with '\n'
/Users/liza/threepress/bookworm/locale/de/LC_MESSAGES/django.po:1781:
`msgid' and `msgid_plural' entries do not both end with '\n'

Original issue reported on code.google.com by liza31337@gmail.com on 31 Mar 2009 at 6:51

GoogleCodeExporter commented 9 years ago
Simple script added as fix-locale-strings.py, catches most 'start with' cases.

Original comment by liza31337@gmail.com on 13 Apr 2009 at 4:34