i18n feedback.js
Change-Id: I503bd7bc878a08d854e72b581912347a668afb0d Reviewed-on: https://gerrit.instructure.com/4468 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
This commit is contained in:
parent
b283bc59d4
commit
d78bc6af3b
|
@ -16,6 +16,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
I18n.scoped('feedback', function(I18n) {
|
||||
$(document).ready(function() {
|
||||
var dialogOpened = false;
|
||||
var $dialog = $("#feedback_dialog");
|
||||
|
@ -72,7 +73,7 @@ $(document).ready(function() {
|
|||
};
|
||||
var dialogParams = {
|
||||
autoOpen: false,
|
||||
title: "Canvas Feedback",
|
||||
title: I18n.t('titles.feedback', "Canvas Feedback"),
|
||||
width: 500,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
|
@ -86,7 +87,7 @@ $(document).ready(function() {
|
|||
populateDialog();
|
||||
},
|
||||
close: function() {
|
||||
$("#submit_feedback_form .sending_text").text("Send Feedback");
|
||||
$("#submit_feedback_form .sending_text").text(I18n.t('buttons.send_feedback', "Send Feedback"));
|
||||
$(this).find(".send_button").attr('disabled', false);
|
||||
}
|
||||
};
|
||||
|
@ -130,7 +131,7 @@ $(document).ready(function() {
|
|||
}, 2500);
|
||||
},
|
||||
error: function(data) {
|
||||
$(this).find(".sending_text").text("Send Failed, please try again");
|
||||
$(this).find(".sending_text").text(I18n.t('errors.send_failed', "Send Failed, please try again"));
|
||||
$(this).find(".send_button").attr('disabled', false);
|
||||
}
|
||||
});
|
||||
|
@ -152,3 +153,4 @@ $(document).ready(function() {
|
|||
feedbackInit(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue