alextselegidis/easyappointments

Problem with Brazilian Portuguese translation

SrMarkLau opened this issue · 2 comments

Hello everyone, when using the application with the 'portuguese-br' language configuration in the config.php file, the application also shows external users the page in Portuguese for Portugal and not for Brazil. Is there another type of configuration to be done?

I think it's a bug in the application/config/config.php file on line 118:

$config['language'] = isset($_SERVER['HTTP_ACCEPT_LANGUAGE'], $languages[$language_code])
? $languages[$language_code]
: Config::LANGUAGE;

Hello!

This happens because of the browser configuration most likely.

The app will automatically try to detect the browser language.

You can skip that by updating config.php to work like this:

$config['language'] = Config::LANGUAGE;

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!