Translate Link Hrefs

Popular automatic website translation tool

Translate Link Hrefs

Postby otlkart » Sat Jul 08, 2017 1:34 am

Hi,

I am using Typeform for my contact forms. I would like to redirect my users to the correct Typeform according to the language they chose.

Is there a way to set specific URLs to Links according to the chosen languages?

For example:

IF user is browsing in spanish THEN link goes to URL1 ELSE IF user is browsing in french THEN link goes to URL2

Thanks!
otlkart
 
Posts: 1
Joined: Sat Jul 08, 2017 1:29 am

Re: Translate Link Hrefs

Postby Yana » Mon Jul 10, 2017 1:06 pm

Hi,
If you are using paid version and want to code something special for individual language you can detect the current selected language and write your code based on that.

You can find the current selected language code from X-GT-Lang request header. If your site is written in PHP you can find it in _SERVER['HTTP_X_GT_LANG'] variable.
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: 4318
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
cron