CesarDev Posted November 20 Share Posted November 20 Hi there, I just added a child theme based on parent “classic” theme (default theme of my Prestashop 8.0.4) and when I want to see all available translations through International/Translations/Modify translations (Type of translation: Front office Translations, Select your theme: new child created, Select your language: Spanish) the expected results page are continuously waiting and thinking without giving any result. I followed this steps to add the child theme: https://devdocs.prestashop-project.org/8/themes/reference/template-inheritance/parent-child-feature/ Does anyone have any experience on this process? PS: I made this child theme because in my version of Prestashop, and in some other versions, there is a bug that does not let you translate strings wrote for example in product.tpl file like this “{l s='Follow the instructions here: ' d='Shop.Theme.Global'}” Thanks Link to comment Share on other sites More sharing options...
Prestashop Addict Posted November 20 Share Posted November 20 Take a look at our tutorial (french, but you can translate it with GT or your browser) Link to comment Share on other sites More sharing options...
CesarDev Posted November 20 Author Share Posted November 20 Hi, They are the same exact steps I mentioned, with the exception of final activation of new child theme, which I just activated now but it does the same result. Server errors anywhere and the mentioned efects in back office translation section. Thank you for your help Link to comment Share on other sites More sharing options...
CesarDev Posted November 20 Author Share Posted November 20 I see that there is no 'Translations' folder inside parent 'classic' theme, but if I try to export a lenguage using the new created child theme I receive a 'Server error 500'. Link to comment Share on other sites More sharing options...
Divine Posted November 20 Share Posted November 20 Hello, try to import parent theme translations in the child theme. It is not ideal but it may help. Link to comment Share on other sites More sharing options...
CesarDev Posted November 21 Author Share Posted November 21 Good morning from Spain, The problem is if I try to export languages selecting ‘Theme translations’ and then select my new child theme and click ‘Export’, I receive an internal server error 500. What about exporting languages selecting ‘Prestashop translations’ then ‘Front office’ and export files to import them later from child theme as you suggested? But then I will have the wrong translations files in place … By the way, which is the difference in my case between exporting a language selecting ‘Theme translations/select a theme’ and ‘Prestashop translations/Front office’? Cheers! Link to comment Share on other sites More sharing options...
CesarDev Posted November 21 Author Share Posted November 21 I attach you some screenshots in order to you be able to see the structure of configured files Link to comment Share on other sites More sharing options...
CesarDev Posted November 21 Author Share Posted November 21 I found in a forum a post from a person who had almost the same problem as mine (after create child theme threw the same server error in bo). He solved the problem after detecting a missing space in theme.yml file. I attach complete theme.yml file. Do you see something strange to correct? Link to comment Share on other sites More sharing options...
CesarDev Posted November 21 Author Share Posted November 21 I put Prestashop in debug mode, and those are the specific exceptions and Stack Trace received. Link to comment Share on other sites More sharing options...
Divine Posted November 21 Share Posted November 21 I didn't mean export your translations from your back-office but copy the folder "translations" of your parent theme in the child theme. Link to comment Share on other sites More sharing options...
CesarDev Posted November 21 Author Share Posted November 21 Ok, I understand. But parent theme 'classic' (system native) does not have translations folder. Only an old unused theme called 'classicblinders' which I recently uninstalled has a folder like this. Link to comment Share on other sites More sharing options...
CesarDev Posted November 21 Author Share Posted November 21 Is it possible that an old theme has taken control of our translations without permission? I do have our website translated to french in almost all pages (more than 17.000 pages including every product "page") Link to comment Share on other sites More sharing options...
Divine Posted November 21 Share Posted November 21 Then try to export Classic theme translations from your back-office and put them manually in your child theme. Link to comment Share on other sites More sharing options...
CesarDev Posted November 21 Author Share Posted November 21 My Prestashop does not give the option to choose Classic theme (Core) when exporting a language, only the created child theme. Why there is no option to export classic theme? Which could be the cause? Thank you for your help! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now