Add text before product code in multiple languages

  • Posts: 1028
  • Thank you received: 11
  • Hikashop Business
2 months 2 weeks ago #359115

-- HikaShop version -- : 4.7.1
-- Joomla version -- : 3.10.12

Hi,

I add through the show_default view file a text before the product code in Greek but i don't know how to translate it in English.
Is there a way?

Thank you

Attachments:

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

  • Posts: 81568
  • Thank you received: 13078
  • MODERATOR
2 months 2 weeks ago #359119

Hi,

Yes. You can just use the translation system of Joomla, like we do everywhere in HikaShop.
For example, in your view override :

<?php echo JText::_('MY_TRANSLATION_KEY'); ?>
Then, in each language override file (you can edit it under the Languages tab of the HikaShop configuration, you can add a line like this:
MY_TRANSLATION_KEY="My text"

The following user(s) said Thank You: verzevoul

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

Time to create page: 0.059 seconds
Powered by Kunena Forum