Link flag to external website

Popular automatic website translation tool

Link flag to external website

Postby usuGt » Thu Jan 08, 2015 12:11 am

Hello,

we have installed Pro version in our website. We are using Gtranslate for 7 languages, but now, we want to link one of the flags with an external website. How can we do that?

Thanks in advance
usuGt
 
Posts: 3
Joined: Thu Jan 08, 2015 12:02 am

Re: Link flag to external website

Postby Yana » Thu Jan 08, 2015 12:27 am

Hi,
You can make changes in the source code of GTransltae module and change href attribute for that language.
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: 4129
Joined: Thu Jan 12, 2012 6:21 pm

Re: Link flag to external website

Postby usuGt » Thu Jan 08, 2015 4:00 am

Hi Yana,

do you mean in mod_gtranslate.php? In case of Portuguese: $show_pt = $params->get('show_pt'); (here I have to write the href code?)
I am using joomla 1.5, and inside joomla, extensions, manage modules, gtranslate, there is no option to link the flag to any url.
Or in mod_gtranlate.xml to include href code?:
<param name="show_pt" type="radio" default="2" label="Show Portuguese" description="Show Portuguese in language list">
<option value="1">Yes</option>
<option value="0">No</option>
<option value="2">As a PT flag</option>
<option value="3">As a BR flag</option>
</param>
Please, could you help me?

Many thanks
usuGt
 
Posts: 3
Joined: Thu Jan 08, 2015 12:02 am

Re: Link flag to external website

Postby Yana » Thu Jan 08, 2015 9:48 pm

Hi,
You will need to edit /modules/mod_gtranslate/tmpl/default.php file also you can use gtranslate free html code instead of joomla module.
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: 4129
Joined: Thu Jan 12, 2012 6:21 pm

Re: Link flag to external website

Postby usuGt » Fri Jan 09, 2015 1:54 am

Thanks Yana,

but after editing source code, I have no results or I break the website. I have tried some ways but, the I have no results.
The code in default.php is:
echo '<a href="'.$href.'" onclick="doGTranslate(\''.$language.'|'.$lang.'\');return false;" title="'.$lang_name.'" class="alt_flag" style="background-position:-'.$flag_x.'px -'.$flag_y.'px;"><img src="'.JURI::root(true).'/modules/mod_gtranslate/tmpl/lang/blank.png" height="'.$flag_size.'" width="'.$flag_size.'" alt="'.$lang_name.'" /></a> ';

How can I change it to get a correct result?

Many thanks
usuGt
 
Posts: 3
Joined: Thu Jan 08, 2015 12:02 am



  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest

2GLux
cron