Jump to content

How to translate a text added to product.tpl file?


CesarDev

Recommended Posts

Hi,

I added a pair of text labels directly to product.tpl file in order to promote our website. How could I translate those lines of text to another language? Usual way did not work for me.

I tried to do it through the usual way (International/Translations/ type of translation “Front office Translations” / Select your theme “Core (no theme selected)” / Language “French”. And then I looked for “Global” folder into “Theme” and into “Shop”, but here in Global folder it does not exist my new texts to translate.

 The added lines are these ones:

          <br>

          <h2>{l s='Lee opiniones verificadas sobre Naturalis.es en el siguiente enlace: d='Shop.Theme.Global'}</h2>

          <h3><a href="https://maps.app.goo.gl/NVhCufMH6Qtq8GxN9">{l s='Opiniones de usuarios de Naturalis.es en Google Maps' d='Shop.Theme.Global'}</a></h3>

          <br>

          <br>

          <h3>{l s='¡Y paga con Tarjeta, Bizum, Google Pay, Apple Pay o Contra Reembolso. Tu elijes!' d='Shop.Theme.Global'}</h3>

          <br>

 

Thanks!

Edited by CesarDev (see edit history)
Link to comment
Share on other sites

  • CesarDev changed the title to How to translate a text added to product.tpl file?

I do not have this option in my back office (Prestashop version 8.0.4). There are only: Back office Translations or Front office Translations or Installed modules translations or Email translations or Other translations. It does not exist the option you said. 

Link to comment
Share on other sites

The problem I described is a bug on Prestashop 8.0.4 and in other versions too.

I saw a related topic dated June 2023 on this on github webpage. The solution among participants code experts in this topic was using “classic-child” instead of “Classic” (default system Theme).

This is a link to the referenced topic: https://github.com/PrestaShop/PrestaShop/issues/32921 

Could some experienced user explain me how to carry out this solution?

Thank you!  

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...