Template markup is modified when switching language

Mehr
4 Jahre 7 Monate her #93685 von verdonv
verdonv erstellte das Thema Template markup is modified when switching language
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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93712 von DenisChenu
DenisChenu antwortete auf das Thema: Template markup is modified when switching language
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).
An error happen ? Before make a new topic : remind the Debug mode .
Folgende Benutzer bedankten sich: verdonv

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93726 von verdonv
verdonv antwortete auf das Thema: Template markup is modified when switching language
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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93818 von tpartner
tpartner antwortete auf das Thema: Template markup is modified when switching language
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.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93819 von DenisChenu
DenisChenu antwortete auf das Thema: Template markup is modified when switching language

tpartner schrieb: 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).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93820 von tpartner
tpartner antwortete auf das Thema: Template markup is modified when switching language
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.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93824 von holch
holch antwortete auf das Thema: Template markup is modified when switching language

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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93826 von tpartner
tpartner antwortete auf das Thema: Template markup is modified when switching language
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.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93832 von holch
holch antwortete auf das Thema: Template markup is modified when switching language
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

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93838 von verdonv
verdonv antwortete auf das Thema: Template markup is modified when switching language
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 :-)

Bitte Anmelden um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten