Modify language designation in Drop down menu

More
1 month 1 week 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

Please Log in to join the conversation.

LimeSurvey Partners
More
1 month 1 week 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

Please Log in to join the conversation.

More
1 month 1 week ago #200411 by AishaFT
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

Please Log in to join the conversation.

More
1 month 1 week ago #200416 by tpartner
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.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

More
1 month 1 week ago #200417 by AishaFT
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
Attachments:

Please Log in to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #200431 by tpartner
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).

<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.
Official LimeSurvey Partner - partnersurveys.com
Attachments:
Last edit: 1 month 1 week ago by tpartner.
The following user(s) said Thank You: AishaFT

Please Log in to join the conversation.

More
1 month 1 week ago #200478 by AishaFT
Dear Tony,

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

Thank you very much!

Best,

Aisha

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now