zegocover / enmerkar Goto Github PK
View Code? Open in Web Editor NEWThis project forked from python-babel/django-babel
Tools for using Babel with Django
Home Page: https://enmerkar.readthedocs.io/en/stable/
License: Other
This project forked from python-babel/django-babel
Tools for using Babel with Django
Home Page: https://enmerkar.readthedocs.io/en/stable/
License: Other
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.