Welcome to the LimeSurvey Community Forum

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

Modify language designation in Drop down menu

  • AishaFT
  • AishaFT's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago #200262 by AishaFT
Dear all,

I designed a survey in 4 languages, English (basic language), Albanian, Macedonian and Bosnian/Croatian/Serbian/Montenegrin. The Lime Survey only offered me either Serbian or Bosnian or etc. as language. I opted for Serbian, and now it say 'English', 'Sqiphe' for Albanian, 'Macedonski' for Macedonian and 'Srpski' for Serbian in my Drop Down List. Is there any way that you could change this designation?

E.g. Instead of 'Srpski' it would say BHSM (Bosnian/Croatian/Serbian/Montenegrin)?

I hope you can help me!

Thank you in advance.

Best,

Aisha
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #200269 by Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: AishaFT
The topic has been locked.
  • AishaFT
  • AishaFT's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago #200411 by AishaFT
Replied by AishaFT on topic Modify language designation in Drop down menu
Dear Joffm,

Thank you for your reply! Does the suggested solution also work if I do not have access to the server? As I am currently working from home, I can only access the survey remotely, I guess.

Thank you in advance!

Aisha
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #200416 by tpartner
Replied by tpartner on topic Modify language designation in Drop down menu
You should be able to change the dropdown option text via JavaScript (assuming you have permissions to insert JavaScript).

What LimeSurvey version are you using?

Do you use a custom theme?

Do you want "BHSM" for that option in all languages?

Can you attach a small sample survey (.lss file)?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • AishaFT
  • AishaFT's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago #200417 by AishaFT
Replied by AishaFT on topic Modify language designation in Drop down menu
Dear Tony,

Thank you for your answer. You wrote 'You should be able to change the dropdown option text via JavaScript (assuming you have permissions to insert JavaScript).' - Where excatly should I be able to change that? I cannot modify/add any file in the server.

I am using LimeSurvey Version 2.05+.

'Do you use a custom theme?' - No.

'Do you want "BHSM" for that option in all languages?' - I am not sure if I understand the question. I have a version of my questionnaire in Serbian (I chose Serbian, because it was an option given by LimeSurvey) - the language that I am actually using is called BHSM (stands for Bosnian/Croatian/Serbian/Montenegrin).In my Dropdown Menu the English version is called 'English', the Macedonian 'Македонски' , the Serbian 'Sprski' etc. Instead of 'Srpski', I would like this version of the questionnaire to be called 'BHSM' in the Drop Down menu.

Please find attached the .lss file.


I hope it is more clear now!


Thank you in advance,

Aisha
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago - 3 years 10 months ago #200431 by tpartner
Replied by tpartner on topic Modify language designation in Drop down menu
Set up your survey to use JavaScript .

Insert this script into the source of the welcome message and into the source of a question in every group (in all languages).

Code:
<script type="text/javascript" charset="utf-8">  
  $(document).on('ready ',function(){
    $('#lang option[value="sr-Latn"]').text('BHSM');
    });
</script>

Sample survey attached:

File Attachment:

File Name: limesurvey...6(1).lss
File Size:14 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 3 years 10 months ago by tpartner.
The following user(s) said Thank You: AishaFT
The topic has been locked.
  • AishaFT
  • AishaFT's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago #200478 by AishaFT
Replied by AishaFT on topic Modify language designation in Drop down menu
Dear Tony,

Works perfectly! What a relief, it was such a big headache for us! :)

Thank you very much!

Best,

Aisha
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose