Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Is there a way to change the text on buttons?

Is there a way to change the text on buttons? 4 years 2 months ago #81372

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!
The administrator has disabled public write access.

Is there a way to change the text on buttons? 4 years 2 months ago #81757

  • Bourbon
  • Bourbon's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 19
  • Karma: 0
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:
The administrator has disabled public write access.

Is there a way to change the text on buttons? 4 years 2 months ago #81758

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9305
  • Thank you received: 1330
  • Karma: 386
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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Is there a way to change the text on buttons? 4 years 2 months ago #81812

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5984
  • Thank you received: 368
  • Karma: 260
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)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.214 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form