mirror of
https://github.com/python/cpython.git
synced 2025-10-26 19:24:34 +00:00
12 lines
233 B
Python
12 lines
233 B
Python
|
|
from gettext import gettext as foo
|
||
|
|
|
||
|
|
foo('bar')
|
||
|
|
|
||
|
|
foo('baz', 'qux')
|
||
|
|
|
||
|
|
# The 't' specifier is not supported, so the following
|
||
|
|
# call is extracted as pgettext instead of ngettext.
|
||
|
|
foo('corge', 'grault', 1)
|
||
|
|
|
||
|
|
foo('xyzzy', 'foo', 'foos', 1)
|