In this tutorial, we will teach you how to add translations of the theme modules, which are missing after new language installation. We will make all examples based on the Spanish language, but in your case, it will be any language you install.
Once you installed a new language pack and added the language to the admin panel, you need to add missing translations of the theme modules to the newly installed language.
- In order to do that you need to use FTP or cPanel, open public_html folder if the engine is installed into it. If the engine is installed to the subfolder you open public_html/subfolder_name and navigate to:
- catalog/language/english/extensions/module
- catalog/language/en-gb/module
- catalog/language/en-gb/extensions/module
- catalog/language/english/module
All these directories are valid, and you need to use the ONE existing on your server.
- Copy all the files including tm_ or jetimpex_ in their names, e. g.:
- catalog/language/english/module/tm_fbbox.php
- catalog/language/english/module/tm_google_map.php
- catalog/language/english/module/jetimpex_megamenu.php
Your list may be shorter or longer.
- And copy these files to one of the directories, which exist on your server, in our case it will be Spanish language directory:
- catalog/language/spanish/module
- catalog/language/spanish/extensions/module
- catalog/language/es-ES/module
- catalog/language/es-ES/extensions/module
Do not remove files from English language directory, just copy the files to the new language directory! - We have copied all the files from English to Spanish language directory and now we need to open files one by one in Filemanager code editor or download to PC and use NotePad++, Sublime text, etc, to edit translations in files, as follows.
- We use the jetimpex_megamenu.php file as an example, it has the following coding:
All we need to do is to translate the ‘Categories’ into Spanish, and you should translate it into your language:
- Save changes. Upload file back to the server if you downloaded it to your PC. Perform the translations to all the copied files.
We hope this tutorial is much of help.