Skip to content

feat: pass lang code as context to gettext#466

Merged
mufeedali merged 3 commits into
mainfrom
po-context
May 12, 2026
Merged

feat: pass lang code as context to gettext#466
mufeedali merged 3 commits into
mainfrom
po-context

Conversation

@rafaelmardojai
Copy link
Copy Markdown
Member

When localizing language names we should pass the lang code as context so we can allow having duplicates language names in the translation files.

When localizing language names we should pass the lang code as context
so we can allow having duplicates language names in the translation
files.

This commit also adds `pgettext` to the builtins python funcions.
`__builtins__.pyi` was moved to the project root so `ty` (type checker)
can detect it.

Fixes #465.
@tobfos2611
Copy link
Copy Markdown

This fixed the build on my system, thanks!

@mufeedali mufeedali merged commit d237666 into main May 12, 2026
2 checks passed
@mufeedali mufeedali deleted the po-context branch May 12, 2026 18:08
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.

Duplicate in Kurdish language on po/cldr-langs causes build failure

3 participants