Translating the value of a custom field
- nico.van.leeuwen
-
Topic Author
- Offline
Less
More
8 hours 34 minutes ago #100000844
by nico.van.leeuwen
Translating the value of a custom field was created by nico.van.leeuwen
-- HikaShop version -- : 6.8.2
-- Joomla version -- : 6.2.1
-- PHP version -- : 8.4
-- Browser(s) name and version -- : Firefox 161.0
Hi,
I trying to figure what I'm missing when trying to translate the vaues of a custom field.
I managed to translate the label without issues.
Now trying to find out what I'm doing wrong for the values.
Normaly you enter a unique language string within the product so you can use the language tags for translation the field value per language.
Now when I edit a product, go to the specific language flag icon but don't see the field to enter the language_constant so I can translate that field value in the right language.
-- Joomla version -- : 6.2.1
-- PHP version -- : 8.4
-- Browser(s) name and version -- : Firefox 161.0
Hi,
I trying to figure what I'm missing when trying to translate the vaues of a custom field.
I managed to translate the label without issues.
Now trying to find out what I'm doing wrong for the values.
Normaly you enter a unique language string within the product so you can use the language tags for translation the field value per language.
Now when I edit a product, go to the specific language flag icon but don't see the field to enter the language_constant so I can translate that field value in the right language.
Please Log in or Create an account to join the conversation.
5 hours 17 minutes ago #100000845
by nicolas
Replied by nicolas on topic Translating the value of a custom field
Hi,
The translation boxes for a custom field only appear in the language flag popup of the product when the field is set as translatable. Go to Display > Custom fields, open your product field and set the option "Translatable" to Yes, then save. When you open the language flag of a product again, the field will be listed under the other fields (name, page title, etc.), and what you type there is what the product page shows in that language. More about the custom field options: www.hikashop.com/support/documentation/4...shop-field-form.html
That option is only available for fields of the types Text, Text area and WYSIWYG. For other types (dropdown, radio, checkboxes...), or if you prefer to work with language strings, you don't need the flag popup: type a language key as the value in the product form itself (for example MY_PRODUCT_CARE_TEXT), or as the title of the values of a dropdown in the field settings, and then add that key with its translation in each language under System > Manage > Language Overrides (select the Site side of each language). HikaShop translates a value that matches a language key when it displays it.
The translation boxes for a custom field only appear in the language flag popup of the product when the field is set as translatable. Go to Display > Custom fields, open your product field and set the option "Translatable" to Yes, then save. When you open the language flag of a product again, the field will be listed under the other fields (name, page title, etc.), and what you type there is what the product page shows in that language. More about the custom field options: www.hikashop.com/support/documentation/4...shop-field-form.html
That option is only available for fields of the types Text, Text area and WYSIWYG. For other types (dropdown, radio, checkboxes...), or if you prefer to work with language strings, you don't need the flag popup: type a language key as the value in the product form itself (for example MY_PRODUCT_CARE_TEXT), or as the title of the values of a dropdown in the field settings, and then add that key with its translation in each language under System > Manage > Language Overrides (select the Site side of each language). HikaShop translates a value that matches a language key when it displays it.
Please Log in or Create an account to join the conversation.
Time to create page: 0.044 seconds