Welcome to the LimeSurvey Community Forum

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

Hiding language that is not yet translated

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #198087 by tpartner
Replied by tpartner on topic Hiding language that is not yet translated
CSS:

Code:
body[data-sid="123456"] a.ls-language-link[data-limesurvey-lang="fr"],
body[data-sid="123456"] #lang option[value="fr"] {
  display: none;
}

JavaScript:

Code:
$(document).on('ready pjax:scriptcomplete',function(){
  $('body[data-sid="123456"] a.ls-language-link[data-limesurvey-lang="fr"]').closest('li').remove();
  $('body[data-sid="123456"] #lang option[value="fr"]').remove();
});

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: ymca
The topic has been locked.
  • ymca
  • ymca's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 11 months ago #198103 by ymca

tpartner wrote: CSS:

Code:
body[data-sid="123456"] a.ls-language-link[data-limesurvey-lang="fr"],
body[data-sid="123456"] #lang option[value="fr"] {
  display: none;
}

JavaScript:

Code:
$(document).on('ready pjax:scriptcomplete',function(){
  $('body[data-sid="123456"] a.ls-language-link[data-limesurvey-lang="fr"]').closest('li').remove();
  $('body[data-sid="123456"] #lang option[value="fr"]').remove();
});

B) Awesome. Thanks.

LS Version 4.2+
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose