I'm sure that the solution to this is easy, I just have to find the correct Twig to edit, but I am struggling to find the code that creates the page title for the registration page in LS 5 (5.1.15 +211011)?
I have an English survey that needs to translate to a second language,and I can change absolutely every element with the exception of the page title on the registration page, which appends the text "Registering to :" in front of the correctly translated survey title.
I even just attempted adding "Registering to :" to the PO/MO file for the language in question, but it doesn't seem to work on this element of the page.
Any ideas or suggestions would be gratefully received on how to hack this in the short term as I need to work it out ASAP, although I will also probably report it as a bug to avoid having to hack it in the future. Simply removing the text "Registering to: " for every language is my ideal solution if I can find out how.
The template I am using is an edited version of Fruity, and it is the page title that appears in the browser tab I am referring to, see the image below!
Cheers
edit: It appears to be generated by this line of code in the head.twig: {{ processString(aSurveyInfo.surveyls_title,1) }}
Aha, your question got me thinking - I forgot that I am using the RegisterQuick plugin, and it seems like that might be the cuplrit, as the text disappears when I temporarily disable it - explains why I couldn't find it in the main application.
I am hunting through RegisterQuick right now to see if I can find it there ....!
EDIT:
I've found the culprit - If anyone else has the same problem, it is line 319 in registerQuick.php
This is one of Denis's plugins that I know hasn't been updated for a little while, and as I'm not any sort of programmer I'm not sure how to suggest edits, but if you are reading this Denis then if you do ever revisit the plugin you might want to tweak that line in the code!
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
PS registerQuick can not be used in 5.X and are never tested in 5.X …
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Just to let you know, although I am aware that it isn't tested in 5.X, once I tweaked it to install and run without twigExtendByPlugins, it has performed reliably for us on 5.x (at least as far as we can tell) for a number of months, and many different surveys!
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.