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

TOPIC: How to edit what is in braces, eg {NAVIGATOR}?

How to edit what is in braces, eg {NAVIGATOR}? 4 years 1 month ago #81871

  • gloton
  • gloton's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
How to edit what is in braces, eg {NAVIGATOR}?


Specifically I want to edit this, but I think I will serve for all the labels of this type
<div class="survey-navigator">{NAVIGATOR}</div>
The administrator has disabled public write access.

How to edit what is in braces, eg {NAVIGATOR}? 4 years 1 month ago #81883

  • gloton
  • gloton's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
gloton wrote:
How to edit what is in braces, eg {NAVIGATOR}?


Specifically I want to edit this, but I think I will serve for all the labels of this type
<div class="survey-navigator">{NAVIGATOR}</div>
This says Siguiente >>
And I want to write Proximo, and delete >>
The administrator has disabled public write access.

How to edit what is in braces, eg {NAVIGATOR}? 4 years 1 month ago #81889

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
The text can be changed by editing the translation file: This text string can be changed by editing the translation .


At Limesurvey 2 it should also be possible to change/edit/remove the <</>>.

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.

How to edit what is in braces, eg {NAVIGATOR}? 3 years 8 months ago #88778

  • Mow
  • Mow's Avatar
  • Offline
  • Junior Lime
  • Posts: 25
  • Karma: 0
I'm using LS 1.9.2 and i have to delete those <</>>.

Can you tell me at least where are they added ? in php ? if yes in which file ?

Thanks!
The administrator has disabled public write access.

How to edit what is in braces, eg {NAVIGATOR}? 3 years 8 months ago #88782

  • Mow
  • Mow's Avatar
  • Offline
  • Junior Lime
  • Posts: 25
  • Karma: 0
I finally found it. They are hardcoded in the index.php file..
The administrator has disabled public write access.

How to edit what is in braces, eg {NAVIGATOR}? 3 years 8 months ago #88899

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
Mow wrote:
I finally found it. They are hardcoded in the index.php file..
Well, the answer depends on the version you are using. There is also a replacement.php file at other versions.

Generally, I don't recommend to change the source code.

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.

How to edit what is in braces, eg {NAVIGATOR}? 3 years 8 months ago #88900

  • Mow
  • Mow's Avatar
  • Offline
  • Junior Lime
  • Posts: 25
  • Karma: 0
Do i have the choice ? it's hardcoded! What else can i do ?
The administrator has disabled public write access.

How to edit what is in braces, eg {NAVIGATOR}? 3 years 8 months ago #88901

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
You can easily re-name the buttons with some lines of Javascript to overwrite the button label.
There should be some examples here at the forum.

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.

How to edit what is in braces, eg {NAVIGATOR}? 3 years 8 months ago #88929

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6129
  • Thank you received: 1360
  • Karma: 535
Add the following to the end of template.js and change the text as required:
$(document).ready(function() {
	if($('#movenextbtn').length > 0) {
		$('#movenextbtn').attr('value', 'New Next');
	}
	if($('#moveprevbtn').length > 0) {
		$('#moveprevbtn').attr('value', 'New Previous');
	}
});
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

How to edit what is in braces, eg {NAVIGATOR}? 3 years 8 months ago #88938

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
Tony, what do we need the length check for? To be sure the element exists?

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.

How to edit what is in braces, eg {NAVIGATOR}? 3 years 8 months ago #88976

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9281
  • Thank you received: 1324
  • Karma: 384
Mazi wrote:
Tony, what do we need the length check for? To be sure the element exists?
Yep.

But jquery do the job itself, then you're right: not needed.
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
Last Edit: 3 years 8 months ago by DenisChenu. Reason: PS: jquery do the job
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 4.402 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form