⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Date in columns : how to change the language ?



gab
  • profile picture
  • Member

Posted 18 May 2012 - 15:17 PM

Hi all,

I'm looking for a way to change the language for a date in the list (columns)

[left]So far, for my date field, i have for example : 17 May 2012 - 11:36 , how to change it ( specially the word "may" ) ?[/left]

[left]Thanks in advance :)[/left]

carlinchisart
  • profile picture
  • Member

Posted 18 May 2012 - 16:17 PM

hi @gab, you can downolad the jquery date in your lenguaje and use the function set_js of grocery crud, see this

/topic/341-lenguaje-datepicker/page__view__findpost__p__1361

or you can change the js file see this

/topic/56-es-translate-multilingual-functionality/

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 18 May 2012 - 22:24 PM

application/libraries/grocery_crud.php line 255 change the:


$value = date ("d M Y",mktime (0,0,0,(int)$month , (int)$day , (int)$year));

to

$value = date ("d m Y",mktime (0,0,0,(int)$month , (int)$day , (int)$year));


application/libraries/grocery_crud.php line 267 change the:


$value = date ("d M Y - H:i", mktime ( (int)$hours , (int)$minutes ,0, (int)$month , (int)$day ,(int)$year));

to

$value = date ("d m Y - H:i", mktime ( (int)$hours , (int)$minutes ,0, (int)$month , (int)$day ,(int)$year));

gab
  • profile picture
  • Member

Posted 19 May 2012 - 11:30 AM

Ok i'm going to change these lines, thanks to you both for your answers.