Download links in translated pages

Popular automatic website translation tool

Download links in translated pages

Postby [email protected] » Thu Mar 17, 2011 4:30 pm

Hello!
This is very nice module,but there are some issues with download links. How can I avoid that GTranslate makes a link to downloadable content as it were translated. Using redirection method. Hard to explain, but thin is in the basic language link works perfectly, i.e. there is folder "downloads" containing file "some_ebook.pdf", I just put a related link to that file in the article and it looks like www.mysite.com/downloads/some_ebook.pdf, everything works fine until I switch language for that particular page, the link to file is not working anymore, cause of the GTranslate redirection link.
[email protected]
 
Posts: 7
Joined: Thu Mar 17, 2011 4:22 pm

Re: Download links in translated pages

Postby Edvard » Fri Mar 18, 2011 4:53 pm

Do you use the free or the Pro version?
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


Re: Download links in translated pages

Postby Edvard » Fri Mar 18, 2011 5:06 pm

You can add class="notranslate" to "a" tag, so it will look like this:

<a href="xxx.pdf" class="notranslate">...</a>
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Download links in translated pages

Postby [email protected] » Fri Mar 18, 2011 5:18 pm

Nope, it doesn't work that way. It leaves the link text untranslated, but the link to file is broken.

It gives me warning like this:

Code: Select all
The page you requested was too large to translate.
http://www.mysite.com/downloads/ebook_file.pdf

Please choose from the following:
Go back to the previous page
Back to Translate
See original page

It download only if i click on "See original page" link. so basicaly Gtranslate tries to translate my pdf file, but it's not what I need really.
[email protected]
 
Posts: 7
Joined: Thu Mar 17, 2011 4:22 pm

Re: Download links in translated pages

Postby Edvard » Fri Mar 18, 2011 5:29 pm

I see. Since you are redirecting your page to Google, I cannot change anything in Google Translate behavior. But in the Pro version there is an option to not change the link after translation if you don't wante.

You can use also On Fly translation method.
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


Re: Download links in translated pages

Postby Edvard » Fri Mar 18, 2011 5:54 pm

Please check this forum to find a solution for the On Fly method, may be you have some library conflicts? It will not change the URL in On Fly method.
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia




  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests

2GLux
cron