Metadata-Version: 2.4
Name: pescheck-makemessages
Version: 0.2.0
Summary: Custom Django makemessages command that clears fuzzy entries, preserves date headers, and defaults to --add-location=file.
License-Expression: MIT
Project-URL: Homepage, https://github.com/pescheckit/pescheck-makemessages
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: django>=4.2
Dynamic: license-file

# 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 headers** — `POT-Creation-Date` and `PO-Revision-Date` are restored after `msgmerge`, avoiding noisy diffs on every run

## Installation

```bash
pip install pescheck-makemessages
```

Add to `INSTALLED_APPS`:

```python
INSTALLED_APPS = [
    ...
    "pescheck_makemessages",
]
```

## Usage

```bash
./manage.py make_messages -a
```

All standard `makemessages` flags work as usual.
