[Debian-l10n-devel] Bug#916745: web2py2po and po2web2py fail to work ("convertpy() got an unexpected keyword argument 'duplicatestyle'" and "'ascii' codec can't encode character")

Petter Reinholdtsen pere at hungry.com
Tue Dec 18 07:42:52 GMT 2018


Package: python-translate
Version: 2.0.0-1
Severity: important
Forwarded: https://github.com/translate/translate/issues/3254

When trying to use web2py2po and po2web2py with the translations in
<URL: https://github.com/OneZoom/OZtree >, the tools fail to work.

First, trying to create a po file fail like this:

  % web2py2po  languages/it.py languages/it-new.po processing 1 files...
  web2py2po: WARNING: Error processing: input languages/it.py, output languages/it-new.po, template None: convertpy() got an unexpected keyword argument 'duplicatestyle'
  [###########################################] 100%
  %

Next, after using my own tool to convert from .py to .py, converting
back to py also fail like this:

  % po2web2py languages/it.po languages/it.py 
  processing 1 files...
  po2web2py: WARNING: Error processing: input languages/it.po, output languages/it.py, template None: 'ascii' codec can't encode character u'\xf9' in position 34: ordinal not in range(128)
  [###########################################] 100%
  %

Is the web2py handling completely broken?  I suspect this is the same as
https://github.com/translate/translate/issues/3254 .

-- 
Happy hacking
Petter Reinholdtsen



More information about the Debian-l10n-devel mailing list