• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Localization problem

#1
Bug 
Hello!

I download "ru" translite folder in GitHub - https://github.com/codeigniter4/translations
Translate files has been transfer to folder app/Language/

This works well, but there are problems with validation. I do not get the name of the field:

PHP Code:
if (! $this->validate([
                'email'     => ['label' => 'Email''rules' => 'required|valid_email|max_length[100]'],
                'password'  => ['label' => 'Password''rules' => 'required|max_length[100]|alpha_numeric']
            ])) {
                $data = array(
                    'event'   => false,
                    'message' => $this->validator->listErrors('api_list')
                );
            

RU response:


Code:
Поле {поле} обязательно для заполнения. 
Поле {поле} обязательно для заполнения.

EN response:


Code:
The Email field is required. 
The Password field is required.

How can i fix this?

Thank you!
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.