Jump to content

Problem winth secondary language fronend translations. 1.6.1.4


Recommended Posts

Hi,
I have problem with front end translations.
Default language is czech, secondary language is english.
In english works translation of modules but frontend translations are still displayed in czech.

http://www.eleven-sportswear.cz/en/jizdni-kola-focus/3016-mountain-bike-focus-black-forest-lite-27.html

(see for example add to cart buuton)
http://www.eleven-sportswear.cz/en/23-beanies
(see for example number of products)

If I set english as default language, translations work. 


Anyone had same issue or can point me to solution?

Thanks in advance
 

Link to comment
Share on other sites

  • 4 months later...
  • 4 weeks later...
  • 4 months later...

I have the same problem.

 

I have my web in spanish and after I install the English language.

All the trasnlations from de DB work fine but the translations for the Front Office don´t work, prestashop show the text for the default language that it is spanish.

I´ve tried to clear the cache, change the permissions for the files, change the defaut language, but nothing work for me.

 

Has anyone found a solution?

Link to comment
Share on other sites

I find a solution that works for me.

 

In the file "./config/smartyfront.config.inc.php" I change in the function "smartyTranslate":

 

 

function smartyTranslate($params, &$smarty)
{  

    // ORIGINAL
    // global $_LANG;

    $iso_code = Context::getContext()->language->iso_code;
    include _PS_THEME_DIR_.'/lang/'.$iso_code.'.php';

 

because in my case Prestashop doesn´t take the correct values for $_LANG

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...