Skip to content

Translation strings for auditing events no longer have reST markup #122629

Closed
@rffontenelle

Description

@rffontenelle

Documentation

The Python-specific 'audit-event' directive is not being extracted to message catalogs (.po files) with the usual reST markups. For instance, expected a source string as Raises an :ref:`auditing event `sys._getframe <auditing>` with argument ``frame``. but I'm getting Raises an auditing event sys._getframe with argument frame. instead.

#122325 seems to be related to this issue, so cc'ing @AA-Turner .

Steps to reproduce:

  • make -C Doc gettext
  • grep -R 'Raises an auditing event' build/gettext/ for an output like:
build/gettext/library/tempfile.pot:msgid "Raises an auditing event tempfile.mkstemp with argument fullpath."
build/gettext/library/tempfile.pot:msgid "Raises an auditing event tempfile.mkdtemp with argument fullpath."
build/gettext/library/types.pot:msgid "Raises an auditing event function.__new__ with argument code."
build/gettext/library/types.pot:msgid "Raises an auditing event code.__new__ with arguments code, filename, name, argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize, flags."
build/gettext/library/marshal.pot:msgid "Raises an auditing event marshal.dumps with arguments value, version."
build/gettext/library/marshal.pot:msgid "Raises an auditing event marshal.load with no arguments."
build/gettext/library/marshal.pot:msgid "Raises an auditing event marshal.loads with argument bytes."
build/gettext/library/fcntl.pot:msgid "Raises an auditing event fcntl.fcntl with arguments fd, cmd, arg."
build/gettext/library/fcntl.pot:msgid "Raises an auditing event fcntl.ioctl with arguments fd, request, arg."
build/gettext/library/fcntl.pot:msgid "Raises an auditing event fcntl.flock with arguments fd, operation."
build/gettext/library/fcntl.pot:msgid "Raises an auditing event fcntl.lockf with arguments fd, cmd, len, start, whence."
build/gettext/library/functions.pot:msgid "Raises an auditing event builtins.breakpoint with argument breakpointhook."
build/gettext/library/functions.pot:msgid "Raises an auditing event compile with arguments source and filename. This event may also be raised by implicit compilation."
build/gettext/library/functions.pot:msgid "Raises an auditing event exec with the code object as the argument. Code compilation events may also be raised."
build/gettext/library/functions.pot:msgid "Raises an auditing event builtins.id with argument id."
build/gettext/library/functions.pot:msgid "Raises an auditing event builtins.input with argument prompt before reading input"
build/gettext/library/functions.pot:msgid "Raises an auditing event builtins.input/result with the result after successfully reading input."
build/gettext/library/functions.pot:msgid "Raises an auditing event open with arguments path, mode, flags."
...

Linked PRs

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dir

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions