Template markup is modified when switching language

Plus d'informations
il y a 4 ans 6 mois #93685 par verdonv
verdonv a créé le sujet : 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

Connexion pour participer à la conversation.

Plus d'informations
il y a 4 ans 6 mois #93712 par DenisChenu
DenisChenu a répondu au sujet : 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 .
Les utilisateur(s) suivant ont remercié: verdonv

Connexion pour participer à la conversation.

Plus d'informations
il y a 4 ans 6 mois #93726 par verdonv
verdonv a répondu au sujet : 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

Connexion pour participer à la conversation.

Plus d'informations
il y a 4 ans 6 mois #93818 par tpartner
tpartner a répondu au sujet : 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.

Connexion pour participer à la conversation.

Plus d'informations
il y a 4 ans 6 mois #93819 par DenisChenu
DenisChenu a répondu au sujet : Template markup is modified when switching language

tpartner écrit: 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 .

Connexion pour participer à la conversation.

Plus d'informations
il y a 4 ans 6 mois #93820 par tpartner
tpartner a répondu au sujet : 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.

Connexion pour participer à la conversation.

Plus d'informations
il y a 4 ans 6 mois #93824 par holch
holch a répondu au sujet : 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

Connexion pour participer à la conversation.

Plus d'informations
il y a 4 ans 6 mois #93826 par tpartner
tpartner a répondu au sujet : 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.

Connexion pour participer à la conversation.

Plus d'informations
il y a 4 ans 6 mois #93832 par holch
holch a répondu au sujet : 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

Connexion pour participer à la conversation.

Plus d'informations
il y a 4 ans 6 mois #93838 par verdonv
verdonv a répondu au sujet : 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 :-)

Connexion pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant