Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pygettext: Support translator comments #130057

Closed
Assignees
tomasr8
Labels
triagedThe issue has been accepted as valid by a triager.type-featureA feature request or enhancement
@tomasr8

Description

@tomasr8

Feature or enhancement

Proposal:

Most gettext extraction tools such as xgettext or pybabel allow one to extract additional comments written by
the programmer which are meant to be read by the translator. These are prefixed with#. in the PO file.

The comments typically look something like this:

# i18n: Translator comment_('foo')

This can be extracted with e.g. xgettext usingxgettext --add-comments=i18n:

#. i18n: Translator commentmsgid"foo"msgstr""

Since this is a pretty widely used feature I propose we add this to pygettext as well.

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

Metadata

Metadata

Assignees

Labels

triagedThe issue has been accepted as valid by a triager.type-featureA feature request or enhancement

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp