Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
in Q2A Core by
I use nationality in the profile of a user, but I'd like to have them select a language (and store the language code like "it" for italian)...

displaying the "it" i should get the full language name to display
Q2A version: 1.5.3

1 Answer

0 votes

You'll have to write some PHP code for this. The best way is to use an advanced theme which overrides the form(...) theme function, check $this->template and $this->context['part'], and then if appropriate modify the part of the $form variable responsible for that option, before calling through to the theme base class.

which theme do you suggest, there will be anyhow some searching to do for me, I did scripting 15 years ago and sweat a lot these days to get the flow...