Jump to content

[SOLVED] Module: blockcustomerprivacy translation bug?


Recommended Posts

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:

post-515215-0-10145500-1378460645_thumb.jpg

 

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

post-515215-0-46522100-1378460647_thumb.jpg

 

And theme: default (which I'm using)

post-515215-0-72402300-1378460649_thumb.jpg

 

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

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

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

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)

hkx3cia.png

 

then open ps_configuration_lang page and search for field with id_configuration 259

fV6E6Fo.png

 

if you have duplicated entries in the same language (id_lang field) remove them

Link to comment
Share on other sites

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

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

×
×
  • Create New...