Forum Archive - Identifying what language has been selected

Identifying what language has been selected
Mar 26, 2014 9:30 pm by cusinger
Is there a way to set a cookie when someone has chosen a specific language? I want to send them to a different website depending on the language that they are using. Thanks
Re: Identifying what language has been selected
Mar 27, 2014 7:33 am by Yana
Hi, You can detect current selected language: For GTranslate Pro Joomla system plugin it is JSession::get('glang'); For the GTrnslate Pro General version it is $_GET['glang'] variable. If you are using Gtranslate Enterprise version you can find the current selected language code from X-GT-Lang request header. You can find it in _SERVER['HTTP_X_GT_LANG'] variable.

SIMILAR TOPICS

Large numbers of crawl errors with double language codeJan 24, 2019 1:43 amReplies: 1Post by: natastna2
Translate website to any specific language, on page loadJan 19, 2019 6:49 amReplies: 1Post by: Leaon7756
Graphic translation for every language is missingDec 19, 2018 7:54 amReplies: 1Post by: Daryl Dixon
How to remove mobile Language Select Button transparencyDec 5, 2018 10:06 pmReplies: 10Post by: JeffTR
Change language automaticallyNov 26, 2018 9:29 pmReplies: 3Post by: Antilb

Try GTranslate with a free 15 day trial