Gtranslate Pro problem

Popular automatic website translation tool

Gtranslate Pro problem

Postby ezioc » Tue Dec 06, 2011 10:03 pm

Ok, after a lot of configuration changes I got it partially to work. My problem now is that my buddypress installation is in a subfolder (/wp) and even if I have activated on config.php the follow path to true right now when I try to switch the language I got looged out form the site because I can see that the url is wrong... is that one withot subfolder.

Please help!!
ezioc
 
Posts: 13
Joined: Tue Dec 06, 2011 9:57 pm

Re: Gtranslate Pro problem

Postby Edvard » Wed Dec 07, 2011 5:20 pm

Hi,

If it will not be possible for you to rename wp to something else longer than 2 letters you will need to add this lines in your .htaccess instead to exclude "wp", so it will not treat wp as a language code.

Code: Select all
# gtranslate config
RewriteCond %{REQUEST_URI} !^/wp
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L]
RewriteCond %{REQUEST_URI} !^/wp
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L]
RewriteCond %{REQUEST_URI} !^/wp
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/wp
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteCond %{REQUEST_URI} !^/wp
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]
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: Gtranslate Pro problem

Postby ezioc » Wed Dec 07, 2011 8:48 pm

Hi, thanks for your reply. Unfortunately i'm unable to change the 2 letters name bacause I'm afraid if I do that there will be a lot of things that will stop working. I could not find anywhere a clear procedure for that.

I tried to add the code the code you gave me, first just adding to what was already present on my .htaccess and in a second instance removing the code that come with the standard gtranslate leaving only the new one.

In both cases when I try to switch language it translates but it logs me off and even trying to do the login again it keeps staying logged out.

Please help.

Thanks
ezioc
 
Posts: 13
Joined: Tue Dec 06, 2011 9:57 pm

Re: Gtranslate Pro problem

Postby Edvard » Wed Dec 07, 2011 9:03 pm

Please post your .htaccess contents here.
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: Gtranslate Pro problem

Postby ezioc » Wed Dec 07, 2011 9:39 pm

I asked my provider to rename my folder installation fro wp to main. Will that do the trick?
ezioc
 
Posts: 13
Joined: Tue Dec 06, 2011 9:57 pm

Re: Gtranslate Pro problem

Postby Edvard » Wed Dec 07, 2011 9:50 pm

If you are unsure, no need to make the change.

Just post your .htaccess file contents here, so I can check that for you.
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: Gtranslate Pro problem

Postby ezioc » Wed Dec 07, 2011 10:15 pm

Please consider that my provided has already moved my buddypress from /wp to /main



RewriteEngine On
# 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_FILENAME} !-f
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]

RewriteBase /wp/
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
ezioc
 
Posts: 13
Joined: Tue Dec 06, 2011 9:57 pm

Re: Gtranslate Pro problem

Postby Edvard » Wed Dec 07, 2011 11:20 pm

If this is the /main/.htaccess file then you need to change RewriteBase to /main/ remove # gtranslate config and place it in your wwwroot .htaccess file.

Can you also post your .htaccess file in upper directory of /main?
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: Gtranslate Pro problem

Postby ezioc » Thu Dec 08, 2011 12:33 am

OK, we moved back to /wp because nothing was working anymore.

The file I sent you before was that one included on the /wp folder. I modified it as you suggested.

Below the .htaccess for the upper folder

RewriteEngine On

# 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_FILENAME} !-f
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]

RewriteBase /wp/
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
ezioc
 
Posts: 13
Joined: Tue Dec 06, 2011 9:57 pm

Re: Gtranslate Pro problem

Postby Edvard » Thu Dec 08, 2011 12:55 pm

So you say that /.htaccess and /wp/.htaccess are the same now?
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: Gtranslate Pro problem

Postby ezioc » Thu Dec 08, 2011 5:52 pm

No, right now I'm not using gtranslate because doesnt work for me. I made so many chages that I'm confused. At the moment the gtranslate part is ony on the .htaccess on wwroot. I just need to know what should I do. Please provide help or installing for me, otherwise please refund.
ezioc
 
Posts: 13
Joined: Tue Dec 06, 2011 9:57 pm

Re: Gtranslate Pro problem

Postby Edvard » Thu Dec 08, 2011 7:47 pm

Please send FTP access info, so I can install it for you.
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: Gtranslate Pro problem

Postby ezioc » Thu Dec 08, 2011 11:34 pm

I sent you private message with ftp account
ezioc
 
Posts: 13
Joined: Tue Dec 06, 2011 9:57 pm

Re: Gtranslate Pro problem

Postby Edvard » Fri Dec 09, 2011 4:57 pm

Hi,

It is installed, please check: http://faceboooh.com/es/wp/ for Spanish.

You will need to configure GTranslate language selector to use Redirect translation method and turn on Pro option.
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: Gtranslate Pro problem

Postby ezioc » Fri Dec 09, 2011 5:42 pm

It still doesn't work. I was able to translate the same way you did, the problem is that when I translate it logs me out from the site. Check that please. To try you can connect to my site using facebook connect or registering and then try to switch languages, It stays connected only if i dont change languange and I remain in English.
ezioc
 
Posts: 13
Joined: Tue Dec 06, 2011 9:57 pm

Re: Gtranslate Pro problem

Postby Edvard » Fri Dec 09, 2011 5:53 pm

Hi,

I have checked how it sets the cookie for logged in users. It seems that it is using /wp path when setting the cookie, so when you go to /es/wp it doesn't send the cookie data and it shows that the user is not logged in.

If you can force it to set cookie for / instead of /wp then it will work.

Do you use the default wordpress plugin for logins?
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: Gtranslate Pro problem

Postby ezioc » Fri Dec 09, 2011 8:56 pm

It is a buddypress 3 columns , if you login with buddypress yes, otherwise there is the facebook connect.

Do you know how i can force the cookie for /?
ezioc
 
Posts: 13
Joined: Tue Dec 06, 2011 9:57 pm

Re: Gtranslate Pro problem

Postby Edvard » Fri Dec 09, 2011 9:04 pm

It is possible if you change bb-includes/backpress/class.wp-auth.php file to change the cookie path.

However, is there a particular reason you use "wp" subdirectory? I think it would be better if you use the root instead of it to not have possible future problems with it.
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: Gtranslate Pro problem

Postby ezioc » Mon Dec 12, 2011 2:09 am

Edvard, I've tried together with my provider to move my instalation to the root folder. Unfortunately the move was unsuccessfull, to many errors, so we rollback to /wp again.

Now, I really need to find a solution for Gtranslate, I'm not able to find the class.wp-auth.php file on what I can see on my ftp server.

Help.
ezioc
 
Posts: 13
Joined: Tue Dec 06, 2011 9:57 pm

Re: Gtranslate Pro problem

Postby Edvard » Tue Dec 13, 2011 1:28 am

If you want I can move it to your root folder and make appropriate configurations, so you will not have errors.
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

Next

  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest

2GLux
cron