Translation and Override Issues with "Related Products" Label in Phoca Cart 5

Phoca Cart - complex e-commerce extension
amax2
Phoca Member
Phoca Member
Posts: 35
Joined: 05 Apr 2022, 11:24

Translation and Override Issues with "Related Products" Label in Phoca Cart 5

Post by amax2 »

Hello everyone!

I'm experiencing a problem with the Italian translation and overriding the "Related Products" label in Phoca Cart 5. Despite my attempts, I can't get this label to display in Italian; it consistently remains in English.

I've tried various combinations for overriding the values, both by trying to translate the string directly into Italian and by attempting to override the English string itself, but I haven't gotten any results. The label invariably remains "Related Products".

As you can see in the image,
https://ibb.co/wNPdjHqY
I've tried various configurations without success.

Has anyone had similar experiences or can tell me the correct procedure to translate or override this label? Is there a specific file I should check or a cache I might have overlooked that needs clearing?

Any suggestions are welcome! Thank you so much for your help.

Tags:
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9827
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Translation and Override Issues with "Related Products" Label in Phoca Cart 5

Post by Benno »

Hi
In Phoca Cart v5.1.1 there are five different strings with the text “Related Products”:
Image

These affect both the frontend:
Image

As well as the backend:
Image

Try out which string should be changed, either by language override or by editing your Italian language file.

Kind regards,
Benno
amax2
Phoca Member
Phoca Member
Posts: 35
Joined: 05 Apr 2022, 11:24

Re: Translation and Override Issues with "Related Products" Label in Phoca Cart 5

Post by amax2 »

Hello everyone,

I've solved the problem with the "Related Products" label translation!

The issue, as some of you might have already guessed, was that there isn't an official Italian translation yet for Phoca Cart 5. This is why the constant

Code: Select all

COM_PHOCACART_CONTENT_TYPE_RELATED_DEFAULT 
simply wasn't present in the language files for version 5.

I checked and manually added the constant to the translation file from version 4, and now it works perfectly! The "Related Products" label is now displayed correctly in Italian.

Thank you all so much for your help and support!
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9827
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Translation and Override Issues with "Related Products" Label in Phoca Cart 5

Post by Benno »

You're welcome!

Kind regards,
Benno
Post Reply