
May 16, 2010
3:09 a.m.
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.