-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-126700: pygettext: Support more gettext functions #126912
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
Changes from all commits
22f7803
06686c9
e5c2746
511a0c0
62d6455
496f5d9
06186a0
3d67a7a
48070d5
d6fd789
3497690
192187e
9cfc901
24851c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ argument %(argument_name)s: %(message)s | |
argument '%(argument_name)s' is deprecated | ||
can't open '%(filename)s': %(error)s | ||
command '%(parser_name)s' is deprecated | ||
conflicting option string: %s | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We might also want to include We initially rejected that idea when adding the snapshots because of potentially changing line locations, but pygettext has an option to turn those off. We could even add an option to not emit the header (pybabel has this for instance). Then the snapshots would only change if the strings themselves change. |
||
expected %s argument | ||
expected at least one argument | ||
expected at most one argument | ||
expected one argument | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
%(option)s option requires %(number)d argument | ||
%prog [options] | ||
%s option does not take a value | ||
Options | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add support for multi-argument :mod:`gettext` functions in :program:`pygettext.py`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both
xgettext
andpybabel
extract this and it would take a lot of effort to disallow this in general with the current extractor, so I'd leave this for now at least.