Giter Site home page Giter Site logo

zegocover / enmerkar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from python-babel/django-babel

6.0 6.0 5.0 141 KB

Tools for using Babel with Django

Home Page: https://enmerkar.readthedocs.io/en/stable/

License: Other

Python 100.00%
django l10n localization

enmerkar's People

Contributors

akx avatar ashemedai avatar cmlenz avatar entequak avatar felixschwarz avatar graingert avatar hazelw avatar joehybird avatar jramnai avatar mjtamlyn avatar mrunge avatar noirbizarre avatar orf avatar ramiro avatar robhudson avatar sarina avatar singingwolfboy avatar stuartleigh avatar tonybajan avatar tsouvarev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

enmerkar's Issues

Fail gracefully for files that cant be opened using utf-8

It would be great if enmerkar could skip files which can not be opened as text, with a warning.

I have three docx/xlsx files causing errors like below, encountered if I use mapping [django: */templates/**.*]. To avoid this it seems I need to specify lots of sections in my babel.cfg mapping file for all the other filetypes I want processed.

extracting messages from common\templates\common\docx\WIN_TEMPLATE.docx
Traceback (most recent call last):
  File "C:\Users\vandjohn\Downloads\WPy64-3771\python-3.7.7.amd64\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\vandjohn\Downloads\WPy64-3771\python-3.7.7.amd64\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\vandjohn\Downloads\WPy64-3771\python-3.7.7.amd64\Scripts\pybabel.exe\__main__.py", line 7, in <module>
  File "C:\Users\vandjohn\Downloads\WPy64-3771\python-3.7.7.amd64\lib\site-packages\babel\messages\frontend.py", line 929, in main
    return CommandLineInterface().run(sys.argv)
  File "C:\Users\vandjohn\Downloads\WPy64-3771\python-3.7.7.amd64\lib\site-packages\babel\messages\frontend.py", line 853, in run
    return cmdinst.run()
  File "C:\Users\vandjohn\Downloads\WPy64-3771\python-3.7.7.amd64\lib\site-packages\babel\messages\frontend.py", line 481, in run
    for filename, lineno, message, comments, context in extracted:
  File "C:\Users\vandjohn\Downloads\WPy64-3771\python-3.7.7.amd64\lib\site-packages\babel\messages\extract.py", line 157, in extract_from_dir
    dirpath=absname,
  File "C:\Users\vandjohn\Downloads\WPy64-3771\python-3.7.7.amd64\lib\site-packages\babel\messages\extract.py", line 212, in check_and_call_extract_file
    strip_comment_tags=strip_comment_tags
  File "C:\Users\vandjohn\Downloads\WPy64-3771\python-3.7.7.amd64\lib\site-packages\babel\messages\extract.py", line 244, in extract_from_file
    options, strip_comment_tags))
  File "C:\Users\vandjohn\Downloads\WPy64-3771\python-3.7.7.amd64\lib\site-packages\babel\messages\extract.py", line 325, in extract
    for lineno, funcname, messages, comments in results:
  File "C:\Users\vandjohn\Downloads\WPy64-3771\python-3.7.7.amd64\lib\site-packages\enmerkar\extract.py", line 52, in extract_django
    text = fileobj.read().decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 14: invalid start byte

Do there any blockers to bump new release?

We are looking forward to using enmerkar with Django 3.2 on edX.

Required PR - #4 is already merged into the master branch.
Do there any chance a new version will be bumped soon?

If any blockers with the release I would be happy to help.

Thank you in advance.

@tonybajan
@hazelw

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.