Calendar Issue - Language Translation

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

Calendar Issue - Language Translation

Post by peopleinside_it »

Hi,

- The calendar voice on the ticket menu is not translated so user will see in the menu Calndar on not Calendario (on my Italian translated language)
- Days of the week are translated in my language in the admin panel under first day of the week but not in the calendar. Also Month still be in English in the Calendar.

I prefer alert here for let you open maybe the issue on GitLab because I don't know if is better open a new topic or post here: https://gitlab.com/mike-koch/Mods-for-HESK/issues/357
peopleinside_it
Posts: 60
Joined: Mon Jun 17, 2013 4:56 pm

Re: Calendar Issue - Language Translation

Post by peopleinside_it »

Here is a screenshot:
Image
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Calendar Issue - Language Translation

Post by mkoch227 »

The "Calendar" text at the top is something I forgot to move to the language file.

For the actual calendar, the calendar library that is used has localization support for several languages built-in. To install a different language:
  1. Download fullCalendar from http://fullcalendar.io/download/
  2. Extract out the "lang" folder, and upload it to your helpdesk.
  3. In header.inc.php, around line 254 (should be in the "if (defined('MFH_CUSTOMER_CALENDAR'))" block), add <script src="<?php echo HESK_PATH; ?>js/calendar/lang/it.js"></script>, where it is the language code
I've opened a GitLab issue to have HESK switch to the proper language for the calendar based on the HESK language being used.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
jessar94
Posts: 76
Joined: Sun Mar 16, 2014 7:54 pm

Re: Calendar Issue - Language Translation

Post by jessar94 »

mkoch227 wrote:The "Calendar" text at the top is something I forgot to move to the language file.

For the actual calendar, the calendar library that is used has localization support for several languages built-in. To install a different language:
  1. Download fullCalendar from http://fullcalendar.io/download/
  2. Extract out the "lang" folder, and upload it to your helpdesk.
  3. In header.inc.php, around line 254 (should be in the "if (defined('MFH_CUSTOMER_CALENDAR'))" block), add <script src="<?php echo HESK_PATH; ?>js/calendar/lang/it.js"></script>, where it is the language code
I've opened a GitLab issue to have HESK switch to the proper language for the calendar based on the HESK language being used.
I have add the row in the inc/header.inc.php but i cant find the lang map in js\calendar/lang/
I test to create a map named lang then upload the lang file, don't work :/ , still in english
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Calendar Issue - Language Translation

Post by mkoch227 »

You may need to create the lang folder, and then copy the downloaded language file and place it in the lang folder.

2.6.1 will support setting the correct language on page load.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
jessar94
Posts: 76
Joined: Sun Mar 16, 2014 7:54 pm

Re: Calendar Issue - Language Translation

Post by jessar94 »

yeey, it´s working, but one last question
Image
jessar94
Posts: 76
Joined: Sun Mar 16, 2014 7:54 pm

Re: Calendar Issue - Language Translation

Post by jessar94 »

I see now, the calendar is translated on client side, but when i log in to the admin panel, is the Language not translated.
peopleinside_it
Posts: 60
Joined: Mon Jun 17, 2013 4:56 pm

Re: Calendar Issue - Language Translation

Post by peopleinside_it »

The "Calendar" text at the top is something I forgot to move to the language file.
Maybe will be fixed with future version. Maybe you need immediate fix? :-)
jessar94
Posts: 76
Joined: Sun Mar 16, 2014 7:54 pm

Re: Calendar Issue - Language Translation

Post by jessar94 »

I just ask, but i can wait :D
Post Reply