Page 1 of 1

Incorrect sprintf() formatting & CSS class

Posted: Thu Jan 04, 2024 3:27 pm
by krolli
Version of script: 3.4.2

Write your message below:

Code: Select all

PHP Fatal error:  Uncaught ArgumentCountError: 5 arguments are required, 4 given in .../admin/priority.php:50
When using HUNGARIAN [HU] language, the translations incorrectly adds another %s string specifier.

Change this:

Code: Select all

$hesklang['thist8']='<li class = "kisebb"> %s | a prioritás %s-ra változott %s-ra %s </li> ';
To this:

Code: Select all

$hesklang['thist8']='<li class = "smaller"> %s | a prioritás %s-ra változott %s által </li> ';

Also dont translate class names (or other HTML/CSS related names)

Change in the whole file, this:

Code: Select all

<li class = "kisebb">
To this:

Code: Select all

<li class = "smaller">

PS: Small translation improvement at

Code: Select all

$hesklang['thist2']='<li class = "smaller"> %s |  %s hozzárendelve %s által </li> '; // %s = date, assigned user, user making change
Thx.

Re: Incorrect sprtinf() formatting & CSS class

Posted: Thu Jan 04, 2024 5:07 pm
by Klemen
Thanks for reporting.

I fixed the issues you mentioned. Also, I changed all instances of "kisebb" class to "smaller".

You can download the new version from
https://www.hesk.com/language/info.php?tag=hu

Note: all translations are submitted by Hesk users. You are welcome to improve the Hungarian translation and send the improved version to translate AT hesk DOT com.