Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.
You might want to read the documentation for the current version, PrestaShop 8. Read the current 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_translation
table../themes/<themename>/translations
../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.