From 6d607b65b96202ef45c87a4f08a7e44c47d9aec8 Mon Sep 17 00:00:00 2001 From: haszi Date: Mon, 29 Jan 2024 21:30:06 +0100 Subject: [PATCH] Add language specific header to constant list table --- phpdotnet/phd/Package/Generic/XHTML.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpdotnet/phd/Package/Generic/XHTML.php b/phpdotnet/phd/Package/Generic/XHTML.php index 04d4717c..fe409e87 100644 --- a/phpdotnet/phd/Package/Generic/XHTML.php +++ b/phpdotnet/phd/Package/Generic/XHTML.php @@ -1476,7 +1476,7 @@ public function format_step($open, $name, $attrs) { } return ''; } - public function format_variablelist($open, $name, $attrs) { + public function format_variablelist($open, $name, $attrs, $props) { if ($open) { if (isset($attrs[Reader::XMLNS_DOCBOOK]["role"])) { $this->role = $attrs[Reader::XMLNS_DOCBOOK]["role"]; @@ -1488,7 +1488,7 @@ public function format_variablelist($open, $name, $attrs) { if ($this->role === 'constant_list') { $tagName = 'table'; $classStr = ' class="doctable table"'; - $headerStr = "\n\nConstants\nDescription\n"; + $headerStr = "\n\n" . $this->autogen('Constants', $props['lang']) . "\n" . $this->autogen('Description', $props['lang']) . "\n"; } else { $tagName = 'dl'; }