Forum Archive - [Solved] Parameters Not supported?

[Solved] Parameters Not supported?
Jan 23, 2014 8:34 pm by james.paul
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
Re: Parameters Not supported?
Jan 24, 2014 9:51 am by Edvard
Hi, As I can see you are using our HTML widget as a language selector. Please modify function doGTranslate to be as follows: 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!
Re: Parameters Not supported?
Jan 26, 2014 6:55 pm by james.paul
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?
Re: Parameters Not supported?
Jan 27, 2014 10:43 am by Edvard
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.
Re: Parameters Not supported?
Jan 27, 2014 9:08 pm by james.paul
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 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;}
Re: [Solved] Parameters Not supported?
Jan 28, 2014 10:14 pm by Edvard
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!
Re: [Solved] Parameters Not supported?
Jan 28, 2014 11:36 pm by james.paul
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?
Re: [Solved] Parameters Not supported?
Jan 29, 2014 2:21 pm by Edvard
Please send it to edvard [at] gtranslate.net. Thanks!

SIMILAR TOPICS

[SOLVED]double dropdownOct 26, 2017 8:26 amReplies: 3Post by: danielesantosubito
[SOLVED] NOT WORKING, HELP PLEASE!Feb 12, 2017 4:53 pmReplies: 5Post by: TSM
Need help <SOLVED>Feb 6, 2017 1:48 pmReplies: 5Post by: blaxx
[solved] edit translations problemDec 15, 2011 10:05 pmReplies: 19Post by: slweb2
[Solved] Main site languageDec 9, 2016 4:39 pmReplies: 4Post by: trench

Try GTranslate with a free 15 day trial