Template markup is modified when switching language

More
4 years 1 week ago #93685 by verdonv
Hi,

Please excuse any ignorance, I am new to LimeSurvey.

I am tweaking a template that was based on Limespired. It's pretty straight forward and for the most part, I have been successful. One oddity though, and it also happens with Limespired...

There's a bit of markup in startpage.pstpl that is just...
<div class="surveyname">{SURVEYNAME}</div>

For some reason I haven't been able to determine, when I switch the language to French, this becomes...
<div class="surveyname">{SURVEYNAME}

Note the closing tag on the div is being dropped. This wreaks havoc with for everything following.

Any ideas where I might look?

Thanks,
v

Please Log in to join the conversation.

More
4 years 1 week ago #93712 by DenisChenu
Hello .

Where did you see this change ?

Looking at "temlplate editor" it's OK.
If you think it's that in "survey view" maybe you have some extra div closing or start in your french title and not in your english title (or a quote somewhere).

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
The following user(s) said Thank You: verdonv

Please Log in to join the conversation.

More
4 years 1 week ago #93726 by verdonv
Denis,

Thanks for the pointer. I was seeing it in the source code of the final rendered page.

When I looked at the translation in the editor, I did find mark-up that must have been added by the system, as I did not enter it. Once I removed this junk, all is well.
<div id="myEventWatcherDiv" style="display:none;">	&nbsp;</div><div id="myEventWatcherDiv" style="display:none;">	&nbsp;</div><div id="myEventWatcherDiv" style="display:none;">

This sort of stuff is actually all through my question translations too. For instance, I entered 'votre sexe' for French text for a question name, and following is what is there if I go back to edit it after the fact
votre sexe
<div id="myEventWatcherDiv" style="display:none;">
	&nbsp;</div>
<div id="myEventWatcherDiv" style="display:none;">
	&nbsp;</div>
<div id="myEventWatcherDiv" style="display:none;">
	&nbsp;</div>
<div id="myEventWatcherDiv" style="display:none;">
	&nbsp;</div>

Curious. Thanks again.
v

Please Log in to join the conversation.

More
4 years 1 week ago #93818 by tpartner
Where are you cutting and pasting from?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 1 week ago #93819 by DenisChenu

tpartner wrote: Where are you cutting and pasting from?

You think myEventWatcherDiv can come from auto translate ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
4 years 1 week ago #93820 by tpartner
Maybe. Try pasting into a plain-text editor like Notepad++ first.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 1 week ago #93824 by holch

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
4 years 1 week ago #93826 by tpartner
See, that's what you get for using a mac :laugh:

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 1 week ago #93832 by holch
Thought the same thing but didn't want to say anything... hehehehe.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
4 years 1 week ago #93838 by verdonv
OK smart alecs... it'll take a LOT more than that to make me switch from my Mac ;-)

That link isn't coming up for me at the moment, but I take by the taunts that the garbage divs are coming from me copying and pasting from google translate, and perhaps using Safari?

I'll keep an eye on that. I use a clipboard manager too, that ensures I paste as plain text, provided I use the right key-shortcut.

Thanks again for the tips :-)

Please Log in to join the conversation.