Translate Link Hrefs

Popular automatic website translation tool

Translate Link Hrefs

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


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

Posts: 1
Joined: Sat Jul 08, 2017 1:29 am

Re: Translate Link Hrefs

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

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.

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
Posts: 4473
Joined: Thu Jan 12, 2012 6:21 pm

  • Related Topics
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest


Time : 0.046s | 14 Queries | GZIP : Off