Message on registration form in different languages

  • Posts: 11
  • Thank you received: 1
  • Hikashop Business
2 weeks 6 days ago #305473

Hi,

I would like to add a message to the registration form in the context of:

<<
Registration for retailers only
If you are a retailer interested to become ... blablabla....
>>

I currently did this by changing the registration.php
This works fine when you use one language.

Since I'm working on a multi-lingual site, I would like to understand how do add a text , which I would be different depending on the selected language.

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

  • Posts: 65411
  • Thank you received: 9529
  • MODERATOR
2 weeks 6 days ago #305478

In the registration.php file (or in any PHP file of your website), instead of directly writting your text, you can do:
<?php echo JText::_('TRANSLATION_KEY'); ?>

and then in each language override file of your website, you can add such line:
TRANSLATION_KEY="My text"

That's not really a HikaShop thing. That's purely Joomla's way of translating static text.
Some explanation provided by Joomla for templates as reference:
docs.joomla.org/Making_templates_translatable

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

  • Posts: 11
  • Thank you received: 1
  • Hikashop Business
2 weeks 5 days ago #305513

Thanks Nicolas. Very helpfull

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

Time to create page: 0.056 seconds
Powered by Kunena Forum