Allow translation of shutdown dialog

This commit is contained in:
Thomas Kluyver 2018-03-29 12:17:19 +02:00
parent 8a97003a6a
commit 9359a73788

View File

@ -4,29 +4,25 @@
define([
'jquery',
'base/js/dialog',
'base/js/events',
'base/js/promises',
'base/js/page',
'base/js/i18n',
'base/js/utils'
], function(
$,
dialog,
events,
promises,
page,
i18n,
utils
){
"use strict";
function display_shutdown_dialog() {
var body = $('<div/>').append(
$('<p/>').text("You have shut down Jupyter. You can now close this tab.")
$('<p/>').text(i18n.msg._("You have shut down Jupyter. You can now close this tab."))
).append(
$('<p/>').text("To use Jupyter again, you will need to relaunch it.")
$('<p/>').text(i18n.msg._("To use Jupyter again, you will need to relaunch it."))
);
dialog.modal({
title: "Server stopped",
title: i18n.msg._("Server stopped"),
body: body
})
}