Check out the LimeSurvey source code on GitHub!

Is there a way to change the text on buttons?

More
4 years 8 months ago #81372 by nathanielelliott
I am trying to change a few of the button names, specifically "Next" & "Submit". Is there a way to edit these? I am completely at a lost and can't find where they are being coming from. Thanks so much!

Please Log in to join the conversation.

More
4 years 8 months ago #81757 by Bourbon
This is how I do it. (win XP, using winSCP)

1. Get poEdit - www.poedit.net/download.php
( docs.limesurvey.org/Translating+LimeSurvey -->Creating a new translation)

2. Go to limesurvey/locale/en/LC_MESSAGES
(en = english, if you are using another language, just go to another language directory.)

3. Copy .po and .mo files to your computer from server

4. Open the .po file with poEdit

5. Search for "Next" (Ctrl-F). The big wide box above should have the string "Next" and the big wide box below should be empty.

6. In the box below, write your desired string for the "next button"
(if the box below is not empty, replace with the string you want to be show on the "next-button")

7. For "Submit-button", do step 5. and 6. (Searc for "Submit"


8. Save the .po file (Ctrl-S) and move over to 'en/LC_MESSAGES', overwriting the current file there.


Hope this helps, or atleast gives an idea how it's done

/Bourbot
Attachments:

Please Log in to join the conversation.

More
4 years 8 months ago #81758 by DenisChenu
Hello,

You can do this in javascript too.
<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		$("#movenextbtn").val('I agree to participate');
	});
</script>
in question text

Or put
$(document).ready(function() {
		$("#movenextbtn").val('I agree to participate');
	});
in template.js

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
4 years 8 months ago #81812 by Mazi
The solution posted by Denis above is the better approach because it limits the changes to one survey or one template when ading the code to the template.js file while when editing the translation file, this affects all surveys!


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form