Joachim Torngren Posted February 1, 2015 Share Posted February 1, 2015 (edited) I have a problem that some (about 7) non-Prestashop modules suddenly does not display correctly in back-office. Most (but not all) of these modules are listed in the top of the module list. I have tried to clear both system and browser cache, but still same result. I have "Disable non PrestaShop modules" set to NO and "Disable all overrides" set to NO The problem is that a most of the text in the module does not show in back-office. In front-office everything looks OK. Anyone have any tips???? Edited February 20, 2015 by Joachim Torngren (see edit history) Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted February 1, 2015 Share Posted February 1, 2015 there has been a fix that should solve this issue for you https://github.com/PrestaShop/PrestaShop/commit/9e27137fc1f1d57d4da9fc3fc1a63bba23c9a422 1 Link to comment Share on other sites More sharing options...
magick98 Posted February 1, 2015 Share Posted February 1, 2015 I think it could work, but our files look different. Here´s some of classes/Translate.php file: if (isset($_MODULES[$current_key])) $ret = stripslashes($_MODULES[$current_key]); elseif (isset($_MODULES[$default_key])) $ret = stripslashes($_MODULES[$default_key]); // if translation was not found in module, look for it in AdminController or Helpers elseif (!empty($_LANGADM)) $ret = Translate::getGenericAdminTranslation($string, $key, $_LANGADM); else $ret = stripslashes($string); if ($sprintf !== null) $ret = Translate::checkAndReplaceArgs($ret, $sprintf); if ($js) $ret = addslashes($ret); else $ret = htmlspecialchars($ret, ENT_COMPAT, 'UTF-8'); if ($sprintf === null) $lang_cache[$cache_key] = $ret; else return $ret; } return $lang_cache[$cache_key]; What needs to be changed here? Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted February 1, 2015 Share Posted February 1, 2015 back up you existing Translate.php and replace that code with the updated Translate.php in githup, glick veiw then click raw, then copy all that code and paste into Translate.php Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted February 1, 2015 Share Posted February 1, 2015 back up you existing Translate.php and replace that code with the updated Translate.php in githup, glick veiw then click raw, then copy all that code and paste into Translate.php also you will need to then after Translate.php update delete cache/cache_index.php sorry for not remembering to post that part. Link to comment Share on other sites More sharing options...
Joachim Torngren Posted February 20, 2015 Author Share Posted February 20, 2015 I followed El Patron directions and this solved my problem. Similar to magick98 my translate.php was different to the one in Github so I replaced the complete filecontent. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now