Custom Django makemessages command with sane defaults for translation workflows.
- Defaults to
--add-location=file— only stores filenames in.pocomments, not line numbers, so moving code around doesn't bloat diffs - Clears fuzzy entries — Django silently ignores fuzzy translations at runtime, so they look translated but aren't. This command clears the fuzzy flag and empties the
msgstr, making untranslated strings visible - Preserves date headers —
POT-Creation-DateandPO-Revision-Dateare restored aftermsgmerge, avoiding noisy diffs on every run
pip install pescheck-makemessagesAdd to INSTALLED_APPS:
INSTALLED_APPS = [
...
"pescheck_makemessages",
]./manage.py make_messages -aAll standard makemessages flags work as usual.