[Solved] Parameters Not supported?

Popular automatic website translation tool

[Solved] Parameters Not supported?

Postby james.paul » Fri Jan 24, 2014 12:34 am

Hi, I have a website which runs on Magento 1.7, I have a Gallery Pro extension which will display all my photography in albums. When a visitor clicks on an image in the gallery the visitor is taken to a gallery detail page. In english this looks fine however if I change the language to say french the image and detail do not appear in the translation, Please see this page as an example and select a new language at the bottom of the footer (http://www.jamespaulphotography.co.uk/gallery/p#dsc-13364.html?___store=jamespaulphotography. The makers of the gallery pro extension believe this is because parameters are not being supported and url becomes http://www.jamespaulphotography.co.uk/gallery/p.

I am an enterprise customer. Is there anything I can do to solve this? or could this be an issue with Gtranslate.

Thanks
James
james.paul
 
Posts: 9
Joined: Mon Apr 30, 2012 10:20 pm

Re: Parameters Not supported?

Postby Edvard » Fri Jan 24, 2014 1:51 pm

Hi,

As I can see you are using our HTML widget as a language selector. Please modify function doGTranslate to be as follows:

Code: Select all
function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;var lang=lang_pair.split('|')[1];if(typeof _gaq=='undefined')alert('Google Analytics is not installed, please turn off Analytics feature in GTranslate');else _gaq.push(['_trackEvent', 'doGTranslate', lang, location.hostname+location.pathname+location.search+location.hash]);var plang=location.hostname.split('.')[0];if(plang.length !=2 && plang != 'zh-CN' && plang != 'zh-TW')plang='en';location.href=location.protocol+'//'+(lang == 'en' ? '' : lang+'.')+location.hostname.replace('www.', '').replace(plang + '.', '')+location.pathname+location.search+location.hash;}


Let me know if it works.

Thanks!
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Parameters Not supported?

Postby james.paul » Sun Jan 26, 2014 10:55 pm

Yes, perfect that solves the problem. However it introduces one more issue, the title tag of my page now adds a <!-- delivered by GTranslate v4.3.6 visit https://gtranslate.io -->

I would not want to display that in my title tag. How can I remove that?
james.paul
 
Posts: 9
Joined: Mon Apr 30, 2012 10:20 pm

Re: Parameters Not supported?

Postby Edvard » Mon Jan 27, 2014 2:43 pm

Can you provide more details about the issue?

We add the signature in the end of all HTML pages that were generated by us, but it has nothing to do with the title tag.

Let me know.
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Parameters Not supported?

Postby james.paul » Tue Jan 28, 2014 1:08 am

Edvard wrote:Can you provide more details about the issue?

We add the signature in the end of all HTML pages that were generated by us, but it has nothing to do with the title tag.

Let me know.


Please visit the original link http://www.jamespaulphotography.co.uk/gallery/p#dsc-13364.html?___store=jamespaulphotography and change the language to say Russian. I'm using Safari and at the very top where the page title is displayed additional text is added next to it. It says <!-- delivered by GTranslate v4.3.6 visit https://gtranslate.io -->. It only happens when viewing a page within the gallery section - not anywhere else such as blog or portfolio. This only happened when I added the code below that you asked me to change

Code: Select all
function doGTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;var lang=lang_pair.split('|')[1];if(typeof _gaq=='undefined')alert('Google Analytics is not installed, please turn off Analytics feature in GTranslate');else _gaq.push(['_trackEvent', 'doGTranslate', lang, location.hostname+location.pathname+location.search+location.hash]);var plang=location.hostname.split('.')[0];if(plang.length !=2 && plang != 'zh-CN' && plang != 'zh-TW')plang='en';location.href=location.protocol+'//'+(lang == 'en' ? '' : lang+'.')+location.hostname.replace('www.', '').replace(plant + '.', '')+location.pathname+location.search+location.hash;}
james.paul
 
Posts: 9
Joined: Mon Apr 30, 2012 10:20 pm

Re: [Solved] Parameters Not supported?

Postby Edvard » Wed Jan 29, 2014 2:14 am

Hi,

It is really strange. The code you have changed cannot result in such behavior. It is almost the same code modified little bit to add the hash parameter you wanted.

Can you provide a screenshot?

Thanks!
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: [Solved] Parameters Not supported?

Postby james.paul » Wed Jan 29, 2014 3:36 am

Yes, I have a screenshot but I can not attach an image to the forum posting or send a private message. Is there anyway I can send it to you?
james.paul
 
Posts: 9
Joined: Mon Apr 30, 2012 10:20 pm

Re: [Solved] Parameters Not supported?

Postby Edvard » Wed Jan 29, 2014 6:21 pm

Please send it to edvard [at] gtranslate.net.

Thanks!
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

2GLux