GTranslate Pro problems with default language

Popular automatic website translation tool

GTranslate Pro problems with default language

Postby [email protected] » Mon Dec 17, 2012 10:57 pm

Hi,
I have problems with my GTranslate Pro on the http://gagneffiske.se site. My default language is Swedish but all of a sudden it has started to display it by default in english. I registered the site as www.gagneffiske.se but I hav applied a rule in the .htaccess file so that it redirects all www. entries in the browsers address field to gagneffiske.se like this:
Code: Select all
RewriteEngine On

#redirect 301 alla utan www till www
RewriteCond %{HTTP_HOST} ^www.gagneffiske.se
RewriteRule (.*) http://gagneffiske.se/$1 [R=301,L]

RewriteBase /

# gtranslate config
RewriteRule ^(en|de)/(en|de)/(.*)$ /$1/$3 [R=301,L]
RewriteRule ^(en|de)/(en|de)$ /$1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en|de)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^(en|de)$ /gtranslate/translate.php?lang=$1 [L,QSA]


Please help me getting this right.
Best regards
Micke
[email protected]
 
Posts: 32
Joined: Thu Mar 22, 2012 10:05 pm

Re: GTranslate Pro problems with default language

Postby Yana » Tue Dec 18, 2012 1:47 am

Hi,
Have you enabled the joomla cache plugin? If yes, please try to change gtranslate and joomla cache plugin order or disable it.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm

Re: GTranslate Pro problems with default language

Postby tecmar » Tue Dec 18, 2012 1:39 pm

actually after I removed the following part

#redirect 301 alla utan www till www
RewriteCond %{HTTP_HOST} ^www.gagneffiske.se
RewriteRule (.*) http://gagneffiske.se/$1 [R=301,L]


when I click the menu button it goes to default language and when I click the flag the page get translated but again if I navigate to another page the language change to default
my gtranslate I got 2009 the configuration of htaccess isof gtranslate part:
RewriteEngine On
# gtranslate config
RewriteRule ^([a-z]{2})/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^([a-z]{2})$ /gtranslate/translate.php?lang=$1 [L,QSA]
RewriteRule ^(zh-CN)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^(zh-CN)$ /gtranslate/translate.php?lang=$1 [L,QSA]
RewriteRule ^(zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^(zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]
tecmar
 
Posts: 8
Joined: Tue Mar 20, 2012 3:00 pm

Re: GTranslate Pro problems with default language

Postby tecmar » Tue Dec 18, 2012 1:57 pm

joomla system cache is disabled ...here check the site
http://ammarfakhuri.com/video.html to see the problem
press french flag language then press any other button the language will go to defalt
if you access .. for example http://ammarfakhuri.com/fr/video.html it will work but press any other button in menu it will go to default ????????????
tecmar
 
Posts: 8
Joined: Tue Mar 20, 2012 3:00 pm

Re: GTranslate Pro problems with default language

Postby Yana » Wed Dec 19, 2012 2:05 am

Hi,
Please correct gtranslate rules
# 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]
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm

Re: GTranslate Pro problems with default language

Postby tecmar » Wed Dec 19, 2012 3:57 pm

replaced it ...same problem nothing changes
tecmar
 
Posts: 8
Joined: Tue Mar 20, 2012 3:00 pm

Re: GTranslate Pro problems with default language

Postby Yana » Wed Dec 19, 2012 11:49 pm

Hi,
What is your email address? I'll send you the latest version. Also please try to update the gtranslate free version also.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4135
Joined: Thu Jan 12, 2012 6:21 pm



  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux