Skip to content
This repository was archived by the owner on Nov 11, 2020. It is now read-only.
This repository was archived by the owner on Nov 11, 2020. It is now read-only.

"Make messages" fails when text to be translated contains non-ascii characters #6

@jasaldivara

Description

@jasaldivara

I have some text that contains non-ascii characters, like:
{% blocktrans %}Personalízalo{% endblocktrans %} (note the accented, non-ascii "i")

When I run make messages, it fails with some message like:

Traceback (most recent call last):
  File "../static_gettext.py", line 285, in <module>
    sys.exit(main())
  File "../static_gettext.py", line 282, in main
    src = l10n.gettext( locale )
  File "../static_gettext.py", line 184, in gettext
    self.xgettext_postprocessing( locale )
  File "../static_gettext.py", line 139, in xgettext_postprocessing
    raise LocalizerGettextException( u"`msguniq` errors: %s" % errors )
__main__.LocalizerGettextException: `msguniq` errors: msguniq: input file './locale/en_US/LC_MESSAGES/messages.pot' doesn't contain a header entry with a charset specification

make: *** [messages] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions