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. Read the updated version of this page
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:
ps_translations
table.themes/<themename>/translations
.app/Resources/translations
.modules/<modulename>/translations
.modules/<modulename>/translations
.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.