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 19017 If command is called from code, it does not change locale to previous state andrey@… nobody "Currently code is: {{{ except CommandError, e: if show_traceback: traceback.print_exc() else: self.stderr.write(smart_str(self.style.ERROR('Error: %s\n' % e))) sys.exit(1) if saved_lang is not None: translation.activate(saved_lang) }}} So if command raises exception, translation is not restored" Bug closed Core (Management commands) 1.4 Normal duplicate Unreviewed 1 0 0 0 0 0