MGLimhamn Posted September 6, 2013 Share Posted September 6, 2013 Hi, I am currently using PrestaShop 1.5.4.1 and I'm using multi-language on my shop and when I try to translate the text to Swedish for customer privacy on the account creation page, it doesn't update it, it stays in English. Here's a picture of what it looks like at the moment in English: The most weird thing is that "Customer data privacy" (the heading) gets translated, but not the message: "The personal data you provide is used to answer queries, process orders or allow access to specific information. You have the right to modify and delete all the personal information found in the "My Account" page." Even though I translated the text for it both theme: core And theme: default (which I'm using) Does anyone know how to fix this? The rest I've translated have been successfully been translated, I think it's only this module. Best regards, MGLimhamn Link to comment Share on other sites More sharing options...
El Patron Posted September 6, 2013 Share Posted September 6, 2013 lets try an untested hack: open your modules/blockcustomerprivacy/blockcustomerprivacy.php file around line 191 change if (!$this->isCached('blockcustomerprivacy.tpl', $this->getCacheId())) to // if (!$this->isCached('blockcustomerprivacy.tpl', $this->getCacheId())) in other words we are NOT going to get a cached copy of the .tpl file Link to comment Share on other sites More sharing options...
El Patron Posted September 6, 2013 Share Posted September 6, 2013 note: if you have themes/yourtheme/modules/blockcustomerprivacy/blockcustomerprivacy.php file you will need to change this file and not the one in your root/modules folder Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 6, 2013 Author Share Posted September 6, 2013 Thanks for your solution El Patron, however, it didn't work unfortunately. I don't have the themes/yourtheme/modules/blockcustomerprivacy/blockcustomerprivacy.php file, I only have a folder there called translations. I had it in modules/blockcustomerprivacy/ but when I commented out that line, nothing changed for me Link to comment Share on other sites More sharing options...
El Patron Posted September 6, 2013 Share Posted September 6, 2013 it's weird, I could only find one bug report on this and the solution was very vague http://forge.prestashop.com/browse/PSCFV-5419?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#issue-tabs sorry my 'hack' didn't work....I may try to work this out later this afternoon, i.e. test, if I do I will report back. Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 12, 2013 Author Share Posted September 12, 2013 Any other solutions to this problem is greatly appreciated. Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 18, 2013 Author Share Posted September 18, 2013 Would really appreciate a fix for this. Link to comment Share on other sites More sharing options...
vekia Posted September 18, 2013 Share Posted September 18, 2013 are you able to check database tables? if so, can you please check table: configuration_lang does changes appear there? + make sure that you haven't god duplicated field (for CUSTPRIV_MESSAGE variable) Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 18, 2013 Author Share Posted September 18, 2013 Hi vekia, thanks for your reply. I checked the database table and I couldn't see the translation there. This is how the table looks for me right now: Where can I find CUSTPRIV_MESSAGE variable? Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 23, 2013 Author Share Posted September 23, 2013 Vekia, please see my last post. Link to comment Share on other sites More sharing options...
vekia Posted September 23, 2013 Share Posted September 23, 2013 hello open ps_confiuguration table and search for field with name CUSTPRIV_MESSAGE, on example based on my shop, custpriv_message has got id 259 (in your store it might be different so you have to check it) then open ps_configuration_lang page and search for field with id_configuration 259 if you have duplicated entries in the same language (id_lang field) remove them Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 23, 2013 Author Share Posted September 23, 2013 Hi and thank you for helping out. I found out that mine had the id of 257, which is the same id as in the ps_configuration_lang table (see my picture of the table). The only difference between our tables is that I have three 257 because I have languages in my store, which you also can see in the picture. One strange thing is that id_lang 2, which is my Swedish language, is also written in English in the database as you can see. Can I manually translate the text in the database into Swedish or how do we solve this? Link to comment Share on other sites More sharing options...
vekia Posted September 23, 2013 Share Posted September 23, 2013 well, you can do it and im convinced that it will work well. but the question is... why it doesn't work well in Back Office Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 23, 2013 Author Share Posted September 23, 2013 Should I give it a try or will there be a problem if I want to reset it in case anyone finds a solution for it? Again, thanks for helping out, it's greatly appreciated Link to comment Share on other sites More sharing options...
vekia Posted September 23, 2013 Share Posted September 23, 2013 you can change it, no worries, when solution will be ready for your issue, it will works well (because it will overwrite field that you want to edit right now) Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 23, 2013 Author Share Posted September 23, 2013 I have now changed it in the database table but I didn't see any changes in the front-office. It's still in English unfortunately Please see the pictures below. Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 25, 2013 Author Share Posted September 25, 2013 Changing it in the database didn't work unfortunately. Do you know why vekia? Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 26, 2013 Author Share Posted September 26, 2013 Just noticed that the text for some odd reason has finally changed to Swedish. I don't know why and how it did that but it finally did Maybe it was because I changed it in the database table, but I checked it afterwards (3 days ago) but without any changes, it was still in English. And I haven't cleared cache since then, so it's not because of that. Anyways, thanks for helping out El Patron and vekia! Link to comment Share on other sites More sharing options...
vekia Posted September 26, 2013 Share Posted September 26, 2013 it might be related to the store cache anyway, thank you for confirmation that it works now im going to mark this thread as [solved] best regards Link to comment Share on other sites More sharing options...
Recommended Posts