diff --git a/lib/assets/javascripts/plans.js b/lib/assets/javascripts/plans.js index ebf8d3e..4224401 100644 --- a/lib/assets/javascripts/plans.js +++ b/lib/assets/javascripts/plans.js @@ -307,8 +307,7 @@ if (timestamp != null) { timestamp = new Date(Number(timestamp) * 1000); q_status.text(""); - // TODO: i18n this - q_status.append( "Answered" + " " + "by" + " " + data.questions[question_id]["answered_by"]); + q_status.append( _('Answered') + " " + _(' by ') + data.questions[question_id]["answered_by"]); t = q_status.children("abbr:first"); // Update label to indicate successful submission q_status.removeClass("label-info label-warning"); @@ -331,8 +330,7 @@ timestamp = new Date(Number(timestamp) * 1000); if (timestamp.getTime() != current_timestamp.getTime()) { q_status.text(""); - // TODO: i18n this - q_status.append( "Answered" + " " + "by" + " " + data.questions[question_id]["answered_by"]); + q_status.append( _('Answered') + " " + _(' by ') + data.questions[question_id]["answered_by"]); t = q_status.children("abbr:first"); // Update label to indicate successful submission q_status.removeClass("label-info label-warning");