Incorrect sprintf() formatting & CSS class

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
krolli
Posts: 8
Joined: Tue Feb 01, 2022 6:48 pm

Incorrect sprintf() formatting & CSS class

Post 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.
Last edited by krolli on Thu Jan 11, 2024 9:56 pm, edited 1 time in total.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Incorrect sprtinf() formatting & CSS class

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply