How to find translation in prestashop 1.7.x?
The article will discuss the solution path for prestashop starting from version 1.7.6.x. Solution also concerns the new translation system with which you make translations. New system stores the translations that you make through the back office in the database, and not in translation files as before. More precisely, the table is called ps_translation. You can select translation phrases using this SQL script:
SELECT * FROM ps_translation p;
So, let’s look at the solution if you can’t find the translation you want.
First of all, let’s clean the cache – this is done in the back office: Advanced Parameters->Performance->Clear cache.
You can also clean the cache manually by deleting the contents of the …/var/cache/ folder.
For example, let’s find the word Код (Reference) of the front office theme for a product card:
To search for a translation go to International -> Translations:
In the Search translations field, enter the word Код. As a result, all matches appear that found the script:
Note that the search script is case sensitive in the search word. In this way the words Код and код for it will be different. Whitespace can also affect the search engine.
So, after all matches have been shown. We go through the domains, expanding them arrows. And find the right word:
If after that you cannot find the word, then you can find the path in the back office to the word through the theme files. But for this you need to know the word itself for translation and where it can be located. Let’s find where the word for translation is located. For example, the word Reference, that needs to be translated is located in the theme file …/themes/classic/templates/catalog/_partials/product-details.tplIt is defined by domains: Shop.Theme.Catalog
Go to the Search translations field and enter the word Reference. And we go to the ones we need domains:Shop->Theme->Catalog:
If the word turned out to be empty, then fill it with the desired translation.
As for translations for modules that support the old translation system, for their system of transfers has not changed.