Translate Link Hrefs
Jul 7, 2017 9:34 pm by otlkart
Jul 7, 2017 9:34 pm by otlkart
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!
Re: Translate Link Hrefs
Jul 10, 2017 9:06 am by Yana
Jul 10, 2017 9:06 am by Yana
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.
SIMILAR TOPICS
wordpress amp link not translate | Dec 31, 2016 10:11 am | Replies: 12 | Post by: besybuy |
Translate website to any specific language, on page load | Jan 19, 2019 6:49 am | Replies: 1 | Post by: Leaon7756 |
Joomshaper Pagebuilder buttons Link edit problem | Jan 11, 2019 10:04 am | Replies: 1 | Post by: kumatest |
Best way to translate a page in WordPress? | Jan 7, 2019 11:10 am | Replies: 3 | Post by: Tonnystark |
how to translate site right to left for arabic in WordPress | Dec 26, 2018 9:02 am | Replies: 1 | Post by: Hammond753 |