Page 1 of 1

Calendar Issue - Language Translation

Posted: Sat Jun 18, 2016 7:04 am
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

Re: Calendar Issue - Language Translation

Posted: Sat Jun 18, 2016 7:07 am
by peopleinside_it
Here is a screenshot:
Image

Re: Calendar Issue - Language Translation

Posted: Sat Jun 18, 2016 3:43 pm
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.

Re: Calendar Issue - Language Translation

Posted: Sat Jun 18, 2016 7:21 pm
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

Re: Calendar Issue - Language Translation

Posted: Sat Jun 18, 2016 8:19 pm
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.

Re: Calendar Issue - Language Translation

Posted: Sat Jun 18, 2016 8:47 pm
by jessar94
yeey, it´s working, but one last question
Image

Re: Calendar Issue - Language Translation

Posted: Sat Jun 18, 2016 8:59 pm
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.

Re: Calendar Issue - Language Translation

Posted: Sat Jun 18, 2016 9:06 pm
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? :-)

Re: Calendar Issue - Language Translation

Posted: Sat Jun 18, 2016 9:16 pm
by jessar94
I just ask, but i can wait :D