diff --git a/lib/assets/javascripts/plans.js b/lib/assets/javascripts/plans.js index 4224401..d917f01 100644 --- a/lib/assets/javascripts/plans.js +++ b/lib/assets/javascripts/plans.js @@ -285,9 +285,9 @@ $.fn.update_plan_progress = function(data) { $("#questions-progress").css("width", (data.num_answers/data.num_questions*100)+"%"); - $("#questions-progress-title").text(data.num_answers+"/"+data.num_questions + " " + I18n.t("helpers.project.questions_answered")); + $("#questions-progress-title").text(data.num_answers+"/"+data.num_questions + " " + _('questions answered')); $('#export-progress').css('width', data.space_used + '%'); - $("#export-progress-title").text(I18n.t("helpers.plan.export.space_used_without_max", {space_used: data.space_used})); + $("#export-progress-title").text(_('approx. %{space_used}% of available space used', {space_used: data.space_used})); if (data.space_used >= 100) { $('#export-progress').removeClass("space"); $('#export-progress').addClass("full"); @@ -345,12 +345,13 @@ return false; }; +// TODO: Should we drop this now that the locking check has been removed? $.fn.check_section_lock = function() { var section = $(this); var section_id = section.attr("id").split('-')[1]; $.getJSON("locked?section_id="+section_id, function(data) { if (data.locked) { - section.find(".section-lock-notice").html("
" + I18n.t("helpers.project.share.locked_section_text") + data.locked_by + ".
"); + section.find(".section-lock-notice").html("" + _('This section is locked for editing by ') + data.locked_by + ".
"); section.find(".section-lock-notice").show(); section.find("input").attr('disabled', 'disabled'); section.find(".question-form").hide(); diff --git a/lib/assets/javascripts/toolbar.js b/lib/assets/javascripts/toolbar.js index 58c178c..f627bb9 100644 --- a/lib/assets/javascripts/toolbar.js +++ b/lib/assets/javascripts/toolbar.js @@ -38,7 +38,7 @@ table.before(''); // PUT not POST table.before(''); // Auth token - table.after('' + I18n.t("helpers.project.project_settings_text") + '
'); + table.after('' + _('The items you select here will be displayed in the table below. You can sort the data by each of these headings or filter by entering a text string in the search box.') + '
'); // Default name column table.before(''); @@ -55,11 +55,11 @@ input.attr('checked', 'checked'); } - thead.append('