• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Send site link w/a preset language

Robert F Schmitz

Well-known member
#1
How can I send a link to someone to view the forum in a preset language? The primary language is English but I want to send a link for someone to see it in French. Thank you.
 

Jake Bunce

XenForo moderator
Staff member
#2
This might be useful:

http://xenforo.com/community/threads/language-switch-phrase.11165/#post-290680

You can manually build links to your different languages in the templates. You can't so easily build links outside of XF though because the links must contain the csrf token which is generated by XF. If the link contains only the language_id and no token then the user will be taken to a confirmation page asking them to confirm the language switch.