Skip to content

Ignore errors in fuzzy messages excluded from compilation - #1346

Open
kimsanhaa wants to merge 1 commit into
python-babel:masterfrom
kimsanhaa:fix/compile-ignore-unused-fuzzy-errors
Open

kimsanhaa wants to merge 1 commit into
python-babel:masterfrom
kimsanhaa:fix/compile-ignore-unused-fuzzy-errors

Conversation

@kimsanhaa

Copy link
Copy Markdown

Without --use-fuzzy, compilation excludes fuzzy translations from the MO file but still reports their validation errors and exits with status 1.

Ignore those errors when fuzzy translations are excluded. Keep reporting errors for non-fuzzy messages and when --use-fuzzy is enabled. Regression tests cover the exit status, diagnostics, and compiled translations for both options.

Fixes #652.

Tested on macOS with Python 3.14.3: pytest -q (7834 passed, 7 skipped, 2 xfailed) and pre-commit run --all-files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid validating fuzzy translations

2 participants