Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve handling of encoding errors with translation imports #1077

Open
jeremydw opened this issue May 1, 2020 · 0 comments
Open

Improve handling of encoding errors with translation imports #1077

jeremydw opened this issue May 1, 2020 · 0 comments

Comments

@jeremydw
Copy link
Member

jeremydw commented May 1, 2020

WARNING: Start of line didn't match any expected keyword.
Error merging catalogs for locale -> ja
Traceback (most recent call last):
  File "grow", line 76, in <module>
  File "site-packages/click/core.py", line 764, in __call__
  File "site-packages/click/core.py", line 717, in main
  File "site-packages/click/core.py", line 1137, in invoke
  File "site-packages/click/core.py", line 1137, in invoke
  File "site-packages/click/core.py", line 956, in invoke
  File "site-packages/click/core.py", line 555, in invoke
  File "grow/commands/subcommands/translations_import.py", line 40, in translations_import
  File "grow/translations/catalog_holder.py", line 178, in import_translations
  File "grow/translations/importers.py", line 64, in import_path
  File "grow/translations/importers.py", line 148, in import_file
  File "grow/translations/importers.py", line 182, in import_content
  File "site-packages/babel/messages/pofile.py", line 377, in read_po
  File "site-packages/babel/messages/pofile.py", line 310, in parse
  File "site-packages/babel/messages/pofile.py", line 210, in _process_message_line
  File "site-packages/babel/messages/pofile.py", line 222, in _process_keyword_line
  File "site-packages/babel/messages/pofile.py", line 325, in _invalid_pofile
UnicodeEncodeError: 'ascii' codec can't encode character u'\ufeff' in position 28: ordinal not in range(128)
[76889] Failed to execute script grow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant