Problem with Joomla and Virtuemart

Popular automatic website translation tool

Problem with Joomla and Virtuemart

Postby marcellodj » Sat Oct 13, 2012 7:19 pm

Hello,
my site: www.notebook-discount.it;
joomla: 1.5
vm: 1.1.4
sh404sef:2.4.6.1033

Installed the free module and the pro plugin plg_gtransalte.zip for j1.5.

The problem i face is that translation seems to work only for menu links on home page,not for products of virtuemart or joomla pages,if i click on :

http://www.notebook-discount.it/docs/spedizioni.html (Italian default) all is ok;
http://www.notebook-discount.it/en/docs/spedizioni.html (switch to eng) i receive 404 error

i added the following to htaccess:
# 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&force_translation=1 [L,QSA]
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule (.*) http://www.notebook-discount.it/$1 [R=301,L]

anyone can help?
thanks
marcellodj
 
Posts: 29
Joined: Sat Oct 13, 2012 7:05 pm

Re: Problem with Joomla and Virtuemart

Postby marcellodj » Sat Oct 13, 2012 7:22 pm

sorry correct rw rules are:
# 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&force_translation=1 [L,QSA]
RewriteCond %{HTTP_HOST} ^notebook-discount.it
RewriteRule (.*) http://www.notebook-discount.it/$1 [R=301,L]
marcellodj
 
Posts: 29
Joined: Sat Oct 13, 2012 7:05 pm

Re: Problem with Joomla and Virtuemart

Postby Yana » Sat Oct 13, 2012 7:25 pm

Hi,
Please try to chnage GTranslate and Virtuemart plugins order (Virtuemart should be after GTranslate ).
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: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: Problem with Joomla and Virtuemart

Postby marcellodj » Sat Oct 13, 2012 7:29 pm

where?
marcellodj
 
Posts: 29
Joined: Sat Oct 13, 2012 7:05 pm

Re: Problem with Joomla and Virtuemart

Postby marcellodj » Sat Oct 13, 2012 7:38 pm

and problem is not only related to vm products/cat but also to joomla pages
marcellodj
 
Posts: 29
Joined: Sat Oct 13, 2012 7:05 pm

Re: Problem with Joomla and Virtuemart

Postby Yana » Sat Oct 13, 2012 8:11 pm

It is im the joomla plugin manager page. Also please send me an example of joomla pages so I can investigate and understand what the problem is.
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: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: Problem with Joomla and Virtuemart

Postby marcellodj » Sat Oct 13, 2012 8:19 pm

set gttranslate plugin to 0 in plugin manager,before all others plugins;
what you mean for page example of joomla?
use the default it version and click for example on http://www.notebook-discount.it/docs/pagamenti.html ...
another issue is that plugin seems to break template; the right column goes to left!!
marcellodj
 
Posts: 29
Joined: Sat Oct 13, 2012 7:05 pm

Re: Problem with Joomla and Virtuemart

Postby Yana » Sat Oct 13, 2012 8:35 pm

Hi,
Please check your website for HTML validation errors and try to fix all end tag errors if any.
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: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: Problem with Joomla and Virtuemart

Postby marcellodj » Sat Oct 13, 2012 8:56 pm

Sincerly..validation errors can break template..but the non functioning translation is another issue; i saw other sites with gtranslate presenting validation errors..
and some errors where injected by your plugin Line 368, Column 235: end tag for "noscript" which is not finished

…nd <a href="https://gtranslate.io/">translation delivery network</a></noscript>



!!!
marcellodj
 
Posts: 29
Joined: Sat Oct 13, 2012 7:05 pm

Re: Problem with Joomla and Virtuemart

Postby Yana » Sat Oct 13, 2012 9:02 pm

Hi,
Have you installed third party SEF extensions?
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: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: Problem with Joomla and Virtuemart

Postby marcellodj » Sat Oct 13, 2012 9:02 pm

sh404sef:2.4.6.1033
marcellodj
 
Posts: 29
Joined: Sat Oct 13, 2012 7:05 pm

Re: Problem with Joomla and Virtuemart

Postby Yana » Sat Oct 13, 2012 10:09 pm

Hi,
Please try to add the following lines in your sh404sef php fole
if(class_exists('plgSystemGTranslate')) {
if(preg_match('/^\/en\//', $_SERVER['REQUEST_URI'])) {
// replace en with default language

$session = & JFactory::getSession();
$session->set('glang', 'en');
header('Location: ' . preg_replace('/^\/en\//', '/', $_SERVER['REQUEST_URI']));
exit;
}

// fix for gtranslate
$uri =& JURI::getInstance();
$router =& $mainframe->getRouter();
plgSystemGTranslate::parseGTranslate($router, $uri);

// sh404sef fix
$session = & JFactory::getSession();
$lang = $session->get('glang');
$_SERVER['REQUEST_URI'] = str_replace('/'.$lang.'/', '/', $_SERVER['REQUEST_URI']);

}
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: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: Problem with Joomla and Virtuemart

Postby marcellodj » Sun Oct 14, 2012 3:12 pm

Hello,
hack seems to work but:

- english version dont have en before url (should i change en in the script to IT ?)
- template is break right column goes to left
marcellodj
 
Posts: 29
Joined: Sat Oct 13, 2012 7:05 pm

Re: Problem with Joomla and Virtuemart

Postby marcellodj » Tue Oct 16, 2012 12:15 pm

Where is the support? i should fix the theme issue.
marcellodj
 
Posts: 29
Joined: Sat Oct 13, 2012 7:05 pm

Re: Problem with Joomla and Virtuemart

Postby Yana » Thu Oct 18, 2012 2:34 am

Hi, If you have a problem with your template, you need to check your website for html validation errors and fix all end tag errors.
Default language shouldn't have language prefix.
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: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: Problem with Joomla and Virtuemart

Postby marcellodj » Thu Oct 18, 2012 11:04 am

as i said in my prevoius post is also your script that inject errors..
marcellodj
 
Posts: 29
Joined: Sat Oct 13, 2012 7:05 pm

Re: Problem with Joomla and Virtuemart

Postby marcellodj » Fri Oct 19, 2012 2:17 pm

Problem solved,thanks.
marcellodj
 
Posts: 29
Joined: Sat Oct 13, 2012 7:05 pm

Re: Problem with Joomla and Virtuemart

Postby Yana » Mon Oct 22, 2012 8:44 pm

Hi,
Thank you for the information.
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: 4133
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