Jreviews Gtranslate Problem

Popular automatic website translation tool

Jreviews Gtranslate Problem

Postby natastna2 » Fri Jan 23, 2015 12:57 am

Hello,

I am having a problem with Jreviews not working properly in a foreign language.

I have contacted their support who say:

Hello

The captcha is loaded via ajax when the review form is opened. This is the output in english:

{"captcha":"<img id=\"captcha\" src=\"http:\/\/www.seedadvisor.eu\/cache\/1421946319.48.jpg\" width=\"100\" height=\"30\" style=\"border:0;\" alt=\" \" \/>","token":"c34e7fa30c462660f936f9d0cad2d0cf"}

And this is the output in the other language:

{"Captcha": "<img id=\"captcha\" src=\"http:\/\/www.seedadvisor.eu\/cache\/1421946196.jpg\" width=\"100\" height=\"30\" style=\"border:0;\" alt=\" \" \>"," Žeton ":" c34e7fa30c462660f936f9d0cad2d0cf "}

I don't know what you are using for the multi-lingual features, but as you can see it is obviously messing up the ajax response by incorrectly translating the "keys" of the json object. No extension/plugin should ever do this."

It appears that gtranslate is translating token to zeton which is stopping the captcha from loading. Even without the captcha activated review posting does not work as other words are translated which should not be.

I wondered about adding a notranslate class but they say:

"You can't add a 'class' to a json object. The json object is output in /components/com_jreviews/jreviews/controllers/common_controller.php, in the _initForm function. And all json responses in JReviews come straight out of the /components/com_s2framework/s2framework/libs/cms_compat/joomla/framework.php, jsonResponse function.

All I can say now is good luck!"

Any help would be greatly appreciated.
natastna2
 
Posts: 148
Joined: Wed Jan 26, 2011 2:43 am

Re: Jreviews Gtranslate Problem

Postby Edvard » Fri Jan 23, 2015 2:47 pm

Hi,

The ajax response Content-Type header should be set to application/json, if it is set to text/html it will try to translate it which will make a mess.

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

Re: Jreviews Gtranslate Problem

Postby natastna2 » Fri Jan 23, 2015 6:59 pm

Hi Edvard,

Thank you for your response. I passed this information to the Jreviews support and they said:

""We have several clients using JReviews with GTranslate without problems. All ajax responses that return a json object already have the Content-Type header set to application/json. You can clearly see that on your site using Firebug http://screencast.com/t/Dsjcvn309

That is the response from the call to generate the captcha and the Content-Type is correct. If you are having this problem then maybe your GTranslate version is out of date or they introduced a bug recently or something else on the site is causing the problem. Please have them check the page and the ajax response when you click on the add review button or the submit button in the review form. ""

Maybe there is a problem elsewhere or in the Gtranslate code? Thank you for your time.

Regards,
Anthony
natastna2
 
Posts: 148
Joined: Wed Jan 26, 2011 2:43 am

Re: Jreviews Gtranslate Problem

Postby Edvard » Fri Jan 23, 2015 7:13 pm

Hi,

I need the exact steps to reproduce the issue.

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

Re: Jreviews Gtranslate Problem

Postby natastna2 » Fri Jan 23, 2015 10:16 pm

Hi Edvard,

Thank you for your response.

In order to replicate the issue please follow this link:

http://www.seedadvisor.eu/de/seed-strains/auto-power

If you then click on the Write a Review button or the "bewertun schreiben" button as it is in German, you'll notice that the security code does not appear. You'll also notice that the username is not able to be checked against the DB because of another word being translated that should not be.

If you switch to English you can see these problems do not occur.

Thank you for your time.

Regards,
Anthony
natastna2
 
Posts: 148
Joined: Wed Jan 26, 2011 2:43 am


Re: Jreviews Gtranslate Problem

Postby natastna2 » Tue Jan 27, 2015 7:58 pm

Hi Edvard,

Thank you for your help. I have now emailed across the FTP Details.

Regards,
Anthony
natastna2
 
Posts: 148
Joined: Wed Jan 26, 2011 2:43 am

Re: Jreviews Gtranslate Problem

Postby natastna2 » Thu Jan 29, 2015 6:37 pm

Hi Edvard,

I'm sorry to bother you but I was wondering if you'd had a chance to look at what might be causing the problem?

Thank you for your time.

Regards,
Anthony
natastna2
 
Posts: 148
Joined: Wed Jan 26, 2011 2:43 am

Re: Jreviews Gtranslate Problem

Postby natastna2 » Tue Feb 03, 2015 5:20 am

Hello,

Please could I have some response to this issue?

Thank you for your time.

Regards,
Anthony
natastna2
 
Posts: 148
Joined: Wed Jan 26, 2011 2:43 am

Re: Jreviews Gtranslate Problem

Postby Edvard » Wed Feb 04, 2015 12:22 am

Hi,

I'm still working on it. I do not have any news yet.

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

Re: Jreviews Gtranslate Problem

Postby natastna2 » Wed Feb 04, 2015 6:38 am

Thanks Edvard,

I appreciate your looking into the problem. I'll await any news. Hope you're well!

Regards,
Anthony
natastna2
 
Posts: 148
Joined: Wed Jan 26, 2011 2:43 am

Re: Jreviews Gtranslate Problem

Postby natastna2 » Wed Feb 11, 2015 7:56 pm

Hello,

Perhaps if you could give me an idea of what might be causing the problem I could also look into it? If the code wasn't all encrypted I could probably alter it to stop the problem. The website is unfortunately not usable as a foreign language user until I can figure out why it's translating ajax requests when it shouldn't be.

Thank you for your time.

Regards,
Anthony
natastna2
 
Posts: 148
Joined: Wed Jan 26, 2011 2:43 am

Re: Jreviews Gtranslate Problem

Postby Edvard » Mon Feb 16, 2015 3:09 pm

Hi Anthony,

Sorry if it took too long. Now it seems to be resolved.

Please check and let me know.

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

Re: Jreviews Gtranslate Problem

Postby natastna2 » Mon Feb 16, 2015 9:43 pm

Hi Edvard,

No problem! It does indeed appear to be fixed now. Thank you very much for your help. I will continue to test. If there was something erroneous on my side please let me know so I can avoid the same problem in future.

Hope you're well.

Regards,
Anthony
natastna2
 
Posts: 148
Joined: Wed Jan 26, 2011 2:43 am


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron