Message on registration form in different languages

  • Posts: 33
  • Thank you received: 2
5 years 2 weeks 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: 81481
  • Thank you received: 13062
  • MODERATOR
5 years 2 weeks 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: 33
  • Thank you received: 2
5 years 1 week ago #305513

Thanks Nicolas. Very helpfull

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

Time to create page: 0.060 seconds
Powered by Kunena Forum