Skip to content

pygettext: Add support for multi-argument gettext functions #126700

Closed

Description

@tomasr8

Feature or enhancement

Proposal:

This came up while adding translation tests for various stdlib modules: #124295 and #126698. More specifically: #124295 (comment)

pygettext currently only supports single-argument gettext and its aliases (can be controlled via CLI arguments). pgettext, ngettext, etc., are not supported. pygettext should support these by default. I'm gonna take a stab at this hopefully this week :)

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Activity

  1. self-assigned this
    on Nov 11, 2024
  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Nov 12, 2024
  3. added a commit that references this issue on Nov 22, 2024
  4. serhiy-storchaka commented on Nov 22, 2024

    @serhiy-storchaka
    Member

    Thank you @tomasr8. I did not expect that you can do this before making pygettext to use AST parser.

  5. moved this from In Progress to Done in Gettext issueson Nov 22, 2024
  6. added a commit that references this issue on Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions