In case you've missed it, you are looking at an older version of the website. Checkout our latest version, we promise you will love it 😍

set_lang_string

void set_lang_string( string $handle, string $lang_string )
Quick Description: Set a language string directly.
Set your lang string directly. This is really useful if you want just for some cases to change the language string. Let's have an example:
 
    $crud = new grocery_CRUD();
    $crud->set_table('customers');
    $crud->columns('customerName','phone','addressLine1','creditLimit');
 
    $crud->set_lang_string('form_update_changes','Updating existing customer')
                       ->set_lang_string('form_back_to_list','Go back to customers page')
                       ->set_lang_string('form_save','Save customer into the database');
 
    $output = $crud->render();
 
    $this->_example_output($output);