babel
babel copied to clipboard
The official repository for Babel, the Python Internationalization Library
## Overview Description When running pybabel extract `pybabel extract -F CONFIG_FILEPATH -o POT_FILEPATH REPO_T_CHECK --keywords=translate:1 --keywords=translate:1,2 -c TRANSLATORS --no-wrap --no-default-keywords` it only extracts strings in the first input in translate...
## Overview Description Since version 2.15.0, the comma disappears from the full date format for the British locale. ## Steps to Reproduce Run the following code on version 2.14.0 ```python...
This adds a sixth value to the tuple returned by the extractor functions which should be a set of flags. Which flags should be applied to a message should be...
## Overview Description ## Steps to Reproduce ``` from io import BytesIO from babel.messages import Catalog from babel.messages.pofile import write_po, read_po output_bytes = BytesIO() catalog = Catalog() catalog.add('test', locations=[('x x\\'...
## Overview Description ## Steps to Reproduce 1. Try to initialize a locale with undetermined language using BQ (Caribbean Netherlands) country code, e.g. `und_BQ` ## Actual Results This causes an...
Cleaned the string to ensure that it still works if there is a non-breakable space, \xa0, in the number and separed the logic so that it is easeir to understand.
Closes #694 (rebases and reimplements it)
frontend.py: Fix function argument Previosly in function was passed raw value `self.ignore_dirs`, not a list as expected `ignore_dirs`. - https://github.com/python-babel/babel/pull/832
Can we have support for python-brace-format translations?
This project is the last of my dependencies that can only read from setup.cfg. the domains that I think should be used are something like: _pyproject.toml:_ ```toml [ tool.babel.extract_messages ]...