Jump to content

¿Cómo puedo traducir un texto de un .tpl?


Jose Braña

Recommended Posts

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

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...