CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • datepicker in french (civicrm 4.0.5)
Pages: [1]

Author Topic: datepicker in french (civicrm 4.0.5)  (Read 4313 times)

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
datepicker in french (civicrm 4.0.5)
September 23, 2011, 02:14:36 pm
The datepicker isn't getting localized on my french page, and I get "$.datepicker is undefined" in firebug's error console (I don't on the english page). I took a look and it looks like it's supposed to be translating (i.e., one of the javascript files looks like it has translations for months/days etc.), so I suspect it's just the javascript error that is the problem, but I don't know where to look.

It appears that the original translation of the datepicker was resolved here a year ago.

http://issues.civicrm.org/jira/browse/CRM-6819

I'm using D7/CiviCRM 4.0.5

Michał Mach

  • Moderator
  • Ask me questions
  • *****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: datepicker in french (civicrm 4.0.5)
September 26, 2011, 08:37:29 am
Are you able to reproduce it on public sandbox?

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: datepicker in french (civicrm 4.0.5)
September 26, 2011, 09:50:45 am
Sure, i just switched the default language of the D7 demo site to french canadian and if you login as demo and go here:

http://d7.demo.civicrm.org/civicrm/event/manage/registration?reset=1&action=update&id=3

you'll see the date picker for the start of the event isn't translated.

This time I was using chrome, and my javascript console provided this error message:

Uncaught TypeError: Cannot read property 'regional' of undefined

Also, if you want to see a slightly different version of what I assume is the same error, the page I'm working on is now live here:

http://secure.french-future.org/fr/civicrm/event/register?reset=1&id=1&lcMessages=fr_CA

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: datepicker in french (civicrm 4.0.5)
September 26, 2011, 10:40:44 am
Looks like a bug, can you file an issue for the same.

Thanks
Kurund
Found this reply helpful? Support CiviCRM

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: datepicker in french (civicrm 4.0.5)
September 29, 2011, 11:39:34 am
Yes, but i'd also like to try and solve it .. any hints?

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: datepicker in french (civicrm 4.0.5)
October 02, 2011, 06:09:55 am
Okay, let me ask more directly: i think you're using jquery with noConflict to access it as $cj instead of $ or jQuery

So it looks in the error that you haven't accessed the right version of jquery (i.e., you're using the drupal one that is accessible in it's normal $ version). But I don't really understand this, because all your libraries are being included without changes, and i think there's some clever stuff called closures going on.

Am I on the right track here?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: datepicker in french (civicrm 4.0.5)
October 02, 2011, 06:28:39 am
Yes, I think you are on right track. Recently we had done some conflict related changes fro drupal 6. It should not affect d7, but worth checking.

Kurund
Found this reply helpful? Support CiviCRM

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: datepicker in french (civicrm 4.0.5)
October 04, 2011, 02:08:56 pm
Okay, thanks kurund, issue and patch are here:

http://issues.civicrm.org/jira/browse/CRM-8981


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • datepicker in french (civicrm 4.0.5)

This forum was archived on 2017-11-26.