Edit create status.. how to and is possibile to..?

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
peopleinside_it
Posts: 60
Joined: Mon Jun 17, 2013 4:56 pm

Edit create status.. how to and is possibile to..?

Post by peopleinside_it »

Hi!
I'm using 2.2.0 - Mods for HESK and I want edit the status New (Translated in my Italian language is Nuovo) with different Italian name but also different English Name.

Is possible to do this?

As i see "Nuovo" status in italiano is not editable (text) i can only insert / edit Short Name Key and Long Name Key

So actually is supported what i want to do or i maybe can ask to implement it?
Thanks

I want edit New with New in queue for support and i want edit in English and in Italian status
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Edit create status.. how to and is possibile to..?

Post by mkoch227 »

"Short name key" and "long name key" are the key values in the language file. For example:

Code: Select all

$hesklang['new'] = 'New';
The 'new' inside of $hesklang is considered the "key". If you want to add 'New in queue', I recommend opening custom-text.php inside of your language folder (you may have to create it - the easiest way is to duplicate text.php, rename to custom-text.php, and delete everything from the file except for "<?php"), and add a new line for 'New in queue' as such:

Code: Select all

$hesklang['new_in_queue'] = 'New in queue';
Then, on the statuses page, change "New" 's short and long name key to new_in_queue. I'll try to add a how-to at some point to make this easier to understand. You would also need to add the code snippet above in custom-text.php for Italian:

Code: Select all

$hesklang['new_in_queue'] = 'Your Italian translation here';
TL;DR the "key" values coorrespond to language file items, allowing for easy translations.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
peopleinside_it
Posts: 60
Joined: Mon Jun 17, 2013 4:56 pm

Re: Edit create status.. how to and is possibile to..?

Post by peopleinside_it »

Thanks for your reply but sorry I'M confused.

First point: under Settings, Mod for Hesk, Statuses, what user can do?
User can decide to delete a status, choose is not closable and add new statues but this statues will be avaiable only for the current language? Other language will not be translated?

What I'M expect to see is under Statues the Name field editable for the english and the Italian language in my case where i have english and Italian active.

Do you think i can post a idea, suggestion on Github for make statues name editable for multilingual in HESK interface?

Ok posted here the idea:
https://mods-for-hesk.uservoice.com/for ... age-on-hes

I can't understand what is Short Name Key and Long Name Key and what they are for. Maybe is better create a more easy interface where is printed the name showed to the user and staff and make it editable. If there are more than one language active the possibility to compile for other language too the name.
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Edit create status.. how to and is possibile to..?

Post by mkoch227 »

The key is a reference to the language file so HESK knows what text to display for what language. For example:

Image

"in_progress" is the key for this status, and tells HESK, "the actual text for this status is located at $hesklang['in_progress'] for every language". So, when viewing a ticket in English, HESK will look for $hesklang['in_progress'] in text.php or custom-text.php in the /en folder. If your language is set to Italian, HESK will look for $hesklang['in_progress'] in text.php or custom-text.php in the /it folder.

Hopefully this makes a little bit more sense. Treat "short" and "long" keys as the exact same thing, as they will most likely be removed in the near future, as it makes things more confusing.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
peopleinside_it
Posts: 60
Joined: Mon Jun 17, 2013 4:56 pm

Re: Edit create status.. how to and is possibile to..?

Post by peopleinside_it »

Thanks i think is more clear. So.. in future version will be good if Name is editable , now is not or there are possibility to create personalized statues and be able to translate for different language.. so my uservoice should be userfull.

Thanks.
Post Reply