get url of page dont work with /lang/

Popular automatic website translation tool

get url of page dont work with /lang/

Postby daniellima » Fri Apr 15, 2011 6:02 pm

Hi

I need to detect in php script if users is accessing a translated version of site to change somethigns like xml:lang meta tag, charset, etc..

I tried to use

$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]

but $_SERVER["REQUEST_URI"] get the original url without /lang/

Is there another way?
daniellima
 
Posts: 17
Joined: Sat Apr 02, 2011 7:31 am

Re: get url of page dont work with /lang/

Postby Edvard » Sat Apr 16, 2011 12:20 am

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


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest

2GLux
cron