Skip to content

pescheckit/pescheck-makemessages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pescheck-makemessages

Custom Django makemessages command with sane defaults for translation workflows.

What it does

  • Defaults to --add-location=file — only stores filenames in .po comments, 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 headersPOT-Creation-Date and PO-Revision-Date are restored after msgmerge, avoiding noisy diffs on every run

Installation

pip install pescheck-makemessages

Add to INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    "pescheck_makemessages",
]

Usage

./manage.py make_messages -a

All standard makemessages flags work as usual.

About

Custom Django management command for makemessages with fuzzy clearing and add-location=file

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages