Skip to content

Use rspolib instead of polib #225

@mondeja

Description

@mondeja

Looks like possible and should improve performance. See https://launchpad.net/pygettextpo

  • How to know if libgettextpo is available? Run ctypes.util.find_library("gettextpo") in setup.py. If returns None is not available.

To read PO files without defined charset "MIME-Version: 1.0\\n"\n"Content-Type: text/plain; charset=utf-8\\n" must be added to the headers or the next error will be raised:

Error
>>> gettextpo.PoFile('example.po')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
gettextpo.error: Charset missing in header.
Message conversion to user's charset will not work.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions