Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Evaluate language in twig file?

  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
2 years 11 months ago #216047 by blocka
Evaluate language in twig file? was created by blocka
I'd like to add some custom text to my register_message.twig  -- but I need to evaluate the language the user is viewing the registration form in in order to determine what text to add.

Can this be done?

For example, I want to replace Thank you for registering. You will receive an email shortly. with my own text. But I need to know which language to display the text in. 
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 11 months ago #216050 by DenisChenu
Replied by DenisChenu on topic Evaluate language in twig file?
{{ aSurveyInfo.languagecode }} in twig file

{LANG} in Expression (if i don't make error)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose