Welcome, Guest
Username: Password: Remember me

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

Is there a way to change the text on buttons? 2 years 4 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.

Re: Is there a way to change the text on buttons? 2 years 4 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.

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

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6429
  • Thank you received: 840
  • Karma: 249
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
The administrator has disabled public write access.

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

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
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.124 seconds
Donation Image