Unverified Kaydet (Commit) beed84ca authored tarafından Julien Palard's avatar Julien Palard Kaydeden (comit) GitHub

bpo-35015: Doc: Fix internationalisation of the availability directive. (GH-10360)

üst a6e956bc
...@@ -141,9 +141,10 @@ class Availability(Directive): ...@@ -141,9 +141,10 @@ class Availability(Directive):
final_argument_whitespace = True final_argument_whitespace = True
def run(self): def run(self):
pnode = nodes.paragraph(classes=['availability']) availability_ref = ':ref:`Availability <availability>`: '
n, m = self.state.inline_text(':ref:`Availability <availability>`: ', pnode = nodes.paragraph(availability_ref + self.arguments[0],
self.lineno) classes=["availability"],)
n, m = self.state.inline_text(availability_ref, self.lineno)
pnode.extend(n + m) pnode.extend(n + m)
n, m = self.state.inline_text(self.arguments[0], self.lineno) n, m = self.state.inline_text(self.arguments[0], self.lineno)
pnode.extend(n + m) pnode.extend(n + m)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment