Need help on translating the term "Total"

More
3 years 3 months ago - 3 years 3 months ago #110565 by peterx
peterx created the topic: Need help on translating the term "Total"
Hello,

I use LimeSurvey since 2008 and think that it is a great software.
We've even adopted it in our university.

Now I try to complete (and improve where necessary) the Bulgarian translation.

Unfortunately, I've faced some difficulties with the term "Total", when used in an Array (Texts) question.
I've forced numeric entry and activated the totals options. It shows "Total" instead of the Bulgarian word "Общо".

The string is translated in the .po file, but it is associated only with the following lines:
#: application/views/admin/assessments_view.php:39
#: application/views/admin/assessments_view.php:71
#: application/views/admin/survey/listSurveys_view.php:46

A link to an example survey:
survey.ue-varna.bg/index.php/623336/lang-bg

I will appreciate any help on how to translate this string.

Kindest regards,
Petar
Last Edit: 3 years 3 months ago by peterx.

Please Log in to join the conversation.

More
3 years 3 months ago - 3 years 3 months ago #110571 by c_schmitz
c_schmitz replied the topic: Need help on translating the term "Total"
This cannot be translated currently - we just fixed it in the development version and the fix will be available in the next build/release.

Please help translating all missing strings at

translate.limesurvey.org/projects/limesurvey2/bg/default

Best regards

Carsten Schmitz
LimeSurvey project leader
Last Edit: 3 years 3 months ago by c_schmitz.

Please Log in to join the conversation.

More
3 years 3 months ago - 3 years 3 months ago #110578 by tpartner
tpartner replied the topic: Need help on translating the term "Total"
In the meantime you can set up your survey to use JavaScript and add this to the source of the question:

<script type="text/javascript" charset="utf-8">	
	$(document).ready(function() {
 
		var newText = 'Общо';
 
		$('#question{QID} th.total, #question{QID} tr.total .answertext').text(newText);
	});
</script>


.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 3 years 3 months ago by tpartner.

Please Log in to join the conversation.

More
3 years 3 months ago #110612 by peterx
peterx replied the topic: Need help on translating the term "Total"
@c_schmitz,
Good to know this :). I've found out that the string "Title cannot be blank." (shows next to the field for QID when adding new question) also cannot be translated currently.
As soon as I finish my translation and test it till I am satisfied with the result, I will fill in the missing strings on translate.limesurvey.org.

@tpartner,
Thank you very much! It worked like a charm!

P.S. I noticed that I cannot add JavaScript from a non-admin account. Is there a setting I can use to let other users add JavaScript in questions?

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now