Artizzz Posted October 30, 2012 Share Posted October 30, 2012 (edited) Hello! I have problems translating PDF in prestashop version 1.5.2. I'm trying this on my web server and on local server with fresh install. When I try to save PDF translation it shows completely blank page. And it didn't show any error messages. So any suggestions for solution? P.S other section translations work fine. Edited October 30, 2012 by Artizzz (see edit history) Link to comment Share on other sites More sharing options...
Artizzz Posted October 30, 2012 Author Share Posted October 30, 2012 I find out that it's trying to save translations on folder themes/default/pdf/lang (instead of orginal location translations/(lanugage iso code/pdf.php), and if I create file named in format (language iso code).php it saves translation on that file. But when it saves it didn't use it from that file. Link to comment Share on other sites More sharing options...
hardware Posted October 31, 2012 Share Posted October 31, 2012 I have same problem with Prestashop 1.5.2 Link to comment Share on other sites More sharing options...
wampsi Posted November 8, 2012 Share Posted November 8, 2012 Same problem... Link to comment Share on other sites More sharing options...
Nick Fedchik Posted November 8, 2012 Share Posted November 8, 2012 Post the bug to http://forge.prestashop.com Link to comment Share on other sites More sharing options...
hardware Posted November 8, 2012 Share Posted November 8, 2012 I've solved it for translation of theme when I added the files empty. For example, english and spanish ("en" and "es") on folder themes/theme_name/pdf/lang Link to comment Share on other sites More sharing options...
jensen_tw Posted November 14, 2012 Share Posted November 14, 2012 same problem PS1.5.2 Link to comment Share on other sites More sharing options...
Promotion.LT Posted November 19, 2012 Share Posted November 19, 2012 If your problem is not related to permissions, then (as of 1.5.2.0) : 1. backup. 2. edit /controllers/admin/AdminTranslationsController.php line 1158-1168 replace "$this->writeTranslationFile();" with $this->writeTranslationFile(true); and viceversa, so the block looks like : else if (Tools::isSubmit('submitTranslationsPdf')) { if ($this->tabAccess['edit'] === '1') // Only the PrestaShop team should write the translations into the _PS_TRANSLATIONS_DIR_ if (($this->theme_selected == self::DEFAULT_THEME_NAME) && _PS_MODE_DEV_) $this->writeTranslationFile(true); //THIS _WAS_ WITHOUT TRUE -MUST BE WITH else $this->writeTranslationFile(); //REMOVE TRUE FROM HERE else $this->errors[] = Tools::displayError('You do not have permission to edit here.'); } 3. IMPORTANT - Delete "/themes/default/pdf" folder itself. Should work now P.S. If you need help with your shop - ping us - we can help you at low cost 1 Link to comment Share on other sites More sharing options...
jensen_tw Posted November 19, 2012 Share Posted November 19, 2012 IT'S WORK ! THANK YOU . Link to comment Share on other sites More sharing options...
BnB Posted March 10, 2013 Share Posted March 10, 2013 Hi, I have the same problem but for the Module section translations. After modifying I press save and a blank page without error appears. The modifications seem to be saved although. Can somebody help me out with this problem? Thank you! Link to comment Share on other sites More sharing options...
kal77 Posted April 17, 2013 Share Posted April 17, 2013 Same issue and the solution by Promotion.LT does not working for me. Prestashop 1.5.4 Link to comment Share on other sites More sharing options...
Recommended Posts