I am using Mpdf lib to generate PDF for the plugin I am developing. The PDF has much more tabular data that require localization.
For that, I have created a function for TH
and TD
as below.
function gs_pdf_th(string $text, $style = FALSE, string $class = 'header')
{
return '<th class="' . $class . '" ' . $style . '>' . __($text, 'group-shop') . '</th>';
}
This function's problem is PO
is not detecting the $text
string for localization. All other text from the file where I used this function has been detected, but this one.