Skip to main content

Custom Django makemessages command that clears fuzzy entries, preserves date headers, 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

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.2.0.tar.gz (3.7 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.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pescheck_makemessages-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ff27aeddb1f3a459f36b0626adff708a947684bf6d6448325dbd5ada73e9a93a
MD5 40114a133e640409c3c6d4ffe3980fd4
BLAKE2b-256 13a87f9bad9fa596531aecef8df90bd1ba2f6769d386ac23655e458f400abd0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pescheck_makemessages-0.2.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pescheck_makemessages-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c65495840aab494b5be9eeeb48e061f2ada40c1d3bf555ab7f33fb5b618d882
MD5 c7a3fd27b6c574be77bf983fda487c05
BLAKE2b-256 e62a4927cd1e58def569c15880582cd286482508aeb2118b21f302cef24101a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pescheck_makemessages-0.2.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