﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22617	"Allow to fix translation -> Fix makemessages to not delete debug data and hide errors (and all similar modules using ""msgmerge"")"	Cezary.Wagner	nobody	"Please replace code in make messages to not delete *.po files if error occurred 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 occurred."	Cleanup/optimization	closed	Core (Management commands)	dev	Normal	needsinfo		Ad Timmering	Unreviewed	1	0	0	1	0	0
