Skip to content
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

translate "Proof" title #119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion sphinx_proof/directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@
from sphinx.util import logging
from docutils.parsers.rst import directives
from sphinx.util.docutils import SphinxDirective
from sphinx.locale import get_translation
from .nodes import unenumerable_node, NODE_TYPES
from .nodes import proof_node

MESSAGE_CATALOG_NAME = "proof"
_ = get_translation(MESSAGE_CATALOG_NAME)

logger = logging.getLogger(__name__)


Expand Down Expand Up @@ -124,7 +128,7 @@ def run(self) -> List[Node]:

section = nodes.admonition(classes=classes, ids=[typ])

self.content[0] = "{}. ".format(typ.title()) + self.content[0]
self.content[0] = "{}. ".format(_(typ.title())) + self.content[0]
self.state.nested_parse(self.content, 0, section)

node = proof_node()
Expand Down