Jose Braña Posted August 7, 2020 Share Posted August 7, 2020 Hola buenos días... A ver si alguien me puede echar una mano. Tengo que poner un texto en un tpl. pero necesito que ese texto se pueda traducir luego para la versión en inglés. Me explico, tengo este código: {foreach from=$product.attributes item=attribute} {if $attribute.id_attribute==85} <li class="product-flag {$flag.feature}">{$attribute.name}</li>{break} {/if} {if $attribute.id_attribute==74 or $attribute.id_attribute==75 or $attribute.id_attribute==76 or $attribute.id_attribute==77} <li class="product-flag {$flag.feature} etiquetareacondicioando">Reacondicionado</li>{break} {/if} {/foreach} Que me funciona muy bien, pero necesito sustituir la palabra "Reacondicionado" por una cadena que sea luego traducible para que al cambiar el idioma a inglés aparezca "Refurbished". El código es parte de un .tpl modificado en un tema child de Warehouse Theme. ¿Alguien puede orientarme sobre como puedo hacerlo? No tengo muy claro como hacerlo en PS Gracias 1000. Link to comment Share on other sites More sharing options...
Prestafan33 Posted August 7, 2020 Share Posted August 7, 2020 (edited) {l s='Refurbished' d='Shop.Theme.Catalog'} Y luego en las traducciones del tema eliges el idioma español y lo traduces. Edited August 7, 2020 by Prestafan33 (see edit history) Link to comment Share on other sites More sharing options...
Jose Braña Posted August 7, 2020 Author Share Posted August 7, 2020 Eres un Crack. Resuelto. Gracias. 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