Jump to content


Lenguaje datepicker

datepicker

  • Please log in to reply
5 replies to this topic

#1 Jesus

Jesus

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 20 April 2012 - 03:32 PM

hi all, how I can change the language of the calendar (month names, days of week), to Spanish? when editing a field type date, thank you very much, greetings from mexico.

#2 carlinchisart

carlinchisart

    Advanced Member

  • Members
  • PipPipPip
  • 67 posts

Posted 20 April 2012 - 04:17 PM

hi @Jesus, do you have to edit js files, see this post the last coment talk how you do that,

http://www.grocerycr...ndpost__p__1304

#3 noskov

noskov

    grocery CRUD Guru

  • Advanced Member
  • PipPipPip
  • 175 posts
  • LocationKiev

Posted 20 April 2012 - 04:34 PM

Hi! Jesus, you can also:

1. Go to the Jquery site http://jquery-ui.goo.../trunk/ui/i18n/, find your language for datepicker and copy the content

2. Save it in new file, for example, "jquery.ui.datepicker-es.js" in ./your_project/assets/grocery_crud/js/jquery_plugins/config folder

3. Open ./your_project/assets/grocery_crud/js/jquery_plugins/config/jquery.datepicker.config.js file and add line #7
localization: 'es'

4. And the last thing, you have to add a line to ./you_project/application/libraries/grocery_crud.php file in line #1666
$this->set_js($this->default_javascript_path.'/jquery_plugins/config/jquery.ui.datepicker-es.js');


#4 carlinchisart

carlinchisart

    Advanced Member

  • Members
  • PipPipPip
  • 67 posts

Posted 20 April 2012 - 07:40 PM

it's a good solution i don;t know this!.

#5 Jesus

Jesus

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 21 April 2012 - 02:04 AM

Thank you very much for the help carlinchisart and noskov.biz

#6 noskov

noskov

    grocery CRUD Guru

  • Advanced Member
  • PipPipPip
  • 175 posts
  • LocationKiev

Posted 21 April 2012 - 07:17 AM

Also you can find more info about datepicker at the jquery's docs and demos http://jqueryui.com/demos/datepicker/





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users