Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New translation problem with Mini Calendar popup
#1
Hello,

I'm trying to add new language from old Vtiger 5.4. "he_he"
All work fine except that the Mini Calendar windows not popup.

The JS fail on:

Quote:Uncaught TypeError: Cannot read property 'DEF_DATE_FORMAT' of undefined
   at new Calendar (calendar.js:28)
   at HTMLImageElement.triggerEl.(/corebosdemo/anonymous function) (http://URL/jscalendar/calendar-setup.js:159:28)

I suspect one of those files missing some definitions:
  • include/js/he_he.lang.js
  • jscalendar/lang/calendar-he.js
  • modules/cbCalendar/language/he_he.lang.php

to check it, I override the files using:
  • include/js/en_us.lang.js
  • jscalendar/lang/calendar-en.js
  • modules/cbCalendar/language/en_us.lang.php

Then clear the browser cache, history and reload.
It didn't solve the problem.

Do you have any direction?

Thanks
Reply
#2
It is looking for this entry in the jscalendar/lang/calendar-he.js file:

https://github.com/tsolucio/corebos/blob...en.js#L119

compare your -he file with the -en and add any missing entries, reload and try again

Let me know how it goes. I will try to help
Joe
TSolucio
Reply
#3
(03-13-2018, 06:23 PM)joebordes Wrote: It is looking for this entry in the jscalendar/lang/calendar-he.js file:

https://github.com/tsolucio/corebos/blob...en.js#L119

compare your -he file with the -en and add any missing entries, reload and try again

Let me know how it goes. I will try to help


Thank you its working!

Why the file "jscalendar/lang/calendar-en.js"  is not named like this "jscalendar/lang/calendar-en_us.js" ?

How it find the XX in the name calendar-XX.js ?
Reply
#4
jscalendar is a third party library we import and use "as is", so we try not to change it much.

You can find those two letters in your main language file:

https://github.com/tsolucio/corebos/blob...g.php#L514
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)