From 2098e6b26036dbb450fa182c90e3d670dcebf517 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 17 May 2020 19:16:42 +0900 Subject: [PATCH] Fix autosummary: "Module attributes" header is not translatable refs: #7469 --- CHANGES | 1 + sphinx/ext/autosummary/templates/autosummary/module.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 27268df66..af23af9c5 100644 --- a/CHANGES +++ b/CHANGES @@ -45,6 +45,7 @@ Bugs fixed * #7865: autosummary: Failed to extract summary line when abbreviations found * #7866: autosummary: Failed to extract correct summary line when docstring contains a hyperlink target +* #7469: autosummary: "Module attributes" header is not translatable * #7940: apidoc: An extra newline is generated at the end of the rst file if a module has submodules * #4258: napoleon: decorated special methods are not shown diff --git a/sphinx/ext/autosummary/templates/autosummary/module.rst b/sphinx/ext/autosummary/templates/autosummary/module.rst index 3a93e872a..e74c012f4 100644 --- a/sphinx/ext/autosummary/templates/autosummary/module.rst +++ b/sphinx/ext/autosummary/templates/autosummary/module.rst @@ -4,7 +4,7 @@ {% block attributes %} {% if attributes %} - .. rubric:: Module Attributes + .. rubric:: {{ _('Module Attributes') }} .. autosummary:: {% for item in attributes %}