Hi,
I want to set the lang.ui based on the gscope1 parameter so that we can vary the language strings in the FTL file without having to provide a specific lang.ui querystring parameter. We are on FB 15.10
The code I have in the preprocess hook file is below but it is not working. The inputParameterMap shows lang.ui as present but the language strings are not changing when the results page is rendered.
if (q.inputParameterMap["gscope1"] == "2") {
q.inputParameterMap["lang.ui"] = "cy";
} else {
q.inputParameterMap["lang.ui"] = "en";
}
What am I doing wrong?
Thanks,
Graham