Skip to content

fix translation loss during catalog updates - #391

Open
BenYang12 wants to merge 1 commit into
python-humanize:mainfrom
BenYang12:fix/translation-extraction
Open

fix translation loss during catalog updates#391
BenYang12 wants to merge 1 commit into
python-humanize:mainfrom
BenYang12:fix/translation-extraction

Conversation

@BenYang12

Copy link
Copy Markdown

Changes proposed in this pull request:

  • Restore extraction of apnumber() words and contextual ordinal() suffixes lost after
    Performance improvements: 1.07x - 8.4x #315, preserving existing translation keys and runtime locale switching.
  • Update the translation script and README to recognize the new contextual no-op marker.
  • Add German and French regression tests covering catalog updates. Both fail on original
    code; the fixed suite passes all 800 tests. Lint, mypy, docs build, and whitespace checks
    pass.

Related: #83 addressed a separate translation-extraction problem.

Additional source doctests expose one unrelated naturaldelta() example failure,
identical before and after this change.

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