Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Get current language

Get current language 5 years 4 months ago #64143

  • madopr
  • madopr's Avatar
  • Offline
  • Junior Lime
  • Posts: 26
  • Karma: 0
I have a survey with two languages. When it ends, I call a php file. I need to pass the current language to that file. Is it possible?
The administrator has disabled public write access.

Get current language 5 years 4 months ago #64179

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6574
  • Thank you received: 1477
  • Karma: 579
The following JavaScript snippet should return the lang attribute:
document.write($('html').attr('lang'));
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
Time to create page: 0.370 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form