babel
babel copied to clipboard
The official repository for Babel, the Python Internationalization Library
## Overview Description Even when `decimal_quantization=False`, format_percent doesn't return decimal zeros with precision. Is it possible to include another flag to specify the number of precision values? We are using...
I know babel cannot extract [variables](https://stackoverflow.com/q/34579316/4123703). However I'd like to reduce the duplication of my code between logging and translation.\ I'd like to have my logging with `msgid` but my...
Hello, when I'm tryna extract strings to translate from the following template : https://gitlab.ilearned.eu/i-learned/blog/theme/-/blob/localization/theme/templates/index.html I don't get any of those ``` # Translations template for PROJECT. # Copyright (C) 2022...
# branch master # purpose - Addressed several issues with PYTHON_FORMAT pattern - Addressed issues with comment blocks # details - The PYTHON_FORMAT pattern wrongly found incidences of percentage sign,...
## Overview Description As mentioned in this bug report [Message.locations duplicate unnecessary #10104](https://github.com/sphinx-doc/sphinx/issues/10104), I found several problem with the current babel code, specifically with PYTHON_FORMAT pattern, mentioned in the [catalog.py](https://github.com/python-babel/babel/blob/master/babel/messages/catalog.py)...
## Overview Description The two plural catalogs `babel.messages.plurals` (manually maintained) and the one derived from the CLDR disagree on the formula for Arabic. Specifically, the 5th and 6th form ("many"...
## Overview Description Similar to #816, the plural form for Hungarian that is manually maintained does not match the CLDR definition. PR #431 explicitly ignored the Hungarian rule because for...
I'm using Babel's `format_date` directly in Flask as Flask-Babel is in the process of [removing their wrappers](https://github.com/python-babel/flask-babel/issues/164) (since 1.5 years, but still). I also tend to use `format_date` and `format_time`...
When updating catalogs using the 'update_catalog' command, one would expect to see the 'Project-Id-Version' header updated using the information extracted with distutils. Make it so. Closes: #705
[_GNU gettext_'s `xgettext`](https://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html) and [_lingua_'s `pot-create` ](https://pypi.org/project/lingua/) both create _PO_-template files containing a `Language` header with an empty string as its value (`"Language: \n"`). _Babel_ does not seem to be...