Skip to main content

Custom Django makemessages command that clears fuzzy entries, preserves date headers, skips git-ignored files, and defaults to --add-location=file.

Project description

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
  • Skips git-ignored files — files ignored by git (e.g. test artifacts under tests/artifacts/) are excluded, so their strings don't leak into .po files. Falls back to scanning everything when git is unavailable or the project isn't a git repo

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pescheck_makemessages-0.3.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pescheck_makemessages-0.3.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pescheck_makemessages-0.3.0.tar.gz.

File metadata

  • Download URL: pescheck_makemessages-0.3.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pescheck_makemessages-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9d7082e0f9f929b29f410b5eac3eeb6b1a0cecb579765b8bfaea06d809d7ba88
MD5 54321c29e8c8a987d3c1b2cf6bc24095
BLAKE2b-256 afc4b9760cd48792aac8ff20e5d06b48cfee160e7a16fe179ab88e3e0eb664be

See more details on using hashes here.

Provenance

The following attestation bundles were made for pescheck_makemessages-0.3.0.tar.gz:

Publisher: ci.yml on pescheckit/pescheck-makemessages

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pescheck_makemessages-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pescheck_makemessages-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae970cc3d75c387b0ed098c459ff69378e058290609c05cde6dd643412eb2210
MD5 a33c195605f95017285284913a0f3edb
BLAKE2b-256 fb0b71920c68890ca1dc68215bb3b40c7ae323916e5b256fc3192740cf8d4506

See more details on using hashes here.

Provenance

The following attestation bundles were made for pescheck_makemessages-0.3.0-py3-none-any.whl:

Publisher: ci.yml on pescheckit/pescheck-makemessages

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page