Identifying what language has been selected
Mar 26, 2014 9:30 pm by cusinger
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
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 code | Jan 24, 2019 1:43 am | Replies: 1 | Post by: natastna2 |
Translate website to any specific language, on page load | Jan 19, 2019 6:49 am | Replies: 1 | Post by: Leaon7756 |
Graphic translation for every language is missing | Dec 19, 2018 7:54 am | Replies: 1 | Post by: Daryl Dixon |
How to remove mobile Language Select Button transparency | Dec 5, 2018 10:06 pm | Replies: 10 | Post by: JeffTR |
Change language automatically | Nov 26, 2018 9:29 pm | Replies: 3 | Post by: Antilb |