Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Template markup is modified when switching language

Template markup is modified when switching language 1 Jahr 4 Monate her #93685

  • verdonv
  • verdonvs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Template markup is modified when switching language 1 Jahr 4 Monate her #93712

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6207
  • Dank erhalten: 788
  • Karma: 238
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
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: verdonv

Template markup is modified when switching language 1 Jahr 4 Monate her #93726

  • verdonv
  • verdonvs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Template markup is modified when switching language 1 Jahr 4 Monate her #93818

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4058
  • Dank erhalten: 742
  • Karma: 341
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Template markup is modified when switching language 1 Jahr 4 Monate her #93819

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6207
  • Dank erhalten: 788
  • Karma: 238
tpartner schrieb:
Where are you cutting and pasting from?
You think myEventWatcherDiv can come from auto translate ?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Template markup is modified when switching language 1 Jahr 4 Monate her #93820

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4058
  • Dank erhalten: 742
  • Karma: 341
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Template markup is modified when switching language 1 Jahr 4 Monate her #93824

  • holch
  • holchs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2549
  • Dank erhalten: 285
  • Karma: 102
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!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Template markup is modified when switching language 1 Jahr 4 Monate her #93826

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4058
  • Dank erhalten: 742
  • Karma: 341
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Template markup is modified when switching language 1 Jahr 4 Monate her #93832

  • holch
  • holchs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2549
  • Dank erhalten: 285
  • Karma: 102
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!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Template markup is modified when switching language 1 Jahr 4 Monate her #93838

  • verdonv
  • verdonvs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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 :-)
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.509 Sekunden
Donation Image