Translation not working in overridden prestashop theme in version 1.7
Come back
35

Translation not working in overridden prestashop theme in version 1.7

Small description

The new version of prestashop 1.7 has the ability to override the theme, i.e.:

  • Without any additional changes, the child theme will use all the templates from the parent theme.

Redefinition is necessary in order not to lose your added changes to the theme when updating the theme. To learn more about this topic, go to link.

What will be the difference between parent and child theme:

Parent theme (config/theme.yml):

Child theme (config/theme.yml):

There is currently a translation issue in the child theme (overridden theme). The problem is that the child theme doesn't pick up the parent theme's translation if the child theme doesn't have the translation.

Solution

The bug is present in version 1.7.8 and above. On github I found fixes in the code that led to this error:

Prestashop 1.7 translation not working in overridden theme

Link to developer patch file:

https://github.com/PrestaShop/PrestaShop/commit/de446f282455ecc985ce041d53904526510d09f8#diff-e327e2f223367acca317185cc7011c5fc3a9b736245ba5b494dcf177be805a7c

created:
21.06.2023
updated:
21.06.2023
author:
admin
Tags
yandex metrika