'enabled' =>
$this->
translateEnabled(...
),
'selected' =>
$this->
translateSelected(...
),
'invalid' =>
$this->
translateInvalid(...
),
'hover' =>
$this->
translateHover(...
),
'visited' =>
$this->
translateVisited(...
),
];
} public function getFunctionTranslators(): array
{ return [ 'lang' =>
$this->
translateLang(...
),
];
} public function translateChecked(XPathExpr
$xpath): XPathExpr
{ return $xpath->
addCondition( '(@checked '
."and (name(.) = 'input' or name(.) = 'command')"
."and (@type = 'checkbox' or @type = 'radio'))"
);
}