Can i integrate %%CATEGORY%% in the language file

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
jessar94
Posts: 76
Joined: Sun Mar 16, 2014 7:54 pm

Can i integrate %%CATEGORY%% in the language file

Post by jessar94 »

I will modify one line in the language file:
$hesklang['moved_to']='This ticket has been moved to the new category';

To

$hesklang['moved_to']='This ticket has been moved to %%CATEGORY%%';

is it possible?

don't work for me :/
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Can i integrate %%CATEGORY%% in the language file

Post by Klemen »

What version of HESK are you using?
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
jessar94
Posts: 76
Joined: Sun Mar 16, 2014 7:54 pm

Re: Can i integrate %%CATEGORY%% in the language file

Post by jessar94 »

Klemen wrote:What version of HESK are you using?
HESK version: 2.5.5
PHP version: 5.4.26 (MySQLi)
MySQL version: 5.5.32-cll-lve
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Can i integrate %%CATEGORY%% in the language file

Post by Klemen »

The tag you mentioned (%%CATEGORY%%) only works in EMAIL subject, it doesn't work for other language variables.

You will need to do it manually in the admin/move_category.php file, for example find

Code: Select all

$need_to_reassign = 0;


and ABOVE that line add

Code: Select all

$hesklang['moved_to'] = str_replace('%%CATEGORY%%', $row['name'], $hesklang['moved_to']);
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