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

More
5 years 5 months ago #81871 by gloton
gloton created the topic: How to edit what is in braces, eg {NAVIGATOR}?
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>

Please Log in to join the conversation.

More
5 years 5 months ago #81883 by gloton
gloton replied the topic: How to edit what is in braces, eg {NAVIGATOR}?

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 >>

Please Log in to join the conversation.

More
5 years 5 months ago #81889 by Mazi
Mazi replied the topic: How to edit what is in braces, eg {NAVIGATOR}?
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)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 2 days ago #88778 by Mow
Mow replied the topic: How to edit what is in braces, eg {NAVIGATOR}?
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!

Please Log in to join the conversation.

More
5 years 2 days ago #88782 by Mow
Mow replied the topic: How to edit what is in braces, eg {NAVIGATOR}?
I finally found it. They are hardcoded in the index.php file..

Please Log in to join the conversation.

More
5 years 19 hours ago #88899 by Mazi
Mazi replied the topic: How to edit what is in braces, eg {NAVIGATOR}?

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)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 19 hours ago #88900 by Mow
Mow replied the topic: How to edit what is in braces, eg {NAVIGATOR}?
Do i have the choice ? it's hardcoded! What else can i do ?

Please Log in to join the conversation.

More
5 years 19 hours ago #88901 by Mazi
Mazi replied the topic: How to edit what is in braces, eg {NAVIGATOR}?
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)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 5 hours ago #88929 by tpartner
tpartner replied the topic: How to edit what is in braces, eg {NAVIGATOR}?
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.

Please Log in to join the conversation.

More
5 years 2 hours ago #88938 by Mazi
Mazi replied the topic: How to edit what is in braces, eg {NAVIGATOR}?
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)survey-consulting.com'"

Please Log in to join the conversation.

More
4 years 11 months ago - 4 years 11 months ago #88976 by DenisChenu
DenisChenu replied the topic: How to edit what is in braces, eg {NAVIGATOR}?

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 development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 4 years 11 months ago by DenisChenu. Reason: PS: jquery do the job

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!