mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-18 11:55:46 +08:00
Allow translation of shutdown dialog
This commit is contained in:
parent
8a97003a6a
commit
9359a73788
@ -4,29 +4,25 @@
|
|||||||
define([
|
define([
|
||||||
'jquery',
|
'jquery',
|
||||||
'base/js/dialog',
|
'base/js/dialog',
|
||||||
'base/js/events',
|
'base/js/i18n',
|
||||||
'base/js/promises',
|
|
||||||
'base/js/page',
|
|
||||||
'base/js/utils'
|
'base/js/utils'
|
||||||
], function(
|
], function(
|
||||||
$,
|
$,
|
||||||
dialog,
|
dialog,
|
||||||
events,
|
i18n,
|
||||||
promises,
|
|
||||||
page,
|
|
||||||
utils
|
utils
|
||||||
){
|
){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
function display_shutdown_dialog() {
|
function display_shutdown_dialog() {
|
||||||
var body = $('<div/>').append(
|
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(
|
).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({
|
dialog.modal({
|
||||||
title: "Server stopped",
|
title: i18n.msg._("Server stopped"),
|
||||||
body: body
|
body: body
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user