#22617: Allow to fix translation -> Fix makemessages to not delete debug data and hide errors (and all similar modules using "msgmerge") -------------------------------+-------------------- Reporter: Cezary.Wagner | Owner: nobody Type: Uncategorized | Status: new Component: Uncategorized | Version: 1.6 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------- Please replace code in make messages to not delete *.po files if error occured and show messages (fix exception later).
Replace this code: if errors: if status != STATUS_OK: raise CommandError( "errors happened while running msgmerge\n%s" % errors) elif self.verbosity > 0: self.stdout.write(errors) With this code (it shows error root cause and save/copy *.po need to solve this error): if errors: if status != STATUS_OK: self.stdout.write(errors) # bug exception bellow not shows errors import shutil shutil.copyfile(pofile, '%s.debug' % pofile) raise CommandError( "errors happened while running msgmerge\n%s" % errors) elif self.verbosity > 0: self.stdout.write(errors) All modules using command line tools should report errors and not delete input if error occured. -- Ticket URL: <https://code.djangoproject.com/ticket/22617> Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/056.0c3ed1d7ead768046c2cf03888484094%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.