◐ Shell
clean mode source ↗

Message 174353 - Python tracker

If only the error gets translated it might look more or less like:

Traceback (most recent call last):
  File "form.py", line 78, in <module>
    f = Form("factura.csv")
  File "form.py", line 12, in __init__
    for linea in open(infile).readlines():
IOError: [Errno 2] No such file or directory: 'factura.csv'
         [Errno 2] No existe el archivo o directorio: 'factura.csv'

@RDM
The PEP is already attached to the issue :)

@Mariano
Do you think it's possible to make this an external module?
Otherwise we could provide some hooks, and have language packages maintained by the community on PyPI.