Error message when placing translation in Codeigniter

Asked

Viewed 1,631 times

1

Someone knows how to fix this:

An Error Was Encountered: Unable to load the requested language file: language/English-Brazilian/form_validation_lang.php

I followed the following steps for the inclusion of translation:

  1. application -> language -> and put the Portuguese-Brazilian folder here
  2. application -> config -> $config['language'] = 'portuguese-brazilian'; (after deleting the English).

Obs.: the form_validation_lang.php file is in the folder portuguese-brazilian.

  • inside the briefcase portuguese-brazilian has any pt_br ou pt-br?

  • No, @Rafaelacioly, only English.

  • 1

    you are using CI 2 or 3?

  • CI 3, @Rafaelacioly.

2 answers

2

I went through the same situation solved giving permission to the directory language

$ chmod -R 775 language

0

Your procedure is correct. In my case the Portuguese zip I downloaded was generating a folder structure from the application. Just enter the folder you created and see if inside has the PHP files or if the zip generated the folder structure.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.