The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Welcome message in different languages

Welcome message in different languages 9 years 8 months ago #26814

  • Pedro Lima
  • Pedro Lima's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hi Daniel,

We have talked a couple of days ago, so you know I just recently bought your Hotspots Pro, which I should congratulate you because it seems to be going on a very good direction. Just keep updating it with new features because this component has some great potential!

So, regarding languages, I want to have my website for a lot of different countries with different languages.

Can I have the website 100% translated, including the Welcome message in the begining, on the map?

Thank you very much.

Best regards,
Pedro Lima

Welcome message in different languages 9 years 8 months ago #26857

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Pedro,
Sorry missed your message.

Well, in the current implementation it is not possible to have the text translated, but we can fix this with a template override.

Here is what you gonna do. First in the settings for welcome text enter:

Then use joomla's language override to translate this key in your languages:

Once you have this, you'll have to make a template override for:
around line 240 you should have this code:
<?php echo HotspotsHelper::getSettings('welcome_text', 'Welcome to Hotspots! <br /> The best Google map manager for
					Joomla created by compojoom.
		            You can access the documentation & support forums at <a href="http://compojoom.com">compojoom.com</a>. <br />
		            If you want to change this text or remove it completely
		            navigate to your backend and turn it off in the options of the component. '); ?>

change it to:
<?php echo JText::_(HotspotsHelper::getSettings('welcome_text', '')); ?>

Now if you've done everything correctly when you access your site in the different languages the message should use the translation that you've specified in your language override.

  • Page:
  • 1
Time to create page: 0.133 seconds