⚠ 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

translate certain phrase in edit action



putoyair

putoyair
  • profile picture
  • Member

Posted 17 April 2013 - 05:20 AM

I have a doubt

 

I know we can change the language of grocery crud, with selected language located in 

 

 

 

assets/grocery_crud/languages/...
 

 

 

However I can not find the specific error message (so i can translate it)  

 

when we have a select list, the field is required and user do not select anything...

 

for instance check following image where we have a select list of species and user did not select any specie so following message is spaned

 

dd.png

 

How can I translate this code? where is it (it is not located in assets/grocery_crud/languages/)


davidoster

davidoster
  • profile picture
  • Member

Posted 18 April 2013 - 06:29 AM

This is a message that is generated from the Form Validation class of CodeIgniter itself.

You can find these messages under system/language/english/form_validation_lang.php

 

For information how to make these messages multilingual

use the function : $this->form_validation->set_message('rule', 'Error Message');

check here under the sections Setting Error Messages,  Translating Field Names