babel icon indicating copy to clipboard operation
babel copied to clipboard

The official repository for Babel, the Python Internationalization Library

Results 174 babel issues
Sort by recently updated
recently updated
newest added

Thank you @blagasz for a great initial effort! I cleaned up things here and there (refactoring, performance issues, even some bugs). There's also a smoke test to try and verify...

area/CLDR
feature
area/numbers

Currently, the extraction code will do an `os.walk` to perform a deep file search. However, this file exploration could be very slow when there were directories that were deep and...

Based on the [exceptions](http://babel.pocoo.org/en/latest/api/numbers.html#exceptions) section of the docs, I'd expect `format_currency('aaaa', 'usd')` to raise a `NumberFormatError`, but it actually raises `decimal.InvalidOperation` if you pass it a nonsense string: ``` >>>...

area/numbers

We are using a setup of sphinx-intl to translate sphinx docs into Chinese, but after updating the PO files, we saw some lines in msgstr get reordered: https://github.com/greyli/flask-docs-zh/pull/35/files Here I...

area/messages

There is a regex mistake: https://github.com/python-babel/babel/blob/7ebdf5a249ff8861bbcd3f7e4cc1ba9555c3fb65/babel/messages/jslexer.py#L25 Here is how it is applied: https://github.com/python-babel/babel/blob/7ebdf5a249ff8861bbcd3f7e4cc1ba9555c3fb65/babel/messages/jslexer.py#L41-L47 According to Python manual, `\w` matches `[a-zA-Z0-9_]`, so a number literal of some small positive integer, e.g.,...

bug
area/messages

The default text shows some default values (PROJECT, EMAIL@ADDRESS, PROJECT VERSION...) that I don't know how to change for my project. I read the [relevant part on Babel documentation](http://babel.pocoo.org/en/latest/api/messages/catalog.html#babel.messages.catalog.Catalog.header_comment) but...

question
area/messages

We use Babel's `read_po()` function to load our webapp's translations, and we've realized that doing it this way means that source strings (a.k.a. message IDs) are stored multiple times in...

enhancement
area/messages

I'm having trouble getting certain strings to attach that are inside non-default-keyword member functions. My code has a level of encapsulation to it, where I sometimes store the `gettext` function...

enhancement
area/messages

Current behavior is for Extract to write msgid + empty msgstr to a .po file for user to fill in later with translation. I would like msgstr to optionally contain...

enhancement
area/messages

if Flask is set with Inline comments like this Flask.jinja_options = {'extensions': ['jinja2.ext.autoescape', 'jinja2.ext.with_'], 'line_comment_prefix': '##'} And, you have a file in the search path which has text to extract...

bug
area/messages