Commit fd13908b by Ned Batchelder

Fix single-quoted translated strings to be double-quoted.

parent 4e298a1a
...@@ -31,6 +31,6 @@ ...@@ -31,6 +31,6 @@
<a href="#" class="edit-button standard"><span class="edit-icon"></span>${_("Edit")}</a> <a href="#" class="edit-button standard"><span class="edit-icon"></span>${_("Edit")}</a>
<a href="#" class="delete-button standard"><span class="delete-icon"></span>${_("Delete")}</a> <a href="#" class="delete-button standard"><span class="delete-icon"></span>${_("Delete")}</a>
</div> </div>
<span data-tooltip='${_("Drag to reorder")}' class="drag-handle"></span> <span data-tooltip="${_("Drag to reorder")}" class="drag-handle"></span>
${preview} ${preview}
...@@ -163,10 +163,10 @@ var allStats = $('#status-infos'); ...@@ -163,10 +163,10 @@ var allStats = $('#status-infos');
var feedbackUrl = "${import_status_url}"; var feedbackUrl = "${import_status_url}";
var defaults = [ var defaults = [
'${_("There was an error during the upload process.")}\n', "${_("There was an error during the upload process.")}\n",
'${_("There was an error while unpacking the file.")}\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 verifying the file you submitted.")}\n",
'${_("There was an error while importing the new course to our database.")}\n' "${_("There was an error while importing the new course to our database.")}\n"
]; ];
$('#fileupload').fileupload({ $('#fileupload').fileupload({
...@@ -201,12 +201,12 @@ $('#fileupload').fileupload({ ...@@ -201,12 +201,12 @@ $('#fileupload').fileupload({
CourseImport.stageError(stage, defaults[stage] + errMsg); CourseImport.stageError(stage, defaults[stage] + errMsg);
} }
else { 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(); bar.hide();
} }
chooseBtn.html('${_("Choose new file")}').show(); chooseBtn.html("${_("Choose new file")}").show();
bar.hide(); bar.hide();
}); });
}); });
...@@ -243,7 +243,7 @@ $('#fileupload').fileupload({ ...@@ -243,7 +243,7 @@ $('#fileupload').fileupload({
}, },
start: function(e) { start: function(e) {
window.onbeforeunload = function() { 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, sequentialUploads: true,
......
...@@ -7,24 +7,24 @@ ...@@ -7,24 +7,24 @@
%if enable_markdown: %if enable_markdown:
<div class="editor-bar"> <div class="editor-bar">
<ul class="format-buttons"> <ul class="format-buttons">
<li><a href="#" class="header-button" data-tooltip='${_("Heading 1")}'><span <li><a href="#" class="header-button" data-tooltip="${_("Heading 1")}"><span
class="problem-editor-icon heading1"></span></a></li> class="problem-editor-icon heading1"></span></a></li>
<li><a href="#" class="multiple-choice-button" data-tooltip='${_("Multiple Choice")}'><span <li><a href="#" class="multiple-choice-button" data-tooltip="${_("Multiple Choice")}"><span
class="problem-editor-icon multiple-choice"></span></a></li> class="problem-editor-icon multiple-choice"></span></a></li>
<li><a href="#" class="checks-button" data-tooltip='${_("Checkboxes")}'><span <li><a href="#" class="checks-button" data-tooltip="${_("Checkboxes")}"><span
class="problem-editor-icon checks"></span></a></li> class="problem-editor-icon checks"></span></a></li>
<li><a href="#" class="string-button" data-tooltip='${_("Text Input")}'><span <li><a href="#" class="string-button" data-tooltip="${_("Text Input")}"><span
class="problem-editor-icon string"></span></a></li> class="problem-editor-icon string"></span></a></li>
<li><a href="#" class="number-button" data-tooltip='${_("Numerical Input")}'><span <li><a href="#" class="number-button" data-tooltip="${_("Numerical Input")}"><span
class="problem-editor-icon number"></span></a></li> class="problem-editor-icon number"></span></a></li>
<li><a href="#" class="dropdown-button" data-tooltip='${_("Dropdown")}'><span <li><a href="#" class="dropdown-button" data-tooltip="${_("Dropdown")}"><span
class="problem-editor-icon dropdown"></span></a></li> class="problem-editor-icon dropdown"></span></a></li>
<li><a href="#" class="explanation-button" data-tooltip='${_("Explanation")}'><span <li><a href="#" class="explanation-button" data-tooltip="${_("Explanation")}"><span
class="problem-editor-icon explanation"></span></a></li> class="problem-editor-icon explanation"></span></a></li>
</ul> </ul>
<ul class="editor-tabs"> <ul class="editor-tabs">
<li><a href="#" class="xml-tab advanced-toggle" data-tab="xml">${_("Advanced Editor")}</a></li> <li><a href="#" class="xml-tab advanced-toggle" data-tab="xml">${_("Advanced Editor")}</a></li>
<li><a href="#" class="cheatsheet-toggle" data-tooltip='${_("Toggle Cheatsheet")}'>?</a></li> <li><a href="#" class="cheatsheet-toggle" data-tooltip="${_("Toggle Cheatsheet")}">?</a></li>
</ul> </ul>
</div> </div>
<textarea class="markdown-box">${markdown | h}</textarea> <textarea class="markdown-box">${markdown | h}</textarea>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<ul class="list-actions"> <ul class="list-actions">
<li class="action-item"> <li class="action-item">
<a href="http://files.edx.org/Getting_Started_with_Studio.pdf" class="action action-primary" title='${_("This is a PDF Document")}'>${_("Download Studio Documentation")}</a> <a href="http://files.edx.org/Getting_Started_with_Studio.pdf" class="action action-primary" title="${_("This is a PDF Document")}">${_("Download Studio Documentation")}</a>
<span class="tip">${_("How to use Studio to build your course")}</span> <span class="tip">${_("How to use Studio to build your course")}</span>
</li> </li>
<li class="action-item"> <li class="action-item">
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<ul class="list-actions"> <ul class="list-actions">
<li class="action-item"> <li class="action-item">
<a href="http://help.edge.edx.org/discussion/new" class="action action-primary show-tender" title='${_("Use our feedback tool, Tender, to share your feedback")}'><i class="icon-comments"></i>${_("Contact Us")}</a> <a href="http://help.edge.edx.org/discussion/new" class="action action-primary show-tender" title="${_("Use our feedback tool, Tender, to share your feedback")}"><i class="icon-comments"></i>${_("Contact Us")}</a>
</li> </li>
</ul> </ul>
</div> </div>
......
...@@ -153,7 +153,7 @@ function goto( mode) ...@@ -153,7 +153,7 @@ function goto( mode)
%if offline_grade_log: %if offline_grade_log:
<p> <p>
<span class="copy-warning">Pre-computed grades ${offline_grade_log} available: Use? <span class="copy-warning">Pre-computed grades ${offline_grade_log} available: Use?
<input type='checkbox' name='use_offline_grades' value='${_("yes")}'> <input type='checkbox' name='use_offline_grades' value="${_("yes")}">
</span> </span>
</p> </p>
%endif %endif
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
window.top.location.href = "${reverse('register_user')}?course_id=${course.id}&enrollment_action=enroll"; window.top.location.href = "${reverse('register_user')}?course_id=${course.id}&enrollment_action=enroll";
} else { } else {
$('#register_error').html( $('#register_error').html(
(xhr.responseText ? xhr.responseText : '${_("An error occurred. Please try again later.")}') (xhr.responseText ? xhr.responseText : "${_("An error occurred. Please try again later.")}")
).css("display", "block"); ).css("display", "block");
} }
}); });
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<a href="#help-modal" rel="leanModal" role="button">${_("Help")}</a> <a href="#help-modal" rel="leanModal" role="button">${_("Help")}</a>
</div> </div>
<section id="help-modal" class="modal" aria-hidden="true" role="dialog" aria-label='${_("{platform_name} Help").format(platform_name=settings.PLATFORM_NAME)}'> <section id="help-modal" class="modal" aria-hidden="true" role="dialog" aria-label="${_("{platform_name} Help").format(platform_name=settings.PLATFORM_NAME)}">
<div class="inner-wrapper" id="help_wrapper"> <div class="inner-wrapper" id="help_wrapper">
## TODO: find a way to refactor this ## TODO: find a way to refactor this
<button class="close-modal "tabindex="0">&#10005; <span class="sr">${_('Close Modal')}</span></button> <button class="close-modal "tabindex="0">&#10005; <span class="sr">${_('Close Modal')}</span></button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment