A small correction (3.6.0)
Posted: Fri Jun 13, 2025 2:36 am
In the file admin/admin_ticket.php, in the line
there is a direct use of the word "Unlink", which will always be displayed in English regardless of the Hesk localization settings.
I made the following correction in this file:
Then, I added the following line to the English language file /language/en/texp.php:
and, accordingly, the same entry with the Russian translation to the Russian localization file /language/ru/texp.php.
The "Unlink" button is dynamic, and its text does not go beyond its boundaries.
Code: Select all
$html.='<a class="btn btn-links unlink" data-ticket1='.$linked_ticket['id'].' data-ticket2='.$ticket['id'].' data-trackid='.$linked_ticket['trackid'].' data-action="admin_ticket.php?track='.$trackingID.'&Refresh='.rand(10000,99999).'" href="javascript:;">Unlink</a>';
I made the following correction in this file:
Code: Select all
$html .= '<a class="btn btn-links unlink" data-ticket1="'.$linked_ticket['id'].'" data-ticket2="'.$ticket['id'].'" data-trackid="'.$linked_ticket['trackid'].'" data-action="admin_ticket.php?track='.$trackingID.'&Refresh='.rand(10000,99999).'" href="javascript:;">'.$hesklang['unlink_btn'].'</a>';
Code: Select all
$hesklang['unlink_btn'] = 'Unlink';
The "Unlink" button is dynamic, and its text does not go beyond its boundaries.