Z
Z
Zenko2020-02-22 22:36:27
CodeIgniter
Zenko, 2020-02-22 22:36:27

Some errors in codeigniter form_validation are not translated how to fix?

In the registration form I process the parameters, the first required parameter is translated, but min_length[8] is not, I checked in all form_validation only the first parameter is translated, the subsequent ones are in English. What's my mistake? Where to dig?

$this->form_validation->set_rules(
        'new-password',
        'password',
        'trim|required|min_length[8]',
        array(
          'required' => lang('error_empty_reg_password'),
          'min_length[8]' => lang('error_reg_min_length_password')
        )
      );

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question