Translation does not work when printing a pdf order in prestashop 1.7 and higher
On the admin page, if the translation in the order invoice does not work for you, exactly when you print the order, and the translations do not work when downloading pdf, I describe the solution to this problem below.
What does it look like at the moment
Perhaps you will come across the following file code:
\config\smartyadmin.config.inc.php
The fact is that the translation is looking for a translation in the pdf array, which currently returns empty, but although it should look for the translation through the "d" parameter, which is described in the invoice file invoice.tpl
Solution
As a result, we will get the following function, it will first look for a translation for pdf from the "p" parameter, and then if it does not find it, it will search additionally in the array of translations
File code: (fixes)
\config\smartyadmin.config.inc.php