setLangString

setLangString(string $handle, string $translation)

You can simply change any handle of the translation with the method setLangString. A common usage is when a translation is missing or you really need to change the default value of the string. It is pretty easy to do that as it requires only the handle and the translation. For example:

$crud->setLangString('edit_item', 'Edit {subject} now!');
$crud->setLangString('view', 'Show me');

At the below full example we are changing two of the handles: the print button and the delete button

$crud->setTable('customers');
$crud->setSubject('Customer', 'Customers');

$crud->setLangString('action_delete', 'Destroy!');
$crud->setLangString('print', 'Send to print');

$output = $crud->render();

You can also notice that we don't have the default strings and the strings are replaced by the custom text that we did use at the setLangString function: