Page 1 of 1

Attribute type code and label in site

Posted: 19 Jan 2015, 13:30
by aksenovaa
I added several types of attributes for products with 'code' on English and 'label' on Russian:
note|примечание
comment | комментарий
and so on

But on site pages in section ATTRIBUTES I see new attributes on English: note, comment. That is output to site 'code' is used instead of the 'label'.
At the same time, in the demo data 'color|цвет' and 'size|размер' all as required, and is used 'label' on Russian (цвет, размер).
What could be the reason?

Re: Attribute type code and label in site

Posted: 19 Jan 2015, 14:02
by aimeos
If you add new attribute types, you should also provide translations to your language. The codes of the attribute types is used as key to lookup the translation. The easiest way to add new translations is described here: http://docs.aimeos.org/TYPO3/Overwrite_translations. For example:

Code: Select all

plugin.tx_aimeos.settings.i18n.ru.<number> {
    domain = client/html/code
    string = note
    trans = примечание
}
Replace <number> with an unique number not used for any other translation yet. The label can't be used for this as it wouldn't be possible to provide the label in different languages according to the database structure.

Is this helpful for you?

Re: Attribute type code and label in site

Posted: 19 Jan 2015, 14:13
by aksenovaa
Yes, this is what I need!
I just thought that the label - this is what is displayed as the name ...

Re: Attribute type code and label in site

Posted: 26 May 2016, 10:39
by m.nuernberger
Hey guys,

i have the same problem, but the solution dont work for me.
I created some attributes with keys "breite", "hoehe", "verglasung", "farbe" and "uwwert".
After that i added the overwriting translation but the keys are displayed in frontend as before.

You can see some screenshots as attachment. Hope somebody can help.

Thanks a lot.

Re: Attribute type code and label in site

Posted: 26 May 2016, 23:00
by aimeos
Where do you want to see the translations? In the detail view?
If yes, is the TypoScript in a TS extension template in the detail page or one of the parent pages? Did you clear the TYPO3 caches?

Re: Attribute type code and label in site

Posted: 30 May 2016, 07:30
by m.nuernberger
I want to see the translation in the detail view, correct.
The TypoScript is on the parent page:
a) static template is included (Aimeos Shop configuration);
b) TS-file with setup is included on same page id;
c) checkbox "Include static template after basic-template" is NOT active.

Regards, Martin.

Re: Attribute type code and label in site

Posted: 30 May 2016, 11:20
by aimeos
Do you use the latest version? If not, please update first.

It's difficult to say from here what's the problem in your installation. If nothing works, someone should have a look into your installation to solve the problem. The Aimeos company offers support like this: https://aimeos.com/eur/support/