]> git.ipfire.org Git - thirdparty/babel.git/commit
In fuzzy matching, also .lower().strip() fuzzy candidates
authorJean Abou Samra <jean@abou-samra.fr>
Sun, 12 Feb 2023 01:46:30 +0000 (02:46 +0100)
committerJean Abou Samra <jean@abou-samra.fr>
Sun, 12 Feb 2023 01:54:21 +0000 (02:54 +0100)
commit63bb71a5acd0d49a2ceee15098485bc34b0e8864
tree4a4dbdc4f96d5b8a89a6cd0e45231e7f8f1473dc
parent08af5e2bab184c1b5d357ebde8c0efdbe6288e2c
In fuzzy matching, also .lower().strip() fuzzy candidates

This seems intended at easing fuzzy matching with trivial edits in the
msgstr (changing case and adding whitespace), but it was only done on
the new msgstr, not on the old mgstr candidates, so it was possible for
merging catalogs to miss messages.
babel/messages/catalog.py
tests/messages/test_catalog.py