Coder Social home page Coder Social logo

entequak / django-babel-underscore Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 10.0 36 KB

Django Babel Underscore Extractor

Home Page: http://django-babel-underscore.readthedocs.org/

License: BSD 3-Clause "New" or "Revised" License

Makefile 12.28% Python 87.72%

django-babel-underscore's People

Contributors

entequak avatar michaelroytman avatar singingwolfboy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-babel-underscore's Issues

Underscore extractor does not properly handle escaped characters

The underscore template extractor does not seem to be able to properly parse strings that contain escaped characters. Such strings end up being written to the .pot file with extra escape characters.

Consider the following example:

An underscore template containing the following lines:

<%- gettext('foo\\bar') %>
<%- gettext('Bob\'s house') %>

Produces the following output in the .pot file generated by Babel:

msgid "foo\\\\bar"
msgstr ""

msgid "Bob\\'s house"
msgstr ""

This does not seem to be correct.

Please let me know if there's anything I can do to help fix this issue.

Thanks!

Does this support Django 1.8 ?

Right now, i can see in setup.py that it provide support only for 1.4 < Django < 1.8 ?
Any plans to add support for Django 1.8 .

Thanks

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.