Page 1 of 1
Edit create status.. how to and is possibile to..?
Posted: Tue Apr 14, 2015 7:05 am
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
Re: Edit create status.. how to and is possibile to..?
Posted: Tue Apr 14, 2015 12:28 pm
by mkoch227
"Short name key" and "long name key" are the key values in the language file. For example:
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.
Re: Edit create status.. how to and is possibile to..?
Posted: Tue Apr 14, 2015 12:47 pm
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.
Re: Edit create status.. how to and is possibile to..?
Posted: Tue Apr 14, 2015 1:55 pm
by mkoch227
The key is a reference to the language file so HESK knows what text to display for what language. For example:
"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.
Re: Edit create status.. how to and is possibile to..?
Posted: Tue Apr 14, 2015 2:04 pm
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.