⚠ 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

Change 'Add Record' to 'Report new arrival'



xcoder
  • profile picture
  • Member

Posted 17 June 2012 - 07:27 AM

How can I change the 'Add Record' button to 'Report New Arrival' and not Add new arrival

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

Posted 17 June 2012 - 13:19 PM

You can use the method set_lang_string - http://www.grocerycr...set_lang_string in your situation you just want to change the lang_string:


'list_add' (Add)
'list_record' (Record)


for example:


$crud->set_subject("Arrival");
$crud->set_lang_string('list_add','Report New');


or you can just do:


$crud->set_lang_string('list_add','Report New')
->set_lang_string('list_record','Arrival');


to change only the name for the list.

In general you can use the set_subject method to have automatically the : "Add Arrival", "Edit Arrival", "Delete Arrival"... e.t.c.

xcoder
  • profile picture
  • Member

Posted 20 June 2012 - 18:22 PM

Thanks...That worked Fine.