Load different images on different languages

Popular automatic website translation tool

Load different images on different languages

Postby dayman » Thu Feb 27, 2014 5:31 pm

Hi,

We have the following website with GTranslate installed and have been very happy with it:
http://www.rhiza.nl

We do however have one issue, that we can't seem to solve ourselves.

You can see the "Ieder kind naar school" image loaded at the top above the menu.

On the English part of the website we'd like to load another image instead of this one (basically the same image, but translated to English).

How can we do this?


Thank you,
Thomas
dayman
 
Posts: 4
Joined: Wed Apr 17, 2013 12:45 am

Re: Load different images on different languages

Postby Yana » Fri Feb 28, 2014 2:05 am

Hi,
It will require additional programming on your side. You will be able to get the current selected language and load appropriate image
To detect current selected language:
for GTranslate Pro Joomla system plugin it is JSession::get('glang');
for the GTRanslate Pro General version it is $_GET['glang'] variable.
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4134
Joined: Thu Jan 12, 2012 6:21 pm

Re: Load different images on different languages

Postby dayman » Fri Feb 28, 2014 4:05 pm

Hi Yana,

Thank you for the quick reply!
Could you please elaborate it a bit more? I'm not quite sure how to do that..
Thanks in advance,

Best regards,
Thomas
dayman
 
Posts: 4
Joined: Wed Apr 17, 2013 12:45 am

Re: Load different images on different languages

Postby Yana » Fri Feb 28, 2014 4:28 pm

Dear Thomas,

You should check the current selected language before loading images. Your developer should be able to make appropriate changes.
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4134
Joined: Thu Jan 12, 2012 6:21 pm

Re: Load different images on different languages

Postby dayman » Fri Feb 28, 2014 7:58 pm

Thanks, we got it ;)
dayman
 
Posts: 4
Joined: Wed Apr 17, 2013 12:45 am

Re: Load different images on different languages

Postby alt_f4 » Mon Mar 03, 2014 11:46 am

@dayman How did you realized that feature? Would be great to hear from you...

KR, Michael
alt_f4
 
Posts: 68
Joined: Tue May 31, 2011 2:43 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron