From fd13908b9020b6ec606f1527c5b106fdc10f2319 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 10 Jan 2014 14:40:34 -0500 Subject: [PATCH] Fix single-quoted translated strings to be double-quoted. --- cms/templates/component.html | 2 +- cms/templates/import.html | 16 ++++++++-------- cms/templates/widgets/problem-edit.html | 16 ++++++++-------- cms/templates/widgets/sock.html | 4 ++-- .../courseware/instructor_dashboard.html | 2 +- lms/templates/courseware/mktg_course_about.html | 2 +- lms/templates/help_modal.html | 2 +- 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/cms/templates/component.html b/cms/templates/component.html index 07ab92c592..cd8da36d00 100644 --- a/cms/templates/component.html +++ b/cms/templates/component.html @@ -31,6 +31,6 @@ ${_("Edit")} ${_("Delete")} - + ${preview} diff --git a/cms/templates/import.html b/cms/templates/import.html index 51ee1ef839..0c8f947dce 100644 --- a/cms/templates/import.html +++ b/cms/templates/import.html @@ -163,10 +163,10 @@ var allStats = $('#status-infos'); var feedbackUrl = "${import_status_url}"; var defaults = [ - '${_("There was an error during the upload process.")}\n', - '${_("There was an error while unpacking the file.")}\n', - '${_("There was an error while verifying the file you submitted.")}\n', - '${_("There was an error while importing the new course to our database.")}\n' + "${_("There was an error during the upload process.")}\n", + "${_("There was an error while unpacking the file.")}\n", + "${_("There was an error while verifying the file you submitted.")}\n", + "${_("There was an error while importing the new course to our database.")}\n" ]; $('#fileupload').fileupload({ @@ -201,12 +201,12 @@ $('#fileupload').fileupload({ CourseImport.stageError(stage, defaults[stage] + errMsg); } else { - alert('${_("Your import has failed.")}\n\n' + errMsg); + alert("${_("Your import has failed.")}\n\n" + errMsg); } - chooseBtn.html('${_("Choose new file")}').show(); + chooseBtn.html("${_("Choose new file")}").show(); bar.hide(); } - chooseBtn.html('${_("Choose new file")}').show(); + chooseBtn.html("${_("Choose new file")}").show(); bar.hide(); }); }); @@ -243,7 +243,7 @@ $('#fileupload').fileupload({ }, start: function(e) { window.onbeforeunload = function() { - return '${_("Your import is in progress; navigating away will abort it.")}'; + return "${_("Your import is in progress; navigating away will abort it.")}"; } }, sequentialUploads: true, diff --git a/cms/templates/widgets/problem-edit.html b/cms/templates/widgets/problem-edit.html index 2d23a6f441..e5942828de 100644 --- a/cms/templates/widgets/problem-edit.html +++ b/cms/templates/widgets/problem-edit.html @@ -7,24 +7,24 @@ %if enable_markdown:
diff --git a/cms/templates/widgets/sock.html b/cms/templates/widgets/sock.html index 963e55ae43..4ab954c363 100644 --- a/cms/templates/widgets/sock.html +++ b/cms/templates/widgets/sock.html @@ -22,7 +22,7 @@