[Solved] Newly Installed Pro GTranslate Not Working

Popular automatic website translation tool

[Solved] Newly Installed Pro GTranslate Not Working

Postby [email protected] » Fri Mar 11, 2011 9:09 am

Hello,
I am hoping you can make me feel better about the purchase I made earlier today. After several hours of trouble shooting the translation is still not working. I am only using the Portuguese translation so I only have one flag in the top right corner with the english flag.

I have completed all of the install instructions with no luck. When you click on the Portuguese flag it takes you to the same page with the /pt/, not translated with the CSS all gone. Can you look at it and see if you know what the issue is? I have read nearly every post on your site to see if I could find a similar issue with a resolution.

I am really excited to get this working! Thanks so much!

P.S. The free version worked fine.
[email protected]
 
Posts: 6
Joined: Fri Mar 11, 2011 8:59 am


Re: Newly Installed Pro GTranslate Not Working

Postby Edvard » Fri Mar 11, 2011 3:23 pm

Hi,

Please use this in your .htaccess instead:

Code: Select all
# gtranslate config
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L]
RewriteCond %{REQUEST_URI} !^/js
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteCond %{REQUEST_URI} !^/js
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]


Let me know when it is replaced.
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: Newly Installed Pro GTranslate Not Working

Postby [email protected] » Sat Mar 12, 2011 6:15 am

I have placed:
Code: Select all
# gtranslate config
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L]
RewriteCond %{REQUEST_URI} !^/js
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteCond %{REQUEST_URI} !^/js
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]


Into the .htaccess file. It is still not translating and now the images are not loading.

Thanks so much for your response. Any other ideas?
[email protected]
 
Posts: 6
Joined: Fri Mar 11, 2011 8:59 am

Re: Newly Installed Pro GTranslate Not Working

Postby Edvard » Sat Mar 12, 2011 12:31 pm

All the image src-s and link href-s are written relatively to your root path like src="images/header.png", and when you are on http://www.xi3.org/pt/ it tries to load images from /pt/ path instead of the root, ex "/pt/images/header.png". You need to make your URLs to have / before, so the src will be like src="/images/header.png" or you can try to add this tag in the head tag: <base href="http://www.xi3.org/" />
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: Newly Installed Pro GTranslate Not Working

Postby Edvard » Sun Mar 13, 2011 7:19 pm

Good, now I think that your API key is not valid. Try to change it and update it in config.php file.

The Google responds with error now:

Code: Select all
Response: {
"error": {
  "errors": [
   {
    "domain": "global",
    "reason": "badRequest",
    "message": "Bad Request"
   }
  ],
  "code": 400,
  "message": "Bad Request"
}
}
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: No registered users and 0 guests

2GLux
cron