Post by pabloestremadoyro » Mon Jan 05, 2015 10:13 pm

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.


Posts

Joined
Mon Jan 05, 2015 9:58 pm

Post by pabloestremadoyro » Mon Jan 05, 2015 10:58 pm

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. :)


Posts

Joined
Mon Jan 05, 2015 9:58 pm
Who is online

Users browsing this forum: No registered users and 14 guests