Page 1 of 1

Bug in 2.0.1.1 - Second Language partially not working

Posted: Mon Jan 05, 2015 10:13 pm
by pabloestremadoyro
Dear Sir, I'm testing the new release (2.0.1.1) and I can't have spanish language working at its 100%. For example, the
button "Add To Cart" is not translated whenever I set my store to spanish. I checked the file located at:
/catalog/language/spanish/spanish.php and it seems everything O.K..
There is the right variable:
$_['button_cart'] = 'Comprar';

I realized that my store is only taking text from the default.php (english) language file, for certain variables.

Any tip will be so valuable for me.

Regards.

Re: Bug in 2.0.1.1 - Second Language partially not working

Posted: Mon Jan 05, 2015 10:58 pm
by pabloestremadoyro
I'm going to reply myself, because it should help others.

I made a modification over the main index.php file.

I replaced this line:

Code: Select all

$language->load('default');
by the following code:

Code: Select all

if ($languages[$code]['code'] == 'en'){
$language->load('default');
}
else
{
$language->load($languages[$code]['directory']);
}

After the modification, everything seems to work fine now. :)