Skip to content

Commit 63516d1

Browse files
committed
Add news entry
1 parent 67c5cf7 commit 63516d1

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Lib/test/test_tools/i18n_data/multiple_keywords.pot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ msgstr ""
1919
msgid "bar"
2020
msgstr ""
2121

22-
#: multiple_keywords.py:4
22+
#: multiple_keywords.py:5
2323
msgctxt "baz"
2424
msgid "qux"
2525
msgstr ""
2626

27-
#: multiple_keywords.py:6
27+
#: multiple_keywords.py:9
2828
msgctxt "corge"
2929
msgid "grault"
3030
msgstr ""
3131

32-
#: multiple_keywords.py:7
32+
#: multiple_keywords.py:11
3333
msgctxt "xyzzy"
3434
msgid "foo"
3535
msgid_plural "foos"
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
from gettext import gettext as foo
22

33
foo('bar')
4+
45
foo('baz', 'qux')
5-
# The 't' specifier is not supported, so this is extracted as pgettext
6+
7+
# The 't' specifier is not supported, so the following
8+
# call is extracted as pgettext instead of ngettext.
69
foo('corge', 'grault', 1)
10+
711
foo('xyzzy', 'foo', 'foos', 1)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Allow passing multiple keyword arguments with the same function name in
2+
:program:`pygettext`.

0 commit comments

Comments
 (0)