Hi Joffm,
thanks for your hint to the built in column, row and total sums! makes asking and answering questions on budgets really easy. a hidden gem to me - but maybe I should just read the docs
My only problem here was, that the labels for the Totals ("Total" etc.) are not translated in LS 2.6.4 LTS, whereas in the above example where you use a more recent version of LS they already are.
I'd like to translate these (s.
www.limesurvey.org/manual/Translating_LimeSurvey
,
translate.limesurvey.org/projects/limesu.../de/default/?filters
[term]=total) but for the moment I just wanted to quick (and dirty) replace the "Total" by "Gesamt" and just scripted this:
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
replacetotaltext();
});
function replacetotaltext() {
var x = document.getElementsByClassName("answertext total");
x[0].innerHTML = "Gesamt";
};
</script>
This works, but: I'm not a programmer - so my (probably naive) question is: is there an easier way to solve this without scripting (e.g. edit the .mo?), and: are there any possible negative side effects here with the script above? (e.g. naming of function, variables, etc.).
Best,
G