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

TOPIC: Get current language

Get current language 5 years 3 weeks 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 3 weeks ago #64179

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6214
  • Thank you received: 1376
  • Karma: 539
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.
Moderators: ITEd
Time to create page: 0.295 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form