Skip to content

Commit 044869f

Browse files
authored
Merge pull request creativecommons#503 from creativecommons/nofuzzy-for-4-2
update nofuzzy override for Django 4.2
2 parents d76f829 + 6add077 commit 044869f

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

i18n/management/commands/nofuzzy_makemessages.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@
33

44

55
class Command(makemessages.Command):
6-
# For Django default msgmerge options, see:
7-
# https://github.com/django/django/blob/stable/3.2.x/django/core/management/commands/makemessages.py#L211
8-
# As of 2021-10-22, the defaults are:
9-
# msgmerge_options = ['-q', '--previous']
10-
msgmerge_options = ["--no-fuzzy-matching", "--previous", "--quiet"]
6+
# For Django 4.2 default msgmerge options, see:
7+
# https://github.com/django/django/blob/stable/4.2.x/django/core/management/commands/makemessages.py#L222
8+
# As of 2025-02-10, the defaults are:
9+
# msgmerge_options = ["-q", "--backup=none", "--previous", "--update"]
10+
#
11+
# override options:
12+
msgmerge_options = [
13+
"--backup=none",
14+
"--no-fuzzy-matching",
15+
"--previous",
16+
"--quiet",
17+
"--update",
18+
]

0 commit comments

Comments
 (0)