translation of characteristic values

  • Posts: 12
  • Thank you received: 0
  • Hikashop Business
5 months 4 days ago #301838

-- HikaShop version -- : 4.0.1.
-- Joomla version -- : 3.8.13

Hi, Is it possible to translate Product Characteristic Values to another language ? I have tried using Hikashop-System-Languages-Overrides but unsuccessful. However Overrides is working for the Filter Values and not for the Characteristic Values.
Regards

Please Log in or Create an account to join the conversation.

  • Posts: 65706
  • Thank you received: 9590
  • MODERATOR
5 months 4 days ago #301840

Hi,

You can do that with the integration we have with Falang:
demo.hikashop.com/index.php/en/hikashop/...ge/with-translations
Once you enable it, on the characteristic interfaces, you'll have tabs for each language in order to translate the characteristic and its values. You can see it on our demo website backend if you edit a characteristic there.

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 0
  • Hikashop Business
5 months 3 days ago #301879

Hi Nicolas, thank you for your response
I will try this solution
Regards,

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
3 months 3 weeks ago #303132

I had something similar but then to the labels of the characteristics in the product view.

I could not use the standard translations method as the JText::_ was missing.
I thought I could find this in the \front\views\product\tmpl\show_block_characteristic.php

Unfortunately it was not there. Iin the end I found it here: \back\types\characteristic.php

In line 228 replace:

$html = $characteristic->characteristic_value.'</td><td>'.$html;

with:
$html = JText::_($characteristic->characteristic_value).'</td><td>'.$html;

Now I can add a HIKA_SHOE_SIZE to my language overrides and see it as "schoenmaat" or "shoe size" in the product page.

Since it cannot be used in template overrides, can this be added in a next version of HikaShop? It is then available for all of us.
I am looking for the similar when it comes to the values... then I can do the same with those instead of adding the extra ballast that comes with Falang...Though it is a good extension, I like to stick as close as possible to the core features of Joomla!

Last edit: 3 months 3 weeks ago by pietergr. Reason: fix typos and add extra info

Please Log in or Create an account to join the conversation.

  • Posts: 65706
  • Thank you received: 9590
  • MODERATOR
3 months 3 weeks ago #303162

Hi,

It's not that it was "missing".
It's that it was never meant to be possible.
But it's indeed a good idea. We'll add some code to handle the translation of characteristics name and values via joomla translation keys for the next version. Thanks for your feedback.

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum