Main Menu Problem with GTranslate Pro

Popular automatic website translation tool

Main Menu Problem with GTranslate Pro

Postby giorgoskon » Tue May 22, 2012 10:07 am

Can you please check why am I having problems with the main menu (NOT right aligning) when I am switching to greeks?

my web page: http://www.cyprusorganics.com

use the following link please : http://www.cyprusorganics.com/faxtoras to bypass the coming soon mode


I did the validation check and I think is ok ( getting 6 errors but all of them are related with the custom log in widget and not with the main menu )


I am running the latest version of your plug in
Last edited by giorgoskon on Thu May 24, 2012 6:17 pm, edited 2 times in total.
giorgoskon
 
Posts: 16
Joined: Sat May 05, 2012 5:48 am

Re: Main Menu Problem with GTranslate Pro

Postby giorgoskon » Wed May 23, 2012 1:45 am

Hello,

How can identify the different languages using CSS ? Did you insert an ID or a class somewhere that I can use to apply language specific styling ???

Thanks
giorgoskon
 
Posts: 16
Joined: Sat May 05, 2012 5:48 am

Re: Main Menu Problem with GTranslate Pro

Postby Yana » Thu May 24, 2012 1:08 am

Hi,
You can get the current language with $_GET['glang'] .
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: Main Menu Problem with GTranslate Pro

Postby giorgoskon » Thu May 24, 2012 5:37 am

( $_GET['glang'] == 'el') or only $_GET['glang'] ??? for the greeks (el)
giorgoskon
 
Posts: 16
Joined: Sat May 05, 2012 5:48 am

Re: Main Menu Problem with GTranslate Pro

Postby giorgoskon » Thu May 24, 2012 5:41 am

i am trying this :

<?php if ( $_GET['glang'] == 'el') : ?>
#navigation-menu ul.sf-menu > li { margin-left: -15px;}
<?php endif; ?>

but does't work,, any suggestions?
giorgoskon
 
Posts: 16
Joined: Sat May 05, 2012 5:48 am

Re: Main Menu Problem with GTranslate Pro

Postby Yana » Thu May 24, 2012 12:32 pm

Hi,

Please read this, it should be helpful: url-language-code-t320.html?hilit=glang
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: Main Menu Problem with GTranslate Pro

Postby giorgoskon » Thu May 24, 2012 5:23 pm

Yana, Can you please just give me the answer. Too complicated for me all the stuff there:

The question is:

<?php if ( $_GET['glang'] == 'el') : ?>
#navigation-menu ul.sf-menu > li { margin-left: -15px;}
<?php endif; ?>


 
Is this code correct or do I need to add something else?

Thanks
giorgoskon
 
Posts: 16
Joined: Sat May 05, 2012 5:48 am

Re: Main Menu Problem with GTranslate Pro

Postby giorgoskon » Thu May 24, 2012 7:37 pm

by the way I am using PHP 5.3 (Single php.ini), with IonCube

I have changed the:

# 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]

to

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


And I have tried with the following code:

<?php if ( $_GET['glang'] == 'el') : ?>
#navigation-menu ul.sf-menu > li { margin-left: -15px;}
<?php endif; ?>


But i cannot get the page..

ANy other suggestions
thanks
giorgoskon
 
Posts: 16
Joined: Sat May 05, 2012 5:48 am


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron