Warning: You are browsing the documentation for PrestaShop 1.7, which is outdated.
You might want to read an updated version of this page for the current version, PrestaShop 8.
At its core, translation consists in programmatically transforming a wording into its equivalent in a target language, using a translation dictionary. If the loaded dictionary is in Spanish, the output will be in Spanish.
Before you begin working with translations, you should get familiarized with the following concepts:
PrestaShop uses Symfony’s Translator Component to translate wordings.
This component is initialized for the configured language by loading five Catalogue Resources:
The catalogue resources above are listed by precedence.
Translations located in catalogues at the top of the list will take precedence over the ones placed below.
When the translator is used, it will receive a wording and a translation domain. The translator will try and find the appropriate translation for that combination of wording and translation domain combination within the loaded catalogues.