]> git.ipfire.org Git - thirdparty/babel.git/commit
Make pgettext search plurals when translation is not found (#1085)
authorTomas R <tomas.roun8@gmail.com>
Thu, 11 Jul 2024 06:11:04 +0000 (08:11 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Jul 2024 06:11:04 +0000 (09:11 +0300)
commit8de07f3aa297059dee69a5e9c7313677c2bc1e9c
treed2c233524c6e7453a64c7d3817d090df6e646a0f
parent75486c9bf3c79a6e59cb8e1bf8cb17a33b6e7c08
Make pgettext search plurals when translation is not found (#1085)

pgettext can now find the following translation
when using `pgettext("ctx", "foo")`:
```
msgctxt "ctx"
msgid "foo"
msgid_plural "foos"
msgstr[0] "foo translated"
```

The upstream CPython PR is  https://github.com/python/cpython/pull/107118
babel/support.py
tests/test_support.py