python-babel
babel
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Optimizations
Branches
Benchmarks
Runs
Performance History
Latest Results
Extend security policy (#1349) Borrows from Pillow's security.rst and the CPython security policy.
master
5 days ago
Use UTF-8 Mode when running tests (#1353)
master
6 days ago
Specify encoding when running tests
denyshon:fix-test-encoding
6 days ago
Accept C and POSIX in Locale.parse (#1340) default_locale already maps those to en_US_POSIX. parse() did not, so a C locale from the environment raised UnknownLocaleError.
master
6 days ago
Use partition to detect C and POSIX in Locale.parse. C and POSIX never include a dash or @ modifier on the language stem, so the extra replace and split were noise.
gyanu2507:fix/parse-c-posix-locale
6 days ago
Handle an invalid plural index in msgstr[...] instead of raising ValueError `int(idxarg[:-1])` on a keyword like `msgstr[\x0c]` raised a bare ValueError out of read_po. Report it through _invalid_pofile like every other malformed line, so abort_invalid=True raises PoFileError and the default path skips the entry with a warning. Leave in_msgstr off when the index is rejected: nothing was appended to self.translations, so a following continuation line would index an empty list. That is the same state the unknown-keyword path leaves the parser in, and the continuation then degrades to the existing "Got line starting with " but not in msgid, msgstr or msgctxt" warning.
vineethsaivs:fix/pofile-invalid-msgstr-index
6 days ago
extract: Warn when skipping an f-string with substitutions An f-string that interpolates values cannot be translated, so extraction skips it. Since #915 replaced eval with ast it is skipped silently: the message never reaches translators, and nothing tells the author. Warn instead, in the same format as the existing "Empty msgid" warning. Both tokenisation paths are covered: before Python 3.12 the whole f-string is a single STRING token, and from 3.12 (PEP 701) a substitution arrives as a non-FSTRING_* token and the f-string is dropped where current_fstring_start is reset. Fixes #715
ColinHouse:warn-skipped-fstring
9 days ago
docs: explain how to select extraction mapping files
xuu33030:docs/1063-explicit-mapping
9 days ago
Latest Branches
CodSpeed Performance Gauge
0%
Specify encoding when running tests
#1353
8 days ago
6d3dba5
denyshon:fix-test-encoding
CodSpeed Performance Gauge
0%
Accept C and POSIX in Locale.parse
#1340
9 days ago
d28b849
gyanu2507:fix/parse-c-posix-locale
CodSpeed Performance Gauge
0%
Handle invalid plural index in msgstr[...] instead of raising ValueError (#1209)
#1279
6 days ago
5707576
vineethsaivs:fix/pofile-invalid-msgstr-index
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs