Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to remove the language switcher

More
14 years 7 months ago #55020 by Kansen
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 topic has been locked.
More
14 years 7 months ago #55028 by holch
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.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
14 years 7 months ago #55043 by tpartner
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 topic has been locked.
More
14 years 7 months ago #55142 by Kansen

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 topic has been locked.
More
14 years 7 months ago - 14 years 7 months ago #55143 by holch
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
Code:
.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.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Last edit: 14 years 7 months ago by holch.
The topic has been locked.
More
14 years 7 months ago - 14 years 7 months ago #55144 by tpartner
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:
Code:
.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: 14 years 7 months ago by tpartner.
The topic has been locked.
More
12 years 11 months ago #85162 by jmbaria
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 topic has been locked.
More
12 years 4 months ago #94948 by tammo
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 at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
More
9 years 4 months ago #135262 by testleno
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 topic has been locked.
More
9 years 4 months ago #135301 by holch
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.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
9 years 4 months ago - 9 years 4 months ago #135302 by holch
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.
Code:
#s2id_loginlang {
    border: none;
    padding: 0;
    display: none;
}

Should be found in lime-admin-common.css

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Last edit: 9 years 4 months ago by holch.
The topic has been locked.
More
9 years 4 months ago #135313 by Ben_V

holch wrote: But as the label "language" has no ID


answered here ;)

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
More
6 years 1 month ago #186935 by elsTa0
Hej guys,

I am really new with limesurvey and barely understand html and javascript.
I´d also like to hide the languageswitcher for the whole survey (it is not activated, Version 3.16.0+190225) and found this and other forum comments, and the manual page.

Being that new, I just don´t get where to apply it and how exactly. I mostly read about two options.
A) change code in template directly via source code (if that´s even the name, hmm)
B) insert your .languagechanger {display:none;} suggestion.

I am a student, working with a certain template created by my uni, and don´t have administrative rights to the account. Meaning I cannot change anything in the template directly. Until now I kept it on "inherit everything". In my understanding, that excludes option A.

Does that rule out B as well? Or could I just insert the above in theme options, if I switched "inherit everything" off and put that somewhere in the advanced settings? (I tried out files css at some point and everything went strange). After all, I thought I understood that no source code (suppose there´s a slight chance B is also source code :D, but doesn´t need any java-in.) is needed thanks to template.css (it kinda proceeds to the funny question is tempate.css some equivalent to the files css or cssframework css in the advanced settings? ..no?!).

This is probably somewhere in the forum already, I´m sorry about this.
It might seem silly but due to never having done anything code-ish and not having full limesurvey access, I feel I´m missing a really basic understanding of how to use orders like the above in lime (especially when it comes to css).

I´d reeally appreciate a signpost. Please let me know if you need further info.

Thanks a million in advance!
Ell
The topic has been locked.
More
6 years 1 month ago #186939 by Joffm
Hi, Ell
You have a lot of ideas. Did you try? Which results?

And you talk about "template.css". So you do not work with version 3.x.
Which one?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
6 years 1 month ago #186946 by elsTa0
Hi!
I doo: it says LimeSurvey Version 3.16.0+190225 at the right hand bottom of my account. I wrote template.css because I read it a lot in Forum comments and thought it still existed. That´s quite a good demo of how i often don´t get whether something is just something i don´t understand yet, or simply part of an older limeSurvey version. ^^

Re ideas + results:
Maybe I explained it badly, but for one I cannot change anything in source code of templates themselves, because i don´t have administrative access. I can only access the options at the bar at the top right side of the screen (see tiny picture).

Attachment not found

That means I haven´t tried option A. (Just read about in in forum.)

Option B ) (which was displayed as B) in my last post), is something i thought might work without using java or actually changing the original template (which cannot be changed since others at the uni use it too). That is, the .languagechanger order.

I did try to ask my super administrator to make a template copy and turn it off in there, but I´m not sure how well she goes about limesurvey because she suggested to simply x out the second languge under additional languges in general settings - something i cannot do, because the default language is German. But this is also the language I`d like to hide, as my survey will be in English only.

So that left me with wanting to tryout .languagechanger {display:none;} as suggested here by holch and tpartner but I just don´t get where to put slash if i can´t put it anywhere because i don´t have administrative rights.

I did simply try putting it in the Files CSS, but was told about 10 times: Error: Malformed JSON: Field files_css must be either a JSON array or the string "inherit". Found "". If I put it in Files Print CSS, it doesn´t give warnings but also doesn´t remove the switch. Same for putting it in Cssframework Css.

Attachment not found


Possible explanations
1. it was never meant to go in the advanced theme settings in the survey,
2. code is wrong or outdated (missing brackets, other signs..),
3. order correct but some setting missing in order for it to work,
4. ???

There´s so much help and input in manual and forum (which is so cool! thanks) but I lack a feel of which order can go in what setting and how/if I´d have to modify forum suggestions for older lime versions. Like when you learn vocabulary but get the grammar all wrong :D - I´m not asking you to do my grammar work though, if that came out wrong.

Does that make sense? (Sorry, I suck at keeping it short.)

Thanks:)
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose