The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Bienvenido, Invitado
Nombre de Usuario: Contraseña: Recordarme
  • Página:
  • 1

TEMA: Template markup is modified when switching language

Template markup is modified when switching language hace 2 meses 1 semana #93685

  • verdonv
  • Avatar de verdonv
  • DESCONECTADO
  • Fresh Lemon
  • Mensajes: 3
  • Karma: 0
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
El administrador ha desactivado la escritura pública.

Template markup is modified when switching language hace 2 meses 1 semana #93712

  • DenisChenu
  • Avatar de DenisChenu
  • DESCONECTADO
  • Moderator Lime
  • Mensajes: 4431
  • Gracias recibidas 460
  • Karma: 167
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
El administrador ha desactivado la escritura pública.
Los siguientes usuarios han agradecido: verdonv

Template markup is modified when switching language hace 2 meses 1 semana #93726

  • verdonv
  • Avatar de verdonv
  • DESCONECTADO
  • Fresh Lemon
  • Mensajes: 3
  • Karma: 0
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
El administrador ha desactivado la escritura pública.

Template markup is modified when switching language hace 2 meses 1 semana #93818

  • tpartner
  • Avatar de tpartner
  • DESCONECTADO
  • LimeSurvey Team
  • Mensajes: 2870
  • Gracias recibidas 429
  • Karma: 246
Where are you cutting and pasting from?
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
El administrador ha desactivado la escritura pública.

Template markup is modified when switching language hace 2 meses 1 semana #93819

  • DenisChenu
  • Avatar de DenisChenu
  • DESCONECTADO
  • Moderator Lime
  • Mensajes: 4431
  • Gracias recibidas 460
  • Karma: 167
tpartner escribió:
Where are you cutting and pasting from?
You think myEventWatcherDiv can come from auto translate ?
El administrador ha desactivado la escritura pública.

Template markup is modified when switching language hace 2 meses 1 semana #93820

  • tpartner
  • Avatar de tpartner
  • DESCONECTADO
  • LimeSurvey Team
  • Mensajes: 2870
  • Gracias recibidas 429
  • Karma: 246
Maybe. Try pasting into a plain-text editor like Notepad++ first.
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
El administrador ha desactivado la escritura pública.

Template markup is modified when switching language hace 2 meses 1 semana #93824

  • holch
  • Avatar de holch
  • DESCONECTADO
  • LimeSurvey Team
  • Mensajes: 1975
  • Gracias recibidas 156
  • Karma: 80
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
El administrador ha desactivado la escritura pública.

Template markup is modified when switching language hace 2 meses 1 semana #93826

  • tpartner
  • Avatar de tpartner
  • DESCONECTADO
  • LimeSurvey Team
  • Mensajes: 2870
  • Gracias recibidas 429
  • Karma: 246
See, that's what you get for using a mac :laugh:
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
El administrador ha desactivado la escritura pública.

Template markup is modified when switching language hace 2 meses 1 semana #93832

  • holch
  • Avatar de holch
  • DESCONECTADO
  • LimeSurvey Team
  • Mensajes: 1975
  • Gracias recibidas 156
  • Karma: 80
Thought the same thing but didn't want to say anything... hehehehe.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
El administrador ha desactivado la escritura pública.

Template markup is modified when switching language hace 2 meses 1 semana #93838

  • verdonv
  • Avatar de verdonv
  • DESCONECTADO
  • Fresh Lemon
  • Mensajes: 3
  • Karma: 0
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 :-)
El administrador ha desactivado la escritura pública.
  • Página:
  • 1
Moderadores: DenisChenu, ITEd
Tiempo de carga de la página: 0.451 segundos
Donation Image