Skip to content

Fix --fix-fuzzy to work with fuzzy-only files and handle fuzzy headers #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 14, 2025

Conversation

pescheck-bram
Copy link
Contributor

Problem

  • --fix-fuzzy was skipping files that had fuzzy entries but no untranslated entries
  • Fuzzy headers (#, fuzzy before msgid "") weren't being handled, causing Django/gettext to ignore entire catalogs
  • Entry counting showed negative numbers in fix-fuzzy mode

Solution

  • Files with fuzzy entries are now processed even without untranslated entries
  • Removes fuzzy flags from PO file headers that would invalidate the entire catalog
  • Fixed progress tracking to count fuzzy entries correctly
  • Updated display to show "FUZZY FIX RESULTS" with accurate statistics

Changes

  • Modified _scan_po_files() to detect fuzzy entries when --fix-fuzzy is enabled
  • Updated fix_fuzzy_entries() to handle metadata_is_fuzzy for headers
  • Fixed _track_file_progress() and summary display for fuzzy mode

@pescheck-bram pescheck-bram merged commit 8d2e346 into main Aug 14, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant