Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Need help on translating the term "Total"

  • peterx
  • peterx's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago - 10 years 5 months ago #110565 by peterx
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:
Code:
#: 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: 10 years 5 months ago by peterx.
The topic has been locked.
  • c_schmitz
  • c_schmitz's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
10 years 5 months ago - 10 years 5 months ago #110571 by c_schmitz
Replied by c_schmitz on 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: 10 years 5 months ago by c_schmitz.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 5 months ago - 10 years 5 months ago #110578 by tpartner
Replied by tpartner on 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:

Code:
<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: 10 years 5 months ago by tpartner.
The topic has been locked.
  • peterx
  • peterx's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago #110612 by peterx
Replied by peterx on 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?
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose