Jump to content

Translations


AcidLava

Recommended Posts

Hello,

On PrestaShop 8.2.2, my translations are not being applied.

Some of them seem to show up when I manually clear the caches, only to disappear again afterwards (and not all of them, to be clear). For example, I fully translated the native GDPR module in PrestaShop without success.

The latest version 8.2.2 is supposed to fix this issue, but not on my end. I also applied the following patch, otherwise I was getting an “Undefined” error when accessing the translations of my Warehouse theme:

https://github.com/PrestaShop/PrestaShop/pull/34602/files

Any idea, anyone? I’m going crazy here.

Edited by AcidLava (see edit history)
Link to comment
Share on other sites

I hope the following helps, and welcome to cray, I've been working in ps since 1.4 and am quite mad.

1) Turn off anything that hides the problem

  • International → Translations → Modify translations: note the Type you’re editing.
  • Advanced Parameters → Performance (temporarily while testing):
  • Template compilation: Force compilation
  • Cache: Disable cache
  • Save, then click Clear cache.

Now test; if strings stick here, it’s a cache/domain placement issue (most common).

2) Confirm where the strings live (Theme vs Module)

Warehouse overrides many module templates. When a module tpl is overridden in the theme (e.g. /themes/warehouse/modules/psgdpr/...), the strings belong to the Theme translations, not the Module translations.

Try both:

  • Type = Themes translations → Your theme (warehouse), then search the string.
  • Type = Module translations → GDPR module, then search the string.
  • If it appears under Themes but not Module, that’s expected—translate it under Themes.

ps_gdpr specific: check the domain name and overrides

  • If Warehouse overrides ps_gdpr templates, translate via Theme translations (see #2).
  • If not overridden, translate via Module translations.
  • After saving, Clear cache again in Performance.
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...