Jump to content

Translate product attributes


isaac.dvory

Recommended Posts

Hello ,

I'm trying to find a way to translate product attribute, I don't want to change its value, just translate it on the template. 

so for example, if the attribute value is "XXXL" I want to translate it to "3XL" while keeping the value "XXXL". 

I tried editing product.tpl and changed:

{$group_attribute|escape:'html':'UTF-8'} 

To: 

 {l s=$group_attribute|escape:'html':'UTF-8'}

But it didn't add it to the translation page in the admin. 

 

is it possible? 

Link to comment
Share on other sites

Ah - use of the word translate and reference to "translation page in the admin" made me think of language translation, rather than functionality for displaying an attribute string which is different from the value it represents.

 

To get this working your best bet would be to modify the template files and override functionality in the back office so that you when you create an attribute you can provide a value and a seprate display string.

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