Page 1 of 1

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

Posted: Tue Nov 11, 2014 8:48 pm
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 :/

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

Posted: Wed Nov 12, 2014 11:06 am
by Klemen
What version of HESK are you using?

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

Posted: Wed Nov 12, 2014 1:45 pm
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

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

Posted: Wed Nov 12, 2014 2:05 pm
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']);