Fix: locale for typography of :

This commit is contained in:
Kujiu 2021-01-31 13:41:04 +01:00
parent cc6a381097
commit 6371dd0f8d
Signed by: kujiu
GPG key ID: ABBB2CAC6855599F

View file

@ -128,7 +128,7 @@ class GeminiTranslator(SphinxTranslator):
def depart_title(self, node: Element) -> None: def depart_title(self, node: Element) -> None:
if isinstance(node.parent, nodes.Admonition): if isinstance(node.parent, nodes.Admonition):
self.add_text(': ') self.add_text(__(': '))
def visit_subtitle(self, node: Element) -> None: def visit_subtitle(self, node: Element) -> None:
pass pass
@ -432,7 +432,7 @@ class GeminiTranslator(SphinxTranslator):
pass pass
def visit_classifier(self, node: Element) -> None: def visit_classifier(self, node: Element) -> None:
self.add_text(' : ') self.add_text(__(': '))
def depart_classifier(self, node: Element) -> None: def depart_classifier(self, node: Element) -> None:
pass pass
@ -493,7 +493,7 @@ class GeminiTranslator(SphinxTranslator):
pass pass
def _visit_admonition(self, node: Element) -> None: def _visit_admonition(self, node: Element) -> None:
self.add_text(admonitionlabels[node.tagname] + ':') self.add_text(admonitionlabels[node.tagname] + __(': '))
def _depart_admonition(self, node: Element) -> None: def _depart_admonition(self, node: Element) -> None:
self.end_block() self.end_block()