I can not translate the "Subscribe" button

There's an issue with translation in the frontend area which has been fixed in DEV version, once released, that will work just fine.
 
Yeah there is, open apps/frontend/controllers/ListsController.php and find the setCustomerLanguage method (somewhere at line 953) and make it:
PHP:
public function setCustomerLanguage($customer)
{
    if (empty($customer->language_id)) {
        return $this;
    }
  
    // multilanguage is available since 1.1 and the Language class does not exist prior to that version
    if (!version_compare(Yii::app()->options->get('system.common.version'), '1.1', '>=')) {
        return $this;
    }
  
    if (!empty($customer->language)) {
        Yii::app()->setLanguage($customer->language->getLanguageAndLocaleCode());
    }

    return $this;
}
 
@Rafael Lins - Yes i know. you can translate it as shown in the translation guide, but you need the above fix to make the translation show properly in frontend.
 
Back
Top