[Python-ideas] i18n and Python tracebacks

Stephen J. Turnbull stephen at xemacs.org
Sun May 16 10:09:38 CEST 2010


Andre Roberge writes:

 > I think it would be a good idea if Python tracebacks could be translated
 > into languages other than English - and it would set a good
 > example.

If you do this, you really need a way to recover the original message
(or a pointer to it) for programs that automatically analyze the
tracebacks.  A hash code or something like that might do the trick.
And, no, running the program again with --trace-lang=C is not good
enough; there's no guarantee you can reproduce.

AFAIK this requires an extension to the current localization
infrastructure, both gettext for C and in Python.



More information about the Python-ideas mailing list