Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: How to remove the language switcher

How to remove the language switcher 5 years 6 months ago #55020

  • Kansen
  • Kansen's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Hi everyone,

I got LimeSurvey installed by LimeService and finished my questionnaire now (englisch & german).

Could anyone tell me how I can remove that Dropdown Box that makes you change the language during the questionnaire?

Thx in advance!

Best,
The administrator has disabled public write access.

How to remove the language switcher 5 years 6 months ago #55028

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5062
  • Thank you received: 749
  • Karma: 227
The language switcher is, as far as I know, part of the template. Have a look at your template. Depending on your template this might be in different files. My guess would be the startpage.pstpl.

If you use a standard template, I would suggest you copy the template and change things in the new template. So you can always go back to the standard one, if something goes wrong.
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!
The administrator has disabled public write access.

How to remove the language switcher 5 years 6 months ago #55043

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6122
  • Thank you received: 1357
  • Karma: 533
Find and remove the {LANGUAGECHANGER} placeholder. Maybe in survey.pstpl.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Aw: Re: How to remove the language switcher 5 years 6 months ago #55142

  • Kansen
  • Kansen's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
tpartner wrote:
Find and remove the {LANGUAGECHANGER} placeholder. Maybe in survey.pstpl.

Hi,

thx for the help but all i could find was:

.languagechanger {font-size: 1em;}

that was in the template.css

I tried deleting that but it made no difference...any other ideas?

Thx again,
The administrator has disabled public write access.

Aw: Re: How to remove the language switcher 5 years 6 months ago #55143

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5062
  • Thank you received: 749
  • Karma: 227
Of course deleting .languagechanger in the template.css doesn't help. It just deletes the way it is supposed to be styled. What you could do is to use
.languagechanger {display:none;}

While still in the source code, the languagechanger shouldn't appear anymore.

Without knowing which template you use, it is basically impossible to tell you where in the template files you can find the language changer.

For the template "default" you can find {LANGUAGECHANGER} in the survey.pstpl. But this can be different for each template.
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!
Last Edit: 5 years 6 months ago by holch.
The administrator has disabled public write access.

Aw: Re: How to remove the language switcher 5 years 6 months ago #55144

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6122
  • Thank you received: 1357
  • Karma: 533
The placeholder must be there or the language changer would not appear. What template are you using?

You could also use CSS to hide it. Add the following to the end of template.css:
.languagechanger {
	display: none;
}

[EDIT] holch beat me to the CSS :P [/EDIT]
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 years 6 months ago by tpartner.
The administrator has disabled public write access.

Aw: Re: How to remove the language switcher 3 years 10 months ago #85162

  • jmbaria
  • jmbaria's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
This is an old post but I thought I should just post the answer anyway.
open the current active template e.g templates/default/surveylist.pstpl

look for {LANGUAGECHANGER} in surveylist.pstpl file and remove it.

That's all.
The administrator has disabled public write access.

How to remove the language switcher 3 years 3 months ago #94948

  • tammo
  • tammo's Avatar
  • Offline
  • Premium Lime
  • Posts: 325
  • Thank you received: 58
  • Karma: 16
Depending on the template you use, the [LANGUAGESWITCHER] may be either in welcome.pstl or another template file. I prefer it to reside in welcome.pstl, since then it is only shown at the start of the survey, not on every following page.

Tammo ter Hark
Tools for Research
Haarlem/Amsterdam, The Netherlands
The administrator has disabled public write access.

How to remove the language switcher of the Administrator Login Panel 2 months 4 weeks ago #135262

  • testleno
  • testleno's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
Hi,

I want to remove the language switcher of the Administrator Login Panel. I am using Limesurvey version2.50.

Kindly help me to remove it.

Thanks
The administrator has disabled public write access.

How to remove the language switcher of the Administrator Login Panel 2 months 3 weeks ago #135301

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5062
  • Thank you received: 749
  • Karma: 227
For the Administrator Login Panel you will most probably have to look in the administration template files. Probably the easiest way is to hide it via CSS, if you can find the respective ID or class so you can access it via CSS.
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!
The administrator has disabled public write access.

How to remove the language switcher of the Administrator Login Panel 2 months 3 weeks ago #135302

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5062
  • Thank you received: 749
  • Karma: 227
I have tried to find out how to solve this.

Wow, is this simple little page complicated. I don't know why there is so much going on on this page. I guess this has to do with bootstrap. I had and am still having a hard time to find my way around the html code and the css code for what is supposed to be a pretty simple page.

With adding display:none to #s2id_loginlang I managed to hide the drop down. But as the label "language" has no ID nor a unique class, I am not quite sure how to hide this via CSS. Maybe someone else can skip in, who is more up to date with coding or has experience with bootstrap.
#s2id_loginlang {
    border: none;
    padding: 0;
    display: none;
}

Should be found in lime-admin-common.css
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!
Last Edit: 2 months 3 weeks ago by holch.
The administrator has disabled public write access.

How to remove the language switcher of the Administrator Login Panel 2 months 3 weeks ago #135313

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1790
  • Thank you received: 439
  • Karma: 110
holch wrote:
But as the label "language" has no ID

answered here ;)
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.305 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form